indicators
Class BinaryVariable

java.lang.Object
  extended by 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

Constructor Summary
BinaryVariable(String name)
          Constructor:
 
Method Summary
 boolean equals(Object obj)
           
 Object[] getFrame()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BinaryVariable

public BinaryVariable(String name)
Constructor:

Parameters:
name - The name of the variable.
Method Detail

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()