org.primordion.xholon.io
Class Xholon2Smc

java.lang.Object
  extended byorg.primordion.xholon.io.Xholon2Smc
All Implemented Interfaces:
CeStateMachineEntity, IXholon2Smc

public class Xholon2Smc
extends java.lang.Object
implements IXholon2Smc, CeStateMachineEntity

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

Since:
0.7 (Created on August 14, 2007)
Author:
Ken Webb

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
Xholon2Smc()
          Constructor.
Xholon2Smc(java.lang.String smcFileName, java.lang.String modelName, IXholon root)
          Constructor.
 
Method Summary
 boolean initialize(java.lang.String smcFileName, java.lang.String modelName, IXholon root)
          Initialize.
 void writeAll()
          Write out all parts of the SMC file.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Xholon2Smc

public Xholon2Smc()
Constructor.


Xholon2Smc

public Xholon2Smc(java.lang.String smcFileName,
                  java.lang.String modelName,
                  IXholon root)
Constructor.

Parameters:
smcFileName - Name of the output SMC 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 smcFileName,
                          java.lang.String modelName,
                          IXholon root)
Description copied from interface: IXholon2Smc
Initialize.

Specified by:
initialize in interface IXholon2Smc
Parameters:
smcFileName - Name of the output SMC 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: IXholon2Smc
Write out all parts of the SMC file.

Specified by:
writeAll in interface IXholon2Smc