Class Complex
- java.lang.Object
-
- org.eclipse.epsilon.emc.simulink.types.AbstractType
-
- org.eclipse.epsilon.emc.simulink.types.Complex
-
- All Implemented Interfaces:
ISimulinkModelElement
,IModelElement
public class Complex extends AbstractType
-
-
Field Summary
-
Fields inherited from class org.eclipse.epsilon.emc.simulink.types.AbstractType
engine, object
-
-
Constructor Summary
Constructors Constructor Description Complex()
Complex(java.lang.Double real, java.lang.Double imag)
Complex(java.lang.Double real, java.lang.Integer imag)
Complex(java.lang.Integer real, java.lang.Double imag)
Complex(java.lang.Integer real, java.lang.Integer imag)
Complex(java.lang.Object complex)
Complex(MatlabEngine engine)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
getHandle()
java.lang.Double
getImag()
protected java.lang.Object
getObject()
java.lang.Object
getProperty(java.lang.String property)
java.lang.Double
getReal()
protected void
init()
static boolean
is(java.lang.Object obj)
void
setImag(java.lang.Double imag)
void
setImag(java.lang.Integer imag)
void
setProperty(java.lang.String property, java.lang.Object value)
void
setReal(java.lang.Double real)
void
setReal(java.lang.Integer real)
java.lang.String
toString()
-
Methods inherited from class org.eclipse.epsilon.emc.simulink.types.AbstractType
deleteElementInModel, getAllTypeNamesOf, getEngine, getOwningModel, getType
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.eclipse.epsilon.emc.simulink.model.element.ISimulinkModelElement
equals
-
-
-
-
Constructor Detail
-
Complex
public Complex(java.lang.Object complex)
-
Complex
public Complex(MatlabEngine engine)
-
Complex
public Complex(java.lang.Double real, java.lang.Double imag)
-
Complex
public Complex(java.lang.Double real, java.lang.Integer imag)
-
Complex
public Complex(java.lang.Integer real, java.lang.Double imag)
-
Complex
public Complex(java.lang.Integer real, java.lang.Integer imag)
-
Complex
public Complex()
-
-
Method Detail
-
is
public static boolean is(java.lang.Object obj)
-
getHandle
public java.lang.Object getHandle()
- Specified by:
getHandle
in interfaceISimulinkModelElement
- Overrides:
getHandle
in classAbstractType
-
getReal
public java.lang.Double getReal()
-
setReal
public void setReal(java.lang.Double real) throws java.lang.Exception
- Throws:
java.lang.Exception
-
setReal
public void setReal(java.lang.Integer real) throws java.lang.Exception
- Throws:
java.lang.Exception
-
getImag
public java.lang.Double getImag()
-
setImag
public void setImag(java.lang.Double imag) throws java.lang.Exception
- Throws:
java.lang.Exception
-
setImag
public void setImag(java.lang.Integer imag) throws java.lang.Exception
- Throws:
java.lang.Exception
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getProperty
public java.lang.Object getProperty(java.lang.String property) throws EolRuntimeException
- Throws:
EolRuntimeException
-
setProperty
public void setProperty(java.lang.String property, java.lang.Object value) throws EolRuntimeException
- Throws:
EolRuntimeException
-
init
protected void init()
- Specified by:
init
in classAbstractType
-
getObject
protected java.lang.Object getObject()
- Specified by:
getObject
in classAbstractType
-
-