Class SimulinkBlock
- java.lang.Object
-
- org.eclipse.epsilon.emc.simulink.model.element.SimulinkModelElement
-
- org.eclipse.epsilon.emc.simulink.model.element.SimulinkElement
-
- org.eclipse.epsilon.emc.simulink.model.element.SimulinkBlock
-
- All Implemented Interfaces:
ISimulinkModelElement
,IModelElement
public class SimulinkBlock extends SimulinkElement
-
-
Field Summary
-
Fields inherited from class org.eclipse.epsilon.emc.simulink.model.element.SimulinkElement
ADD_BLOCK_MAKE_NAME_UNIQUE_ON, GET_FULL_NAME, GET_HANDLE_PROPERTY, GET_SIMULINK_KIND, GET_SIMULINK_TYPE, handle, HANDLE
-
Fields inherited from class org.eclipse.epsilon.emc.simulink.model.element.SimulinkModelElement
engine, model, superType, type
-
-
Constructor Summary
Constructors Constructor Description SimulinkBlock(String path, SimulinkModel model, MatlabEngine engine)
SimulinkBlock(SimulinkModel model, MatlabEngine engine, Double handle)
CONSTRUCTORSSimulinkBlock(SimulinkModel model, MatlabEngine engine, String type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
deleteElementInModel()
Collection<ISimulinkModelElement>
getChildren()
SimulinkPortCollection
getInports()
SimulinkPortCollection
getOutports()
SimulinkBlock
getParent()
protected String
getParentPath()
PARENT / CHILDRENSimulinkPortCollection
getPorts()
String
getScript()
SimulinkModelElement
inspect()
void
link(SimulinkBlock other)
void
link(SimulinkBlock other, int outPort, int inPort)
void
linkFrom(SimulinkBlock other, int outPort)
void
linkTo(SimulinkBlock other, int inPort)
void
manageLink(SimulinkBlock other, int outPort, int inPort, boolean create)
void
setParent(SimulinkBlock parent)
void
setScript(String script)
TYPE-SPECIFIC METHODSvoid
unlink(SimulinkBlock other)
void
unlink(SimulinkBlock other, int outPort, int inPort)
void
unlinkFrom(SimulinkBlock other, int outPort)
void
unlinkTo(SimulinkBlock other, int inPort)
-
Methods inherited from class org.eclipse.epsilon.emc.simulink.model.element.SimulinkElement
equals, getAllTypeNamesOf, getHandle, getPath, getProperty, setProperty, toString
-
Methods inherited from class org.eclipse.epsilon.emc.simulink.model.element.SimulinkModelElement
getEngine, getOwningModel, getSuperType, getType
-
-
-
-
Constructor Detail
-
SimulinkBlock
public SimulinkBlock(SimulinkModel model, MatlabEngine engine, Double handle) throws MatlabRuntimeException
CONSTRUCTORS
-
SimulinkBlock
public SimulinkBlock(String path, SimulinkModel model, MatlabEngine engine) throws MatlabRuntimeException
- Throws:
MatlabRuntimeException
-
SimulinkBlock
public SimulinkBlock(SimulinkModel model, MatlabEngine engine, String type) throws MatlabRuntimeException
- Throws:
MatlabRuntimeException
-
-
Method Detail
-
getParentPath
protected String getParentPath() throws EolRuntimeException
PARENT / CHILDREN- Throws:
EolRuntimeException
-
setParent
public void setParent(SimulinkBlock parent)
-
getParent
public SimulinkBlock getParent() throws EolRuntimeException
- Throws:
EolRuntimeException
-
getChildren
public Collection<ISimulinkModelElement> getChildren() throws MatlabException
- Throws:
MatlabException
-
inspect
public SimulinkModelElement inspect() throws EolRuntimeException
- Throws:
EolRuntimeException
-
deleteElementInModel
public boolean deleteElementInModel() throws EolRuntimeException
- Throws:
EolRuntimeException
-
setScript
public void setScript(String script) throws EolRuntimeException
TYPE-SPECIFIC METHODS- Throws:
EolRuntimeException
-
getScript
public String getScript() throws EolRuntimeException
- Throws:
EolRuntimeException
-
link
public void link(SimulinkBlock other) throws EolRuntimeException
- Throws:
EolRuntimeException
-
linkTo
public void linkTo(SimulinkBlock other, int inPort) throws EolRuntimeException
- Throws:
EolRuntimeException
-
linkFrom
public void linkFrom(SimulinkBlock other, int outPort) throws EolRuntimeException
- Throws:
EolRuntimeException
-
link
public void link(SimulinkBlock other, int outPort, int inPort) throws EolRuntimeException
- Throws:
EolRuntimeException
-
unlink
public void unlink(SimulinkBlock other) throws EolRuntimeException
- Throws:
EolRuntimeException
-
unlinkTo
public void unlinkTo(SimulinkBlock other, int inPort) throws EolRuntimeException
- Throws:
EolRuntimeException
-
unlinkFrom
public void unlinkFrom(SimulinkBlock other, int outPort) throws EolRuntimeException
- Throws:
EolRuntimeException
-
unlink
public void unlink(SimulinkBlock other, int outPort, int inPort) throws EolRuntimeException
- Throws:
EolRuntimeException
-
manageLink
public void manageLink(SimulinkBlock other, int outPort, int inPort, boolean create) throws EolRuntimeException
- Throws:
EolRuntimeException
-
getPorts
public SimulinkPortCollection getPorts() throws EolRuntimeException
- Throws:
EolRuntimeException
-
getOutports
public SimulinkPortCollection getOutports() throws EolRuntimeException
- Throws:
EolRuntimeException
-
getInports
public SimulinkPortCollection getInports() throws EolRuntimeException
- Throws:
EolRuntimeException
-
-