barsuift.simLife.tree
Interface TreeLeaf

All Superinterfaces:
IObservable, LivingPart

public interface TreeLeaf
extends LivingPart, IObservable


Method Summary
 java.math.BigDecimal collectFreeEnergy()
          Return the free energy in the leaf, and set its value to 0
 Percent getEfficiency()
          Return the efficiency of the leaf.
 java.math.BigDecimal getEnergy()
          Return the energy of the leaf
 TreeLeafState getState()
           
 TreeLeaf3D getTreeLeaf3D()
           
 boolean isTooWeak()
           
 
Methods inherited from interface barsuift.simLife.LivingPart
getAge, getId, spendTime
 
Methods inherited from interface barsuift.simLife.IObservable
addObserver, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers
 

Method Detail

isTooWeak

boolean isTooWeak()

getTreeLeaf3D

TreeLeaf3D getTreeLeaf3D()

getState

TreeLeafState getState()

getEfficiency

Percent getEfficiency()
Return the efficiency of the leaf. This efficiency impacts the amount of solar energy which can be collected.

Returns:
the efficiency

getEnergy

java.math.BigDecimal getEnergy()
Return the energy of the leaf

Returns:
the energy

collectFreeEnergy

java.math.BigDecimal collectFreeEnergy()
Return the free energy in the leaf, and set its value to 0

Returns:
the free energy


Copyright © 2010. All Rights Reserved.