|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjade.core.Agent
gr.demokritos.iit.jinsect.distributed.ResultsAgent
public class ResultsAgent
An agent to manage the whole comparison process of summaries, that results into
evaluation. This is actually an agent implementation of the summary evaluation
process that can be found in package console
.
summaryEvaluator
,
Serialized FormNested Class Summary |
---|
Nested classes/interfaces inherited from class jade.core.Agent |
---|
jade.core.Agent.Interrupted |
Field Summary | |
---|---|
protected java.util.LinkedList |
ActiveAgents
|
protected int |
AgentUniqueIDLength
|
protected int |
AllRequests
|
protected java.lang.Integer |
CharDist
|
protected java.lang.Integer |
CharMax
|
protected java.lang.Integer |
CharMin
|
protected int |
CompletedRequests
|
protected java.util.ListIterator |
CurrentAgent
|
protected java.lang.String |
Do
|
protected java.util.LinkedList |
InitializedAgents
|
protected int |
MaxAgents
|
protected int |
MaxPendingRequests
|
protected double |
MigrationProbability
|
protected java.lang.String |
ModelDir
|
protected java.lang.String |
OutFile
|
protected int |
PendingRequests
|
protected java.io.PrintStream |
psOutputStream
|
protected boolean |
ShowProgress
|
protected boolean |
Silent
|
protected java.lang.String |
SummaryDir
|
protected java.lang.Integer |
WeightMethod
|
protected java.lang.Integer |
WordDist
|
protected java.lang.Integer |
WordMax
|
protected java.lang.Integer |
WordMin
|
Fields inherited from class jade.core.Agent |
---|
AP_ACTIVE, AP_DELETED, AP_IDLE, AP_INITIATED, AP_MAX, AP_MIN, AP_SUSPENDED, AP_WAITING, D_ACTIVE, D_MAX, D_MIN, D_RETIRED, D_SUSPENDED, D_UNKNOWN |
Constructor Summary | |
---|---|
ResultsAgent()
|
Method Summary | |
---|---|
void |
complete()
Completes the evaluation process, updating the dispatched agents of the event . |
protected java.lang.String |
createAgentID(int iLen)
Creates a unique agent ID with a given length. |
protected java.lang.String |
readFromFile(java.lang.String sFileName)
Reads a given file into a string . |
void |
setup()
Uses the agent command line arguments to initialize the evaluation process. |
void |
takeDown()
Shuts down the agent, with a debug message. |
Methods inherited from class jade.core.Agent |
---|
addBehaviour, afterClone, afterMove, beforeClone, beforeMove, blockingReceive, blockingReceive, blockingReceive, blockingReceive, changeStateTo, clean, doActivate, doClone, doDelete, doMove, doSuspend, doTimeOut, doWait, doWait, doWake, getAgentState, getAID, getAMS, getArguments, getContainerController, getContentManager, getCurQueueSize, getDefaultDF, getHap, getHelper, getLocalName, getName, getO2AObject, getProperty, getQueueSize, getState, here, join, notifyChangeBehaviourState, notifyRestarted, postMessage, putBack, putO2AObject, receive, receive, removeBehaviour, restartLater, restore, restoreBufferedState, run, send, setArguments, setEnabledO2ACommunication, setGenerateBehaviourEvents, setQueueSize, waitUntilStarted, write |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.String OutFile
protected java.lang.String SummaryDir
protected java.lang.String ModelDir
protected java.lang.String Do
protected java.io.PrintStream psOutputStream
protected boolean Silent
protected boolean ShowProgress
protected int PendingRequests
protected int CompletedRequests
protected int AllRequests
protected int AgentUniqueIDLength
protected int MaxPendingRequests
protected int MaxAgents
protected java.util.LinkedList ActiveAgents
protected java.util.LinkedList InitializedAgents
protected java.util.ListIterator CurrentAgent
protected double MigrationProbability
protected java.lang.Integer WordMin
protected java.lang.Integer WordMax
protected java.lang.Integer WordDist
protected java.lang.Integer CharMin
protected java.lang.Integer CharMax
protected java.lang.Integer CharDist
protected java.lang.Integer WeightMethod
Constructor Detail |
---|
public ResultsAgent()
Method Detail |
---|
public void setup()
summaryEvaluator
, with the exception
of migration probability (-migProb switch), that indicates the probability
of migration of calculating agents.
setup
in class jade.core.Agent
summaryEvaluator
public void takeDown()
takeDown
in class jade.core.Agent
protected java.lang.String readFromFile(java.lang.String sFileName)
sFileName
- The file to read.protected java.lang.String createAgentID(int iLen)
iLen
- The required length for the returned string.
public void complete()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |