Class MovementCapability
- java.lang.Object
-
- jadex.bdiv3.examples.marsworld.movement.MovementCapability
-
public class MovementCapability extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMovementCapability.MissionendThe mission end goal.classMovementCapability.MoveThe move goal.classMovementCapability.WalkAroundThe walk goal.
-
Field Summary
Fields Modifier and Type Field Description protected ICapabilitycapaprotected AbstractEnvironmentSpaceenvThe environment.protected booleanmissionendThe mission end.protected ISpaceObjectmyselfThe environment.protected java.util.List<ISpaceObject>mytargetsThe targets.
-
Constructor Summary
Constructors Constructor Description MovementCapability()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddTarget(ISpaceObject target)ICapabilitygetCapability()Get the capa.AbstractEnvironmentSpacegetEnvironment()Get the env.ISpaceObjectgetHomebase()java.lang.ObjectgetHomebasePosition()ISpaceObjectgetMyself()Get the myself.java.util.List<ISpaceObject>getMyTargets()Get the my_targets.protected longgetTime()booleanisMissionend()Get the missionend.
-
-
-
Field Detail
-
capa
protected ICapability capa
-
env
protected AbstractEnvironmentSpace env
The environment.
-
myself
protected ISpaceObject myself
The environment.
-
missionend
protected boolean missionend
The mission end.
-
mytargets
protected java.util.List<ISpaceObject> mytargets
The targets.
-
-
Method Detail
-
getHomebasePosition
public java.lang.Object getHomebasePosition()
-
getHomebase
public ISpaceObject getHomebase()
-
getTime
protected long getTime()
-
getEnvironment
public AbstractEnvironmentSpace getEnvironment()
Get the env.- Returns:
- The env.
-
getMyself
public ISpaceObject getMyself()
Get the myself.- Returns:
- The myself.
-
getCapability
public ICapability getCapability()
Get the capa.- Returns:
- The capa.
-
getMyTargets
public java.util.List<ISpaceObject> getMyTargets()
Get the my_targets.- Returns:
- The my_targets.
-
isMissionend
public boolean isMissionend()
Get the missionend.- Returns:
- The missionend.
-
addTarget
public void addTarget(ISpaceObject target)
-
-