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.9 2002/07/22 20:54:53 srhea Exp $
Author:
Dennis Geels
See Also:
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

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.

Constructor Detail

HMMPredictor

public HMMPredictor()
Method Detail

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.

Specified by:
init in interface EventHandlerIF
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.
Exception
See Also:
HMMStage.init(seda.sandStorm.api.ConfigDataIF)