Page 298 - Artificial Intelligence for the Internet of Everything
P. 298
276 Artificial Intelligence for the Internet of Everything
Fig. 14.3 Frogger game layout.
sensors so that the presence of an instance of a car as well as floating objects
was never missed, we based our placement on the Nyquist Theorem.
Specifically, we placed sensors along the highway and river at intervals that
were half the width of the smallest object expected to occupy a highway or
river lane.
To utilize an emergent configuration as a holonic system we began by
creating a top-level agent to represent the frog in the Frogger game. We aptly
name this agent Frog. The Frog agent has a single mission: to cross both
the highway and river and emerge unscathed. To achieve this the Frog
agent creates an oracle agent that informs it whether or not moving in any
of the four allowed directions (north, south, east, west) is feasible. The oracle
agentdisallowsamoveeitherbecauseitisillegal(e.g.,movingsouthwhenthe
frog is at its start position), or because it would result in the Frog agent getting
hit by a car, or sinking in the river. The Frog agent utilizes this information
to reasonaboutwhat its nextmove istomake. Theoracleagentin turncreates
one of two types of agents based on the current location of the Frog agent.
Highway lane agents monitor the car traffic in a lane and inform the oracle
whether or not a position on a highway lane is occupied and, if vacant,
how long it can be expected to be vacant based on the velocity of the cars