Package jmri.jmris.srcp
Class JmriSRCPTimeServer
- java.lang.Object
-
- jmri.jmris.AbstractTimeServer
-
- jmri.jmris.srcp.JmriSRCPTimeServer
-
public class JmriSRCPTimeServer extends AbstractTimeServer
interface between the JMRI (fast) clock and an SRCP network connection
-
-
Field Summary
-
Fields inherited from class jmri.jmris.AbstractTimeServer
timebase, timeListener
-
-
Constructor Summary
Constructors Constructor Description JmriSRCPTimeServer(java.io.OutputStream outStream)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
listenToTimebase(boolean listen)
void
parseRate(int modelRate, int realRate)
void
parseRate(java.lang.String statusString)
void
parseTime(long JulDay, int Hour, int Minute, int Second)
void
parseTime(java.lang.String statusString)
void
sendErrorStatus()
void
sendRate()
void
sendStatus()
void
sendTime()
void
setAlarm(long JulDay, int Hour, int Minute, int Second)
void
stopTime()
-
Methods inherited from class jmri.jmris.AbstractTimeServer
dispose, startTime
-
-
-
-
Constructor Detail
-
JmriSRCPTimeServer
public JmriSRCPTimeServer(java.io.OutputStream outStream)
-
-
Method Detail
-
sendTime
public void sendTime() throws java.io.IOException
- Specified by:
sendTime
in classAbstractTimeServer
- Throws:
java.io.IOException
-
sendRate
public void sendRate() throws java.io.IOException
- Specified by:
sendRate
in classAbstractTimeServer
- Throws:
java.io.IOException
-
sendStatus
public void sendStatus() throws java.io.IOException
- Specified by:
sendStatus
in classAbstractTimeServer
- Throws:
java.io.IOException
-
sendErrorStatus
public void sendErrorStatus() throws java.io.IOException
- Specified by:
sendErrorStatus
in classAbstractTimeServer
- Throws:
java.io.IOException
-
parseTime
public void parseTime(java.lang.String statusString) throws JmriException, java.io.IOException
- Specified by:
parseTime
in classAbstractTimeServer
- Throws:
JmriException
java.io.IOException
-
parseTime
public void parseTime(long JulDay, int Hour, int Minute, int Second)
-
parseRate
public void parseRate(java.lang.String statusString) throws JmriException, java.io.IOException
- Specified by:
parseRate
in classAbstractTimeServer
- Throws:
JmriException
java.io.IOException
-
parseRate
public void parseRate(int modelRate, int realRate)
-
stopTime
public void stopTime()
- Overrides:
stopTime
in classAbstractTimeServer
-
setAlarm
public void setAlarm(long JulDay, int Hour, int Minute, int Second)
-
listenToTimebase
public void listenToTimebase(boolean listen)
- Overrides:
listenToTimebase
in classAbstractTimeServer
-
-