public class X2cManager
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
X2cManager()
Protected constructor implementing the singleton.
|
Modifier and Type | Method and Description |
---|---|
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)
Returns the block from the model or generate one according to the parameters.
|
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) |
at.lcm.x2c.gui.communicator.IRmiCommunicator |
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)
Tests wheter a Communicator is connection and if the connection is alive.
|
void |
notifyChangeBlockMaskParameter(at.lcm.x2c.gui.communicator.RmiMaskParameterUpdateEvent 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()
Disconnects if communicator is connected and tries to connect to the communicator via a RMI communication in order to enable communicator
methods within the Scilab JVM.
|
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.
|
protected X2cManager()
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
- Xcos expressionsxcosBlockId
- Xcos block identifiersampletimePreset
- Sample time presetX2cEnvironmentScilabException
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
- Block labelcomponentName
- Component namexcosBlockId
- Xcos Block identifierxcosModelIdentification
- Xcos Model identifiersampletimePreset
- Sample time presetjava.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 at.lcm.x2c.gui.communicator.IRmiCommunicator 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)
xcosModelIdentification
- Xcos Model Identificationpublic 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(at.lcm.x2c.gui.communicator.RmiMaskParameterUpdateEvent event) throws java.rmi.RemoteException
java.rmi.RemoteException
public java.lang.String toString()
toString
in class java.lang.Object
Copyright 2019 LCM. All rights reserved.