|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfaa.tg.units.AMeasure
faa.tg.units.Time
faa.tg.scenario.SystemTime
public class SystemTime
The SystemTime is the system wallclock time. See Nas Time for times that will be used external to the system. See Simulation Time for times that will be used internal to the system.See the source: SystemTime.java
Time,
NasTime,
SimulationTime,
Serialized Form| Field Summary | |
|---|---|
static java.lang.String |
CVS_VERSION_ID
The CVS Version ID |
private static java.text.DecimalFormat |
dec00
|
private Time |
now
|
(package private) static long |
serialVersionUID
|
| Fields inherited from class faa.tg.units.Time |
|---|
MAX, MIN_1, MIN_10, MIN_5, MS_1, ONE_MILLISEC, ONE_MIN, ONE_SEC, SEC_1, SEC_10, SEC_20, SEC_5, SORT_DATE_FMT, STD_DATE_FMT, TEN_MIN, ZERO |
| Fields inherited from class faa.tg.units.AMeasure |
|---|
DEC0, DEC0_, DEC00, DEC000, DEC1, DEC1_, DEC12, DEC12_, DEC1L, DEC1L_, DEC2, DEC2_, DEC3, DEC3_, DEC4, DEC4_, DEC5, DEC5_, DEC6, DEC6_, DEC7, DEC7_, DEC9, DEC9_, itsValue, TIME_FRACTION |
| Constructor Summary | |
|---|---|
SystemTime()
Constructor for the current system wallclock time in milliseconds. |
|
SystemTime(java.util.Calendar calendarTime)
Constructor to set the given system wallclock time from a Calendar. |
|
SystemTime(Time time)
Constructor to set the given system wallclock time from a Time measure. |
|
| Method Summary | |
|---|---|
SystemTime |
clone()
Get a clone of the current SystemTime, since the time can be reset. |
Time |
getNow()
Returns the current SystemTime as an immutable Time measure. |
static void |
main(java.lang.String[] args)
|
private void |
readObject(java.io.ObjectInputStream in)
If this object is imported from a Serializable SystemTime created before 2002/04/11, the "now" value is set so that it is not null. |
void |
setNow()
Set the SystemTime to the current time. |
java.lang.String |
toFilenameString()
Returns a easily readable string representation of the System time that contains only characters suitable for a filename. |
java.lang.String |
toHmsNumberString()
Returns the time of day for this SystemTime in "HHMMSS" String format. |
java.lang.String |
toHmsString()
Returns the time of day for this SystemTime in "HH:MM:SS" String format. |
java.lang.String |
toString()
Returns a string representation of this object. |
java.lang.String |
toYmdHmsNumberString()
Returns a string representation of the time with only numerics: format is "YYYYMMDDHHMMSS". |
java.lang.String |
toYmdHmsString()
Returns this object in "YYYY-MM-DD HH:MM:SS" String format. |
java.lang.String |
toYmdNumberString()
Returns a string representation of the time with only numerics: format is "YYYYMMDD". |
java.lang.String |
toYmdString()
Returns a string representation of this object in "YYYY-MM-DD" format. |
java.lang.String |
toYmdTTimeString()
Returns the time as a String formatted as "YYYY-MM-DD-THHMM", for example: "2003-01-28-T1449" (the current jar file name format). |
| Methods inherited from class faa.tg.units.Time |
|---|
abs, add, as, eq, ge, gt, hms2sec, le, lt, now, parseSeconds, parseTime, ratio, sub, timeElapsedSince, toHhmmString, toHmsStringInt, toText |
| Methods inherited from class faa.tg.units.AMeasure |
|---|
absoluteValue, add, as, as, compareTo, debug, div, eq, equals, ge, getAUnit, getCanonicalUnit, getCanonicalValue, getInitialUnit, getUnitClass, gt, hashCode, isBetween, le, lt, mul, ratio, sub, toAMeasure, toString, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
static final long serialVersionUID
public static final java.lang.String CVS_VERSION_ID
private static final java.text.DecimalFormat dec00
private Time now
| Constructor Detail |
|---|
public SystemTime()
public SystemTime(java.util.Calendar calendarTime)
public SystemTime(Time time)
| Method Detail |
|---|
private void readObject(java.io.ObjectInputStream in)
throws java.io.IOException,
java.lang.ClassNotFoundException
java.io.IOException
java.lang.ClassNotFoundExceptionpublic SystemTime clone()
clone in class AMeasurepublic Time getNow()
public void setNow()
public java.lang.String toHmsString()
toHmsString in class Timepublic java.lang.String toHmsNumberString()
public java.lang.String toYmdHmsString()
public java.lang.String toYmdHmsNumberString()
public java.lang.String toYmdTTimeString()
public java.lang.String toFilenameString()
public java.lang.String toYmdString()
public java.lang.String toYmdNumberString()
public java.lang.String toString()
toString in class TimeAMeasurepublic static void main(java.lang.String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||