Class Flag
-
- All Implemented Interfaces:
-
it.unibo.alchemist.boundary.Variable
,java.io.Serializable
,java.lang.Iterable
public final class Flag extends PrintableVariable<V>
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 Boolean
getDefault()
Stream<Boolean>
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
-
-