org.primordion.xholon.io
Class Xholon2Qep

java.lang.Object
  extended byorg.primordion.xholon.io.Xholon2Qep
All Implemented Interfaces:
CeStateMachineEntity, IXholon2Qep

public class Xholon2Qep
extends java.lang.Object
implements IXholon2Qep, CeStateMachineEntity

Export an executing Xholon application as an Java file in Quantum Event Processor (QEP) format.

Since:
0.7 (Created on August 14, 2007)
Author:
Ken Webb
See Also:
http://www.quantum-leaps.com for information about QEP.

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

Constructor Detail

Xholon2Qep

public Xholon2Qep()
Constructor.


Xholon2Qep

public Xholon2Qep(java.lang.String qepFileName,
                  java.lang.String modelName,
                  IXholon root)
Constructor.

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

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

Specified by:
writeAll in interface IXholon2Qep