|
ABLE 2.3.0 07/13/2005 14:21:00 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectcom.ibm.able.AbleObject
com.ibm.able.AbleDefaultAgent
com.ibm.able.AbleRemoteDefaultAgent
com.ibm.able.platform.AblePlatformDefaultAgent
com.ibm.able.beans.knn.JasNaiveBayesDistributedAgent
This class defines a test for the AbleJasDefaultAgent object.
| Field Summary | |
|---|---|
static java.lang.String |
defaultName
Value assigned to name by default. |
| Fields inherited from class com.ibm.able.AbleRemoteDefaultAgent |
|---|
agentAddr, agentHost, agentName, myRemoteStub |
| Fields inherited from class com.ibm.able.AbleDefaultAgent |
|---|
activeDataSource, eventConnections, myBeans, numEpochs, processList, processListOK, userDefinedFunctions |
| Fields inherited from class com.ibm.able.AbleObject |
|---|
changed, chgSupport, comment, dataFlowEnabled, destBufferConnections, eventQueue, fileName, inputBuffer, listeners, logger, name, outputBuffer, parent, properties, propertyConnectionMgr, sourceBufferConnections, state, stateChgSupport, trace |
| Constructor Summary | |
|---|---|
JasNaiveBayesDistributedAgent()
Constructor for AbleNaiveBayesClassifierAgent |
|
JasNaiveBayesDistributedAgent(java.lang.String theName)
Constructor for AbleKnnClassifierAgent |
|
| Method Summary | |
|---|---|
protected void |
debugTrace(java.lang.String theMessage)
Log a trace message. |
int |
getBufferSize()
Get the buffer size |
AbleNaiveBayesDistributed |
getNaiveBayesBean()
Get the NaiveBayes bean |
AbleFilter |
getNaiveBayesFil1()
Get the filter 1 bean |
AbleFilter |
getNaiveBayesFil2()
Get the filter 2 bean |
AbleImport |
getNaiveBayesImp1()
Get the import 1 bean |
int |
getNumAttributes()
Get the number of attributes |
int |
getNumClasses()
Get the number of classes |
long |
getNumRecords()
Get the number of records |
java.lang.String |
getTrainDataFileName()
Get the name of the training data file |
void |
handleAbleEvent(AbleEvent theAbleEvent)
Handle an Able event. |
void |
init()
Generate a naive bayes Classifier agent bean. |
void |
reset()
Reset each bean created when the agent was initialized. |
void |
sendTo(javax.agent.Locator theDestinationLocator,
javax.agent.AgentName theDestinationAgentName,
java.lang.Object theMessage)
Main method for testing |
void |
setBufferSize(int size)
Set the buffer size |
protected void |
setDefaults()
Set default values for parameters |
void |
setTrainDataFileName(java.lang.String aFileName)
Set the name of the training data file |
| Methods inherited from class com.ibm.able.AbleRemoteDefaultAgent |
|---|
getAgentAddr, getAgentHost, getAgentName, rmiRebind, rmiUnbind |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.ibm.able.AbleRemoteAgent |
|---|
addEventConnection, getAgentAddr, getAgentHost, getAgentName, getDataSource, isActiveDataSource, removeEventConnection, setActiveDataSource |
| Methods inherited from interface com.ibm.able.AbleRemoteBean |
|---|
getName, getProperties, getProperty, getState, init, process, process, quitAll, removeProperty, resumeAll, setProperties, setProperty, suspendAll |
| Methods inherited from interface com.ibm.able.AbleEventListenerRemoteManager |
|---|
addAbleEventListener, notifyAbleEventListeners, removeAbleEventListener |
| Methods inherited from interface com.ibm.able.AbleBeanRemoteContainer |
|---|
addBean, containsBean, containsBean, getBean, getBeans, removeAllBeans, removeBean, removeBean |
| Methods inherited from interface com.ibm.able.AbleUserDefinedFunctionRemoteManager |
|---|
addUserDefinedFunction, containsUserDefinedFunction, getUserDefinedFunction, getUserDefinedFunctions, invokeUserDefinedFunction, removeUserDefinedFunction, setUserDefinedFunctions |
| Methods inherited from interface javax.agent.service.transport.MessageListener |
|---|
equals, hashCode |
| Methods inherited from interface com.ibm.able.AbleBean |
|---|
getComment, getLogger, getName, getParent, getProperties, getProperty, getState, getTraceLogger, isChanged, removeProperty, setChanged, setComment, setLogger, setName, setParent, setProperties, setProperty, setState, setTraceLogger |
| Methods inherited from interface com.ibm.able.AbleEventListenerManager |
|---|
addAbleEventListener, dataChanged, getAbleEventListeners, notifyAbleEventListeners, removeAbleEventListener |
| Methods inherited from interface com.ibm.able.AbleEventQueueProcessor |
|---|
processAbleEvent, processNoEventProcessingEnabledSituation, processTimerEvent |
| Methods inherited from interface com.ibm.able.AblePropertyChangeManager |
|---|
addPropertyChangeListener, addPropertyConnection, getPropertyChangeListeners, getPropertyConnectionManager, removeAllPropertyConnections, removePropertyChangeListener, removePropertyConnection |
| Methods inherited from interface com.ibm.able.AbleSerializable |
|---|
getFileName, restoreFromFile, restoreFromFile, saveToFile, saveToFile, setFileName |
| Methods inherited from interface com.ibm.able.AbleBeanContainer |
|---|
getName |
| Field Detail |
public static final java.lang.String defaultName
| Constructor Detail |
public JasNaiveBayesDistributedAgent()
throws java.rmi.RemoteException,
AbleException
public JasNaiveBayesDistributedAgent(java.lang.String theName)
throws java.rmi.RemoteException,
AbleException
| Method Detail |
protected void setDefaults()
throws AbleException
AbleException
public void init()
throws AbleException
init in interface AbleRemoteBeaninit in class AblePlatformDefaultAgentAbleException - On any error.
public void reset()
throws AbleException
reset in interface AbleRemoteBeanreset in class AblePlatformDefaultAgentAbleException - On any error.
public void handleAbleEvent(AbleEvent theAbleEvent)
throws AbleException
In this implementation, special processing occurs for EOF on the active data source. All other events are passed up to the superclass (AbleObject) for processing.
handleAbleEvent in interface AbleRemoteEventListenerhandleAbleEvent in class AbleDefaultAgenttheAbleEvent - The event to handle.
AbleException - If an error occurs.
public void setTrainDataFileName(java.lang.String aFileName)
throws AbleException
AbleExceptionpublic java.lang.String getTrainDataFileName()
public void setBufferSize(int size)
public int getBufferSize()
public AbleNaiveBayesDistributed getNaiveBayesBean()
public AbleImport getNaiveBayesImp1()
public AbleFilter getNaiveBayesFil1()
public AbleFilter getNaiveBayesFil2()
public long getNumRecords()
public int getNumClasses()
public int getNumAttributes()
public void sendTo(javax.agent.Locator theDestinationLocator,
javax.agent.AgentName theDestinationAgentName,
java.lang.Object theMessage)
throws AbleException
sendTo in interface JasNaiveBayesDistributedAgentIFAbleExceptionprotected void debugTrace(java.lang.String theMessage)
debugTrace in class AbleDefaultAgenttheMessage - A String containing text to be traced.
|
ABLE 2.3.0 07/13/2005 14:21:00 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||