-
- All Implemented Interfaces:
-
it.unibo.alchemist.loader.variables.Variable,java.io.Serializable,java.lang.Iterable
public final class Flag extends PrintableVariable<Boolean>
This variable is a flag. Being booleans not a valid data type in charts, this variable just outputs 0 and 1. This is equivalent to a LinearVariable with two samples ranging from 0 to 1.
-
-
Constructor Summary
Constructors Constructor Description Flag(boolean def)
-
Method Summary
Modifier and Type Method Description BooleangetDefault()Stream<Boolean>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
-
-
Method Detail
-
getDefault
Boolean getDefault()
-
-
-
-