|
Jadex 0.96 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjadex.examples.marsworld.LocationObjectData
jadex.examples.marsworld.LocationObject
jadex.examples.marsworld.TargetData
jadex.examples.marsworld.Target
public class Target
The target is a map position
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface nuggets.INugget |
---|
nuggets.INugget.Helper |
Constructor Summary | |
---|---|
Target()
Create a new target. |
|
Target(Location loc,
int initialcapacity)
Create a new target. |
Method Summary | |
---|---|
int |
getCapacity()
Getter for capacity |
int |
getInitialcapacity()
Getter for initialcapacity |
int |
getOre()
Get the amount of ore. |
int |
getOreCapacity()
Get the capacity of ore. |
boolean |
isMarked()
Test if target was visited. |
boolean |
isOre()
Test if target can produce some ore. |
void |
produceOre(int ore)
Change the amount of ore at the Location |
int |
retrieveOre(int amount)
Retrieve some ore amount. |
void |
setCapacity(int capacity)
Setter for capacity. |
void |
setInitialcapacity(int initialcapacity)
Setter for initialcapacity. |
void |
setMarked()
Mark this target as visited. |
void |
setMarked(boolean marked)
Setter for marked. |
void |
setOre(int ore)
Setter for ore. |
String |
toString()
Convert the Location to a string representation. |
Methods inherited from class jadex.examples.marsworld.TargetData |
---|
_persist, _set |
Methods inherited from class jadex.examples.marsworld.LocationObject |
---|
equals |
Methods inherited from class jadex.examples.marsworld.LocationObjectData |
---|
getId, getLocation, setId, setLocation |
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Target()
public Target(Location loc, int initialcapacity)
Method Detail |
---|
public void produceOre(int ore)
ore
- The produced ore.public int retrieveOre(int amount)
amount
- The amount.public int getOreCapacity()
public int getOre()
public void setMarked()
public boolean isMarked()
public boolean isOre()
public int getCapacity()
public void setCapacity(int capacity)
capacity
- The Target.java value to setpublic int getInitialcapacity()
public void setInitialcapacity(int initialcapacity)
initialcapacity
- The Target.java value to setpublic void setMarked(boolean marked)
marked
- The Target.java value to setpublic void setOre(int ore)
ore
- The Target.java value to setpublic String toString()
toString
in class TargetData
|
Jadex 0.96 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright (C) 2002-2007 Lars Braubach, Alexander Pokahr - University of Hamburg. Use is subject to license terms.