Scala Monitoring and Control System API
com.lafros.macs.pd.an.AnyPd

class Proxy

[source: com/lafros/macs/pd/an/AnyPd.scala]

class Proxy(protected val context : Context, _diName : scala.Option[java.lang.String])
extends AnyRef
provides access to the PD from another DI.
Parameters
_diName - if None, the rightmost portion or the package name will be used, preceded by a dot - see diName.
Direct Known Subclasses:
ConstantlessPd.Proxy, Pd.Proxy, ConstantsEtc.ProxyHavingConstants, NonPollablePd.Proxy, StatusEtc.ProxyHavingStatus

Additional Constructor Summary
def this (context : Context) : Proxy
supplies a _diName of None.
Value Summary
protected lazy val diName : java.lang.String
lazy val driver : DriverType
Method Summary
def interpretCmd (cmd : java.io.Serializable) : scala.Option[java.io.Serializable]
interprets cmd.
def programInfo : (Info, Long)
returned together with timestamp.
def startProgram (prog : Program) : scala.Option[java.io.Serializable]
starts the specified program. Any program which is already running will be terminate()d.
def subscribeTo (b : Boolean) : Unit
causes the status to be obtained automatically. Calls to programInfo (and other methods in some subclasses) will then return the cached sample, or null if this is no longer up-to-date (i.e. older than two sampling periods).
def terminateProgram : Unit
terminate()s the currently running program, or does nothing if no program is running.
Methods inherited from AnyRef
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized
Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf
Additional Constructor Details
def this(context : Context) : Proxy
supplies a _diName of None.

Value Details
protected lazy val diName : java.lang.String

lazy val driver : DriverType

Method Details
def interpretCmd(cmd : java.io.Serializable) : scala.Option[java.io.Serializable]
interprets cmd.
Throws
ClientDiException -
CmdException -

def startProgram(prog : Program) : scala.Option[java.io.Serializable]
starts the specified program. Any program which is already running will be terminate()d.
Throws
ClientDiException -

def terminateProgram : Unit
terminate()s the currently running program, or does nothing if no program is running.
Throws
ClientDiException -

def programInfo : (Info, Long)
returned together with timestamp.
Throws
ClientDiException -

def subscribeTo(b : Boolean) : Unit
causes the status to be obtained automatically. Calls to programInfo (and other methods in some subclasses) will then return the cached sample, or null if this is no longer up-to-date (i.e. older than two sampling periods).
Throws
ClientDiException -


Copyright 2009 Latterfrosken Software Development Limited