cad.simcad.worldsimulator.stats
Class UnitStats

java.lang.Object
  |
  +--cad.simcad.worldsimulator.stats.UnitStats
All Implemented Interfaces:
java.io.Serializable

public class UnitStats
extends java.lang.Object
implements java.io.Serializable

Class offering services like telling statistics about an SimObject

Version:
1.0
Author:
Charles-Philip Bentley
See Also:
Serialized Form

Constructor Summary
UnitStats()
          Creates new UnitStats
 
Method Summary
 double getDeformStat(SimObject so, Genomable g)
          Get the deform stat according to the id and the Genomable object
 double getDoubleValue(java.lang.String name, java.lang.String type)
           
 int getHeight(SimObject so, Genomable g)
           
 int getHeight(java.lang.String className, Genomable g)
           
 int getIntValue(java.lang.String name, java.lang.String type)
           
 double getMaxSteepNessRatio(SimObject so, Genomable g)
           
 int getWidth(SimObject so, Genomable g)
           
 int getWidth(java.lang.String className, Genomable g)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnitStats

public UnitStats()
Creates new UnitStats

Method Detail

getMaxSteepNessRatio

public double getMaxSteepNessRatio(SimObject so,
                                   Genomable g)

getDeformStat

public double getDeformStat(SimObject so,
                            Genomable g)
Get the deform stat according to the id and the Genomable object


getWidth

public int getWidth(SimObject so,
                    Genomable g)

getHeight

public int getHeight(SimObject so,
                     Genomable g)

getHeight

public int getHeight(java.lang.String className,
                     Genomable g)

getWidth

public int getWidth(java.lang.String className,
                    Genomable g)

getIntValue

public int getIntValue(java.lang.String name,
                       java.lang.String type)
                throws StatException
StatException

getDoubleValue

public double getDoubleValue(java.lang.String name,
                             java.lang.String type)
                      throws StatException
StatException

Logo

With the help of www.sourceforge.net and www.info.ucl.ac.be