dRegAut
Class StateSymbolPair

java.lang.Object
  extended by dRegAut.StateSymbolPair

public class StateSymbolPair
extends Object

A pair of a state and an alphabet symbol. This is used in the representation of transition functions in the automata.


Field Summary
 State state
          The first component of the pair.
 Character symbol
          The second component of the pair.
 
Constructor Summary
StateSymbolPair(State state, Character symbol)
          Constructs a new pair.
 
Method Summary
 boolean equals(Object obj)
          Checks whether two pairs are equals.
 int hashCode()
          Computes hash code for this object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

state

public State state
The first component of the pair.


symbol

public Character symbol
The second component of the pair.

Constructor Detail

StateSymbolPair

public StateSymbolPair(State state,
                       Character symbol)
Constructs a new pair.

Method Detail

equals

public boolean equals(Object obj)
Checks whether two pairs are equals.

Overrides:
equals in class Object

hashCode

public int hashCode()
Computes hash code for this object.

Overrides:
hashCode in class Object


Copyright © 2003-2011 Anders Møller.