barsuift.simLife.tree
Interface TreeLeaf

All Superinterfaces:
LivingPart, Persistent<State>, Photosynthetic, Publisher, Subscriber

public interface TreeLeaf
extends LivingPart, Photosynthetic, Publisher, Subscriber


Method Summary
 java.math.BigDecimal getEfficiency()
          Return the efficiency of the leaf.
 java.math.BigDecimal getEnergy()
          Return the energy of the leaf
 TreeLeaf3D getTreeLeaf3D()
           
 void improveEfficiency()
          Uses collected energy to improve the leaf efficiency.
 boolean isTooWeak()
           
 
Methods inherited from interface barsuift.simLife.LivingPart
age, getCreationMillis
 
Methods inherited from interface barsuift.simLife.Persistent
getState, synchronize
 
Methods inherited from interface barsuift.simLife.tree.Photosynthetic
collectFreeEnergy, collectSolarEnergy
 
Methods inherited from interface barsuift.simLife.message.Publisher
addSubscriber, clearChanged, countSubscribers, deleteSubscriber, deleteSubscribers, hasChanged, notifySubscribers, notifySubscribers, setChanged
 
Methods inherited from interface barsuift.simLife.message.Subscriber
update
 

Method Detail

isTooWeak

boolean isTooWeak()

getTreeLeaf3D

TreeLeaf3D getTreeLeaf3D()

getEfficiency

java.math.BigDecimal 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

improveEfficiency

void improveEfficiency()
Uses collected energy to improve the leaf efficiency.



Copyright © 2010. All Rights Reserved.