genDevs.devsBridge.atomicExt
Class InitializeableAtomic

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.atomicExt.InitializeableAtomic
All Implemented Interfaces:
devsBridge.XMLInitModelOperations, devsBridge.XMLParamInitModelOperations, devsBridge.XMLStateInitModelOperations, GenCol.EntityInterface, DOMInitModelOperations, genDevs.modeling.IODevs, simView.ViewableComponent
Direct Known Subclasses:
Genr, Proc, Transd

public abstract class InitializeableAtomic
extends simView.ViewableAtomic
implements devsBridge.XMLInitModelOperations, DOMInitModelOperations

Atomic model, that is able to parameterize and initialize by xml Fragments. This class includes some static methods, that help descendants of other classes to process xml. For an example of implementing an Initializable atomic model look at SimpArc.corba.genr For an example of implementing an Initializable coupled model look at SimpArc.corba.ef

Author:
twutz

Field Summary
 
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
InitializeableAtomic(java.lang.String name)
           
 
Method Summary
 java.lang.String getParameters()
           
 java.lang.String getState(java.lang.String scenario)
           
 void initializeState(java.lang.String xml)
           
 void setModelParameters(java.lang.String xml)
           
 
Methods inherited from class simView.ViewableAtomic
addTestInput, addTestInput, createView, getAtomicView, getBackgroundColor, getFormattedPhase, getFormattedSigma, getFormattedTL, getFormattedTN, getInportNames, getLayoutName, getNumInports, getNumOutports, getOutportNames, getPreferredLocation, getSimulator, getTestInputs, getTooltipText, getView, isHidden, setBackgroundColor, setHidden, setLayoutName, setPreferredLocation, setSigma
 
Methods inherited from class genDevs.modeling.atomic
Continue, deltcon, deltcon, deltext, deltext, deltint, getActivity, getPhase, getSigma, getSim, holdIn, holdIn, initialize, out, 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.devsBridge.atomicExt.DOMInitModelOperations
initializeState, setModelParameters
 
Methods inherited from interface simView.ViewableComponent
getName
 
Methods inherited from interface genDevs.modeling.IODevs
addInport, addOutport, makeContent, messageOnPort
 
Methods inherited from interface GenCol.EntityInterface
equalName, getExtRep, getName
 

Constructor Detail

InitializeableAtomic

public InitializeableAtomic(java.lang.String name)
Method Detail

setModelParameters

public void setModelParameters(java.lang.String xml)
                        throws devsBridge.DevsCorbaException
Specified by:
setModelParameters in interface devsBridge.XMLParamInitModelOperations
Throws:
devsBridge.DevsCorbaException

getParameters

public java.lang.String getParameters()
Specified by:
getParameters in interface devsBridge.XMLParamInitModelOperations

initializeState

public void initializeState(java.lang.String xml)
                     throws devsBridge.DevsCorbaException
Specified by:
initializeState in interface devsBridge.XMLStateInitModelOperations
Throws:
devsBridge.DevsCorbaException

getState

public java.lang.String getState(java.lang.String scenario)
Specified by:
getState in interface devsBridge.XMLStateInitModelOperations