indicators
Class BinaryVariable
java.lang.Object
indicators.BinaryVariable
- All Implemented Interfaces:
- Serializable, FiniteVariable, Variable
public class BinaryVariable
- extends Object
- implements FiniteVariable
This implementation of the variable interface represents
variables as simple strings. The frame of each variable is
binary, i.e. frame = {0,1}.
- Version:
- 1.1
- Author:
- Marc Pouly
- See Also:
- Serialized Form
BinaryVariable
public BinaryVariable(String name)
- Constructor:
- Parameters:
name
- The name of the variable.
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
- See Also:
Object.equals(java.lang.Object)
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
- See Also:
Object.hashCode()
toString
public String toString()
- Overrides:
toString
in class Object
- See Also:
Object.toString()
getFrame
public Object[] getFrame()
- Specified by:
getFrame
in interface FiniteVariable
- See Also:
FiniteVariable.getFrame()