|
JMACS | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jmacs.pd.Pdi
public class Pdi
IDi
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 IDi.AbstractFactory
for details of how to set
properties.
See package description for device definition details.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.jmacs.IDi |
---|
IDi.AbstractFactory, IDi.IDriver, IDi.States, IDi.Util |
Constructor Summary | |
---|---|
Pdi(String name,
Class clazz,
Device.IConstants constants)
for use where clazz is provided by the device package itself. |
|
Pdi(String name,
Device.IDriver.IContainer driverContainer,
Device.IConstants constants)
for use where the driverContainer class is provided by the device package itself. |
|
Pdi(String name,
Device.IDriver driver,
Device.IConstants constants)
for use where the driver class is provided by the device package itself. |
|
Pdi(String name,
String devicePkgname,
Class clazz,
Device.IConstants constants)
creates new instance. |
|
Pdi(String name,
String devicePkgname,
Device.IDriver.IContainer driverContainer,
Device.IConstants constants)
as above, but supplying a driver-container instance (rather than driver instance). |
|
Pdi(String name,
String devicePkgname,
Device.IDriver driver,
Device.IConstants constants)
as above, but supplying the driver instance (rather than class). |
Method Summary | |
---|---|
boolean |
getAutoReregister()
impl'ts IDi. |
Observable |
getObservable()
impl'ts IDi. |
String |
getState()
impl'ts IDi. |
void |
register()
impl'ts IDi. |
void |
registerLater()
impl'ts IDi. |
void |
registerOrWait()
impl'ts IDi. |
void |
setAutoReregister(boolean b)
impl'ts IDi. |
void |
setSamplesInPort(int port)
impl'ts IDi. |
void |
setSamplesOutPort(int port)
impl'ts IDi. |
void |
unregister()
impl'ts IDi. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Pdi(String name, String devicePkgname, Class clazz, Device.IConstants constants) throws InterruptedException, IOException
name
- See IDi.AbstractFactory
.devicePkgname
- See package description.clazz
- class impl'ting either Device.IDriver
or Device.IDriver.IContainer
. In the case of the latter, the instance (which is
not exposed to commands or programs) will be passed one or more context
objects if the class implements one or more of the following:
In both cases, the constructor may take a single argument of type Device.IConstants
corr'ding to the constants
supplied here.constants
- passed to clazz and GUI constructors if
non-null, and to IInterpreter
.interpretCmd() and
IProgram
s.
IllegalArgumentException
- if devicePkgname does not contain
the device class/interface--whose name must be the same as the rightmost
portion of the packagename (but capitalised)--or clazz does not impl't
either of the prescribed interfaces
InterruptedException
IOException
public Pdi(String name, String devicePkgname, Device.IDriver driver, Device.IConstants constants) throws InterruptedException, IOException
driver
- The caller undertakes to acquire the lock on this before
accessing it subsequently.
InterruptedException
IOException
public Pdi(String name, String devicePkgname, Device.IDriver.IContainer driverContainer, Device.IConstants constants) throws InterruptedException, IOException
driverContainer
- The caller undertakes to acquire the lock on this before
accessing it subsequently.
InterruptedException
IOException
public Pdi(String name, Class clazz, Device.IConstants constants) throws ClassNotFoundException, InterruptedException, IOException
ClassNotFoundException
InterruptedException
IOException
public Pdi(String name, Device.IDriver driver, Device.IConstants constants) throws InterruptedException, IOException
InterruptedException
IOException
public Pdi(String name, Device.IDriver.IContainer driverContainer, Device.IConstants constants) throws InterruptedException, IOException
InterruptedException
IOException
Method Detail |
---|
public void setSamplesOutPort(int port)
setSamplesOutPort
in interface IDi
public void setSamplesInPort(int port)
setSamplesInPort
in interface IDi
public void setAutoReregister(boolean b)
setAutoReregister
in interface IDi
public boolean getAutoReregister()
getAutoReregister
in interface IDi
public void register() throws DiNameTakenException, TargetUnavailableException
register
in interface IDi
DiNameTakenException
- if another DI is already registered as name
TargetUnavailableException
- if the target DI-registry is unavailablepublic void registerOrWait() throws DiNameTakenException, InterruptedException
registerOrWait
in interface IDi
InterruptedException
- if interrupted while sleeping
DiNameTakenException
public void registerLater()
registerLater
in interface IDi
public void unregister()
unregister
in interface IDi
public String getState()
getState
in interface IDi
public Observable getObservable()
getObservable
in interface IDi
|
JMACS | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |