public class BooleanVariable extends AbstractVariable<BooleanVariable>
Constructor and Description |
---|
BooleanVariable() |
BooleanVariable(boolean b) |
Modifier and Type | Method and Description |
---|---|
void |
copyState(BooleanVariable other)
Set this variable to have the same state as another one
|
boolean |
equals(Object obj) |
boolean |
getValue() |
void |
or(BooleanVariable other) |
boolean |
sameValue(BooleanVariable other) |
void |
set(boolean b) |
String |
toString() |
getOrderNumber, hashCode, nextHash, setOrderNumber
getGraphNodeId, setGraphNodeId
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getGraphNodeId, setGraphNodeId
public BooleanVariable()
public BooleanVariable(boolean b)
b
- initial value for this variablepublic void copyState(BooleanVariable other)
IVariable
public boolean sameValue(BooleanVariable other)
public boolean getValue()
public void or(BooleanVariable other)
other
- IllegalArgumentException
- if other is nullpublic void set(boolean b)
public boolean equals(Object obj)
equals
in class AbstractVariable<BooleanVariable>