hicosim.components.backend.processor
Class Labels

java.lang.Object
  extended by hicosim.components.backend.processor.Labels

public class Labels
extends java.lang.Object

Class to store the read in labels.

Author:
Michael Wager, 16th May 2009

Constructor Summary
Labels()
           
 
Method Summary
 int getAddressOfLabel(java.lang.String label)
          This method is used to get the address of a label.
 java.lang.String getLabelAt(int address)
          This method is used to get a label at the given address.
 void putLabelAt(int address, java.lang.String label)
          This method is used to put a label at the given address.
 int size()
           
 java.lang.String toString()
          String representation.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Labels

public Labels()
Method Detail

size

public int size()

putLabelAt

public void putLabelAt(int address,
                       java.lang.String label)
This method is used to put a label at the given address. It also stores the addresses.

Parameters:
address -
label -

getLabelAt

public java.lang.String getLabelAt(int address)
This method is used to get a label at the given address.


getAddressOfLabel

public int getAddressOfLabel(java.lang.String label)
This method is used to get the address of a label.


toString

public java.lang.String toString()
String representation.

Overrides:
toString in class java.lang.Object