|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<SimulationMode>
ca.nengo.model.SimulationMode
public enum SimulationMode
A SimulationMode is a way in which a Neuron or Ensemble can be simulated. Different modes trade off between performance and realism. All Neurons and Ensembles must be able to run in DEFAULT mode. For other modes, there is a chain of fallback choices so that if the requested mode is not supported, the Neuron/Ensemble must run in the closest mode that it does support (which may be the DEFAULT mode).
Nested Class Summary | |
---|---|
static interface |
SimulationMode.ModeConfigurable
Something that has runs in different SimulationModes. |
Enum Constant Summary | |
---|---|
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. |
|
PRECISE
A higher level of precision than DEFAULT. |
|
RATE
Outputs that spike by default are instead expressed in terms of firing rates. |
Method Summary | |
---|---|
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're declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
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 PRECISE
Method Detail |
---|
public static final 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 namepublic SimulationMode getFallbackMode()
public static SimulationMode getClosestMode(SimulationMode requested, SimulationMode[] supported)
requested
- The requested modesupported
- A list of supported modes
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |