barsuift.simLife.tree
Interface TreeBranchPart

All Superinterfaces:
LivingPart, java.util.Observer, Persistent<State>

public interface TreeBranchPart
extends LivingPart, java.util.Observer


Method Summary
 java.math.BigDecimal collectFreeEnergy()
          Return the free energy in the branch part, and set its value to 0
 TreeBranchPart3D getBranchPart3D()
           
 java.math.BigDecimal getEnergy()
          Return the energy of the branch part
 java.util.List<TreeLeaf> getLeaves()
           
 int getNbLeaves()
           
 
Methods inherited from interface barsuift.simLife.LivingPart
getAge, spendTime
 
Methods inherited from interface barsuift.simLife.Persistent
getState, synchronize
 
Methods inherited from interface java.util.Observer
update
 

Method Detail

getNbLeaves

int getNbLeaves()

getLeaves

java.util.List<TreeLeaf> getLeaves()

getBranchPart3D

TreeBranchPart3D getBranchPart3D()

getEnergy

java.math.BigDecimal getEnergy()
Return the energy of the branch part

Returns:
the energy

collectFreeEnergy

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

Returns:
the free energy


Copyright © 2010. All Rights Reserved.