byucc.jhdl.Fsm
Class FsmWireList

java.lang.Object
  extended bybyucc.jhdl.Fsm.FsmWireList

public class FsmWireList
extends java.lang.Object

A class to model a list of strings.

Author:
Brent Nelson

Constructor Summary
FsmWireList()
          Construct an empty wire list.
FsmWireList(int siz)
          Construct a wire list containing "siz" null entries
 
Method Summary
 void addElement(Wire s)
          Add a new wire to the end of the list, making the list grow by one in size.
 void die(java.lang.String s)
          Print error message and die
 Wire elementAt(int i)
          Get a Wire from a FsmWireList
 Wire firstElement()
           
 Wire lastElement()
           
 void setElement(int i, Wire s)
          Set the element at location i with wire s.
 int size()
          Tell how many wires are in FsmWireList
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FsmWireList

public FsmWireList()
Construct an empty wire list.


FsmWireList

public FsmWireList(int siz)
Construct a wire list containing "siz" null entries

Parameters:
siz - the size of the list
Method Detail

addElement

public void addElement(Wire s)
Add a new wire to the end of the list, making the list grow by one in size.

Parameters:
s - the wire to be added to the list

setElement

public void setElement(int i,
                       Wire s)
Set the element at location i with wire s.

Parameters:
i - the index of the wire to set in the FsmWireList
s - the wire to set it to

elementAt

public Wire elementAt(int i)
Get a Wire from a FsmWireList

Parameters:
i - the index of the string to get
Returns:
the wire

die

public void die(java.lang.String s)
Print error message and die


size

public int size()
Tell how many wires are in FsmWireList

Returns:
the size as an int

firstElement

public Wire firstElement()

lastElement

public Wire lastElement()


Copyright ? 2006 Brigham Young University, Configurable Computing Laboratory. All Rights Reserved.