Class UIDNode
-
- All Implemented Interfaces:
-
it.unibo.alchemist.model.sapere.dsl.ITreeNode
,java.io.Serializable
public final class UIDNode extends ConstTreeNode
-
-
Constructor Summary
Constructors Constructor Description UIDNode(HashString fs)
Builds a new UUID node.
-
Method Summary
Modifier and Type Method Description HashString
getValue(Map<HashString, ITreeNode<out Object>> mp)
HashString
toHashString()
Similar to toString(), but returns a HashString. String
toString()
-
Methods inherited from class it.unibo.alchemist.model.sapere.dsl.impl.ATreeNode
equals, getData, getLeftChild, getNumberOfChildren, getRightChild, getValue, hashCode
-
Methods inherited from class it.unibo.alchemist.model.sapere.dsl.impl.ConstTreeNode
getType
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getValue
HashString getValue(Map<HashString, ITreeNode<out Object>> mp)
- Parameters:
mp
- the matches map.- Returns:
the value of the Node. (Double if it's a Num or a Var of type Num, String if it's a Const or a Var of type Const) the method return null if there are some variable not yet allocated in the expression.
-
toHashString
HashString toHashString()
Similar to toString(), but returns a HashString.
- Returns:
a HashString representation of this Object
-
-
-
-