Skip to content

com.inscoper.api.ValueCondition

ValueCondition class defines a condition based on a sub-device value. More...

Public Functions

Name
synchronized void delete()
ValueCondition(SubDeviceId subDeviceId, String condition, boolean negated)
Constructor with sub-device ID and condition.
ValueCondition(SubDeviceId subDeviceId, String condition)
Constructor with sub-device ID and condition.
ValueCondition()
Default constructor.
SubDeviceId getSubDeviceId()
Get the sub-device ID.
void setSubDeviceId(SubDeviceId subDeviceId)
Set the sub-device ID.
String getCondition()
Get the condition.
void setCondition(String condition)
Set the condition.
boolean isNegated()
Check if the condition is negated.
void setNegated(boolean negated)
Set whether the condition is negated.

Protected Functions

Name
ValueCondition(long cPtr, boolean cMemoryOwn)
void swigSetCMemOwn(boolean own)
void finalize()
long getCPtr(ValueCondition obj)

Detailed Description

public class com.inscoper.api.ValueCondition;

ValueCondition class defines a condition based on a sub-device value.

Represents a condition where a sub-device must meet a certain value criterion for a recipe element to be executed.

Public Functions Documentation

function delete

public synchronized void delete()

function ValueCondition

public ValueCondition(
    SubDeviceId subDeviceId,
    String condition,
    boolean negated
)

Constructor with sub-device ID and condition.

Parameters:

  • subDeviceId : The associated sub-device ID of the value Condition
  • condition : The value condition

Initializes a new instance of the ValueCondition class with a sub-device ID and a condition string.

function ValueCondition

public ValueCondition(
    SubDeviceId subDeviceId,
    String condition
)

Constructor with sub-device ID and condition.

Parameters:

  • subDeviceId : The associated sub-device ID of the value Condition
  • condition : The value condition

Initializes a new instance of the ValueCondition class with a sub-device ID and a condition string.

function ValueCondition

public ValueCondition()

Default constructor.

Initializes a new instance of the ValueCondition class.

function getSubDeviceId

public SubDeviceId getSubDeviceId()

Get the sub-device ID.

Return: The sub-device ID

Retrieves the ID of the sub-device associated with this condition.

function setSubDeviceId

public void setSubDeviceId(
    SubDeviceId subDeviceId
)

Set the sub-device ID.

Parameters:

  • subDeviceId : The sub-device ID

Sets the ID of the sub-device associated with this condition.

function getCondition

public String getCondition()

Get the condition.

Return: The condition

Retrieves the condition associated with this value condition.

function setCondition

public void setCondition(
    String condition
)

Set the condition.

Parameters:

  • condition : The condition

Sets the condition associated with this value condition.

function isNegated

public boolean isNegated()

Check if the condition is negated.

Return: True if the condition is negated

When true, the element fires when the sub-device value does NOT match the condition, instead of when it does match.

function setNegated

public void setNegated(
    boolean negated
)

Set whether the condition is negated.

Parameters:

  • negated : True to negate the condition, false otherwise

Defines whether the condition logic is inverted. When negated, the element fires when the sub-device value does not match the condition.

Protected Functions Documentation

function ValueCondition

protected ValueCondition(
    long cPtr,
    boolean cMemoryOwn
)

function swigSetCMemOwn

protected void swigSetCMemOwn(
    boolean own
)

function finalize

protected void finalize()

function getCPtr

protected static long getCPtr(
    ValueCondition obj
)

Updated on 2026-06-23 at 10:35:25 +0200