Class BooleanVariable
- All Implemented Interfaces:
IVariable<BooleanVariable>, INodeWithNumber
A boolean variable for dataflow analysis.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcopyState(BooleanVariable other) Set this variable to have the same state as another onebooleangetValue()voidor(BooleanVariable other) booleansameValue(BooleanVariable other) voidset(boolean b) toString()Methods inherited from class AbstractVariable
equals, getOrderNumber, hashCode, nextHash, setOrderNumberModifier and TypeMethodDescriptionbooleanintVariables must allow the solver implementation to get/set an order number, which the solver uses to control evaluation order.final inthashCode()static intnextHash()I know this is theoretically bad.voidsetOrderNumber(int orderNumber) Variables must allow the solver implementation to get/set an order number, which the solver uses to control evaluation order.Methods inherited from class NodeWithNumber
getGraphNodeId, setGraphNodeIdModifier and TypeMethodDescriptionintA non-negative integer which serves as an identifier for this node in it's "dominant" graph.voidsetGraphNodeId(int i)
-
Constructor Details
-
BooleanVariable
public BooleanVariable() -
BooleanVariable
public BooleanVariable(boolean b) - Parameters:
b- initial value for this variable
-
-
Method Details
-
copyState
Description copied from interface:IVariableSet this variable to have the same state as another one -
sameValue
-
toString
-
getValue
public boolean getValue()- Returns:
- the value of this variable
-
or
- Throws:
IllegalArgumentException- if other is null
-
set
public void set(boolean b)
-