Lafros MaCS 1.2r1
|
|
com/lafros/macs/pd/an/AnyPd.scala
]
abstract
class
AnyPd
extends
java.io.Serializable with
AnyRefType Summary | |
abstract type
|
CmdInterpreterContextType
<: AnyCmdInterpreterContext
type of the context argument passed to the apply method which must be
implemented when implementing the CmdInterpreter.
|
abstract type
|
DriverType
<: AnyRef
type of the driver, conventionally named 'Driver'.
|
abstract type
|
ProgramContextType
<: AnyProgramContext
type of argument passed to the init method of Programs.
|
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
|
AnyCmdInterpreterContext
extends AnyContext
command-interpreter context, accessible from the PD's interpretCmd
implementation.
|
protected trait
|
AnyContext
extends AnyRef
extended by all context classes.
|
trait
|
CmdInterpreter
extends (java.io.Serializable, Boolean, scala.Option[java.lang.String], CmdInterpreterContextType) => scala.Option[java.io.Serializable]
optional command-interpreter. Ensure that the implementation class has the
same name:
class CmdInterpreter extends pd.CmdInterpreter { def apply(cmd: Serializable, control: Boolean, diName: Option[String], context: Context) = { ... return Some(serialisableResult) ... return None ... throw new CmdNotRecognisedException(cmd) ... throw new CmdUsageException(advice) } }Context will be tailored to the Pd variant being extended. |
trait
|
ControlsGui
extends ControlsGui
just allows the PD's controls GUI to share the ControlsGui name, which is required.
|
trait
|
DriverContainer
extends AnyRef
an instance or concrete implementation may be supplied in place of the driver, when creating a DI.
|
abstract class
|
Program
extends Program
adds type-safe methods.
|
class
|
Proxy
(protected val context : Context, _diName : scala.Option[java.lang.String]) extends AnyRef
provides access to the PD from another DI.
|
Type Details |
abstract
type
DriverType <: AnyRef
abstract
type
CmdInterpreterContextType <: AnyCmdInterpreterContext
abstract
type
ProgramContextType <: AnyProgramContext
Lafros MaCS 1.2r1
|
|