Package fr.uga.pddl4j.parser
Class TypedSymbol<T>
java.lang.Object
fr.uga.pddl4j.parser.Symbol<T>
fr.uga.pddl4j.parser.TypedSymbol<T>
- All Implemented Interfaces:
Serializable
This interface defines the interface of the typed symbols.
- See Also:
- Serialized Form
-
Field Summary
Fields inherited from class fr.uga.pddl4j.parser.Symbol
DEFAULT_TASK_ID_SYMBOL, DEFAULT_VARIABLE_SYMBOL, NUMBER_TYPE, OBJECT_TYPE -
Constructor Summary
ConstructorsConstructorDescriptionTypedSymbol(Symbol<T> symbol)Creates a new typed symbol from a specified symbol.TypedSymbol(SymbolType type, T value)Creates a new typed symbol from a specified symbol.TypedSymbol(TypedSymbol<T> other)Creates a typed symbol from a specified typed symbol. -
Method Summary
-
Constructor Details
-
TypedSymbol
Creates a typed symbol from a specified typed symbol.- Parameters:
other- the other symbol.- Throws:
NullPointerException- if the specified typed symbol is null.
-
TypedSymbol
Creates a new typed symbol from a specified symbol. This symbol is by default of type object. If a typed symbol is created with the specified symbolParser.OBJECTorParser.NUMBER, the typed list is creates with an empty list of super types.- Parameters:
type- the type of symbol.value- the value of the symbol.
-
TypedSymbol
Creates a new typed symbol from a specified symbol. This symbol is by default of type object. If a typed symbol is created with the specified symbolParser.OBJECTorParser.NUMBER, the typed list is creates with an empty list of super types.- Parameters:
symbol- the symbol.
-
-
Method Details
-
getTypes
Returns the list of types of this typed token.- Returns:
- the list of types of this typed token.
-
addType
Adds a type to this typed token.- Parameters:
type- the type to add.
-
toString
Returns a string representation of this typed symbol.
-