explorer
Class SpecAgent

java.lang.Object
  extended by alice.tucson.api.Agent
      extended by explorer.SpecAgent

public class SpecAgent
extends alice.tucson.api.Agent

The SpecAgent is a simple agent used to set up specification tuples and initial syncronization tuples on tuple centre.

Author:
andreamonaldini

Constructor Summary
SpecAgent(alice.tucson.api.AgentId arg0, SpaceGrid grid, java.io.FileInputStream specFile, int numberOfAdvancedExplorerAgents)
          Creates a new agent for tuple centre initialization
SpecAgent(alice.tucson.api.AgentId arg0, SpaceGrid grid, java.lang.String specFile, alice.tucson.api.TupleCentreId tc, int numberOfAdvancedExplorerAgents)
          Creates a new agent for tuple centre initialization
 
Method Summary
 
Methods inherited from class alice.tucson.api.Agent
spawn
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpecAgent

public SpecAgent(alice.tucson.api.AgentId arg0,
                 SpaceGrid grid,
                 java.io.FileInputStream specFile,
                 int numberOfAdvancedExplorerAgents)
          throws alice.tucson.api.TucsonException
Creates a new agent for tuple centre initialization

Parameters:
arg0 - The agent ID
grid - The virual space where agent works.
specFile - ReSpect specification file for tuple centre reactions
numberOfAdvancedExplorerAgents - Number of AdvancedExplorerAgent in the system
Throws:
alice.tucson.api.TucsonException

SpecAgent

public SpecAgent(alice.tucson.api.AgentId arg0,
                 SpaceGrid grid,
                 java.lang.String specFile,
                 alice.tucson.api.TupleCentreId tc,
                 int numberOfAdvancedExplorerAgents)
          throws alice.tucson.api.TucsonException
Creates a new agent for tuple centre initialization

Parameters:
arg0 - The agent ID
grid - The virual space where agent works.
specFile - ReSpect specification file for tuple centre reactions
tc - The tuple centre id
numberOfAdvancedExplorerAgents - Number of AdvancedExplorerAgent in the system
Throws:
alice.tucson.api.TucsonException