org.primordion.xholon.io
Class Xholon2Scxml

java.lang.Object
  extended byorg.primordion.xholon.io.Xholon2Scxml
All Implemented Interfaces:
CeStateMachineEntity, IXholon2Scxml

public class Xholon2Scxml
extends java.lang.Object
implements IXholon2Scxml, CeStateMachineEntity

Export an executing Xholon application as an XML file in SCXML format.

Since:
0.5 (Created on February 17, 2007)
Author:
Ken Webb
See Also:
http://www.w3.org/TR/scxml/

Field Summary
 
Fields inherited from interface org.primordion.xholon.common.mechanism.CeStateMachineEntity
ActivityCE, ConnectionPointReferenceCE, DeferrableTriggerCE, DoActivityCE, EntryActivityCE, ExitActivityCE, FinalStateCE, GuardCE, PseudostateCE, PseudostateChoiceCE, PseudostateDeepHistoryCE, PseudostateEntryPointCE, PseudostateExitPointCE, PseudostateForkCE, PseudostateInitialCE, PseudostateJoinCE, PseudostateJunctionCE, PseudostateShallowHistoryCE, PseudostateTerminateCE, RegionCE, StateCE, StateMachineCE, StateMachineEntityCE, TargetCE, TransitionCE, TransitionExternalCE, TransitionInternalCE, TransitionLocalCE, TriggerCE, VertexCE
 
Constructor Summary
Xholon2Scxml()
          Constructor.
Xholon2Scxml(java.lang.String scxmlFileName, java.lang.String modelName, IXholon root)
          Constructor.
 
Method Summary
 boolean initialize(java.lang.String scxmlFileName, java.lang.String modelName, IXholon root)
          Initialize.
 void writeAll()
          Write out all parts of the SCXML file.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Xholon2Scxml

public Xholon2Scxml()
Constructor.


Xholon2Scxml

public Xholon2Scxml(java.lang.String scxmlFileName,
                    java.lang.String modelName,
                    IXholon root)
Constructor.

Parameters:
scxmlFileName - Name of the output SCXML XML file.
modelName - Name of the model.
root - Root of the tree that will be written out.
Method Detail

initialize

public boolean initialize(java.lang.String scxmlFileName,
                          java.lang.String modelName,
                          IXholon root)
Description copied from interface: IXholon2Scxml
Initialize.

Specified by:
initialize in interface IXholon2Scxml
Parameters:
scxmlFileName - Name of the output SCXML file.
modelName - Name of the model.
root - Root of the composite structure hierarchy to write out.
Returns:
Whether or not the initialization succeeded.

writeAll

public void writeAll()
Description copied from interface: IXholon2Scxml
Write out all parts of the SCXML file.

Specified by:
writeAll in interface IXholon2Scxml