wmx2jmx.case_studies.TrafficLight
Class TrafficLightManager

java.lang.Object
  extended by wmx2jmx.WMX_manager
      extended by wmx2jmx.case_studies.TrafficLight.TrafficLightManager
All Implemented Interfaces:
TrafficLightManagerMBean

public class TrafficLightManager
extends WMX_manager
implements TrafficLightManagerMBean


Field Summary
protected  com.FranckBarbier.Java._PauWare.AbstractStatechart _Green
           
protected  com.FranckBarbier.Java._PauWare.AbstractStatechart _Red
           
protected  com.FranckBarbier.Java._PauWare.AbstractStatechart _Start
          UML statechart
protected  com.FranckBarbier.Java._PauWare.AbstractStatechart_monitor _TrafficLight
           
protected  com.FranckBarbier.Java._PauWare.AbstractStatechart _Yellow
           
 
Fields inherited from class wmx2jmx.WMX_manager
_wirelessPort
 
Constructor Summary
TrafficLightManager(int localport, java.lang.String remotehostname, int remoteport)
          Creates a new instance of TrafficLightManager
 
Method Summary
 java.lang.String current_state()
           
 void goGreen()
           
 void goRed()
          Management operations
 void goYellow()
           
protected  void init_behavior()
           
protected  void start()
           
 
Methods inherited from class wmx2jmx.WMX_manager
getState, init_management, registerState, run_to_completion, setStatechart_monitor, 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
Constructor Detail

TrafficLightManager

public TrafficLightManager(int localport,
                           java.lang.String remotehostname,
                           int remoteport)
                    throws com.FranckBarbier.Java._PauWare._Exception.Statechart_exception
Creates a new instance of TrafficLightManager

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

init_behavior

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

start

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

goRed

public void goRed()
Management operations

Specified by:
goRed in interface TrafficLightManagerMBean

goYellow

public void goYellow()
Specified by:
goYellow in interface TrafficLightManagerMBean

goGreen

public void goGreen()
Specified by:
goGreen in interface TrafficLightManagerMBean

current_state

public java.lang.String current_state()
Specified by:
current_state in interface TrafficLightManagerMBean