Class SimulinkLink
- java.lang.Object
-
- org.eclipse.epsilon.emc.simulink.model.element.SimulinkModelElement
-
- org.eclipse.epsilon.emc.simulink.requirement.model.element.SimulinkLink
-
- All Implemented Interfaces:
ISimulinkModelElement
,ISimulinkRequirementModelElement
,IModelElement
public class SimulinkLink extends SimulinkModelElement implements ISimulinkRequirementModelElement
-
-
Field Summary
Fields Modifier and Type Field Description protected MatlabHandleElement
linkHandle
-
Fields inherited from class org.eclipse.epsilon.emc.simulink.model.element.SimulinkModelElement
engine, model, superType, type
-
-
Constructor Summary
Constructors Constructor Description SimulinkLink(SimulinkRequirementModel model, MatlabEngine engine)
SimulinkLink(SimulinkRequirementModel model, MatlabEngine engine, ISimulinkModelElement source, ISimulinkModelElement target)
SimulinkLink(SimulinkRequirementModel model, MatlabEngine engine, HandleObject id)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
deleteElementInModel()
Collection<String>
getAllTypeNamesOf()
Object
getDestination()
MatlabHandleElement
getHandle()
Object
getProperty(String property)
Object
getSource()
String
getType()
Boolean
isResolved()
Boolean
isResolved(String location)
Boolean
isResolvedDestination()
Boolean
isResolvedSource()
SimulinkLink
setDestination(Object destination)
void
setProperty(String property, Object value)
SimulinkLink
setSource(Object source)
-
Methods inherited from class org.eclipse.epsilon.emc.simulink.model.element.SimulinkModelElement
getEngine, getOwningModel, getSuperType
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.eclipse.epsilon.eol.models.IModelElement
getOwningModel
-
Methods inherited from interface org.eclipse.epsilon.emc.simulink.model.element.ISimulinkModelElement
equals, getEngine
-
-
-
-
Field Detail
-
linkHandle
protected MatlabHandleElement linkHandle
-
-
Constructor Detail
-
SimulinkLink
public SimulinkLink(SimulinkRequirementModel model, MatlabEngine engine, ISimulinkModelElement source, ISimulinkModelElement target) throws EolRuntimeException
- Throws:
EolRuntimeException
-
SimulinkLink
public SimulinkLink(SimulinkRequirementModel model, MatlabEngine engine)
-
SimulinkLink
public SimulinkLink(SimulinkRequirementModel model, MatlabEngine engine, HandleObject id)
-
-
Method Detail
-
getProperty
public Object getProperty(String property) throws EolRuntimeException
- Specified by:
getProperty
in interfaceISimulinkModelElement
- Throws:
EolRuntimeException
-
setProperty
public void setProperty(String property, Object value) throws EolRuntimeException
- Specified by:
setProperty
in interfaceISimulinkModelElement
- Throws:
EolRuntimeException
-
getAllTypeNamesOf
public Collection<String> getAllTypeNamesOf()
- Specified by:
getAllTypeNamesOf
in interfaceISimulinkModelElement
-
deleteElementInModel
public boolean deleteElementInModel() throws EolRuntimeException
- Specified by:
deleteElementInModel
in interfaceISimulinkModelElement
- Throws:
EolRuntimeException
-
getHandle
public MatlabHandleElement getHandle()
- Specified by:
getHandle
in interfaceISimulinkModelElement
-
getType
public String getType()
- Specified by:
getType
in interfaceISimulinkModelElement
- Overrides:
getType
in classSimulinkModelElement
-
isResolved
public Boolean isResolved() throws EolRuntimeException
- Throws:
EolRuntimeException
-
isResolvedSource
public Boolean isResolvedSource() throws EolRuntimeException
- Throws:
EolRuntimeException
-
isResolvedDestination
public Boolean isResolvedDestination() throws EolRuntimeException
- Throws:
EolRuntimeException
-
isResolved
public Boolean isResolved(String location) throws EolRuntimeException
- Throws:
EolRuntimeException
-
setSource
public SimulinkLink setSource(Object source) throws EolRuntimeException
- Throws:
EolRuntimeException
-
getSource
public Object getSource() throws EolRuntimeException
- Throws:
EolRuntimeException
-
setDestination
public SimulinkLink setDestination(Object destination) throws EolRuntimeException
- Throws:
EolRuntimeException
-
getDestination
public Object getDestination() throws EolRuntimeException
- Throws:
EolRuntimeException
-
-