wmx.case_studies.TrafficLight
Class TrafficLight

java.lang.Object
  extended by wmx.WMX_component
      extended by wmx.case_studies.TrafficLight.TrafficLight
All Implemented Interfaces:
com.FranckBarbier.Java._PauWare._Velcro.Velcro, com.FranckBarbier.Java._PauWare._Velcro.VelcroExecutor, com.FranckBarbier.Java._PauWare.Manager

public class TrafficLight
extends WMX_component

Author:
Fabien Romeo - fabien.romeo@univ-pau.fr

Field Summary
protected  com.FranckBarbier.Java._PauWare.AbstractStatechart _Green
           
private  Light _greenLight
           
protected  com.FranckBarbier.Java._PauWare.AbstractStatechart _Red
           
private  Light _redLight
          Business workflow
protected  com.FranckBarbier.Java._PauWare.AbstractStatechart _Start
          UML statechart
protected  com.FranckBarbier.Java._PauWare.AbstractStatechart_monitor _TrafficLight
           
protected  com.FranckBarbier.Java._PauWare.AbstractStatechart _Yellow
           
private  Light _yellowLight
           
 
Constructor Summary
TrafficLight()
          Creates a new instance of TrafficLight
 
Method Summary
 void addGreenLight(Light greenLight)
           
 void addRedLight(Light redLight)
           
 void addYellowLight(Light yellowLight)
           
 java.lang.Object execute(java.lang.String action, java.lang.Object[] args)
           
 void goGreen()
           
 void goRed()
          UML events
 void goYellow()
           
protected  void init_behavior()
           
protected  void init_structure()
           
static void main(java.lang.String[] args)
           
 void start()
           
 
Methods inherited from class wmx.WMX_component
addWirelessPort, initialize, registerState, run_to_completion, start_management, stateID
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_Start

protected com.FranckBarbier.Java._PauWare.AbstractStatechart _Start
UML statechart


_Red

protected com.FranckBarbier.Java._PauWare.AbstractStatechart _Red

_Yellow

protected com.FranckBarbier.Java._PauWare.AbstractStatechart _Yellow

_Green

protected com.FranckBarbier.Java._PauWare.AbstractStatechart _Green

_TrafficLight

protected com.FranckBarbier.Java._PauWare.AbstractStatechart_monitor _TrafficLight

_redLight

private Light _redLight
Business workflow


_yellowLight

private Light _yellowLight

_greenLight

private Light _greenLight
Constructor Detail

TrafficLight

public TrafficLight()
             throws com.FranckBarbier.Java._PauWare._Exception.Statechart_exception
Creates a new instance of TrafficLight

Throws:
com.FranckBarbier.Java._PauWare._Exception.Statechart_exception
Method Detail

addRedLight

public void addRedLight(Light redLight)

addYellowLight

public void addYellowLight(Light yellowLight)

addGreenLight

public void addGreenLight(Light greenLight)

init_structure

protected void init_structure()
                       throws com.FranckBarbier.Java._PauWare._Exception.Statechart_exception
Throws:
com.FranckBarbier.Java._PauWare._Exception.Statechart_exception

init_behavior

protected void init_behavior()
                      throws com.FranckBarbier.Java._PauWare._Exception.Statechart_exception
Throws:
com.FranckBarbier.Java._PauWare._Exception.Statechart_exception

start

public void start()
           throws com.FranckBarbier.Java._PauWare._Exception.Statechart_exception
Throws:
com.FranckBarbier.Java._PauWare._Exception.Statechart_exception

execute

public java.lang.Object execute(java.lang.String action,
                                java.lang.Object[] args)
                         throws java.lang.Throwable
Throws:
java.lang.Throwable

goRed

public void goRed()
           throws com.FranckBarbier.Java._PauWare._Exception.Statechart_exception
UML events

Throws:
com.FranckBarbier.Java._PauWare._Exception.Statechart_exception

goYellow

public void goYellow()
              throws com.FranckBarbier.Java._PauWare._Exception.Statechart_exception
Throws:
com.FranckBarbier.Java._PauWare._Exception.Statechart_exception

goGreen

public void goGreen()
             throws com.FranckBarbier.Java._PauWare._Exception.Statechart_exception
Throws:
com.FranckBarbier.Java._PauWare._Exception.Statechart_exception

main

public static void main(java.lang.String[] args)