|
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.Homebase
public class Homebase
The agents homebase.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface nuggets.INugget |
---|
nuggets.INugget.Helper |
Constructor Summary | |
---|---|
Homebase(Location loc,
long missiontime)
Create a new homebase. |
Method Summary | |
---|---|
void |
deliverOre(int amount)
Retrieve some ore amount. |
long |
getMissiontime()
Getter for missiontime |
long |
getMissionTime()
Get the mission time. |
int |
getOre()
Get the amount of ore. |
long |
getRemainingMissionTime()
Get the remaining mission time. |
long |
getStarttime()
Getter for starttime |
void |
setMissiontime(long missiontime)
Setter for missiontime. |
void |
setOre(int ore)
Setter for ore. |
void |
setStarttime(long starttime)
Setter for starttime. |
String |
toString()
Convert the Location to a string representation. |
Methods inherited from class jadex.examples.marsworld.LocationObject |
---|
equals |
Methods inherited from class jadex.examples.marsworld.LocationObjectData |
---|
_persist, _set, getId, getLocation, setId, setLocation |
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface nuggets.INugget |
---|
_persist, _set |
Constructor Detail |
---|
public Homebase(Location loc, long missiontime)
Method Detail |
---|
public void deliverOre(int amount)
amount
- The amount.public int getOre()
public long getMissionTime()
public long getRemainingMissionTime()
public long getMissiontime()
public void setMissiontime(long missiontime)
missiontime
- The Homebase.java value to setpublic long getStarttime()
public void setStarttime(long starttime)
starttime
- The Homebase.java value to setpublic void setOre(int ore)
ore
- The Homebase.java value to setpublic String toString()
toString
in class LocationObject
|
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.