teamSpace.structure
Class TeamSpace

java.lang.Object
  extended byteamSpace.structure.TeamSpace

public class TeamSpace
extends java.lang.Object

This class represents the Team Space and it serves as an interface to all of the important part of the Team Space


Constructor Summary
TeamSpace(TMST taskStructureTree, java.lang.String teamID, java.lang.String requester)
          The constructor instantiates the different parts of the Team Space.
 
Method Summary
 boolean addProcessedActions(java.util.ArrayList actions)
          The method adds processed actions to the Result Library
 boolean addProcessedPSMs(java.util.ArrayList psms)
          The method adds composed PSMs to the Result Library
 java.util.ArrayList getActionsReadyToExecute()
          The method returns the actions that are ready to be executed.
 FileWriter getFileWriter()
          This method returns the FileWriter that handles printing the output of the problem solving steps to a file.
 java.lang.String getInitalInput()
          The method returns the initial input
 java.lang.String getInitialProblem()
          The method returns the initial problem
 java.lang.String getProblemSolution()
          The method returns the solution to the initial problem
 java.util.ArrayList getProcessingActions()
          The method returns the processing actions - the actions to be executed in the current state of the problem solving process
 java.util.ArrayList getProcessingPSMs()
          The method returns the processing PSMs - the PSMs to be composed in the current state of the problem solving process
 java.util.ArrayList getPSMsReadyToCompose()
          The method returns the PSMs that are ready to be composed.
 java.lang.String getTeamID()
          The method returns the teamID
 boolean initialize()
          The method initializes the Team Space and it's parts.
 void printCurrentState()
          The method prints the current state of the problem solving in the Team Space.
 void setProcessingActions(java.util.ArrayList actions)
          This method sets the actions that are going to be processed.
 void setProcessingPSMs(java.util.ArrayList psms)
          This method sets the psms that are going to be composed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TeamSpace

public TeamSpace(TMST taskStructureTree,
                 java.lang.String teamID,
                 java.lang.String requester)
The constructor instantiates the different parts of the Team Space.

Parameters:
taskStructureTree - A reference to the TMST from the kept by the CoPSTaskResponsible
teamID - The ID of the Team Space
requester - The requester (CoPSTaskResponsible) of the Team Space
Method Detail

initialize

public boolean initialize()
The method initializes the Team Space and it's parts.

Returns:
Returns true if everything went ok and false if not

getFileWriter

public FileWriter getFileWriter()
This method returns the FileWriter that handles printing the output of the problem solving steps to a file.

Returns:
The file writer - reference

getActionsReadyToExecute

public java.util.ArrayList getActionsReadyToExecute()
The method returns the actions that are ready to be executed.

Returns:
The actions in an ArrayList

getPSMsReadyToCompose

public java.util.ArrayList getPSMsReadyToCompose()
The method returns the PSMs that are ready to be composed.

Returns:
The PSMs in an ArrayList

addProcessedActions

public boolean addProcessedActions(java.util.ArrayList actions)
The method adds processed actions to the Result Library

Parameters:
actions - The actions to be added
Returns:
Returns true if everything went ok and false if not

addProcessedPSMs

public boolean addProcessedPSMs(java.util.ArrayList psms)
The method adds composed PSMs to the Result Library

Parameters:
psms - The PSMs to be added
Returns:
Returns true if everything went ok and false if not

getProblemSolution

public java.lang.String getProblemSolution()
The method returns the solution to the initial problem

Returns:
The solution as a String

getInitialProblem

public java.lang.String getInitialProblem()
The method returns the initial problem

Returns:
The initial problem as a String

getTeamID

public java.lang.String getTeamID()
The method returns the teamID

Returns:
The teamID

getInitalInput

public java.lang.String getInitalInput()
The method returns the initial input

Returns:
The initial input as a String

getProcessingActions

public java.util.ArrayList getProcessingActions()
The method returns the processing actions - the actions to be executed in the current state of the problem solving process

Returns:
The actions in a list of TSAction objects

getProcessingPSMs

public java.util.ArrayList getProcessingPSMs()
The method returns the processing PSMs - the PSMs to be composed in the current state of the problem solving process

Returns:
The PSMs in a list of TSPSM objects

setProcessingActions

public void setProcessingActions(java.util.ArrayList actions)
This method sets the actions that are going to be processed.

Parameters:
actions - - A list of actions

setProcessingPSMs

public void setProcessingPSMs(java.util.ArrayList psms)
This method sets the psms that are going to be composed.

Parameters:
psms - - A list of psms

printCurrentState

public void printCurrentState()
The method prints the current state of the problem solving in the Team Space.