org.opensha.refFaultParamDb.data
Class ExactTime

java.lang.Object
  extended by org.opensha.refFaultParamDb.data.TimeAPI
      extended by org.opensha.refFaultParamDb.data.ExactTime

public class ExactTime
extends TimeAPI

Title: ExactTime.java

Description: This class hold the exact time. This time can be a event time or a start/end time in a timespan

Copyright: Copyright (c) 2002

Company:

Version:
1.0
Author:
not attributable

Field Summary
 
Fields inherited from class org.opensha.refFaultParamDb.data.TimeAPI
AD, BC
 
Constructor Summary
ExactTime(int year, int month, int day, int hour, int minute, int second, boolean isNow)
           
ExactTime(int year, int month, int day, int hour, int minute, int second, String era, boolean isNow)
           
 
Method Summary
 int getDay()
           
 String getEra()
           
 int getHour()
           
 boolean getIsNow()
          If this represesent NOW.
 int getMinute()
           
 int getMonth()
           
 int getSecond()
           
 int getYear()
           
 void setEra(String era)
           
 void setIsNow(boolean isNow)
          Set whether this represents NOW
 String toString()
           
 
Methods inherited from class org.opensha.refFaultParamDb.data.TimeAPI
getDatingComments, getReferencesList, setDatingComments, setReferencesList
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ExactTime

public ExactTime(int year,
                 int month,
                 int day,
                 int hour,
                 int minute,
                 int second,
                 String era,
                 boolean isNow)
Parameters:
year -
month -
day -
hour -
minute -
second -
era -

ExactTime

public ExactTime(int year,
                 int month,
                 int day,
                 int hour,
                 int minute,
                 int second,
                 boolean isNow)
Parameters:
year -
month -
day -
hour -
minute -
second -
Method Detail

setIsNow

public void setIsNow(boolean isNow)
Set whether this represents NOW

Parameters:
isNow -

getIsNow

public boolean getIsNow()
If this represesent NOW. Returns true if it represents NOW

Returns:

toString

public String toString()
Overrides:
toString in class TimeAPI

getEra

public String getEra()

setEra

public void setEra(String era)

getYear

public int getYear()

getMonth

public int getMonth()

getDay

public int getDay()

getHour

public int getHour()

getMinute

public int getMinute()

getSecond

public int getSecond()