-
- All Implemented Interfaces:
-
it.unibo.alchemist.loader.variables.Variable,java.io.Serializable,java.lang.Iterable
public final class ArbitraryVariable extends PrintableVariable<Serializable>
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 SerializablegetDefault()Stream<Serializable>stream()-
Methods inherited from class it.unibo.alchemist.loader.variables.PrintableVariable
toString -
Methods inherited from class it.unibo.alchemist.loader.variables.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()
-
stream
Stream<Serializable> stream()
-
-
-
-