Trull

edu.luc.cs.trull.demo.stopwatch
Class Translation

java.lang.Object
  extended by edu.luc.cs.trull.EmptyComponent
      extended by edu.luc.cs.trull.TerminatingComponent
          extended by edu.luc.cs.trull.AbstractComponent
              extended by edu.luc.cs.trull.EmitComponent
                  extended by edu.luc.cs.trull.demo.stopwatch.Translation
All Implemented Interfaces:
Component, EventLabels, PropertyChangeSource, Startable, Suspendable, Terminating, java.beans.PropertyChangeListener, java.util.EventListener

public class Translation
extends EmitComponent
implements EventLabels

The controller logic of the stopwatch. It can run as part of this stopwatch or as a component within another Trull application.


Field Summary
private  int RUN_LAPTIME_STATE
           
private  int RUN_RUNTIME_STATE
           
private  int STOP_LAPTIME_STATE
           
private  int STOP_RUNTIME_STATE
           
private  Application swa
           
private  int theState
           
 
Fields inherited from interface edu.luc.cs.trull.demo.wristwatch.EventLabels
DATE, DAY, HOUR, LAP, LIGHT, LIGHT_OFF, LIGHT_ON, MIN, MODE, MONTH, NOW, RESET, START, STOP, TICK, TIME, UPDATE
 
Constructor Summary
Translation()
           
 
Method Summary
 void propertyChange(java.beans.PropertyChangeEvent event)
           
 void start(java.beans.PropertyChangeEvent incoming)
          Starts this startable component.
 void stop()
          Stops this startable component.
 
Methods inherited from class edu.luc.cs.trull.EmitComponent
eventEmitter, eventEmitterCached, eventEmitterUncached, resume, scheduleEvent, scheduleEvent, scheduleEvent, suspend
 
Methods inherited from class edu.luc.cs.trull.AbstractComponent
addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, getExternalListeners, getPropertyChangeListeners, removePropertyChangeListener
 
Methods inherited from class edu.luc.cs.trull.TerminatingComponent
fireTermination, getParent, getTermEvent, scheduleTermination, setTerminationListener
 
Methods inherited from class edu.luc.cs.trull.EmptyComponent
getTerminationListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RUN_LAPTIME_STATE

private final int RUN_LAPTIME_STATE
See Also:
Constant Field Values

RUN_RUNTIME_STATE

private final int RUN_RUNTIME_STATE
See Also:
Constant Field Values

STOP_LAPTIME_STATE

private final int STOP_LAPTIME_STATE
See Also:
Constant Field Values

STOP_RUNTIME_STATE

private final int STOP_RUNTIME_STATE
See Also:
Constant Field Values

swa

private Application swa

theState

private int theState
Constructor Detail

Translation

public Translation()
Method Detail

propertyChange

public void propertyChange(java.beans.PropertyChangeEvent event)
Specified by:
propertyChange in interface java.beans.PropertyChangeListener
Overrides:
propertyChange in class EmptyComponent

start

public void start(java.beans.PropertyChangeEvent incoming)
Description copied from interface: Startable
Starts this startable component.

Specified by:
start in interface Startable
Overrides:
start in class EmitComponent
Parameters:
incoming - the event that triggered the invocation of this method. May be null.

stop

public void stop()
Description copied from interface: Startable
Stops this startable component.

Specified by:
stop in interface Startable
Overrides:
stop in class EmitComponent

Trull

http://www.cs.luc.edu/trull/