NeuroLab
|
A physical value. More...
Public Member Functions | |
Physical () | |
Construct. | |
Physical (const Physical &) | |
Copy. | |
Physical (string name) | |
Construct. | |
Physical (string name, string unitPrefix, string unitSymbol) | |
Construct. | |
Physical (string name, Unit unit) | |
Construct. | |
virtual string | getDescription () |
Retrive the physical name. More... | |
virtual string | getPhysicalDescription () |
Returns the physical description. More... | |
virtual string | getUnitName () |
Returns the unit name. | |
virtual string | getUnitSymbol () |
Returns the unit name. | |
virtual void | setDescription (string name) |
Set the name. More... | |
virtual void | setPhysicalDescription (string name) |
Set the name. Same as setDescription(). More... | |
virtual void | setUnit (Unit u) |
Set the unit. | |
virtual void | setUnitPrefix (int n) |
Set unit prefix. More... | |
virtual Unit | getUnit () const |
Retrieve the unit. | |
A physical value.
This is a 'something' that has a physical dimension (like time, weight, length...). It has a physical unit and a name (like 'voltage'). Use physical.getUnit().set(...) to set the physical unit.
|
virtual |
Retrive the physical name.
The name is constructed from the physical name (like "membrane voltage") and the unit symbol (like "mV"). In this example is would read "membrane voltage [mV]".
Reimplemented in StochasticProcess.
|
inlinevirtual |
Returns the physical description.
This is the name of the physical dimension of the object, if it has any. ("" otherwise)
Reimplemented in Time.
|
virtual |
|
virtual |
Set the name. Same as setDescription().
The name of the physical quantity, like 'voltage'
|
virtual |
Set unit prefix.
Set the unit prefix by giving an integer from -24 to 24. Should be a multiple of 3, exception: -2,-1,2,1.