|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmadkit.kernel.AbstractAgent
warbot.kernel.WarbotEnvironment
public final class WarbotEnvironment
Field Summary | |
---|---|
static int |
EXPLORER
|
static int |
HAMBURGER
|
static int |
HOME
|
static int |
PALMTREE
|
static int |
ROCKETLAUNCHER
|
static java.lang.String[] |
TYPES
|
static int |
WALL
|
warbot.kernel.Environment2D |
world
|
Method Summary | |
---|---|
void |
activate()
This method is initially called when the micro-kernel registers the agent. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int HOME
public static final int WALL
public static final int PALMTREE
public static final int HAMBURGER
public static final int ROCKETLAUNCHER
public static final int EXPLORER
public static final java.lang.String[] TYPES
public warbot.kernel.Environment2D world
Method Detail |
---|
public void activate()
AbstractAgent
Here is a typical example (taken from the PingPong
agent of MadKit (plugin demos)) :
public void activate() { try { createGroup(true,"ping-pong",null,null); println ("No ping-pong group : I created one"); creator=true; } catch (OrganizationRequestException e) { // the group already exists creator=false; println ("A ping-pong group already exists : I will join"); } requestRole("ping-pong","player",null); }
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |