public class World
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
int |
testValue
The test value.
|
| Constructor and Description |
|---|
World(Scheduler scheduler,
java.io.File systemFile,
BlackBox blackbox)
Instantiates a new world.
|
| Modifier and Type | Method and Description |
|---|---|
LocalModelAgent |
buildLocalModel(Context context)
Builds the local model.
|
void |
changeAgentNumber(int x,
java.lang.String cl)
Change agent number.
|
void |
changeNCSNumber(int x,
NCS ncs)
Change NCS number.
|
void |
changeOracleConnection()
Change oracle connection.
|
void |
destroy(java.lang.Class<Context> cl)
Destroy.
|
void |
exportAsPicture(int pasX,
double startX,
double endX,
Percept pX,
int pasY,
double startY,
double endY,
Percept pY,
double minTol,
double maxTol)
Export as picture.
|
java.util.HashMap<java.lang.String,SystemAgent> |
getAgents()
Gets the agents.
|
java.util.ArrayList<? extends Agent> |
getAllAgentInstanceOf(java.lang.Class<? extends Agent> cl)
Gets the all agent instance of.
|
java.util.HashMap<NCS,java.lang.Integer> |
getAllNCS()
Gets the all NCS.
|
java.util.ArrayList<Percept> |
getAllPercept()
Gets the all percept.
|
AMOEBA |
getAmoeba()
Gets the amoeba.
|
double |
getAVT_acceleration()
Gets the AV T acceleration.
|
double |
getAVT_deceleration()
Gets the AV T deceleration.
|
double |
getAVT_percentAtStart()
Gets the AV T percent at start.
|
BlackBox |
getBlackbox()
Gets the blackbox.
|
java.io.File |
getFileToSerialize()
Gets the file to serialize.
|
static <T> java.util.ArrayList<T> |
getIntersection(java.util.ArrayList<java.util.ArrayList<T>> list)
Gets the intersection.
|
TypeLocalModel |
getLocalModel()
Gets the local model.
|
java.util.HashMap<java.lang.String,java.lang.Integer> |
getNumberOfAgents()
Gets the number of agents.
|
java.util.HashMap<NCS,java.lang.Integer> |
getNumberOfNCS()
Gets the number of NCS.
|
Scheduler |
getScheduler()
Gets the scheduler.
|
java.util.ArrayList<Agent> |
getSelectableContext()
Gets the selectable context.
|
StudiedSystem |
getStudiedSystem()
Gets the studied system.
|
java.util.HashMap<NCS,java.lang.Integer> |
getThisLoopNCS()
Gets the this loop NCS.
|
boolean |
isStartSerialization()
Checks if is start serialization.
|
void |
kill(Agent agent)
Kill.
|
void |
manageWorld()
Manage world.
|
void |
raiseNCS(NCS ncs)
Raise NCS.
|
void |
readRessourceFile(java.io.File systemFile)
Read ressource file.
|
void |
setAgents(java.util.HashMap<java.lang.String,SystemAgent> agents)
Sets the agents.
|
void |
setAllNCS(java.util.HashMap<NCS,java.lang.Integer> allNCS)
Sets the all NCS.
|
void |
setAmoeba(AMOEBA amoeba)
Sets the amoeba.
|
void |
setAVT_acceleration(double aVT_acceleration)
Sets the AV T acceleration.
|
void |
setAVT_deceleration(double aVT_deceleration)
Sets the AV T deceleration.
|
void |
setAVT_percentAtStart(double aVT_percentAtStart)
Sets the AV T percent at start.
|
void |
setBlackbox(BlackBox blackbox)
Sets the blackbox.
|
void |
setBlackBox(BlackBox blackbox)
Sets the black box.
|
void |
setLocalModel(TypeLocalModel localModel)
Define the kind of local model used by newly created Context Agent.
|
void |
setNumberOfAgents(java.util.HashMap<java.lang.String,java.lang.Integer> numberOfAgents)
Sets the number of agents.
|
void |
setNumberOfNCS(java.util.HashMap<NCS,java.lang.Integer> numberOfNCS)
Sets the number of NCS.
|
void |
setScheduler(Scheduler scheduler)
Sets the scheduler.
|
void |
setStartSerialization(boolean startSerialization,
java.io.File file)
Sets the start serialization.
|
void |
setThisLoopNCS(java.util.HashMap<NCS,java.lang.Integer> thidLoopNCS)
Sets the this loop NCS.
|
void |
startAgent(SystemAgent a)
Start agent.
|
public void readRessourceFile(java.io.File systemFile)
systemFile - the system filepublic void manageWorld()
public Scheduler getScheduler()
public void setScheduler(Scheduler scheduler)
scheduler - the new schedulerpublic void setBlackBox(BlackBox blackbox)
blackbox - the new black boxpublic BlackBox getBlackbox()
public java.util.HashMap<java.lang.String,SystemAgent> getAgents()
public void setAgents(java.util.HashMap<java.lang.String,SystemAgent> agents)
agents - the agentspublic void setBlackbox(BlackBox blackbox)
blackbox - the new blackboxpublic java.util.ArrayList<? extends Agent> getAllAgentInstanceOf(java.lang.Class<? extends Agent> cl)
cl - the clpublic void startAgent(SystemAgent a)
a - the apublic java.util.HashMap<NCS,java.lang.Integer> getAllNCS()
public void setAllNCS(java.util.HashMap<NCS,java.lang.Integer> allNCS)
allNCS - the all NCSpublic java.util.HashMap<NCS,java.lang.Integer> getThisLoopNCS()
public void setThisLoopNCS(java.util.HashMap<NCS,java.lang.Integer> thidLoopNCS)
thidLoopNCS - the thid loop NCSpublic void raiseNCS(NCS ncs)
ncs - the ncspublic void destroy(java.lang.Class<Context> cl)
cl - the clpublic java.util.HashMap<java.lang.String,java.lang.Integer> getNumberOfAgents()
public void setNumberOfAgents(java.util.HashMap<java.lang.String,java.lang.Integer> numberOfAgents)
numberOfAgents - the number of agentspublic void changeAgentNumber(int x,
java.lang.String cl)
x - the xcl - the clpublic void changeNCSNumber(int x,
NCS ncs)
x - the xncs - the ncspublic java.util.HashMap<NCS,java.lang.Integer> getNumberOfNCS()
public void setNumberOfNCS(java.util.HashMap<NCS,java.lang.Integer> numberOfNCS)
numberOfNCS - the number of NCSpublic void kill(Agent agent)
agent - the agentpublic void exportAsPicture(int pasX,
double startX,
double endX,
Percept pX,
int pasY,
double startY,
double endY,
Percept pY,
double minTol,
double maxTol)
pasX - the pas XstartX - the start XendX - the end XpX - the p XpasY - the pas YstartY - the start YendY - the end YpY - the p YminTol - the min tolmaxTol - the max tolpublic void changeOracleConnection()
public java.util.ArrayList<Agent> getSelectableContext()
public static <T> java.util.ArrayList<T> getIntersection(java.util.ArrayList<java.util.ArrayList<T>> list)
T - the generic typelist - the listpublic boolean isStartSerialization()
public void setStartSerialization(boolean startSerialization,
java.io.File file)
startSerialization - the start serializationfile - the filepublic AMOEBA getAmoeba()
public void setAmoeba(AMOEBA amoeba)
amoeba - the new amoebapublic LocalModelAgent buildLocalModel(Context context)
context - the contextpublic java.io.File getFileToSerialize()
public TypeLocalModel getLocalModel()
public void setLocalModel(TypeLocalModel localModel)
localModel - the new local modelpublic java.util.ArrayList<Percept> getAllPercept()
public StudiedSystem getStudiedSystem()
public double getAVT_acceleration()
public void setAVT_acceleration(double aVT_acceleration)
aVT_acceleration - the new AV T accelerationpublic double getAVT_deceleration()
public void setAVT_deceleration(double aVT_deceleration)
aVT_deceleration - the new AV T decelerationpublic double getAVT_percentAtStart()
public void setAVT_percentAtStart(double aVT_percentAtStart)
aVT_percentAtStart - the new AV T percent at start