Class ArbitraryVariable
-
- All Implemented Interfaces:
-
it.unibo.alchemist.boundary.Variable
,java.io.Serializable
,java.lang.Iterable
public final class ArbitraryVariable extends PrintableVariable<V>
A variable spanning over an arbitrary set of values.
-
-
Constructor Summary
Constructors Constructor Description ArbitraryVariable(Serializable def, Array<double> values)
ArbitraryVariable(Serializable def, Iterable<out Serializable> values)
-
Method Summary
Modifier and Type Method Description Serializable
getDefault()
Stream<Serializable>
stream()
-
Methods inherited from class it.unibo.alchemist.boundary.variables.PrintableVariable
toString
-
Methods inherited from class it.unibo.alchemist.boundary.Variable
iterator, steps
-
Methods inherited from class java.lang.Iterable
forEach, iterator, spliterator
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
ArbitraryVariable
ArbitraryVariable(Serializable def, Array<double> values)
- Parameters:
def
- the default valuevalues
- all the values this variable may yield
-
ArbitraryVariable
ArbitraryVariable(Serializable def, Iterable<out Serializable> values)
- Parameters:
def
- the default valuevalues
- all the values this variable may yield
-
-
Method Detail
-
getDefault
Serializable getDefault()
- Returns:
the default value for this Variable
-
stream
Stream<Serializable> stream()
- Returns:
a view of the values of this variable as Stream.
-
-
-
-