ostore.oil
Class HMMPredictor
java.lang.Object
|
+--ostore.oil.HMMStage
|
+--ostore.oil.HMMPredictor
- All Implemented Interfaces:
- EventHandlerIF
- public class HMMPredictor
- extends HMMStage
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.
- Version:
- $Id: HMMPredictor.java,v 1.6 2001/11/30 18:26:18 geels Exp $
- Author:
- Dennis Geels
- See Also:
HMM
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 . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
prediction_period
protected int prediction_period
- The number of events to observe before producing and emitting a new
Prediction
.
prediction_horizon
protected int prediction_horizon
- The number of observations to look into the future
- See Also:
HMM.predict(int)
history_size
protected int history_size
- The number of past events to consider when making predictions.
Effectively the amount of history to retain between predictions.
num_observed
protected int num_observed
- The total number of observations so far.
HMMPredictor
public HMMPredictor()
handleEvent
public void handleEvent(QueueElementIF elem)
throws UnknownEventException
- Processes the monitored event stream.
- Throws:
UnknownEventException
- if elem is not of
the expected event types.
init
public void init(ConfigDataIF config)
throws Exception
- Initializes this
HMMPredictor
using the configuration
parameters.
- Overrides:
init
in class HMMStage
- Throws:
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.- See Also:
HMMStage.init(mdw.sandStorm.api.ConfigDataIF)