hades.models.pic
Class SignalElement

java.lang.Object
  extended byhades.models.pic.SignalElement
Direct Known Subclasses:
BitSignalElement, WordSignalElement

class SignalElement
extends java.lang.Object

SignalElement is able to store a signals history


Constructor Summary
SignalElement(int newHistoryCapacity, java.lang.String newName)
           
 
Method Summary
 void advance(int next)
          Store the next value of the signal
 void advanceBreak()
          Store a Break
 int getHistory(int position)
          Get the history beginning from now (0 as position)
 int getHistoryCapacity()
          Get the number of history values that can be stored
 int getHistorySize()
          Get the number of history values that are stored now
 java.lang.String getName()
          Every history has its name...
 boolean isSimpleSignal()
          Ask the history if the values all are simple (boolean) or not (int)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SignalElement

public SignalElement(int newHistoryCapacity,
                     java.lang.String newName)
Method Detail

advance

public void advance(int next)
Store the next value of the signal


advanceBreak

public void advanceBreak()
Store a Break


getHistory

public int getHistory(int position)
Get the history beginning from now (0 as position)


getHistoryCapacity

public int getHistoryCapacity()
Get the number of history values that can be stored


getHistorySize

public int getHistorySize()
Get the number of history values that are stored now


getName

public java.lang.String getName()
Every history has its name...


isSimpleSignal

public boolean isSimpleSignal()
Ask the history if the values all are simple (boolean) or not (int)