|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--ostore.oil.HMMStage
A superclass for stages which employ HMMs.
This class initializes a few useful Class objects,
and initializes an HMM and event stream filter.
Subclasses should call ModelStage.init at the
beginning of their own init method.
HMM| Nested Class Summary | |
|---|---|
static class |
HMMStage.InvalidTypeException
An exception thrown when a config file supplies the name of a class or field that does not satisfy type restrictions. |
static class |
HMMStage.UnsupportedConfigurationException
An exception thrown when a config file requests an operation (e.g. emit_predictions) that a particular Builder does not
provide. |
| Field Summary | |
|---|---|
protected Field |
accessor
The location of the observable field within the events watched. |
protected static String |
class_tag
|
protected Classifier |
classifier
|
protected HMM |
model
The learning model to use. |
protected String |
name
The name by which to refer to this stage. |
protected Class |
observed_type
The type of events to observe. |
protected static Class |
QueueElementIF_class
The Class object for the QueueElementIF
Interface. |
protected static Class |
QuickSerializable_class
The Class object for the QuickSerializable
Interface. |
| Constructor Summary | |
|---|---|
HMMStage()
|
|
| Method Summary | |
|---|---|
void |
destroy()
|
void |
handleEvents(QueueElementIF[] elemarr)
|
void |
init(ConfigDataIF config)
Performs stage initialization common to HMMBuilders and
HMMPredictor. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface seda.sandStorm.api.EventHandlerIF |
|---|
handleEvent |
| Field Detail |
protected static String class_tag
protected static Class QueueElementIF_class
Class object for the QueueElementIF
Interface.
protected static Class QuickSerializable_class
Class object for the QuickSerializable
Interface.
protected String name
StageIF.
protected HMM model
protected Class observed_type
protected Field accessor
HMM.
protected Classifier classifier
| Constructor Detail |
public HMMStage()
| Method Detail |
public void handleEvents(QueueElementIF[] elemarr)
throws EventHandlerException
handleEvents in interface EventHandlerIFEventHandlerException
public void init(ConfigDataIF config)
throws Exception
HMMBuilders and
HMMPredictor.
init in interface EventHandlerIFInvalidConfigFileException - if the
ConfigDataIF contains an invalid parameter or does not
contain a required field.
HMMStage.InvalidTypeException - if a parameter specifies a
Class or Field which does not implement
the proper java interface.
Exceptionpublic void destroy()
destroy in interface EventHandlerIF
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||