simulink

edu.tum.cs.simulink.model.stateflow
Class StateflowChart

java.lang.Object
  extended by edu.tum.cs.simulink.model.ParameterizedElement
      extended by edu.tum.cs.simulink.model.stateflow.StateflowElementBase<P>
          extended by edu.tum.cs.simulink.model.stateflow.StateflowDeclContainerBase<StateflowMachine>
              extended by edu.tum.cs.simulink.model.stateflow.StateflowChart
All Implemented Interfaces:
IStateflowElement<StateflowMachine>, IStateflowNodeContainer<StateflowMachine>

public class StateflowChart
extends StateflowDeclContainerBase<StateflowMachine>
implements IStateflowNodeContainer<StateflowMachine>

This class represents Stateflow charts. There is a one-to-one association between StateflowBlocks and StateflowCharts.

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

Constructor Summary
StateflowChart()
          Create new Stateflow block.
 
Method Summary
 void addNode(StateflowNodeBase node)
          Add node.
 StateflowChart deepClone()
          Deep clone this chart.
 StateflowMachine getMachine()
          Get the Stateflow machine this chart belongs to.
 java.lang.String getName()
          Returns the name of the chart.
  getNodes()
          Returns the nodes of this chart.
 StateflowBlock getStateflowBlock()
          Get Stateflow block this chart belongs to.
 void remove()
          This method throws an UnsupportedOperationException.
 java.lang.String toString()
          Returns the name of the chart.
 
Methods inherited from class edu.tum.cs.simulink.model.stateflow.StateflowDeclContainerBase
addData, addEvent, getData, getEvents
 
Methods inherited from class edu.tum.cs.simulink.model.stateflow.StateflowElementBase
getParent, getStateflowId
 
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
 
Methods inherited from interface edu.tum.cs.simulink.model.stateflow.IStateflowElement
getParent, getStateflowId
 

Constructor Detail

StateflowChart

public StateflowChart()
Create new Stateflow block.

Method Detail

addNode

public void addNode(StateflowNodeBase node)
Add node.

Specified by:
addNode in interface IStateflowNodeContainer<StateflowMachine>

deepClone

public StateflowChart deepClone()
Deep clone this chart.


getMachine

public StateflowMachine getMachine()
Get the Stateflow machine this chart belongs to.


getName

public java.lang.String getName()
Returns the name of the chart.


getNodes

public  getNodes()
Returns the nodes of this chart.

Specified by:
getNodes in interface IStateflowNodeContainer<StateflowMachine>

getStateflowBlock

public StateflowBlock getStateflowBlock()
Get Stateflow block this chart belongs to.


remove

public void remove()
This method throws an UnsupportedOperationException. You must remove the associated StateflowBlock to remove a chart.

Specified by:
remove in interface IStateflowElement<StateflowMachine>
Specified by:
remove in class StateflowElementBase<StateflowMachine>

toString

public java.lang.String toString()
Returns the name of the chart.

Overrides:
toString in class StateflowElementBase<StateflowMachine>

simulink

simulink - 2.7