|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.joone.util.MonitorPlugin
org.joone.util.SnapshotPlugin
public abstract class SnapshotPlugin
A SnapshotPlugin manages the generation of snapshots of the network's state at regular intervals during its activity. The effective snapshot generation is deferred to subclasses to allow for misc. storage formats and output destinations.
Constructor Summary | |
---|---|
protected |
SnapshotPlugin()
Creates a new SnapshotPlugin object. |
Method Summary | |
---|---|
protected abstract void |
doSnapshot()
Allows subclasses to define specific snapshot generation. |
protected abstract void |
doStart()
Allows subclasses to define specific start processing. |
protected abstract void |
doStop()
Allows subclasses to define specific stop processing. |
protected void |
manageCycle(Monitor mon)
Process one cycle of activity: calls the doSnapshot method to allow for specific snapshot generation by subclasses. |
protected void |
manageError(Monitor mon)
Global error is stored along with the monitor, so this method does nothing. |
protected void |
manageStart(Monitor mon)
Start a new activity session: calls the doStart method to inform subclasses, then generates a snapshot of the initial state of the network. |
protected void |
manageStop(Monitor mon)
Stop an activity session: take a snapshot of the final state of the network, then calls the doStop method to inform subclasses |
Methods inherited from class org.joone.util.MonitorPlugin |
---|
cicleTerminated, errorChanged, getName, getNeuralNet, getRate, manageStopError, netStarted, netStopped, netStoppedError, setName, setNeuralNet, setRate, toBeManaged |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected SnapshotPlugin()
Method Detail |
---|
protected final void manageStart(Monitor mon)
manageStart
in class MonitorPlugin
mon
- the monitorprotected abstract void doStart()
net
- the current neural network.protected final void manageCycle(Monitor mon)
manageCycle
in class MonitorPlugin
mon
- the monitorprotected abstract void doSnapshot()
net
- the current neural network.protected final void manageStop(Monitor mon)
manageStop
in class MonitorPlugin
mon
- the monitorprotected abstract void doStop()
net
- the current neural network.protected final void manageError(Monitor mon)
manageError
in class MonitorPlugin
mon
- the monitor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |