tauZaman
v0.1

tauzaman.io
Class Output

java.lang.Object
  |
  +--tauzaman.io.Output

public class Output
extends java.lang.Object

Output class handles conversion of timestamps to temporal constants.

Status:
design complete, implementation complete

Field Summary
private  CalendricSystem cachedCalendricSystem
          A handle to CalendricSystem, which is the cached CalendricSystem of parent TauZamanLocalService in a temporal data type.
private  PropertyManager cachedPropertyManager
          A handle to PropertyManager, which is the cached PropertyManager of parent TauZamanLocalService in a temporal data type.
private  FVSupportRepository fvsr
          A handle to FVSupportRepository of parent TauZamanSystem
 
Constructor Summary
Output(CalendricSystem cachedCalendricSystem, PropertyManager cachedPropertyManager, FVSupportRepository fvsr)
          Constructs an Output object.
 
Method Summary
private  java.lang.String formOutputString(Fields fields, java.lang.String format)
          Returns String temporal constant given Fields, which are formed from Granules, and String format, which comes form Property's Format information.
 java.lang.String parseOutput(Granule[] granules, java.lang.String propertyName)
          Returns formed String temporal constant given Granules and name of the Property to be used.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cachedCalendricSystem

private CalendricSystem cachedCalendricSystem
A handle to CalendricSystem, which is the cached CalendricSystem of parent TauZamanLocalService in a temporal data type.


cachedPropertyManager

private PropertyManager cachedPropertyManager
A handle to PropertyManager, which is the cached PropertyManager of parent TauZamanLocalService in a temporal data type. Cached PropertyManager means the PropertyManager. which corresponds to cached CalendricSystem.


fvsr

private FVSupportRepository fvsr
A handle to FVSupportRepository of parent TauZamanSystem

Constructor Detail

Output

public Output(CalendricSystem cachedCalendricSystem,
              PropertyManager cachedPropertyManager,
              FVSupportRepository fvsr)
Constructs an Output object.

Parameters:
cachedCalendricSystem - A handle to CalendricSystem, which is the cached CalendricSystem of parent TauZamanLocalService in a temporal data type.
cachedPropertyManager - A handle to PropertyManager, which is the cached PropertyManager of parent TauZamanLocalService in a temporal data type.
fvsr - A handle to FVSupportRepository of parent TauZamanSystem
Method Detail

parseOutput

public java.lang.String parseOutput(Granule[] granules,
                                    java.lang.String propertyName)
                             throws IOException
Returns formed String temporal constant given Granules and name of the Property to be used.

Parameters:
granules - array of Granule objects to be parsed into temporal constant
propertyName - String name of the Property
Throws:
IOException - if any abnormal condition occurs when parsing Granule(s) and forming output string

formOutputString

private java.lang.String formOutputString(Fields fields,
                                          java.lang.String format)
                                   throws IOException
Returns String temporal constant given Fields, which are formed from Granules, and String format, which comes form Property's Format information.

Parameters:
fields - Fields formed by using Granules
format - String format fetched from code>Property's Format information
Returns:
String temporal constant
Throws:
IOException - if any abnormal condition occurs when forming the String temporal constant

tauZaman
v0.1

Submit a bug or feature

tauZaman is an open-source, publicly avaliable project