public class TestConstant extends java.lang.Object implements InequalityTerm
| Constructor and Description |
|---|
TestConstant(java.lang.String value)
Construct a constant InequalityTerm with a String value.
|
| Modifier and Type | Method and Description |
|---|---|
void |
fixValue()
Do nothing.
|
java.lang.Object |
getAssociatedObject()
Return the string value.
|
java.lang.String |
getInfo()
Return the information of this term.
|
java.lang.Object |
getValue()
Return the constant String value of this term.
|
InequalityTerm[] |
getVariables()
Return an array of size zero.
|
void |
initialize(java.lang.Object e)
Throw an Exception.
|
boolean |
isSettable()
Return false.
|
boolean |
isValueAcceptable()
Check whether the current value of this term is acceptable,
and return true if it is.
|
void |
setName(java.lang.String name)
Set the name of this constant.
|
void |
setValue(java.lang.Object e)
Throw an Exception.
|
java.lang.String |
toString()
Override the base class to describe the constant.
|
void |
unfixValue()
Do nothing.
|
public TestConstant(java.lang.String value)
value - A Stringpublic void fixValue()
public java.lang.Object getAssociatedObject()
getAssociatedObject in interface InequalityTermpublic java.lang.String getInfo()
public java.lang.Object getValue()
getValue in interface InequalityTermsetValue(Object)public InequalityTerm[] getVariables()
getVariables in interface InequalityTermpublic boolean isSettable()
isSettable in interface InequalityTermpublic void initialize(java.lang.Object e) throws GraphActionException
initialize in interface InequalityTerme - An Object representing an element in the underlying CPO.GraphActionException - Always thrown since this term is a
constant.public boolean isValueAcceptable()
isValueAcceptable in interface InequalityTermpublic void setName(java.lang.String name)
name - The name of this constant.public void setValue(java.lang.Object e) throws GraphActionException
setValue in interface InequalityTerme - an Object. Ignored by this method.GraphActionException - always thrown.getValue()public java.lang.String toString()
toString in class java.lang.Objectpublic void unfixValue()