Class ListTreeNode
-
- All Implemented Interfaces:
-
it.unibo.alchemist.model.sapere.dsl.ITreeNode
,java.io.Serializable
,java.lang.Iterable
public final class ListTreeNode extends ATreeNode<T> implements Iterable<T>
-
-
Constructor Summary
Constructors Constructor Description ListTreeNode(Set<ITreeNode<out Object>> data)
-
Method Summary
Modifier and Type Method Description Type
getType()
Set<ITreeNode<out Object>>
getValue(Map<HashString, ITreeNode<out Object>> mp)
Iterator<ITreeNode<out Object>>
iterator()
String
toString()
-
Methods inherited from class it.unibo.alchemist.model.sapere.dsl.impl.ATreeNode
equals, getData, getLeftChild, getNumberOfChildren, getRightChild, hashCode, toHashString
-
Methods inherited from class java.lang.Iterable
forEach, spliterator
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getValue
Set<ITreeNode<out Object>> 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.
-
-
-
-