|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jscience.architecture.traffic.infrastructure.CustomFactory
public class CustomFactory
DOCUMENT ME!
| Field Summary | |
|---|---|
protected static float[] |
PersonChances
DOCUMENT ME! |
protected static java.lang.String[] |
PersonName
DOCUMENT ME! |
protected static int[][] |
PersonProperties
DOCUMENT ME! |
protected static int |
PROP_CHANCE
DOCUMENT ME! |
protected static int |
PROP_GR_LENGTH
DOCUMENT ME! |
protected static int |
PROP_GR_WIDTH
DOCUMENT ME! |
protected static int |
PROP_LENGTH
DOCUMENT ME! |
protected static int |
PROP_NR_CURRENT
DOCUMENT ME! |
protected static int |
PROP_NR_MAX
DOCUMENT ME! |
protected static int |
PROP_NR_PASSENGERS
DOCUMENT ME! |
protected static int |
PROP_ROADUSER_TYPE
DOCUMENT ME! |
protected static int |
PROP_SPEED
DOCUMENT ME! |
protected static java.util.Random |
rnd
DOCUMENT ME! |
protected static int[] |
SupportedTypes
DOCUMENT ME! |
protected static int[][] |
TypeVehicle
DOCUMENT ME! |
protected static float[] |
VehicleChances
DOCUMENT ME! |
protected static int[][] |
VehicleDriver
DOCUMENT ME! |
protected static int[][] |
VehicleDriverColor
DOCUMENT ME! |
protected static java.lang.String[][] |
VehicleDriverDescription
DOCUMENT ME! |
protected static java.lang.String[][] |
VehicleDriverName
DOCUMENT ME! |
protected static java.lang.String[][] |
VehicleDriverPicture
DOCUMENT ME! |
protected static java.lang.String[][] |
VehicleDriverSound
DOCUMENT ME! |
protected static java.lang.String[] |
VehicleName
DOCUMENT ME! |
protected static int[][] |
VehiclePassenger
DOCUMENT ME! |
protected static int[][] |
VehicleProperties
DOCUMENT ME! |
| Constructor Summary | |
|---|---|
CustomFactory()
|
|
| Method Summary | |
|---|---|
static Roaduser |
genRoaduser(int type)
DOCUMENT ME! |
static Roaduser |
genRoaduser(int type,
Node start,
Node dest,
int pos)
DOCUMENT ME! |
static java.awt.Color |
getColor(CustomRoaduser ru)
Returns the color used for drawing of given custom. |
static java.lang.String |
getDescription(CustomRoaduser ru)
Returns the description of given custom. |
static int |
getGraphicalLength(CustomRoaduser ru)
Returns the graphical length of given custom. |
static int |
getGraphicalWidth(CustomRoaduser ru)
Returns the graphical width of given custom. |
static int |
getLength(CustomRoaduser ru)
Returns the length of given custom. |
static java.lang.String |
getName(CustomRoaduser ru)
Returns the name of given custom. |
static java.lang.String |
getPersonName(int person)
Returns the name of given person. |
static java.lang.String |
getPicture(CustomRoaduser ru)
Returns the URL of the picture of given custom. |
static java.lang.String |
getSound(CustomRoaduser ru)
Returns the URL of the audio clip of given custom. |
static int |
getSpeed(CustomRoaduser ru)
Returns the speed of given custom. |
static int |
getType(CustomRoaduser ru)
Returns the roaduser type of given custom. |
static java.lang.String |
getVehicleName(int vehicle)
Returns the name of given vehicle type. |
static void |
removeCustom(CustomRoaduser ru)
DOCUMENT ME! |
static void |
reset()
DOCUMENT ME! |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final int PROP_CHANCE
protected static final int PROP_NR_CURRENT
protected static final int PROP_NR_MAX
protected static final int PROP_SPEED
protected static final int PROP_LENGTH
protected static final int PROP_GR_LENGTH
protected static final int PROP_GR_WIDTH
protected static final int PROP_NR_PASSENGERS
protected static final int PROP_ROADUSER_TYPE
protected static java.util.Random rnd
protected static final int[] SupportedTypes
protected static final int[][] TypeVehicle
protected static final java.lang.String[] VehicleName
protected static final int[][] VehicleProperties
protected static final int[][] VehicleDriver
protected static final int[][] VehiclePassenger
protected static final java.lang.String[] PersonName
protected static final int[][] PersonProperties
protected static final java.lang.String[][] VehicleDriverName
protected static final java.lang.String[][] VehicleDriverDescription
protected static final java.lang.String[][] VehicleDriverPicture
protected static final java.lang.String[][] VehicleDriverSound
protected static final int[][] VehicleDriverColor
protected static float[] VehicleChances
protected static float[] PersonChances
| Constructor Detail |
|---|
public CustomFactory()
| Method Detail |
|---|
public static void reset()
public static void removeCustom(CustomRoaduser ru)
ru - DOCUMENT ME!
public static Roaduser genRoaduser(int type,
Node start,
Node dest,
int pos)
throws InfraException
type - DOCUMENT ME!start - DOCUMENT ME!dest - DOCUMENT ME!pos - DOCUMENT ME!
InfraException - DOCUMENT ME!
public static Roaduser genRoaduser(int type)
throws InfraException
type - DOCUMENT ME!
InfraException - DOCUMENT ME!public static int getSpeed(CustomRoaduser ru)
ru - DOCUMENT ME!
public static int getLength(CustomRoaduser ru)
ru - DOCUMENT ME!
public static int getType(CustomRoaduser ru)
ru - DOCUMENT ME!
public static int getGraphicalLength(CustomRoaduser ru)
ru - DOCUMENT ME!
public static int getGraphicalWidth(CustomRoaduser ru)
ru - DOCUMENT ME!
public static java.awt.Color getColor(CustomRoaduser ru)
ru - DOCUMENT ME!
public static java.lang.String getVehicleName(int vehicle)
vehicle - DOCUMENT ME!
public static java.lang.String getPersonName(int person)
person - DOCUMENT ME!
public static java.lang.String getName(CustomRoaduser ru)
ru - DOCUMENT ME!
public static java.lang.String getDescription(CustomRoaduser ru)
ru - DOCUMENT ME!
public static java.lang.String getPicture(CustomRoaduser ru)
ru - DOCUMENT ME!
public static java.lang.String getSound(CustomRoaduser ru)
ru - DOCUMENT ME!
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||