public static enum TurtleKit.Option extends Enum<TurtleKit.Option>
Enum Constant and Description |
---|
community
Specify the name of the community which should be used.
|
cuda
If set to
true , TurtleKit will try to use Nvidia Cuda for
computing pheromones dynamics and random numbers, thus optimizing
the simulation performances, especially when several pheromones are used. |
endTime
Specify the time at which the simulation should stop and quit
|
envDimension
Should be used like this on the command line: --envDimension 100,100
|
envHeight |
environment
Specify the environment class which has to be used.
|
envWidth |
fastRendering
If set to
true , viewers will be launched
in asynchronous display mode : faster viewing |
launcher
Specify the launcher agent class which has to be used.
|
model
Could be used to specify a .mdk properties
file that will be used to automatically launch
a TK simulation.
|
noWrap
If set to
true , the world is not wrapped. |
patch
Specify the patch class that should be used for creating the environment's grid.
|
renderingInterval
Set the rendering interval time, e.g.
|
scheduler
Specify the scheduler class which has to be used.
|
startSimu
If set to
true , the simulation is started automatically. |
turtles
Used to launch turtles.
|
viewers
Specify the viewer classes to launch.
|
Modifier and Type | Method and Description |
---|---|
String |
toString() |
static TurtleKit.Option |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TurtleKit.Option[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TurtleKit.Option turtles
SYNOPSIS
--turtles
TURTLE_CLASS_NAME[,NB][;OTHERS]
DESCRIPTIONThe optional parameters could be used to (1) launch several different types of turtles and (2) specify the number of desired instances of each type.
DEFAULT VALUE100000Default value is "null", meaning that no turtle has to be launched.
Default values for the optional parameters are
EXAMPLES
public static final TurtleKit.Option envWidth
public static final TurtleKit.Option envHeight
public static final TurtleKit.Option envDimension
public static final TurtleKit.Option model
public static final TurtleKit.Option community
public static final TurtleKit.Option noWrap
true
, the world is not wrapped.
Default value is false
public static final TurtleKit.Option launcher
public static final TurtleKit.Option environment
Environment
public static final TurtleKit.Option scheduler
TKScheduler
public static final TurtleKit.Option startSimu
true
, the simulation is started automatically.
Default is Environment
public static final TurtleKit.Option viewers
null
, no viewer
will be launched. Several viewers could be set by separating their name with a ";"public static final TurtleKit.Option patch
Patch
.public static final TurtleKit.Option fastRendering
true
, viewers will be launched
in asynchronous display mode : faster viewingpublic static final TurtleKit.Option renderingInterval
public static final TurtleKit.Option cuda
true
, TurtleKit will try to use Nvidia Cuda for
computing pheromones dynamics and random numbers, thus optimizing
the simulation performances, especially when several pheromones are used.
This requires the Cuda toolkit to be installed on the host.
See https://developer.nvidia.com/cuda-downloads
for more
informationpublic static final TurtleKit.Option endTime
public static TurtleKit.Option[] values()
for (TurtleKit.Option c : TurtleKit.Option.values()) System.out.println(c);
public static TurtleKit.Option valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String toString()
toString
in class Enum<TurtleKit.Option>