|
Nengo.ca | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<Units>
ca.nengo.model.Units
public enum Units
Models units for physical quantities. We use this class to model both fundamental units (e.g. 's') and composite units (e.g. 'spikes/s').
Enum Constant Summary | |
---|---|
ACU
Arbitrary current units |
|
AVU
Arbitrary voltage units |
|
M
Metres |
|
M_PER_S
Metres per second |
|
mV
Millivolts |
|
N
Newtons |
|
Nm
Newton metres |
|
RAD
Radians |
|
RAD_PER_S
Radians per second |
|
S
Seconds |
|
SPIKES
Spikes (count) |
|
SPIKES_PER_S
Spike rate |
|
uA
Microamps |
|
uAcm2
Micro-amps per cm^2 |
|
UNK
Unknown units |
Field Summary | |
---|---|
java.lang.String |
myName
Standard name of units |
Method Summary | |
---|---|
java.lang.String |
toString()
|
static Units[] |
uniform(Units units,
int length)
Returns an array of Units in which all Units are the same. |
static Units |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Units[] |
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, valueOf |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final Units S
public static final Units mV
public static final Units uA
public static final Units uAcm2
public static final Units ACU
public static final Units AVU
public static final Units UNK
public static final Units SPIKES
public static final Units SPIKES_PER_S
public static final Units N
public static final Units Nm
public static final Units M
public static final Units RAD
public static final Units M_PER_S
public static final Units RAD_PER_S
Field Detail |
---|
public java.lang.String myName
Method Detail |
---|
public static final Units[] values()
for(Units c : Units.values()) System.out.println(c);
public static Units 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 java.lang.String toString()
toString
in class java.lang.Enum<Units>
public static Units[] uniform(Units units, int length)
units
- Units to be returned in every elementlength
- Number of elements
|
Nengo.ca | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |