|
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
public abstract class SimulinkElementBase
Base class for Simulink elements. This is either a SimulinkAnnotation
or a SimulinkBlock
. The common aspect is that they have a name and a
parent.
Constructor Summary | |
---|---|
protected |
SimulinkElementBase()
Create element. |
protected |
SimulinkElementBase(SimulinkElementBase other)
Create element from other element (for deep cloning). |
Method Summary | |
---|---|
java.lang.String |
getId()
Get id of this element. |
SimulinkModel |
getModel()
Get the model this element belongs to. |
java.lang.String |
getName()
Returns the name. |
SimulinkBlock |
getParent()
Returns the parent block (may be null). |
void |
remove()
Remove this element from the model. |
protected void |
setParent(SimulinkBlock parent)
Sets the parent for this block. |
java.lang.String |
toString()
Get string representation of this block. |
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 |
---|
protected SimulinkElementBase()
protected SimulinkElementBase(SimulinkElementBase other)
Method Detail |
---|
public java.lang.String getId()
public SimulinkModel getModel()
public java.lang.String getName()
public SimulinkBlock getParent()
public void remove()
public java.lang.String toString()
toString
in class java.lang.Object
protected void setParent(SimulinkBlock parent)
PreconditionException
- if element already has parent or the new parent is
null
.
|
simulink | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |