|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IDuration
This is a interface to represent durations from seconds up to years.
Remark: IRIS supports datatypes according to the standard specification for primitive XML Schema datatypes.
| Method Summary | |
|---|---|
int |
getDay()
Returns the days |
double |
getDecimalSecond()
Return the complete floating point representation of the seconds components. |
int |
getHour()
Returns the hours |
int |
getMillisecond()
Returns the milliseconds. |
int |
getMinute()
returns the minutes |
int |
getMonth()
Returns the months |
int |
getSecond()
Returns the seconds |
Duration |
getValue()
Return the wrapped type. |
int |
getYear()
Returns the years. |
boolean |
isPositive()
Returns true if this is a positive duration,
false otherwise. |
| Methods inherited from interface org.deri.iris.api.terms.IConcreteTerm |
|---|
getDatatypeIRI, toCanonicalString |
| Methods inherited from interface org.deri.iris.api.terms.ITerm |
|---|
isGround |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Method Detail |
|---|
Duration getValue()
getValue in interface ITermboolean isPositive()
true if this is a positive duration,
false otherwise. Also returns true if this is a
duration of length 0.
true if this is a positive duration,
false otherwise.int getYear()
int getMonth()
int getDay()
int getHour()
int getMinute()
int getSecond()
int getMillisecond()
double getDecimalSecond()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||