Magnitude has methods for dealing with linearly ordered collections.
Subclasses represent dates, times, and numbers.
Example for interval-testing (answers a Boolean): $seven->between($five, $ten);
No instance-variables.
Located in /harmoni/core/Primitives/Magnitudes/Magnitude.class.php (line 38)
SObject | --Magnitude
Class | Description |
---|---|
DateAndTime | I represent a point in UTC time as defined by ISO 8601. I have zero duration. |
Duration | I represent a duration of time. I have been tested to support durations of up to 4 billion (4,000,000,000) years with second precision and up to 50 billion (50,000,000) years with hour precision. Durations beyond 50 billion years have not been tested. |
Time | This represents a period of time. |
Timespan | Timespan represents a duration starting at a specific DateAndTime. |
Number | This is a partial port of the Squeak/Smalltalk Number class. |
Answer whether the receiver is less than or equal to the argument, max, and greater than or equal to the argument, min.
Test if this is equal to aMagnitude.
Test if this is greater than aMagnitude.
Test if this is less than aMagnitude.
Answer the receiver or the argument, whichever has the greater magnitude.
Answer the receiver or the argument, whichever has the lesser magnitude.
Inherited From SObject
SObject::asA()
SObject::asString()
SObject::copy()
SObject::copySameFrom()
SObject::copyTwoLevel()
SObject::deepCopy()
SObject::isEqual()
SObject::isEqualTo()
SObject::isNotEqualTo()
SObject::isNotReferenceTo()
SObject::isReferenceTo()
SObject::newFrom()
SObject::postCopy()
SObject::printableString()
SObject::shallowCopy()
SObject::_deepCopyArray()
Documentation generated on Wed, 19 Sep 2007 10:24:56 -0400 by phpDocumentor 1.3.0RC3