|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ostore.oil.HMMStage | +--ostore.oil.HMMPredictor
A stage which uses a Hidden Markov Model to predict the future of a
monitored event stream.
This class extends HMMStage
, adding support for
Predictor
-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 int |
history_size
The number of past events to consider when making predictions. |
protected int |
num_observed
The total number of observations so far. |
protected int |
prediction_horizon
The number of observations to look into the future |
protected int |
prediction_period
The number of events to observe before producing and emitting a new Prediction . |
Fields inherited from class ostore.oil.HMMStage |
---|
accessor, class_tag, classifier, model, name, observed_type, QueueElementIF_class, QuickSerializable_class |
Constructor Summary | |
---|---|
HMMPredictor()
|
Method Summary | |
---|---|
void |
handleEvent(QueueElementIF elem)
Processes the monitored event stream. |
void |
init(ConfigDataIF config)
Initializes this HMMPredictor 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 prediction_period
Prediction
.
protected int prediction_horizon
HMM.predict(int)
protected int history_size
protected int num_observed
Constructor Detail |
public HMMPredictor()
Method Detail |
public void handleEvent(QueueElementIF elem) throws UnknownEventException
UnknownEventException
- if elem is not of
the expected event types.
public void init(ConfigDataIF config) throws Exception
HMMPredictor
using the configuration
parameters.
init
in interface EventHandlerIF
init
in class HMMStage
InvalidConfigFileException
- 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.
Exception
HMMStage.init(seda.sandStorm.api.ConfigDataIF)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |