|
simulink | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.tum.cs.simulink.model.ParameterizedElement
edu.tum.cs.simulink.model.SimulinkElementBase
edu.tum.cs.simulink.model.SimulinkBlock
public class SimulinkBlock
A Simulink block has a type and maintains a parameter map, a list of sub blocks, a list of annotations and in/out-ports.
Constructor Summary | |
---|---|
|
SimulinkBlock()
Create new Simulink block. |
protected |
SimulinkBlock(SimulinkBlock origBlock)
Copy constructor. |
Method Summary | |
---|---|
void |
addAnnotation(SimulinkAnnotation annotation)
Add an annotation. |
void |
addSubBlock(SimulinkBlock subBlock)
Adds a sub block. |
SimulinkBlock |
deepClone()
Creates a deep clone of this block. |
|
getAnnotations()
Get annotations. |
java.util.List<SimulinkLine> |
getInLines()
Get all incoming lines of this block. |
SimulinkInPort |
getInPort(java.lang.String portIndex)
Get inport by index or null if no inport with this index was
found. |
|
getInPorts()
Returns the inports this block. |
java.util.List<SimulinkLine> |
getOutLines()
Get all outgoing lines of this block. |
SimulinkOutPort |
getOutPort(java.lang.String portIndex)
Get outport by index or null if no outport with this index
was found. |
|
getOutPorts()
Returns the outport of this block. |
java.lang.String |
getResolvedType()
If this block is of type 'Reference' this returns Reference. |
SimulinkBlock |
getSubBlock(java.lang.String name)
Get named sub block or null if no sub block with the given
name is present. |
|
getSubBlocks()
Returns the sub blocks of this block. |
java.lang.String |
getType()
Returns the type. |
boolean |
hasSubBlocks()
Returns whether this block has subBlocks. |
void |
remove()
Unlinks this object from the simulink tree. |
java.lang.String |
toString()
Get string representation of this block. |
Methods inherited from class edu.tum.cs.simulink.model.SimulinkElementBase |
---|
getId, getModel, getName, getParent, setParent |
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 |
---|
public SimulinkBlock()
protected SimulinkBlock(SimulinkBlock origBlock) throws DeepCloneException
SimulinkModel
during
cloning.
DeepCloneException
Method Detail |
---|
public void addAnnotation(SimulinkAnnotation annotation)
public void addSubBlock(SimulinkBlock subBlock)
publicgetAnnotations()
public java.util.List<SimulinkLine> getInLines()
public SimulinkInPort getInPort(java.lang.String portIndex)
null
if no inport with this index was
found.
publicgetInPorts()
public java.util.List<SimulinkLine> getOutLines()
public SimulinkOutPort getOutPort(java.lang.String portIndex)
null
if no outport with this index
was found.
publicgetOutPorts()
public java.lang.String getResolvedType()
Reference.<source type of the reference>
. Otherwise
this just returns the type of the block.
public SimulinkBlock getSubBlock(java.lang.String name)
null
if no sub block with the given
name is present.
publicgetSubBlocks()
public java.lang.String getType()
public boolean hasSubBlocks()
public void remove()
remove
in class SimulinkElementBase
public java.lang.String toString()
toString
in class SimulinkElementBase
public SimulinkBlock deepClone() throws DeepCloneException
SimulinkModel
. Therefore it is strongly
recommended to deep clone only whole models.
DeepCloneException
|
simulink | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |