cad.simcad.main_server
Class IDPathUser

java.lang.Object
  |
  +--cad.simcad.main_server.IDPathUser
All Implemented Interfaces:
PathUser

public class IDPathUser
extends java.lang.Object
implements PathUser

Author:
Administrator

Constructor Summary
IDPathUser(Id id, PathPlace pp)
          Creates a new instance of IDPathUser
 
Method Summary
 void firePathComputed(PathPlaceSet pps)
          Notice the PathUser that a Path has been computed for him.
 PathPlace getCurrentPathPlace()
          Return the current PathPlace the PathUser is on
 double getDeformFactor()
          Returns the deform factor of the Path user.
 int getId()
          Return the id of the PathUser.
 Id getIdObject()
           
 double getMaxSteepNessRatio()
          Return the maximum slope ratio the PathUser can walk on.
 java.lang.String getName()
          Return the name of the PathUser.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IDPathUser

public IDPathUser(Id id,
                  PathPlace pp)
Creates a new instance of IDPathUser

Method Detail

firePathComputed

public void firePathComputed(PathPlaceSet pps)
Notice the PathUser that a Path has been computed for him.

Specified by:
firePathComputed in interface PathUser
Parameters:
pps - A PathPlaceSet.
Pre:
pps.getPathUser().equals(this) The PathUser of the PathPlaceSet is the same object as this one

getCurrentPathPlace

public PathPlace getCurrentPathPlace()
Return the current PathPlace the PathUser is on

Specified by:
getCurrentPathPlace in interface PathUser
Pre:
-
Returns:
The current PathPlace, null if the PathUser has no PathPlace set already
Post:
the PathPlace of the PathUser is returned

getDeformFactor

public double getDeformFactor()
Returns the deform factor of the Path user. The Deform factor is a ratio. 0 means the PathUser shrink completely to pass through holes infinitely small 1 means the PathUser is unabled to shrink 0.5 means the PathUser can shrink to half its size. Usually, most mechanical objects will have a deform factor of 1. While human can usually shrink a little to go through narrow pathways

Specified by:
getDeformFactor in interface PathUser
Pre:
-
Returns:
double value
Post:
PathUser's deform factor

getId

public int getId()
Return the id of the PathUser.

Specified by:
getId in interface PathUser
Pre:
-
Returns:
int value
Post:
PathUser's unique id.

getIdObject

public Id getIdObject()

getMaxSteepNessRatio

public double getMaxSteepNessRatio()
Return the maximum slope ratio the PathUser can walk on.

Specified by:
getMaxSteepNessRatio in interface PathUser
Pre:
-
Returns:
double value
Post:
PathUser's Max slope ratio

getName

public java.lang.String getName()
Return the name of the PathUser.

Specified by:
getName in interface PathUser
Pre:
-
Returns:
int value
Post:
PathUser's name.

Logo

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