sim
Interface CritterInfo


public interface CritterInfo

This interface provides access to information about a particular Critter. The initial values for some of these parameters are provided when a Critter constructor creates a new CritterInfo instance using createCritterInfoInstance. The other parameters are calculated and updated dynamically as the model runs.

See Also:
)

Method Summary
 int getAge()
          Get the current age of this Critter, in ticks.
 int getBurnRate()
          Get the rate at which energy is used up, in calories per step.
 int getCurCalories()
          Get the number of calories this Critter has at this time
 int getLifeSpan()
          Get the life span defined for this Critter, in ticks.
 int getMaxCalories()
          Get the maximum number of calories this Critter can store
 int getPower()
          Get the current power of this Critter, in arbitrary units.
 int getReproductionSpan()
          Get the number of ticks between reproduction events.
 int getStrength()
          Get the maximum strength of this Critter, in arbitrary units
 

Method Detail

getAge

public int getAge()
Get the current age of this Critter, in ticks.

Returns:
the current age of this Critter, in ticks

getLifeSpan

public int getLifeSpan()
Get the life span defined for this Critter, in ticks.

Returns:
the life span defined for this Critter, in ticks

getReproductionSpan

public int getReproductionSpan()
Get the number of ticks between reproduction events.

Returns:
the number of ticks between reproduction events

getCurCalories

public int getCurCalories()
Get the number of calories this Critter has at this time

Returns:
the number of calories this Critter has at this time.

getMaxCalories

public int getMaxCalories()
Get the maximum number of calories this Critter can store

Returns:
the maximum number of calories this Critter can store.

getBurnRate

public int getBurnRate()
Get the rate at which energy is used up, in calories per step.

Returns:
the rate at which energy is used up, in calories per step.

getStrength

public int getStrength()
Get the maximum strength of this Critter, in arbitrary units

Returns:
the maximum strength of this Critter, in arbitrary units.

getPower

public int getPower()
Get the current power of this Critter, in arbitrary units. The Critter's power is the strength scaled by (curCalories / maxCalories).

Returns:
the current power of this Critter, in arbitrary units.