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

trait Driver

[source: com/lafros/macs/Di.scala]

trait Driver
extends NonPollableDriver
device-specific component of a device interface, interpreting commands and returning status samples. An impl'n is required in order to create a Di (using Di.Factory.instance).
See Also
OtherDiDependent
Direct Known Subclasses:
dummy.Di.Driver

Method Summary
abstract def status : java.io.Serializable
for sampling the device's status, at regular intervals. Samples (when serialised) may not exceed the payload of a single java.net.DatagramPacket (approx. 65KB).
Methods inherited from AnyRef
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized
Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf
Methods inherited from NonPollableDriver
interpretCmd (abstract)
Method Details
abstract def status : java.io.Serializable
for sampling the device's status, at regular intervals. Samples (when serialised) may not exceed the payload of a single java.net.DatagramPacket (approx. 65KB).
Returns
The result will be tested for reference equality with the previous one (using eq), and deemed not to have changed if this returns true. It must be non-null, otherwise the device interface will be deemed fatally broken.
Throws
RuntimeException - The device interface will be deemed fatally broken.


Copyright 2009 Latterfrosken Software Development Limited