|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Thread | +--simulator.ServerAmbient
This class is used to comunicate between the agents their
position (velocity...) and the position of all other object there's in the
simulator.
It used a GenericServerAmbient
to do this, so you can
implement the function you need.
GenericServerAmbient
Field Summary | |
protected Queue[] |
clientQueue
In this tile the agents send required about information useful to calculate their position and the ServerAmbient store and
read information using this tile. |
protected GenericServerAmbient |
GSA
Instances your server ambient processes |
protected java.util.Hashtable |
state
Rappresents the dinamic state of the simulation ambient. |
Fields inherited from class java.lang.Thread |
contextClassLoader,
daemon,
eetop,
group,
inheritedAccessControlContext,
MAX_PRIORITY,
MIN_PRIORITY,
name,
NORM_PRIORITY,
priority,
single_step,
stillborn,
stopThreadPermission,
target,
threadInitNumber,
threadQ,
values |
Constructor Summary | |
ServerAmbient(java.util.Hashtable state,
Queue[] clientQueue,
GenericServerAmbient GSA)
Initialize object and start thread |
Method Summary | |
void |
run()
This thread loop in a runTask of
GenericServerAmbient for making your actions, but first
time it call your init . |
Methods inherited from class java.lang.Thread |
|
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
protected java.util.Hashtable state
protected Queue[] clientQueue
ServerAmbient
store and
read information using this tile.protected GenericServerAmbient GSA
Constructor Detail |
public ServerAmbient(java.util.Hashtable state, Queue[] clientQueue, GenericServerAmbient GSA)
state
- the state of all object in virtual ambientclientQueue
- the tile where information must be send between
agents and serverGSA
- your class that execute the server ambient processesMethod Detail |
public void run()
runTask
of
GenericServerAmbient
for making your actions, but first
time it call your init
.GenericServerAmbient
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |