Package jmri.jmris
Class AbstractTimeServer
- java.lang.Object
-
- jmri.jmris.AbstractTimeServer
-
- Direct Known Subclasses:
JmriSRCPTimeServer
public abstract class AbstractTimeServer extends java.lang.Object
Abstract interface between the JMRI (fast) clock and a network connection
-
-
Field Summary
Fields Modifier and Type Field Description protected Timebase
timebase
protected java.beans.PropertyChangeListener
timeListener
-
Constructor Summary
Constructors Constructor Description AbstractTimeServer()
AbstractTimeServer(Timebase timebase)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
dispose()
void
listenToTimebase(boolean listen)
abstract void
parseRate(java.lang.String statusString)
abstract void
parseTime(java.lang.String statusString)
abstract void
sendErrorStatus()
abstract void
sendRate()
abstract void
sendStatus()
abstract void
sendTime()
void
startTime()
void
stopTime()
-
-
-
Field Detail
-
timeListener
protected java.beans.PropertyChangeListener timeListener
-
-
Constructor Detail
-
AbstractTimeServer
public AbstractTimeServer()
-
AbstractTimeServer
public AbstractTimeServer(Timebase timebase)
-
-
Method Detail
-
sendTime
public abstract void sendTime() throws java.io.IOException
- Throws:
java.io.IOException
-
sendRate
public abstract void sendRate() throws java.io.IOException
- Throws:
java.io.IOException
-
sendStatus
public abstract void sendStatus() throws java.io.IOException
- Throws:
java.io.IOException
-
sendErrorStatus
public abstract void sendErrorStatus() throws java.io.IOException
- Throws:
java.io.IOException
-
parseTime
public abstract void parseTime(java.lang.String statusString) throws JmriException, java.io.IOException
- Throws:
JmriException
java.io.IOException
-
parseRate
public abstract void parseRate(java.lang.String statusString) throws JmriException, java.io.IOException
- Throws:
JmriException
java.io.IOException
-
startTime
public void startTime()
-
stopTime
public void stopTime()
-
dispose
public void dispose()
-
listenToTimebase
public void listenToTimebase(boolean listen)
-
-