public enum SimulationMode extends java.lang.Enum<SimulationMode>
Modifier and Type | Class and Description |
---|---|
static interface |
SimulationMode.ModeConfigurable
Something that has runs in different SimulationModes.
|
Enum Constant and Description |
---|
APPROXIMATE
A spiking mode in which some precision is sacrificed for improved performance.
|
CONSTANT_RATE
Outputs that spike by default are expressed as rates that are constant for a
given constant input.
|
DEFAULT
The normal level of detail at which a Neuron/Ensemble runs (all Neuron/Ensembles must support
this mode).
|
DIRECT
Neurons are not used.
|
EXPRESS
Neurons are not used.
|
PRECISE
A higher level of precision than DEFAULT.
|
RATE
Outputs that spike by default are instead expressed in terms of firing rates.
|
Modifier and Type | Method and Description |
---|---|
static SimulationMode |
getClosestMode(SimulationMode requested,
SimulationMode[] supported)
A convenience method for finding the closest supported mode to a requested mode.
|
SimulationMode |
getFallbackMode() |
static SimulationMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SimulationMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SimulationMode DEFAULT
public static final SimulationMode APPROXIMATE
public static final SimulationMode RATE
public static final SimulationMode CONSTANT_RATE
public static final SimulationMode DIRECT
public static final SimulationMode EXPRESS
public static final SimulationMode PRECISE
public static SimulationMode[] values()
for (SimulationMode c : SimulationMode.values()) System.out.println(c);
public static SimulationMode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namejava.lang.NullPointerException
- if the argument is nullpublic SimulationMode getFallbackMode()
public static SimulationMode getClosestMode(SimulationMode requested, SimulationMode[] supported)
requested
- The requested modesupported
- A list of supported modes