Jadex 0.96

jadex.examples.marsworld
Class Homebase

java.lang.Object
  extended by jadex.examples.marsworld.LocationObjectData
      extended by jadex.examples.marsworld.LocationObject
          extended by jadex.examples.marsworld.Homebase
All Implemented Interfaces:
Serializable, nuggets.INugget

public class Homebase
extends LocationObject

The agents homebase.

See Also:
Serialized Form

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

Homebase

public Homebase(Location loc,
                long missiontime)
Create a new homebase.

Method Detail

deliverOre

public void deliverOre(int amount)
Retrieve some ore amount.

Parameters:
amount - The amount.

getOre

public int getOre()
Get the amount of ore.

Returns:
The amount of Ore

getMissionTime

public long getMissionTime()
Get the mission time.


getRemainingMissionTime

public long getRemainingMissionTime()
Get the remaining mission time.


getMissiontime

public long getMissiontime()
Getter for missiontime

Returns:
Returns missiontime.

setMissiontime

public void setMissiontime(long missiontime)
Setter for missiontime.

Parameters:
missiontime - The Homebase.java value to set

getStarttime

public long getStarttime()
Getter for starttime

Returns:
Returns starttime.

setStarttime

public void setStarttime(long starttime)
Setter for starttime.

Parameters:
starttime - The Homebase.java value to set

setOre

public void setOre(int ore)
Setter for ore.

Parameters:
ore - The Homebase.java value to set

toString

public String toString()
Convert the Location to a string representation.

Overrides:
toString in class LocationObject
Returns:
The string representation.

Jadex 0.96

Submit a bug or feature
For further API reference and developer documentation, see the Jadex User Guide and the Jadex Tutorial. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, and working code examples.

Copyright (C) 2002-2007 Lars Braubach, Alexander Pokahr - University of Hamburg. Use is subject to license terms.