org.gnu6.six
Class Time

java.lang.Object
  |
  +--org.gnu6.six.Time

public class Time
extends java.lang.Object

This is a storage class for time string of mlist. It can return start and end time for a process.


Field Summary
static java.lang.String country
           
 java.util.Date End
           
static java.lang.String language
           
 java.util.Date Start
           
static java.lang.String TimeZone
           
 
Constructor Summary
Time(java.lang.String startTime, java.lang.String endTime, java.lang.String timeZone)
          Creates an instance of the class Time for a particular time zone.
 
Method Summary
 java.util.Date getEnd()
          Returns the date which is the terminal moment stored in the instance of the class Time.
 java.util.Date getStart()
          Returns the date which is starting moment stored in the instance of the class Time.
 java.lang.String getTimeZone()
          Returns the time zone used by the instance of the class Time.
 void setEnd(java.util.Date eNd)
          Sets a terminal date for the process.
 void setStart(java.util.Date sTart)
          Sets the date which is the starting moment stored in the instance of the class Time.
static org.gnu6.six.Time timeFactory(java.lang.String startTime, java.lang.String endTime)
          Creates an instance of the class Time.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

language

public static final java.lang.String language
See Also:
Constant Field Values

country

public static final java.lang.String country
See Also:
Constant Field Values

Start

public java.util.Date Start

End

public java.util.Date End

TimeZone

public static java.lang.String TimeZone
Constructor Detail

Time

public Time(java.lang.String startTime,
            java.lang.String endTime,
            java.lang.String timeZone)
     throws java.lang.Exception
Creates an instance of the class Time for a particular time zone.

Throws:
java.lang.Exception - if the arguments are not correctly defined.
Method Detail

timeFactory

public static org.gnu6.six.Time timeFactory(java.lang.String startTime,
                                            java.lang.String endTime)
                                     throws java.lang.Exception
Creates an instance of the class Time.

Throws:
java.lang.Exception - if the arguments are not correctly defined.

getStart

public java.util.Date getStart()
Returns the date which is starting moment stored in the instance of the class Time.

Returns:
the moment of time after which the process can be executed.

setStart

public void setStart(java.util.Date sTart)
Sets the date which is the starting moment stored in the instance of the class Time.


getEnd

public java.util.Date getEnd()
Returns the date which is the terminal moment stored in the instance of the class Time. After this moment the process can not be executed.

Returns:
the moment after which the process can not be executed.

setEnd

public void setEnd(java.util.Date eNd)
Sets a terminal date for the process. After this date the process can not be executed.


getTimeZone

public java.lang.String getTimeZone()
Returns the time zone used by the instance of the class Time.

Returns:
time zone in use