Uses of Class
api.Shared

Packages that use Shared
api   
client   
computer   
system   
tasks   
 

Uses of Shared in api
 

Methods in api with parameters of type Shared
abstract  boolean Shared.isNewerThan(Shared existingshared)
           
 Result TaskInterface.run(Shared shared)
           
abstract  Result Task.run(Shared shared)
          Empty function.
 void Task.setShared(Shared proposedShared)
          Sets the task's shared object, then update the computer with the new shared object
 void Computer.setShared(Shared proposedShared)
           
 void Computer.updateShared(Shared share)
           
 

Uses of Shared in client
 

Methods in client that return Shared
 Shared GUI_Client.getShared()
          Goes to the Space and requests its shared value.
 Shared Client2Space.getShared()
           
 

Methods in client with parameters of type Shared
 Result Client2Space.compute(Task task, java.lang.Object input, Shared shared)
           
 

Uses of Shared in computer
 

Methods in computer with parameters of type Shared
 void ComputerImpl.setShared(Shared proposedShared)
          Check the shared coming from the task if it is better than the current shared then pass it on to the space
 void ComputerImpl.updateShared(Shared proposedShared)
          The Space is telling the Computer that there is an update to the shared value, check it and store it
 

Uses of Shared in system
 

Methods in system that return Shared
 Shared Space.getShared()
          Gets the current shared value from the system.
 

Methods in system with parameters of type Shared
 Result Space.compute(Task task, java.lang.Object input, Shared shared)
          Takes in a task to be handled by the space.
 void Space.setShared(Shared proposedShared)
          Set the shared object on the Space and propagates this Shared object to all the registered computers
 void Computer2Space.setShared(Shared proposedShared)
           
 void ComputerProxy.updateShared(Shared shared)
          Pass the new shared object to the computer
 

Uses of Shared in tasks
 

Subclasses of Shared in tasks
 class EuclideanTspShared
           
 class SudokuShared
           
 

Methods in tasks with parameters of type Shared
 boolean SudokuShared.isNewerThan(Shared existingshared)
           
 boolean EuclideanTspShared.isNewerThan(Shared existingShared)
           
 Result SudokuTask.run(Shared shared)
          Finds the next cell in the grid that has not yet been set and spawns children tasks with the possible values set.
 Result EuclideanTspTask.run(Shared shared)
          Determines whether the size of the TSP is suitable for a single machine, or if it should be broken up into sub-tasks.
 Result EuclideanTspMinTask.run(Shared shared)
          Computes the minimum of all of the inputs it is given.