|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--ostore.oil.HMMStage
|
+--ostore.oil.HMMBuilder
A stage which automatically fits a Hidden Markov Model to a monitored
event stream.
This class extends HMMStage, adding support for
Builder-specific config tags and ipmlementing the
handleEvent method.
HMM| Nested Class Summary |
|---|
| Nested classes inherited from class ostore.oil.HMMStage |
|---|
HMMStage.InvalidTypeException, HMMStage.UnsupportedConfigurationException |
| Field Summary | |
|---|---|
protected boolean |
emit_deltas
true iff this Builder should publish
Deltas for its Model whenever the model
parameters are recalculated. |
protected int |
num_observed
The total number of observations so far. |
protected int |
recalculation_period
The number of events to observe before recalculating model parameters. |
protected String |
snapshot_name
The name of the snapshot file to write, if write_snapshots ==
true. |
protected boolean |
write_snapshots
true iff this stage should write out snapshots of its
Model every time it recalculates its parameters. |
| Fields inherited from class ostore.oil.HMMStage |
|---|
accessor, class_tag, classifier, model, name, observed_type, QueueElementIF_class, QuickSerializable_class |
| Constructor Summary | |
|---|---|
HMMBuilder()
|
|
| Method Summary | |
|---|---|
void |
handleEvent(QueueElementIF elem)
Processes the monitored event stream and handles RebuildSignals. |
void |
init(ConfigDataIF config)
Initializes this HMMBuilder using the configuration
parameters. |
| Methods inherited from class ostore.oil.HMMStage |
|---|
destroy, handleEvents |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected int recalculation_period
RebuildSignal is received.
protected boolean write_snapshots
true iff this stage should write out snapshots of its
Model every time it recalculates its parameters.
protected String snapshot_name
write_snapshots ==
true. Otherwise this parameter is ignored.
protected boolean emit_deltas
true iff this Builder should publish
Deltas for its Model whenever the model
parameters are recalculated.
protected int num_observed
| Constructor Detail |
public HMMBuilder()
| Method Detail |
public void handleEvent(QueueElementIF elem)
throws UnknownEventException
RebuildSignals.
elem - Either an event to monitor or a
Signal.RebuildSignal.
UnknownEventException - if elem is neither of
the expected event types.
public void init(ConfigDataIF config)
throws Exception
HMMBuilder using the configuration
parameters.
init in interface EventHandlerIFinit in class HMMStageInvalidConfigFileException - if the
ConfigDataIF contains an invalid parameter or does not
contain a required field.
InvalidTypeException - if a parameter specifies a
Class or Field which does not implement
the proper java interface.
ExceptionHMMStage.init(seda.sandStorm.api.ConfigDataIF)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||