public class ConceptToken extends ObjectToken implements PartiallyOrderedToken
Concept
Red (blickly) |
Red (blickly) |
NULL
Constructor and Description |
---|
ConceptToken(Concept c)
Create a ConceptToken from a given Concept.
|
Modifier and Type | Method and Description |
---|---|
Concept |
conceptValue()
Return the concept encapsulated by this token.
|
ConceptType |
getType()
Return the type of this token.
|
BooleanToken |
isEqualTo(Token rightArgument)
Compare this ConceptToken to the given argument, and return true if
they refer to the same concept in the same lattice.
|
BooleanToken |
isLessThan(PartiallyOrderedToken rightArgument)
Check whether the value of this token is strictly less than that of the
argument token.
|
java.lang.String |
toString()
Return the value of this concept token as a string.
|
_isCloseTo, _isEqualTo, convert, equals, getValue, getValueClass, hashCode, isCloseTo, object
add, addReverse, divide, divideReverse, isCloseTo, isNil, modulo, moduloReverse, multiply, multiplyReverse, notSupportedConversionMessage, notSupportedIncomparableConversionMessage, notSupportedIncomparableMessage, notSupportedMessage, notSupportedNullNilStringMessage, one, pow, subtract, subtractReverse, zero, zeroReturnType
public ConceptToken(Concept c) throws IllegalActionException
c
- The given ConceptIllegalActionException
- Thrown if there is a problem creating
the ConceptTolen object.public Concept conceptValue()
public ConceptType getType()
getType
in class ObjectToken
public BooleanToken isEqualTo(Token rightArgument)
isEqualTo
in class ObjectToken
rightArgument
- The argument.public BooleanToken isLessThan(PartiallyOrderedToken rightArgument) throws IllegalActionException
isLessThan
in interface PartiallyOrderedToken
rightArgument
- The token on greater than side of the inequality.IllegalActionException
- If the argument token and this
token are of incomparable types, or are concepts from
different ontologies.public java.lang.String toString()
toString
in class ObjectToken