public class ConceptTermManager.InequalityTerm extends java.lang.Object implements InequalityTerm
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.Object |
_object
The model object associated with the InequalityTerm.
|
| Modifier | Constructor and Description |
|---|---|
protected |
InequalityTerm(java.lang.Object object)
Construct an InequalityTerm for the given model object.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
getAssociatedObject()
Return the model object associated with the InequalityTerm.
|
ConceptTermManager.InequalityTerm[] |
getConstants()
Return an array of one element with this InequalityTerm if it is
a constant InequalityTerm that cannot be changed.
|
java.lang.Object |
getValue()
Return null if this term is not effective.
|
ConceptTermManager.InequalityTerm[] |
getVariables()
Return this ptolemy.graph.InequalityTerm in an array if this term represent
a property variable.
|
void |
initialize(java.lang.Object property)
Reset the variable part of this type to the specified type.
|
boolean |
isEffective()
Return true if the InequalityTerm is an effective constraint for
the OntologySolver, and false otherwise.
|
boolean |
isSettable()
Test if the property of the port associated with this Term
can be changed.
|
boolean |
isValueAcceptable()
Check whether the current value of this term is acceptable.
|
void |
setEffective(boolean isEffective)
Sets whether the InequalityTerm constraint will be effective for
the OntologySolver's algorithm.
|
void |
setValue(java.lang.Object property)
Set the property value of this term.
|
java.lang.String |
toString()
Override the base class to give a description of the port
and its property.
|
protected java.lang.Object _object
protected InequalityTerm(java.lang.Object object)
object - The model object associated with this InequalityTermpublic java.lang.Object getAssociatedObject()
getAssociatedObject in interface InequalityTermpublic java.lang.Object getValue()
getValue in interface InequalityTermsetValue(Object)public ConceptTermManager.InequalityTerm[] getVariables()
getVariables in interface InequalityTermpublic ConceptTermManager.InequalityTerm[] getConstants()
public void initialize(java.lang.Object property)
throws IllegalActionException
initialize in interface InequalityTermproperty - A Type.IllegalActionException - If the type is not settable,
or the argument is not a Type.public boolean isEffective()
public boolean isSettable()
isSettable in interface InequalityTermpublic boolean isValueAcceptable()
isValueAcceptable in interface InequalityTermpublic void setEffective(boolean isEffective)
isEffective - true if the InequalityTerm should be effective,
false if it should be ineffectiveisEffective()public void setValue(java.lang.Object property)
throws IllegalActionException
setValue in interface InequalityTermproperty - The given property.IllegalActionException - If the new type violates
the declared property of this port.getValue()public java.lang.String toString()
toString in class java.lang.Object