genDevs.devsBridge.adapter
Class ViewableAtomicDigraph

java.lang.Object
  extended by GenCol.entity
      extended by genDevs.modeling.devs
          extended by genDevs.modeling.atomic
              extended by simView.ViewableAtomic
                  extended by genDevs.devsBridge.adapter.ViewableAtomicDigraph
All Implemented Interfaces:
GenCol.EntityInterface, DevsPortsI, genDevs.modeling.IOBasicDevs, genDevs.modeling.IODevs, simView.ViewableComponent
Direct Known Subclasses:
InitializableAtomicDigraph

public class ViewableAtomicDigraph
extends simView.ViewableAtomic
implements DevsPortsI

adapts a viewable Digraph to an viewable atomic model.

Author:
twutz

Field Summary
protected  genDevs.simulation.coordinator coord
           
protected  simView.ViewableDigraph coupledMod
           
 
Fields inherited from class simView.ViewableAtomic
backgroundColor, base, view
 
Fields inherited from class genDevs.modeling.atomic
a, INFINITY, mySim, phase, sigma
 
Fields inherited from class genDevs.modeling.devs
mh
 
Fields inherited from class GenCol.entity
name
 
Constructor Summary
ViewableAtomicDigraph(simView.ViewableDigraph coupledMod)
           
 
Method Summary
 void deltcon(double e, genDevs.modeling.MessageInterface x)
           
 void deltext(double e, genDevs.modeling.MessageInterface x)
           
 void deltint()
           
 java.util.List getInportNames()
           
 java.util.List getOutportNames()
           
protected  void holdAsCoordinator()
           
 void initialize()
           
 genDevs.modeling.MessageInterface Out()
           
 void showState()
           
 double ta()
           
protected  simView.ViewableDigraph viewCoupled()
           
 
Methods inherited from class simView.ViewableAtomic
addTestInput, addTestInput, createView, getAtomicView, getBackgroundColor, getFormattedPhase, getFormattedSigma, getFormattedTL, getFormattedTN, getLayoutName, getNumInports, getNumOutports, getPreferredLocation, getSimulator, getTestInputs, getTooltipText, getView, isHidden, setBackgroundColor, setHidden, setLayoutName, setPreferredLocation, setSigma
 
Methods inherited from class genDevs.modeling.atomic
Continue, deltcon, deltext, getActivity, getPhase, getSigma, getSim, holdIn, holdIn, out, passivate, passivateIn, phaseIs, setSimulator, showState, startActiviry, stringState, ta, toString
 
Methods inherited from class genDevs.modeling.devs
addInport, addOutport, makeContent, makeContent, messageOnPort, messageOnPort
 
Methods inherited from class GenCol.entity
addSelf, eq, equalName, equals, getExtRep, getName, print, removeSelf
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface genDevs.modeling.IOBasicDevs
getActivity, setSimulator
 
Methods inherited from interface genDevs.modeling.IODevs
addInport, addOutport, makeContent, messageOnPort
 
Methods inherited from interface GenCol.EntityInterface
equalName, getExtRep, getName
 
Methods inherited from interface simView.ViewableComponent
getName
 

Field Detail

coupledMod

protected simView.ViewableDigraph coupledMod

coord

protected genDevs.simulation.coordinator coord
Constructor Detail

ViewableAtomicDigraph

public ViewableAtomicDigraph(simView.ViewableDigraph coupledMod)
Method Detail

holdAsCoordinator

protected void holdAsCoordinator()

initialize

public void initialize()
Overrides:
initialize in class genDevs.modeling.atomic

deltint

public void deltint()
Overrides:
deltint in class genDevs.modeling.atomic

deltext

public void deltext(double e,
                    genDevs.modeling.MessageInterface x)
Overrides:
deltext in class genDevs.modeling.atomic

deltcon

public void deltcon(double e,
                    genDevs.modeling.MessageInterface x)
Overrides:
deltcon in class genDevs.modeling.atomic

Out

public genDevs.modeling.MessageInterface Out()
Overrides:
Out in class genDevs.modeling.atomic

viewCoupled

protected simView.ViewableDigraph viewCoupled()

getInportNames

public java.util.List getInportNames()
Specified by:
getInportNames in interface DevsPortsI
Specified by:
getInportNames in interface simView.ViewableComponent
Overrides:
getInportNames in class simView.ViewableAtomic

getOutportNames

public java.util.List getOutportNames()
Specified by:
getOutportNames in interface DevsPortsI
Specified by:
getOutportNames in interface simView.ViewableComponent
Overrides:
getOutportNames in class simView.ViewableAtomic

ta

public double ta()

showState

public void showState()