|
tauZaman v0.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--tauzaman.io.IOMultiplexer
IOMultiplexer
, abbreviation for Input/Output Multiplexer, class
classifies behaviours of different temporal data types using their parsed
Fields
. Fields
sits between timestamp, Granule
,
and temporal constant, String.
Field Summary | |
private CalendricSystem |
calendricSystem
A handle to CalendricSystem , which will be used in Input/Output
multiplexing |
private PropertyManager |
propertyManager
A handle to PropertyManager , which will be used in Input/Output
multiplexing |
Constructor Summary | |
protected |
IOMultiplexer(CalendricSystem calendricSystem,
PropertyManager propertyManager)
Constructs a IOMultiplexer object ready to serve. |
Method Summary | |
private Granule |
fieldsToGranule(Fields fields)
Returns corresponding Granule of Fields . |
protected void |
fillFields(Granule[] granules,
Fields fields)
Fills the values of Fields , which was formed by an
output Property , according to the information in
Granule . |
private void |
fillIndeterminateInstantFields(Granule granule,
Fields fields)
|
private void |
fillInstantFields(Granule granule,
Fields fields)
|
private void |
fillIntervalFields(Granule granule,
Fields fields)
|
private void |
fillNowRelativeInstantFields(Granule granule,
Fields fields)
|
private void |
fillPeriodFields(Granule[] granules,
Fields fields)
|
protected Granule[] |
getGranule(Fields fields)
Returns an array of Granule , which is formed by using
given Fields . |
private Granule |
getIndeterminateInstantGranule(Fields fields)
Returns a Granule , which corresponds to an IndeterminateInstant, by using
Fields . |
private Granule |
getInstantGranule(Fields fields)
Returns a Granule , which corresponds to an Instant, by using
Fields . |
private Granule |
getIntervalGranule(Fields fields)
Returns a Granule , which corresponds to an Interval, by using
Fields . |
private Granule |
getNowRelativeInstantGranule(Fields fields)
Returns a Granule , which corresponds to an NowRelativeInstant, by using
Fields . |
private Calendar[] |
getOrderedCalendars()
Returns an array of Calendar s, which are in order
to call for temporal constant or timestamp parsing. |
private Granule[] |
getPeriodGranule(Fields fields)
Returns an array of Granule , which corresponds
to an Period, by using Fields . |
private void |
granuleToFields(Granule granule,
Fields fields)
Fills given Fields 's Field objects
according to information in Granule . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private CalendricSystem calendricSystem
CalendricSystem
, which will be used in Input/Output
multiplexing
private PropertyManager propertyManager
PropertyManager
, which will be used in Input/Output
multiplexing
Constructor Detail |
protected IOMultiplexer(CalendricSystem calendricSystem, PropertyManager propertyManager)
IOMultiplexer
object ready to serve.
calendricSystem
- CalendricSystem
, which will be used in Input/Output
multiplexingpropertyManager
- PropertyManager
, which will be used in Input/Output
multiplexingMethod Detail |
private Calendar[] getOrderedCalendars() throws IOException
Calendar
s, which are in order
to call for temporal constant or timestamp parsing.
Calendar
s
IOException
- if any abnormal condition occurs when getting
ordered Calendar
sprivate Granule fieldsToGranule(Fields fields) throws IOException
Granule
of Fields
.
fields
- Fields
to be converted into Granule
IOException
- if any abnormal condition occurs when converting
Fields
to its corresponding Granule
private void granuleToFields(Granule granule, Fields fields) throws IOException
Fields
's Field
objects
according to information in Granule
.
granule
- Granule
containing information to fill fieldsfields
- Fields
to be filled
IOException
- if any abnormal condition occurs when filling
Fields
in according to information in Granule
protected void fillFields(Granule[] granules, Fields fields) throws IOException
Fields
, which was formed by an
output Property
, according to the information in
Granule
. This filled Fields
will be used
to form a temporal constant, that corresponds to Granule
.
granules
- an array of Granule
objects, which will be
used to fill fieldsfields
- Fields
to be filled
IOException
- if any abnormal condition occurs when filling the
Fields
private void fillInstantFields(Granule granule, Fields fields) throws IOException
IOException
private void fillIntervalFields(Granule granule, Fields fields) throws IOException
IOException
private void fillNowRelativeInstantFields(Granule granule, Fields fields) throws IOException
IOException
private void fillPeriodFields(Granule[] granules, Fields fields) throws IOException
IOException
private void fillIndeterminateInstantFields(Granule granule, Fields fields) throws IOException
IOException
protected Granule[] getGranule(Fields fields) throws IOException
Granule
, which is formed by using
given Fields
.
fields
- Fields
, which represents temporal constant
Granule
objects. Other than
PeriodInputFormat only one Granule
will be returned
IOException
- if any abnormal condition occurs when converting
Fields
to Granule
sprivate Granule getInstantGranule(Fields fields) throws IOException
Granule
, which corresponds to an Instant, by using
Fields
.
fields
- Fields
to be converted to Granule
Granule
, which corresponds to an Instant
IOException
- if any abnormal condition occurs when converting
Fields
to Granule
private Granule getIntervalGranule(Fields fields) throws IOException
Granule
, which corresponds to an Interval, by using
Fields
.
fields
- Fields
to be converted to Granule
Granule
, which corresponds to an Interval
IOException
- if any abnormal condition occurs when converting
Fields
to Granule
private Granule getNowRelativeInstantGranule(Fields fields) throws IOException
Granule
, which corresponds to an NowRelativeInstant, by using
Fields
.
fields
- Fields
to be converted to Granule
Granule
, which corresponds to a NowRelativeInstant
IOException
- if any abnormal condition occurs when converting
Fields
to Granule
private Granule[] getPeriodGranule(Fields fields) throws IOException
Granule
, which corresponds
to an Period, by using Fields
.
fields
- Fields
to be converted to Granule
Granule
, which corresponds to a Period
IOException
- if any abnormal condition occurs when converting
Fields
to Granule
(s)private Granule getIndeterminateInstantGranule(Fields fields) throws IOException
Granule
, which corresponds to an IndeterminateInstant, by using
Fields
.
fields
- Fields
to be converted to Granule
Granule
, which corresponds to a IndeterminateInstant
IOException
- if any abnormal condition occurs when converting
Fields
to Granule
|
tauZaman v0.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |