simulink

edu.tum.cs.simulink.model.stateflow
Class StateflowElementBase<P extends IStateflowElement<?>>

java.lang.Object
  extended by edu.tum.cs.simulink.model.ParameterizedElement
      extended by edu.tum.cs.simulink.model.stateflow.StateflowElementBase<P>
Type Parameters:
P - Type of the parent of this node.
All Implemented Interfaces:
IStateflowElement<P>
Direct Known Subclasses:
StateflowDeclBase, StateflowDeclContainerBase, StateflowTarget

public abstract class StateflowElementBase<P extends IStateflowElement<?>>
extends ParameterizedElement
implements IStateflowElement<P>

Base class for all Stateflow elements.

Version:
$Rev: 26285 $
Author:
deissenb, $Author: juergens $
Rating:
GREEN Hash: EE524303902E85FC1513B53E2E1F42F5

Constructor Summary
protected StateflowElementBase()
          Create Stateflow element.
protected StateflowElementBase(StateflowElementBase<? extends P> orig)
          Copy constructor for deep cloning.
 
Method Summary
 P getParent()
          Get parent element.
 java.lang.String getStateflowId()
          In the MDL file each Stateflow element is annotated with an Id.
abstract  void remove()
          Remove this element from the model
 java.lang.String toString()
          Returns Stateflow element type + id.
 
Methods inherited from class edu.tum.cs.simulink.model.ParameterizedElement
getDeclaredParameter, getDeclaredParameterNames, getParameter, getParameterNames, setParameter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StateflowElementBase

protected StateflowElementBase()
Create Stateflow element.


StateflowElementBase

protected StateflowElementBase(StateflowElementBase<? extends P> orig)
Copy constructor for deep cloning.

Method Detail

getParent

public P getParent()
Get parent element.

Specified by:
getParent in interface IStateflowElement<P extends IStateflowElement<?>>

getStateflowId

public java.lang.String getStateflowId()
In the MDL file each Stateflow element is annotated with an Id. This method returns the Id.

Specified by:
getStateflowId in interface IStateflowElement<P extends IStateflowElement<?>>

remove

public abstract void remove()
Remove this element from the model

Specified by:
remove in interface IStateflowElement<P extends IStateflowElement<?>>

toString

public java.lang.String toString()
Returns Stateflow element type + id.

Overrides:
toString in class java.lang.Object

simulink

simulink - 2.7