cad.simcad.objectserver.spec.map
Interface StatServer

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
StatComputer

public interface StatServer
extends java.io.Serializable

This is the interface toward a dispatcher of stats.

Version:
1.0
Author:
Charles-Philip Bentley

Method Summary
 double getDeformStat(SimObject so, Genomable g)
          Get the deform stat according to the id and the Genomable object
 int getHeight(SimObject so, Genomable g)
          Return the height of the SimObject
 int getHeight(java.lang.String className, Genomable g)
          Return the height of the SimObject
 double getMaxSteepNessRatio(SimObject pu, Filler fil, Genomable g)
          Return the maximum steepnessRatio the PathUser can walk on the filler given in argument
 double getMaxSteepNessRatio(SimObject pu, Genomable g)
          Return the maximum steepnessRatio the SimObject can walk on
 double getMoveStat(PathUser pu, Filler fil, double steepnessRatio)
          Return the MoveStat for a PathUser and a Filler.
 int getWidth(SimObject so, Genomable g)
          Return the width of the SimObject
 int getWidth(java.lang.String className, Genomable g)
          Return the width of the SimObject given by the name
 

Method Detail

getMoveStat

public double getMoveStat(PathUser pu,
                          Filler fil,
                          double steepnessRatio)
Return the MoveStat for a PathUser and a Filler. The steepnessRatio indicates the slope

Parameters:
pu - PathUser
fil - A filler
steepnessRatio - -1 <= steepnessRatio <= 1
Pre:
seem params
Returns:
a double value
Post:
The move stat associated with the parameters

getMaxSteepNessRatio

public double getMaxSteepNessRatio(SimObject pu,
                                   Genomable g)
Return the maximum steepnessRatio the SimObject can walk on

Parameters:
pu - A SimObject
g - A Genomable
Pre:
A SimObject. The Genomable object will be usually linked to the SimObject in some way, but this is not necessary
Returns:
A Double Value
Post:
The max steepnessRatio of the SimObject according to the Genomable

getMaxSteepNessRatio

public double getMaxSteepNessRatio(SimObject pu,
                                   Filler fil,
                                   Genomable g)
Return the maximum steepnessRatio the PathUser can walk on the filler given in argument

Parameters:
fil - a Filler
pu - A SimObject
g - A Genomable
Pre:
A SimObject. The Genomable object will be usually linked to the SimObject in some way, but this is not necessary
Returns:
A Double Value
Post:
The max steepnessRatio of the PathUser according to the Genomable

getWidth

public int getWidth(SimObject so,
                    Genomable g)
Return the width of the SimObject

Parameters:
so - A SimObject
g - A Genomable
Returns:
an integer value

getHeight

public int getHeight(SimObject so,
                     Genomable g)
Return the height of the SimObject

Parameters:
so - A SimObject
g - A Genomable object
Returns:
an integer value

getWidth

public int getWidth(java.lang.String className,
                    Genomable g)
Return the width of the SimObject given by the name

Parameters:
g - A Genomable
Returns:
an integer value

getHeight

public int getHeight(java.lang.String className,
                     Genomable g)
Return the height of the SimObject

Parameters:
g - A Genomable object
Returns:
an integer value

getDeformStat

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

Parameters:
g - A Genomable Object
Pre:
see params
Returns:
the double value
Post:
The deform factor of the SimObject according to his Genomable

Logo

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