org.fosstrak.llrp.commander.util
Class LLRPPresenceConstraint
java.lang.Object
org.fosstrak.llrp.commander.util.LLRPPresenceConstraint
public class LLRPPresenceConstraint
- extends java.lang.Object
This class represents an LLRP constraint stating that a certain parameter is mandatory.
- Author:
- Ulrich Etter, ETHZ
|
Constructor Summary |
LLRPPresenceConstraint(java.lang.String messageOrParameterName,
java.lang.String subparameterName,
java.lang.String preconditionedEnumerationName,
java.lang.String preconditionedEnumerationValue)
Creates a new presence constraint. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LLRPPresenceConstraint
public LLRPPresenceConstraint(java.lang.String messageOrParameterName,
java.lang.String subparameterName,
java.lang.String preconditionedEnumerationName,
java.lang.String preconditionedEnumerationValue)
- Creates a new presence constraint.
Example:
To create a constraint that specifies that the sub-parameter PeriodicTriggerValue of the
parameter ROSpecStartTrigger must be present if the enumeration
ROSpecStartTriggerType has value Periodic, use the following code:
new LLRPPresenceConstraint(
"ROSpecStartTrigger",
"PeriodicTriggerValue",
"ROSpecStartTriggerType",
"Periodic"),
- Parameters:
messageOrParameterName - the message/parameter this constraint is defined forsubparameterName - the sub-parameter this constraint is defined forpreconditionedEnumerationName - the name of the enumeration on which this constraint is dependent;
use null if this constraint does not depend on any enumerationpreconditionedEnumerationValue - the value of the enumeration on which this constraint is dependent;
use null if this constraint does not depend on any enumeration
getErrorMessage
public java.lang.String getErrorMessage()
- Returns:
- the error message associated with this constraint
getMessageOrParameterName
public java.lang.String getMessageOrParameterName()
- Returns:
- the message/parameter this constraint is defined for
getSubparameterName
public java.lang.String getSubparameterName()
- Returns:
- the sub-parameter this constraint is defined for
getPreconditionedEnumerationName
public java.lang.String getPreconditionedEnumerationName()
- Returns:
- the name of the enumeration on which this constraint is dependent
getPreconditionedEnumerationValue
public java.lang.String getPreconditionedEnumerationValue()
- Returns:
- the value of the enumeration on which this constraint is dependent
Copyright © 2009. All Rights Reserved.