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

class Pd

[source: com/lafros/macs/pd/Pd.scala]

abstract class Pd
extends AnyPd with StatusEtc with ConstantsEtc
to be extended by PDs having status and constants.

The following variants are also available:

When using the macs.test.dummy.Di.Factory, the result of calling the exposed Di.Driver's status method may be cast to either (my.device.pd.StatusType, Option[progam.Info]) or Option[program.Info], depending on whether the PD variant has status or not.

Author
Rob Dickens
Type Summary
type CmdInterpreterContextType
type of the context argument passed to the apply method which must be implemented when implementing the CmdInterpreter.
type ProgramContextType
type of argument passed to the init method of Programs.
Method Summary
def createDi (name : java.lang.String, statusFactory : StatusFactory, _constants : ConstantsType) : Di
acquire lock on statusFactory prior to any subsequent interaction with it.
def createDi (name : java.lang.String, statusFactoryClass : java.lang.Class[StatusFactory], constants : ConstantsType) : Di
avoids exposing status factory instance.
Methods inherited from ConstantsEtc
instantiate
Methods inherited from AnyRef
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized
Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf
Class Summary
protected trait CmdInterpreterContext extends AnyCmdInterpreterContext with StatefulContext with ContextHavingConstants
suitably specialised version.
protected trait ProgramContext extends AnyProgramContext with StatefulContext with ContextHavingConstants
suitably specialised version.
class Proxy (context : Context, diName : scala.Option[java.lang.String]) extends ProxyHavingStatus with ProxyHavingConstants
provides access to the PD from another DI.
Type Details
type CmdInterpreterContextType
type of the context argument passed to the apply method which must be implemented when implementing the CmdInterpreter.

type ProgramContextType
type of argument passed to the init method of Programs.

Method Details
def createDi(name : java.lang.String, statusFactoryClass : java.lang.Class[StatusFactory], constants : ConstantsType) : Di
avoids exposing status factory instance.

def createDi(name : java.lang.String, statusFactory : StatusFactory, _constants : ConstantsType) : Di
acquire lock on statusFactory prior to any subsequent interaction with it.


Copyright 2009 Latterfrosken Software Development Limited