de.cau.cs.kieler.synccharts.sim.ptolemy.oaw
Class MomlWriter

java.lang.Object
  extended by org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent
      extended by org.eclipse.emf.mwe.core.lib.WorkflowComponentWithModelSlot
          extended by org.eclipse.emf.mwe.utils.AbstractEMFWorkflowComponent
              extended by de.cau.cs.kieler.synccharts.sim.ptolemy.oaw.MomlWriter
All Implemented Interfaces:
org.eclipse.emf.mwe.core.WorkflowComponent, org.eclipse.emf.mwe.core.WorkflowComponentWithID, org.eclipse.emf.mwe2.runtime.workflow.IWorkflowComponent

public class MomlWriter
extends org.eclipse.emf.mwe.utils.AbstractEMFWorkflowComponent

The class MomlWriter implements an EMFWorkflowComponent that is able to output valid MOML files. MOML files can be considered to be the XML representation of Ptolemy models and for example can be loaded by the Vergil GUI of Ptolemy.

Rating red

Field Summary
 
Fields inherited from class org.eclipse.emf.mwe.utils.AbstractEMFWorkflowComponent
resourceSet, uri
 
Constructor Summary
MomlWriter()
           
 
Method Summary
 String getComponentName()
          Gets the component name.
 String getLogMessage()
          Gets the log message.
 void invokeInternal(org.eclipse.emf.mwe.core.WorkflowContext ctx, org.eclipse.emf.mwe.core.monitor.ProgressMonitor monitor, org.eclipse.emf.mwe.core.issues.Issues issues)
           
 void setCloneSlotContents(boolean b)
          Sets the clone slot contents.
 void setMultipleResourcesInCaseOfList(boolean b)
          Sets the multiple resources in case of list.
 
Methods inherited from class org.eclipse.emf.mwe.utils.AbstractEMFWorkflowComponent
getResourceSet, getUri, setResourceSet, setUri, setUseSingleGlobalResourceSet
 
Methods inherited from class org.eclipse.emf.mwe.core.lib.WorkflowComponentWithModelSlot
checkConfiguration, getModelSlot, setModelSlot
 
Methods inherited from class org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent
checkRequiredConfigProperty, getBridge, getContainer, getId, getLocation, invoke, invoke, postInvoke, preInvoke, setContainer, setId, setLocation, setSkipOnErrors
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MomlWriter

public MomlWriter()
Method Detail

setMultipleResourcesInCaseOfList

public void setMultipleResourcesInCaseOfList(boolean b)
Sets the multiple resources in case of list.

Parameters:
b - the new multiple resources in case of list

setCloneSlotContents

public void setCloneSlotContents(boolean b)
Sets the clone slot contents.

Parameters:
b - the new clone slot contents

invokeInternal

public void invokeInternal(org.eclipse.emf.mwe.core.WorkflowContext ctx,
                           org.eclipse.emf.mwe.core.monitor.ProgressMonitor monitor,
                           org.eclipse.emf.mwe.core.issues.Issues issues)
Specified by:
invokeInternal in class org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent

getLogMessage

public String getLogMessage()
Gets the log message.

Specified by:
getLogMessage in interface org.eclipse.emf.mwe.core.WorkflowComponentWithID
Overrides:
getLogMessage in class org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent
Returns:
the log message
See Also:
AbstractWorkflowComponent.getLogMessage()

getComponentName

public String getComponentName()
Gets the component name.

Specified by:
getComponentName in interface org.eclipse.emf.mwe.core.WorkflowComponent
Overrides:
getComponentName in class org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent
Returns:
the component name
See Also:
WorkflowComponent.getComponentName()