public class Scheduler
extends java.lang.Object
implements java.io.Serializable
| Constructor and Description |
|---|
Scheduler()
Instantiates a new scheduler.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAlteredContext(Context context)
Adds the altered context.
|
void |
addScheduledItem(ScheduledItem item)
Adds the scheduled item.
|
void |
changeOracleConection()
Change oracle conection.
|
double |
getAction()
Gets the action.
|
java.util.ArrayList<Agent> |
getAgents()
Gets the agents.
|
java.util.ArrayList<Context> |
getAlteredContexts()
Gets the altered contexts.
|
java.util.ArrayList<Agent> |
getContexts()
Gets the contexts.
|
java.util.ArrayList<Context> |
getContextsAsContext()
Gets the contexts as context.
|
Head |
getHeadAgent()
Gets the head agent.
|
int |
getNextID()
Gets the next ID.
|
java.util.ArrayList<Agent> |
getOutputs()
Gets the outputs.
|
Percept |
getPerceptByName(java.lang.String name)
Gets the percept by name.
|
int |
getTick()
Gets the tick.
|
java.util.ArrayList<Percept> |
getVariables()
Gets the variables.
|
MainPanel |
getView()
Gets the view.
|
World |
getWorld()
Gets the world.
|
boolean |
isRunning()
Checks if is running.
|
boolean |
isUseOracle()
Checks if is use oracle.
|
boolean |
isWaitForGUIUpdate()
Checks if is wait for GUI update.
|
void |
killAgent(Agent a)
Kill agent.
|
void |
learn()
Learn.
|
void |
playOneStep()
Play one step.
|
void |
registerAgent(Agent a)
Register agent.
|
void |
removeValidContextFromList(Context agent)
Removes the valid context from list.
|
void |
serialize()
Serialize.
|
void |
setAgents(java.util.ArrayList<Agent> agents)
Sets the agents.
|
void |
setAlteredContexts(java.util.ArrayList<Context> alteredContexts)
Sets the altered contexts.
|
void |
setContexts(java.util.ArrayList<Agent> contexts)
Sets the contexts.
|
void |
setNextID(int nextID)
Sets the next ID.
|
void |
setOutputs(java.util.ArrayList<Agent> outputs)
Sets the outputs.
|
void |
setRunning(boolean running)
Sets the running.
|
void |
setTick(int tick)
Sets the tick.
|
void |
setVariables(java.util.ArrayList<Percept> variables)
Sets the variables.
|
void |
setView(MainPanel view)
Sets the view.
|
void |
setWaitForGUIUpdate(boolean waitForGUIUpdate)
Sets the wait for GUI update.
|
void |
setWorld(World world)
Sets the world.
|
void |
start(boolean running)
Start.
|
public void registerAgent(Agent a)
a - the apublic void start(boolean running)
running - the runningpublic void removeValidContextFromList(Context agent)
agent - the agentpublic void learn()
public void killAgent(Agent a)
a - the apublic java.util.ArrayList<Agent> getAgents()
public void setAgents(java.util.ArrayList<Agent> agents)
agents - the new agentspublic boolean isRunning()
public void setRunning(boolean running)
running - the new runningpublic int getTick()
public void setTick(int tick)
tick - the new tickpublic int getNextID()
public void setNextID(int nextID)
nextID - the new next IDpublic MainPanel getView()
public void setView(MainPanel view)
view - the new viewpublic boolean isWaitForGUIUpdate()
public void setWaitForGUIUpdate(boolean waitForGUIUpdate)
waitForGUIUpdate - the new wait for GUI updatepublic void playOneStep()
public World getWorld()
public void setWorld(World world)
world - the new worldpublic void addScheduledItem(ScheduledItem item)
item - the itempublic void addAlteredContext(Context context)
context - the contextpublic java.util.ArrayList<Context> getAlteredContexts()
public void setAlteredContexts(java.util.ArrayList<Context> alteredContexts)
alteredContexts - the new altered contextspublic void changeOracleConection()
public void serialize()
public java.util.ArrayList<Agent> getOutputs()
public void setOutputs(java.util.ArrayList<Agent> outputs)
outputs - the new outputspublic boolean isUseOracle()
public double getAction()
public Head getHeadAgent()
public Percept getPerceptByName(java.lang.String name)
name - the namepublic java.util.ArrayList<Percept> getVariables()
public void setVariables(java.util.ArrayList<Percept> variables)
variables - the new variablespublic java.util.ArrayList<Agent> getContexts()
public java.util.ArrayList<Context> getContextsAsContext()
public void setContexts(java.util.ArrayList<Agent> contexts)
contexts - the new contexts