goldengine.java
Class FAEdge

java.lang.Object
  |
  +--goldengine.java.FAEdge

public class FAEdge
extends java.lang.Object

-------------------------------------------------------------------------------------------
Source File: FAEdge.java
Author: Devin Cook, Matthew Hawkins
Description: Represents an edge for the DFA state.
-------------------------------------------------------------------------------------------
Revision List

      Author          Version         Description
      ------          -------         -----------
      MPH             1.0             First Issue

-------------------------------------------------------------------------------------------
IMPORT: NONE
-------------------------------------------------------------------------------------------


Constructor Summary
FAEdge()
           
 
Method Summary
 boolean contains(java.lang.String Char)
          contains Returns True if the characters are in the String passed in, false if not.
 java.lang.String getChars()
          getChars Returns the set of characters associated with this edge
 int getTargetIndex()
          getTargetIndex Returns the index of the edge in the FAState
 void setChars(java.lang.String newChars)
          setChars Sets the characters of this edge to the String passed in.
 void setTargetIndex(int newIn)
          setTargetIndex Sets the index in the FAState to the number passed in.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FAEdge

public FAEdge()
Method Detail

getChars

public java.lang.String getChars()
getChars Returns the set of characters associated with this edge
Returns:
The set of characters associated with this edge

getTargetIndex

public int getTargetIndex()
getTargetIndex Returns the index of the edge in the FAState
Returns:
The index of the edge in the FAState

setChars

public void setChars(java.lang.String newChars)
setChars Sets the characters of this edge to the String passed in.
Parameters:
newChars - The new set of characters.

setTargetIndex

public void setTargetIndex(int newIn)
setTargetIndex Sets the index in the FAState to the number passed in.
Parameters:
newIn - The new target index.

contains

public boolean contains(java.lang.String Char)
contains Returns True if the characters are in the String passed in, false if not.
Parameters:
Char - The String (one character long) to check.
Returns:
Boolean