Class SimulinkElement
- java.lang.Object
-
- org.eclipse.epsilon.emc.simulink.model.element.SimulinkModelElement
-
- org.eclipse.epsilon.emc.simulink.model.element.SimulinkElement
-
- All Implemented Interfaces:
ISimulinkModelElement
,IModelElement
- Direct Known Subclasses:
SimulinkBlock
,SimulinkLine
,SimulinkPort
public abstract class SimulinkElement extends SimulinkModelElement
-
-
Field Summary
Fields Modifier and Type Field Description protected static String
ADD_BLOCK_MAKE_NAME_UNIQUE_ON
protected static String
GET_FULL_NAME
protected static String
GET_HANDLE_PROPERTY
protected static String
GET_SIMULINK_KIND
protected static String
GET_SIMULINK_TYPE
protected Double
handle
protected static String
HANDLE
-
Fields inherited from class org.eclipse.epsilon.emc.simulink.model.element.SimulinkModelElement
engine, model, superType, type
-
-
Constructor Summary
Constructors Constructor Description SimulinkElement(String path, SimulinkModel model, MatlabEngine engine)
SimulinkElement(SimulinkModel model, MatlabEngine engine)
SimulinkElement(SimulinkModel model, MatlabEngine engine, Double handle)
SimulinkElement(SimulinkModel model, MatlabEngine engine, String type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object other)
Collection<String>
getAllTypeNamesOf()
Object
getHandle()
String
getPath()
Object
getProperty(String property)
void
setProperty(String property, Object value)
String
toString()
-
Methods inherited from class org.eclipse.epsilon.emc.simulink.model.element.SimulinkModelElement
getEngine, getOwningModel, getSuperType, getType
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.eclipse.epsilon.emc.simulink.model.element.ISimulinkModelElement
deleteElementInModel
-
-
-
-
Field Detail
-
ADD_BLOCK_MAKE_NAME_UNIQUE_ON
protected static final String ADD_BLOCK_MAKE_NAME_UNIQUE_ON
- See Also:
- Constant Field Values
-
HANDLE
protected static final String HANDLE
- See Also:
- Constant Field Values
-
GET_SIMULINK_KIND
protected static final String GET_SIMULINK_KIND
- See Also:
- Constant Field Values
-
GET_SIMULINK_TYPE
protected static final String GET_SIMULINK_TYPE
- See Also:
- Constant Field Values
-
GET_FULL_NAME
protected static final String GET_FULL_NAME
- See Also:
- Constant Field Values
-
GET_HANDLE_PROPERTY
protected static final String GET_HANDLE_PROPERTY
- See Also:
- Constant Field Values
-
handle
protected Double handle
-
-
Constructor Detail
-
SimulinkElement
public SimulinkElement(SimulinkModel model, MatlabEngine engine, String type) throws MatlabRuntimeException
- Throws:
MatlabRuntimeException
-
SimulinkElement
public SimulinkElement(SimulinkModel model, MatlabEngine engine, Double handle) throws MatlabRuntimeException
- Throws:
MatlabRuntimeException
-
SimulinkElement
public SimulinkElement(String path, SimulinkModel model, MatlabEngine engine) throws MatlabRuntimeException
- Throws:
MatlabRuntimeException
-
SimulinkElement
public SimulinkElement(SimulinkModel model, MatlabEngine engine)
-
-
Method Detail
-
getProperty
public Object getProperty(String property) throws EolRuntimeException
- Throws:
EolRuntimeException
-
setProperty
public void setProperty(String property, Object value) throws EolRuntimeException
- Throws:
EolRuntimeException
-
getHandle
public Object getHandle()
-
getPath
public String getPath()
- Returns:
- Identifier (Path)
-
equals
public boolean equals(Object other)
- Specified by:
equals
in interfaceISimulinkModelElement
- Overrides:
equals
in classObject
-
getAllTypeNamesOf
public Collection<String> getAllTypeNamesOf()
-
-