|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectAgent
teamSpace.agent.TeamSpaceAgent
This class represents the agent that controls the Team Space
Constructor Summary | |
TeamSpaceAgent()
|
Method Summary | |
java.util.ArrayList |
getActionsReadyToExecute(java.lang.String teamID)
The method returns the actions that are ready to be executed. |
FileWriter |
getFileWriter(java.lang.String teamID)
This method returns the FileWriter that handles printing the output of the problem solving steps to a file. |
java.lang.String |
getInitialInput(java.lang.String teamID)
The method returns the initial input |
java.lang.String |
getInitialProblem(java.lang.String teamID)
The method returns the initial problem |
java.lang.String |
getProblemSolution(java.lang.String teamID)
The method returns the solution to the initial problem |
java.util.ArrayList |
getProcessingActions(java.lang.String teamID)
The method returns the processing actions - the actions to be executed in the current state of the problem solving process |
java.util.ArrayList |
getProcessingPSMs(java.lang.String teamID)
The method returns the processing PSMs - the PSMs to be composed in the current state of the problem solving process |
java.util.ArrayList |
getPSMsReadyToCompose(java.lang.String teamID)
The method returns the PSMs that are ready to be composed. |
TeamSpace |
getTeamSpace(java.lang.String teamID)
This method returns the TeamSpace with the specified teamID |
boolean |
initializeTeamSpace(TMST tmst,
java.lang.String teamID,
java.lang.String requester)
The method initializes the Team Space. |
void |
printCurrentState(java.lang.String teamID)
The method prints the current state of the problem solving in the Team Space. |
boolean |
setProcessedActions(java.util.ArrayList actions,
java.lang.String teamID)
The method adds a list of actions to the processed actions list |
boolean |
setProcessedPSMs(java.util.ArrayList psms,
java.lang.String teamID)
The method adds a list of psms to the processed psms list |
void |
setProcessingActions(java.util.ArrayList actions,
java.lang.String teamID)
This method sets the actions that are going to be processed. |
void |
setProcessingPSMs(java.util.ArrayList psms,
java.lang.String teamID)
This method sets the psms that are going to be composed. |
ServiceDescription |
setServiceDescription()
The method returns the service description of the agent. |
protected void |
setup()
The method sets up the agent's behaviours. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TeamSpaceAgent()
Method Detail |
protected void setup()
public java.util.ArrayList getActionsReadyToExecute(java.lang.String teamID)
teamID
- The ID of the problem solving team using the Team Space
ArrayList
public java.util.ArrayList getPSMsReadyToCompose(java.lang.String teamID)
teamID
- The ID of the problem solving team using the Team Space
ArrayList
public java.util.ArrayList getProcessingActions(java.lang.String teamID)
teamID
- The ID of the problem solving team using the Team Space
TSAction
objectspublic java.util.ArrayList getProcessingPSMs(java.lang.String teamID)
teamID
- The ID of the problem solving team using the Team Space
TSPSM
objectspublic boolean initializeTeamSpace(TMST tmst, java.lang.String teamID, java.lang.String requester)
tmst
- The task structure treerequester
- The name-adress of the requester of the Team Spacepublic boolean setProcessedActions(java.util.ArrayList actions, java.lang.String teamID)
actions
- - The actions that are redily processedteamID
- The ID of the problem solving team using the Team Space
true
if the processed actions are successfully added to the result-library and false
if notpublic void setProcessingActions(java.util.ArrayList actions, java.lang.String teamID)
actions
- - A list of actionsteamID
- The ID of the problem solving team using the Team Spacepublic void setProcessingPSMs(java.util.ArrayList psms, java.lang.String teamID)
teamID
- The ID of the problem solving team using the Team Spacepsms
- - A list of psmspublic boolean setProcessedPSMs(java.util.ArrayList psms, java.lang.String teamID)
psms
- - The list of psms that are processedteamID
- The ID of the problem solving team using the Team Space
public ServiceDescription setServiceDescription()
public void printCurrentState(java.lang.String teamID)
teamID
- The ID of the problem solving team using the Team Spacepublic java.lang.String getProblemSolution(java.lang.String teamID)
teamID
- The ID of the problem solving team using the Team Space
String
public java.lang.String getInitialProblem(java.lang.String teamID)
teamID
- The ID of the problem solving team using the Team Space
String
public java.lang.String getInitialInput(java.lang.String teamID)
teamID
- The ID of the problem solving team using the Team Space
String
public FileWriter getFileWriter(java.lang.String teamID)
teamID
- The ID of the problem solving team using the Team Space. Each TR has it's own FileWriter, meaning each problem has it's own
filewriter, meaning each Team Space has it's own FileWriter.
public TeamSpace getTeamSpace(java.lang.String teamID)
teamID
- The teamID
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |