|
tauZaman v0.1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--tauzaman.TauZamanService
TauZamanService class is a wrapper class for TauZamanLocalService
and TauZamanRemoteService. It has two rationales;
First, it encapsulates active TauZamanService, which can be either
TauZamanLocalService or TauZamanRemoteService. Second,
it caches TauZamanService, which is used during creation of a temporal
data type, such as Instant, Interval, Period or more fundamentally during
creation of a Granule.
There are two kinds of TauZamanServices; TauZamanLocalService
and TauZamanRemoteService. The only relation between them can be explained
as; TauZamanRemoteService "has a" TauZamanLocalService.
Hence, this class keeps two kinds of services seperately in a mutually exclusive manner.
That's to say, if one service (remote/local) is null, the other should be valid.
TauZamanLocalService,
TauZamanRemoteService,
Granule,
Instant,
Interval,
Period| Constructor Summary | |
TauZamanService(TauZamanLocalService tzls)
Constructs a TauZamanService from given
TauZamanLocalService. |
|
TauZamanService(TauZamanRemoteService tzrs)
Constructs a TauZamanService from given
TauZamanRemoteService. |
|
| Method Summary | |
void |
cacheCalendricSystemName()
Caches CalendricSystem name of valid TauZaman service
that this TauZamanService keeps.
|
Granularity |
getActiveCalendricSystemDefaultGranularity()
Returns default Granularity of active CalendricSystem of this
TauZamanService. |
java.lang.String |
getActiveCalendricSystemName()
Returns name of active CalendricSystem of this service. |
Granule[] |
parseInput(java.lang.String input,
java.lang.String propertyName)
Returns an array of Granule objects formed by using input temporal constant and
given Property name. |
java.lang.String |
parseOutput(Granule[] granules,
java.lang.String propertyName)
Converts a timestamp (in terms of Granule(s)) into temporal
constant as string. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public TauZamanService(TauZamanRemoteService tzrs)
throws TauZamanException
TauZamanService from given
TauZamanRemoteService.
tzrs - TauZamanRemoteService that this TauZamanService
will be initialized
TauZamanException - if this service was not set to a valid TauZamanRemoteService
public TauZamanService(TauZamanLocalService tzls)
throws TauZamanException
TauZamanService from given
TauZamanLocalService.
tzls - TauZamanLocalService that this TauZamanService
will be initialized
TauZamanException - if this service was not set to a valid TauZamanLocalService| Method Detail |
public void cacheCalendricSystemName()
throws java.rmi.RemoteException
CalendricSystem name of valid TauZaman service
that this TauZamanService keeps.
This method will be called when a temporal data type
needs to cache CalendricSystem name along
with active TauZamanService.
java.rmi.RemoteException - if any abnormal condition occurs when returning
active CalendricSystem name. The only source of exceptions here is
Remote connections, if underlying service is Remote.
public java.lang.String getActiveCalendricSystemName()
throws java.rmi.RemoteException
CalendricSystem of this service.
CalendricSystem of this service
java.rmi.RemoteException - if any abnormal condition occurs when returning
active CalendricSystem name. The only source of exceptions here is
Remote connections, if underlying service is Remote.
public Granularity getActiveCalendricSystemDefaultGranularity()
throws java.rmi.RemoteException
Granularity of active CalendricSystem of this
TauZamanService.
Granularity of active CalendricSystem of this
TauZamanService
java.rmi.RemoteException - if any abnormal condition occurs when returning
active CalendricSystem's default Granularity.
The only source of exceptions here is Remote connections, if underlying service is Remote.
public Granule[] parseInput(java.lang.String input,
java.lang.String propertyName)
throws java.rmi.RemoteException,
IOException
Granule objects formed by using input temporal constant and
given Property name.
input - String that represents input temporal constantpropertyName - name of the Property to be used when parsing input
Granule objects
java.rmi.RemoteException - if any abnormal condition occurs in the connection if
this service is remote.
IOException - if any abnormal condition occurs while parsing input
temporal constant
public java.lang.String parseOutput(Granule[] granules,
java.lang.String propertyName)
throws java.rmi.RemoteException,
IOException
Granule(s)) into temporal
constant as string. Format of the output string, given Property's
format template is used.
granules - Calendar parsed timestamppropertyName - name of the Property, which is used to
format of the output string, temporal constant
java.rmi.RemoteException - if any abnormal condition occurs in the connection if
this service is remote.
IOException - if any abnormal condition occurs while parsing input
temporal constant
|
tauZaman v0.1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||