|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
dsnserver.DSNtimetoTime
public class DSNtimetoTime
This class is for parsing the strings i ncluding the time and for the calculation from DSNtime to Real time.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
Field Summary | |
---|---|
(package private) java.text.SimpleDateFormat |
df
|
(package private) Communication |
myComm
|
(package private) java.util.Date |
now
|
static long |
RealTime
|
(package private) long |
timeNowDSN
|
(package private) long |
timeNowReal
|
(package private) long |
timeOldDSN
|
(package private) long |
timeOldReal
|
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
DSNtimetoTime(Communication comm)
|
Method Summary | |
---|---|
java.lang.String |
getRealTime(java.lang.String DSNtimeStr)
Is used to calculate a real time out of a DSNtime. |
void |
parseLine(java.lang.String line)
If appears a line which is starting with ":DT" this function is responsible for parsing it. |
void |
run()
Requests all x milliseconds a new DSNtime from the DSNnode. |
Methods inherited from class java.lang.Thread |
---|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
java.util.Date now
java.text.SimpleDateFormat df
long timeNowReal
long timeOldReal
long timeNowDSN
long timeOldDSN
public static long RealTime
Communication myComm
Constructor Detail |
---|
public DSNtimetoTime(Communication comm)
Method Detail |
---|
public void parseLine(java.lang.String line)
parseLine
in interface CmdParser
public java.lang.String getRealTime(java.lang.String DSNtimeStr)
String
- DSNtimeStr (the time to convert)
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |