de.cau.cs.kieler.uml2.sim.kiem
Class DataComponentSim

java.lang.Object
  extended by de.cau.cs.kieler.sim.kiem.internal.AbstractDataComponent
      extended by de.cau.cs.kieler.sim.kiem.JSONObjectDataComponent
          extended by de.cau.cs.kieler.sim.kiem.ui.datacomponent.JSONObjectSimulationDataComponent
              extended by de.cau.cs.kieler.uml2.sim.kiem.DataComponent
                  extended by de.cau.cs.kieler.uml2.sim.kiem.DataComponentSim
All Implemented Interfaces:
IDataComponent, IJSONObjectDataComponent, IExecutableExtension

public class DataComponentSim
extends DataComponent
implements IJSONObjectDataComponent

The Class DataComponent.

Rating red

Nested Class Summary
 
Nested classes/interfaces inherited from class de.cau.cs.kieler.sim.kiem.ui.datacomponent.JSONObjectSimulationDataComponent
JSONObjectSimulationDataComponent.M2MProgressMonitor
 
Field Summary
 
Fields inherited from class de.cau.cs.kieler.uml2.sim.kiem.DataComponent
blaaa, errorMsg, MAUDENOACTION, MAUDENOEVENT
 
Fields inherited from class de.cau.cs.kieler.sim.kiem.ui.datacomponent.JSONObjectSimulationDataComponent
activePage, activePageFlag, exception, modelEditor
 
Fields inherited from class de.cau.cs.kieler.sim.kiem.internal.AbstractDataComponent
MASTER_CMD_MACROSTEP, MASTER_CMD_PAUSE, MASTER_CMD_RUN, MASTER_CMD_STEP, MASTER_CMD_STEPBACK, MASTER_CMD_STOP
 
Constructor Summary
DataComponentSim()
          Instantiates a new data component.
 
Method Summary
 KiemProperty[] doProvideProperties()
           
 JSONObject doStep(JSONObject signals)
          Implements the real step method for this simulation datacomponent.
 String[] extractActions(String maudeResult)
          Extract actions.
 void initialize()
          Initialize.
 String[] selectCurrentState(List<String[]> currentStatesChoicesParam)
           
 
Methods inherited from class de.cau.cs.kieler.uml2.sim.kiem.DataComponent
checkModelValidation, clearConsole, doModel2ModelTransform, doProvideInitialVariables, extractActiveStates, getAllActions, getAllEvents, getCurrentStateIds, getEMFId, getInitialStates, getInputEditor, getInputModelEObject, getMaudeBaseCodeLocation, getMaudeGenCodeLocation, getNotationElement, getXtendFacade, isWindows, printConsole, refreshWorkspace, resetAllEventsAndActions, resetMappingHashmap, transformToCygwinPath, wrapup
 
Methods inherited from class de.cau.cs.kieler.sim.kiem.ui.datacomponent.JSONObjectSimulationDataComponent
bringProblemsViewToFront, checkProperties, getActivePage, getEditor, getInputModel, getInputModelAsURI, getInputResourceSet, getInputWorkspaceModel, getModelRootElement, isObserver, isProducer, isTransformationCompleted, isTransformationError, provideFilterKeysJSON, provideInitialVariables, provideProperties, resolveBundelFile, step
 
Methods inherited from class de.cau.cs.kieler.sim.kiem.JSONObjectDataComponent
getInitialVariables, setInitialVariables
 
Methods inherited from class de.cau.cs.kieler.sim.kiem.internal.AbstractDataComponent
finalize, getConfigurationElement, getCurrentComponentID, getDataComponentId, getName, getPluginId, getProperties, getShell, isDeltaObserver, isHistoryObserver, isHistoryStep, isInvisible, isMacroStepDone, isMaster, isMasterImplementingGUI, isMultiInstantiable, masterCommand, masterGetAimedStepDuration, masterGUI, masterGUIisEnabled, masterIsPaused, masterIsRunning, masterSetAimedStepDuration, masterSetKIEMInstance, notifyEvent, provideEventOfInterest, provideFilterKeys, setConfigurationElemenet, setCurrentComponentID, setHistoryStep, setInitializationData, setProperties
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface de.cau.cs.kieler.sim.kiem.IJSONObjectDataComponent
step
 

Constructor Detail

DataComponentSim

public DataComponentSim()
Instantiates a new data component.

Method Detail

doProvideProperties

public KiemProperty[] doProvideProperties()
Overrides:
doProvideProperties in class DataComponent

extractActions

public String[] extractActions(String maudeResult)
Extract actions.

Overrides:
extractActions in class DataComponent
Parameters:
maudeResult - the maude result
Returns:
the string[]

doStep

public JSONObject doStep(JSONObject signals)
                  throws KiemExecutionException
Description copied from class: JSONObjectSimulationDataComponent
Implements the real step method for this simulation datacomponent.

Overrides:
doStep in class DataComponent
Parameters:
signals - the j son object
Returns:
the jSON object
Throws:
KiemExecutionException - the kiem execution exception

selectCurrentState

public String[] selectCurrentState(List<String[]> currentStatesChoicesParam)
Overrides:
selectCurrentState in class DataComponent

initialize

public void initialize()
                throws KiemInitializationException
Description copied from interface: IDataComponent
Initialize. Do some initializing prior to execution. If an error occurs during initialization, the DataComponent should raise a KiemInitializationException.

Specified by:
initialize in interface IDataComponent
Overrides:
initialize in class DataComponent
Throws:
KiemInitializationException - a KiemInitializationException