|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectat.lcm.x2c.scilab.xcos.x2cManager.X2cManager
public class X2cManager
Central instance to manage the working diagram etc. This class is implemented as singleton.
Constructor Summary | |
---|---|
protected |
X2cManager()
|
Method Summary | |
---|---|
boolean |
communicatorConnect()
Connects to the communicator and makes some retries (20) when connecting fails. |
boolean |
communicatorConnect(int retrys)
Connects to the communicator and makes retries when connecting fails. |
void |
communicatorDisconnect()
|
X2cBlock |
getBlock(java.lang.String[][] exprs,
java.lang.String xcosBlockId,
double sampletimePreset)
Return the block from the model or generate one according to the parameter. |
X2cBlock |
getBlock(java.lang.String blockLabel,
java.lang.String componentName,
java.lang.String xcosBlockId,
java.lang.String xcosModelIdentification,
double sampletimePreset)
Return the block from the model or generate one according to the parameter. |
X2cBlock |
getBlock(XcosExprs exprs,
java.lang.String xcosBlockId,
double sampletimePreset)
Return the block from the model or generate one according to the parameter. |
X2cBlock |
getBlockWithDummyModel(java.lang.String componentName,
double sampletimePreset)
|
X2cBlock |
getBlockWithDummyModel(java.lang.String blockLabel,
java.lang.String componentName,
double sampletimePreset)
|
X2cCommunicatorRMI_interface |
getCommunicator()
Returns RMI Communicator. |
static X2cManager |
getInstance()
Return the only instance of the X2cManager. |
java.lang.String |
getSERVICENAME_extension()
|
boolean |
isCommunicatorConnected()
Test whether a Communicator is connected and the connection alive. |
boolean |
isCommunicatorConnected(java.lang.String xcosModelIdentification)
Test whether a Communicator is connected and the connection alive. |
void |
notifyChangeBlockMaskParameter(X2cRMIModelBlockMaskParameterUpdateEvent event)
|
void |
notifyLocalChange2Remote_BlockMaskParameter(java.lang.String componentName,
java.util.List<java.lang.String> systemNames,
java.lang.String blockName,
java.lang.String parameter,
java.lang.String value)
|
void |
notifyLocalChange2Remote_BlockMaskParameter(java.lang.String componentName,
java.lang.String blockName,
java.lang.String parameter,
java.lang.String value)
Deprecated. |
void |
openCommunicatorNew()
|
void |
resetModel()
Make a reset so that the model is not known to the Manager anymore. |
void |
setCurrentDiagram()
Set the currently open XcosDiagram as the "work" or "active" or "current" diagram in the X2cManager. |
void |
setSERVICENAME_extension(java.lang.String sERVICENAME_extension)
|
java.lang.String |
toString()
|
void |
updateModel()
Transforms the xcos model in a x2c model and starts the communicator. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected X2cManager()
Method Detail |
---|
public static X2cManager getInstance()
public void setCurrentDiagram() throws java.lang.Exception
java.lang.Exception
public void updateModel() throws java.lang.Exception
java.lang.Exception
public void resetModel()
public X2cBlock getBlock(java.lang.String[][] exprs, java.lang.String xcosBlockId, double sampletimePreset) throws java.lang.Exception
exprs
- xcosBlockId
- sampletimePreset
-
java.lang.Exception
public X2cBlock getBlock(XcosExprs exprs, java.lang.String xcosBlockId, double sampletimePreset) throws X2cEnvironmentScilabException
exprs
- xcosBlockId
- sampletimePreset
-
java.lang.Exception
X2cEnvironmentScilabException
public X2cBlock getBlock(java.lang.String blockLabel, java.lang.String componentName, java.lang.String xcosBlockId, java.lang.String xcosModelIdentification, double sampletimePreset) throws java.lang.Exception
blockLabel
- componentName
- xcosBlockId
- xcosModelIdentification
- sampletimePreset
-
java.lang.Exception
public X2cBlock getBlockWithDummyModel(java.lang.String componentName, double sampletimePreset) throws java.lang.Exception
java.lang.Exception
public X2cBlock getBlockWithDummyModel(java.lang.String blockLabel, java.lang.String componentName, double sampletimePreset) throws java.lang.Exception
java.lang.Exception
public X2cCommunicatorRMI_interface getCommunicator() throws java.rmi.RemoteException
java.rmi.RemoteException
public void openCommunicatorNew() throws java.lang.Exception
java.lang.Exception
public boolean communicatorConnect()
public boolean communicatorConnect(int retrys)
public void communicatorDisconnect()
public boolean isCommunicatorConnected()
public boolean isCommunicatorConnected(java.lang.String xcosModelIdentification)
public java.lang.String getSERVICENAME_extension()
public void setSERVICENAME_extension(java.lang.String sERVICENAME_extension)
sERVICENAME_extension
- the sERVICENAME_extension to set@Deprecated public void notifyLocalChange2Remote_BlockMaskParameter(java.lang.String componentName, java.lang.String blockName, java.lang.String parameter, java.lang.String value) throws java.lang.Exception
java.lang.Exception
public void notifyLocalChange2Remote_BlockMaskParameter(java.lang.String componentName, java.util.List<java.lang.String> systemNames, java.lang.String blockName, java.lang.String parameter, java.lang.String value) throws java.lang.Exception
java.lang.Exception
public void notifyChangeBlockMaskParameter(X2cRMIModelBlockMaskParameterUpdateEvent event) throws java.rmi.RemoteException
java.rmi.RemoteException
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |