Class Edge

public class Edge
extends Object
Every link in the State Diagram is an Edge object. An Edge object stores information important information about the link.
 

Variables

o task
    private char task

        The task A or B performed to reached the "next state"

o cycles
    private int cycles

        Number of time cycles needed to reach the "next state"

o nextState
    private State nextState

        The state reached after waiting for a certain amount of time cycles and then performing a task A or B
 

Constructors

o Edge
    public Edge(char task, int cycles, State nextState)

        Initializes the three variables of the Edge class.
 

Methods

o print
    public void print()

        Prints the values of the Edge variables onto the Java console.

o print
    public void print(TextPanel panel)

        Prints the values of the Edge variables onto the TextPanel object.



Send all bug reports and comments to tchou@elux3.cs.umass.edu