|
JMACS | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jmacs.pd.DiClient
public class DiClient
IDiClient
for the deployment of programmable devices.
The IMonitorGui
and IControlsGui
named MonitorGui and ControlsGui respectively in
the package named by the org.jmacs.pd.uiPkgname
property (whose default value is com.lafros.jmacs.pd.ui) will be
used. These should allow interactive monitoring and control of programs,
and have nested in them any corresponding classes supplied as part of the
device definition.
See DiClients
for details of how to set
properties.
See package description for device definition details.
Constructor Summary | |
---|---|
DiClient(String diName,
String devicePkgname,
IDevice.IDriver.IContainer driverContainer,
IDevice.IConstants constants)
creates new instance. |
|
DiClient(String diName,
String devicePkgname,
IDevice.IDriver.IContainer driverContainer,
Object diDriverLock,
IDevice.IConstants constants)
creates new instance. |
|
DiClient(String diName,
String devicePkgname,
IDevice.IDriver driver,
IDevice.IConstants constants)
creates new instance. |
|
DiClient(String diName,
String devicePkgname,
IDevice.IDriver driver,
Object diDriverLock,
IDevice.IConstants constants)
creates new instance. |
|
DiClient(String diName,
String devicePkgname,
String classname,
IDevice.IConstants constants)
creates new instance. |
Method Summary | |
---|---|
void |
connect()
impl'ts IDiClient. |
void |
connect(int ucastPort)
impl'ts IDiClient. |
void |
connect(int ucastPort,
int ucastSubscriberPort)
impl'ts IDiClient. |
void |
disconnect()
impl'ts IDiClient. |
void |
terminate()
impl'ts IDiClient. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DiClient(String diName, String devicePkgname, String classname, IDevice.IConstants constants) throws ClassNotFoundException, InterruptedException, IOException
diName
- See ISpi
.devicePkgname
- See package description.classname
- fully-qualified name of the class impl'ting either the
IDevice.IDriver
or IDevice.IDriver.IContainer
. In the case of
the former, the constructor takes the following OPTIONAL arguments, in
the following order:
IDiDriver.IContext.ISubscribeOnly
subscriberContext
IDiDriver.IContext.IControlOnly
controllerContext
IDiDriver.IClient.ISubscribeOnly
,
IDiDriver.IClient.IControlOnly
or
IDiDriver.IClient.IFull
are impl'ted.constants
- passed to classname and GUI constructors if
non-null, and to IInterpreter
.interpretCmd() and IProgram
s.
IllegalArgumentException
- if classname does not impl't
the prescribed interfaces
ClassNotFoundException
InterruptedException
IOException
public DiClient(String diName, String devicePkgname, IDevice.IDriver driver, IDevice.IConstants constants) throws InterruptedException, IOException
driver
- The caller undertakes not to access this subsequently.
InterruptedException
IOException
public DiClient(String diName, String devicePkgname, IDevice.IDriver driver, Object diDriverLock, IDevice.IConstants constants) throws InterruptedException, IOException
diDriverLock
- to be acquired whenever accessing driver
subsequently
InterruptedException
IOException
public DiClient(String diName, String devicePkgname, IDevice.IDriver.IContainer driverContainer, IDevice.IConstants constants) throws InterruptedException, IOException
driverContainer
- The caller undertakes not to access this
subsequently.
InterruptedException
IOException
public DiClient(String diName, String devicePkgname, IDevice.IDriver.IContainer driverContainer, Object diDriverLock, IDevice.IConstants constants) throws InterruptedException, IOException
diDriverLock
- to be acquired whenever accessing
driverContainer subsequently
InterruptedException
IOException
Method Detail |
---|
public void connect() throws InterruptedException, MalformedURLException, RemoteException
connect
in interface IDiClient
InterruptedException
MalformedURLException
RemoteException
public void connect(int ucastPort) throws InterruptedException, MalformedURLException, RemoteException
connect
in interface IDiClient
InterruptedException
MalformedURLException
RemoteException
public void connect(int ucastPort, int ucastSubscriberPort) throws InterruptedException, MalformedURLException, RemoteException
connect
in interface IDiClient
InterruptedException
MalformedURLException
RemoteException
public void disconnect()
disconnect
in interface IDiClient
public void terminate() throws IOException
terminate
in interface IDiClient
IOException
|
JMACS | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |