ABLE, Version 1.1b

com.ibm.able.agents
Class AbleNeuralClusteringAgent

java.lang.Object
  |
  +--java.rmi.server.RemoteObject
        |
        +--java.rmi.server.RemoteServer
              |
              +--java.rmi.server.UnicastRemoteObject
                    |
                    +--com.ibm.able.AbleObject
                          |
                          +--com.ibm.able.agents.AbleDefaultAgent
                                |
                                +--com.ibm.able.agents.AbleNeuralClusteringAgent

public class AbleNeuralClusteringAgent
extends AbleDefaultAgent
implements java.io.Serializable

This class implements clustering using a self-organizing map

Version:
$Revision: 1.13 $, $Date: 2000/04/24 13:47:18 $
See Also:
Serialized Form

Field Summary
protected  boolean autoTrain
           
protected  int bufferSize
           
protected  double confidence
           
protected  java.lang.String dataFileName
           
protected  AbleBean filt1
           
protected  AbleImport imp1
           
protected  AbleImport imp2
           
protected  double[] inNum
           
protected  java.lang.String[] inSym
           
protected  int maxNumPasses
           
protected  AbleSelfOrganizingMap net
           
protected  int numCols
           
protected  int numPasses
           
protected  int numRows
           
protected  double[] outNum
           
protected  java.lang.String[] outSym
           
protected  java.lang.String testDataFileName
           
protected  boolean training
           
protected  int winner
           
 
Fields inherited from class com.ibm.able.agents.AbleDefaultAgent
activeDataSource, agentAddr, agentHost, agentName, beans, effectors, eventConnections, numEpochs, processList, processListOK, sensors
 
Fields inherited from class com.ibm.able.AbleObject
changed, chgSupport, comment, dataFlowEnabled, destBufferConnections, eventQueue, fileName, inputBuffer, listeners, logger, name, outputBuffer, parent, propertyConnectionMgr, sourceBufferConnections, state, stateChgSupport
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
AbleNeuralClusteringAgent()
           
AbleNeuralClusteringAgent(java.lang.String aName)
           
 
Method Summary
static java.lang.String Copyright()
          Determine the copyright of this class.
 boolean getAutoTrain()
           
 int getBufferSize()
           
 double getConfidence()
           
 java.lang.String getDataFileName()
           
 int getMaxNumPasses()
           
 int getMode()
          get the internal config for either NNTRAIN = training from an external data file NNTEST = testing (with network locked) from an external data file or NNRUN = running (with network locked) from data placed in the input buffer
 java.lang.String getNetArchitecture()
          Return the number of input, hidden, and output units.
 AbleSelfOrganizingMap getNetwork()
           
 int getNumCols()
           
 int getNumPasses()
           
 int getNumRows()
           
 java.lang.String getTestDataFileName()
           
 double getWinner()
           
 void init()
          generate a complete neural Clustering agent bean
 boolean isTraining()
          Check to see if the network is in the process of training.
 void processTimerEvent()
          This method is called from the asynch thread It is only used to automated training of the neural agent
 void reset()
          Reset each bean in the agent.
 void setAutoTrain(boolean state)
           
 void setBufferSize(int size)
           
 void setDataFileName(java.lang.String aFileName)
           
 void setMaxNumPasses(int num)
           
 void setMode(int mode)
          set the internal config for either NNTRAIN = training from an external data file NNTEST = testing (with network locked) from an external data file or NNRUN = running (with network locked) from data placed in the input buffer
 void setNumCols(int num)
           
 void setNumPasses(int num)
           
 void setNumRows(int num)
           
 void setTestDataFileName(java.lang.String aFileName)
           
 void startTraining()
          start automatically training the model from the external data
 void stopTraining()
          stop automatically training the model from the external data
 void train()
          automatically train the model from the external data stop and lock the network when we are done
 
Methods inherited from class com.ibm.able.agents.AbleDefaultAgent
addBean, addEffector, addEventConnection, addSensor, buildProcessList, clsNm, containsBean, containsBean, debugTrace, getAgentAddr, getAgentHost, getAgentName, getBean, getBeans, getDataSource, getEffectors, getNumEpochs, getProcessList, getSensors, handleAbleEvent, init, invokeEffector, invokeSensor, isActiveDataSource, main, process, propertyChange, quitAll, quitEnabledEventProcessing, removeAllBeans, removeBean, removeEffector, removeEventConnection, removeSensor, resumeAll, rmiRebind, rmiUnbind, setActiveDataSource, setEffectors, setProcessList, setSensors, suspendAll, toString
 
Methods inherited from class com.ibm.able.AbleObject
addAbleEventListener, addDestBufferConnection, addPropertyChangeListener, addPropertyConnection, addSourceBufferConnection, addStateChangeListener, dataChanged, firePropertyChange, flushAbleEventQueue, getAbleEventListeners, getAbleEventProcessingEnabled, getAbleEventQueueSize, getBuffer, getBufferContents, getComment, getDestBufferConnections, getFileName, getInputBuffer, getInputBuffer, getInputBufferAsStringArray, getInputBufferContents, getLogger, getName, getOutputBuffer, getOutputBuffer, getOutputBufferAsStringArray, getOutputBufferContents, getParent, getPropertyConnectionManager, getSleepTime, getSourceBufferConnections, getState, hasInputBuffer, hasOutputBuffer, isAbleEventPostingEnabled, isAbleEventProcessingEnabled, isChanged, isConnectable, isDataFlowEnabled, isTimerEventProcessingEnabled, notifyAbleEventListeners, processAbleEvent, processBufferConnections, processNoEventProcessingEnabledSituation, removeAbleEventListener, removeAllAbleEventListeners, removeAllBufferConnections, removeAllPropertyConnections, removeDestBufferConnection, removePropertyChangeListener, removePropertyConnection, removeSourceBufferConnection, removeStateChangeListener, restartEnabledEventProcessing, restoreFromFile, restoreFromFile, restoreFromSerializedFile, restoreFromStream, resumeEnabledEventProcessing, saveToFile, saveToFile, setAbleEventProcessingEnabled, setChanged, setComment, setDataFlowEnabled, setFileName, setInputBuffer, setInputBuffer, setLogger, setName, setOutputBuffer, setOutputBuffer, setParent, setSleepTime, setState, setTimerEventProcessingEnabled, sourceConnectionsOK, startEnabledEventProcessing, suspendEnabledEventProcessing
 
Methods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, unexportObject
 
Methods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
 
Methods inherited from class java.rmi.server.RemoteObject
equals, getRef, hashCode, toStub
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

dataFileName

protected java.lang.String dataFileName

testDataFileName

protected java.lang.String testDataFileName

bufferSize

protected int bufferSize

maxNumPasses

protected int maxNumPasses

confidence

protected double confidence

numRows

protected int numRows

numCols

protected int numCols

imp1

protected AbleImport imp1

imp2

protected AbleImport imp2

filt1

protected AbleBean filt1

net

protected AbleSelfOrganizingMap net

winner

protected int winner

numPasses

protected int numPasses

training

protected boolean training

autoTrain

protected boolean autoTrain

inNum

protected double[] inNum

outNum

protected double[] outNum

inSym

protected java.lang.String[] inSym

outSym

protected java.lang.String[] outSym
Constructor Detail

AbleNeuralClusteringAgent

public AbleNeuralClusteringAgent()
                          throws java.rmi.RemoteException

AbleNeuralClusteringAgent

public AbleNeuralClusteringAgent(java.lang.String aName)
                          throws java.rmi.RemoteException
Method Detail

init

public void init()
          throws java.rmi.RemoteException
generate a complete neural Clustering agent bean
Overrides:
init in class AbleDefaultAgent

processTimerEvent

public void processTimerEvent()
                       throws java.rmi.RemoteException
This method is called from the asynch thread It is only used to automated training of the neural agent
Overrides:
processTimerEvent in class AbleObject

setDataFileName

public void setDataFileName(java.lang.String aFileName)

getDataFileName

public java.lang.String getDataFileName()

setTestDataFileName

public void setTestDataFileName(java.lang.String aFileName)

getTestDataFileName

public java.lang.String getTestDataFileName()

setBufferSize

public void setBufferSize(int size)

getBufferSize

public int getBufferSize()

getNetwork

public AbleSelfOrganizingMap getNetwork()

getNumPasses

public int getNumPasses()

setNumPasses

public void setNumPasses(int num)

setMaxNumPasses

public void setMaxNumPasses(int num)

getMaxNumPasses

public int getMaxNumPasses()

getConfidence

public double getConfidence()

getWinner

public double getWinner()

setNumRows

public void setNumRows(int num)

getNumRows

public int getNumRows()

setNumCols

public void setNumCols(int num)

getNumCols

public int getNumCols()

setAutoTrain

public void setAutoTrain(boolean state)

getAutoTrain

public boolean getAutoTrain()

setMode

public void setMode(int mode)
             throws java.rmi.RemoteException
set the internal config for either NNTRAIN = training from an external data file NNTEST = testing (with network locked) from an external data file or NNRUN = running (with network locked) from data placed in the input buffer

getMode

public int getMode()
            throws java.rmi.RemoteException
get the internal config for either NNTRAIN = training from an external data file NNTEST = testing (with network locked) from an external data file or NNRUN = running (with network locked) from data placed in the input buffer

getNetArchitecture

public java.lang.String getNetArchitecture()
                                    throws java.rmi.RemoteException
Return the number of input, hidden, and output units.

isTraining

public boolean isTraining()
                   throws java.rmi.RemoteException
Check to see if the network is in the process of training.

train

public void train()
           throws java.rmi.RemoteException
automatically train the model from the external data stop and lock the network when we are done

startTraining

public void startTraining()
                   throws java.rmi.RemoteException
start automatically training the model from the external data

stopTraining

public void stopTraining()
                  throws java.rmi.RemoteException
stop automatically training the model from the external data

reset

public void reset()
           throws java.rmi.RemoteException
Reset each bean in the agent. Restore training settings to default values.
Overrides:
reset in class AbleDefaultAgent

Copyright

public static java.lang.String Copyright()
Determine the copyright of this class.
Returns:
A String containing this class's copyright statement.

ABLE, Version 1.1b

ABLE: Produced by Joe, Don, and Jeff who say, 'Thanks for your support.'