protocols.implementations
Class VSInternalTimeSyncProtocol

java.lang.Object
  extended by prefs.VSPrefs
      extended by prefs.VSSerializablePrefs
          extended by events.VSAbstractEvent
              extended by protocols.VSAbstractProtocol
                  extended by protocols.implementations.VSInternalTimeSyncProtocol
All Implemented Interfaces:
VSSerializable

public class VSInternalTimeSyncProtocol
extends VSAbstractProtocol

The class VSInternalTimeSyncProtocol, an implementation of the internal time synchronisation protocol.

Author:
Paul C. Buetow

Field Summary
 
Fields inherited from class protocols.VSAbstractProtocol
HAS_ON_CLIENT_START, HAS_ON_SERVER_START
 
Fields inherited from class events.VSAbstractEvent
prefs, process
 
Fields inherited from class prefs.VSPrefs
BOOLEAN_PREFIX, COLOR_PREFIX, FLOAT_PREFIX, id, INTEGER_PREFIX, LONG_PREFIX, STRING_PREFIX, VECTOR_PREFIX
 
Constructor Summary
VSInternalTimeSyncProtocol()
          Instantiates a new internal time sync protocol.
 
Method Summary
 void onClientInit()
          On client init.
 void onClientRecv(VSMessage recvMessage)
          On client recv.
 void onClientReset()
          On client reset.
 void onClientSchedule()
          On client schedule.
 void onClientStart()
          On client start.
 void onServerInit()
          On server init.
 void onServerRecv(VSMessage recvMessage)
          On server recv.
 void onServerReset()
          On server reset.
 void onServerSchedule()
          On server schedule.
 java.lang.String toString()
           
 
Methods inherited from class protocols.VSAbstractProtocol
currentContextIsServer, deserialize, getNumProcesses, hasOnServerStart, isClient, isClient, isRelevantMessage, isServer, isServer, onClientScheduleStart, onInit, onMessageRecvStart, onServerScheduleStart, onServerStart, onStart, removeSchedules, reset, scheduleAt, sendMessage, serialize
 
Methods inherited from class events.VSAbstractEvent
equals, getClassname, getCopy, getCopy, getName, getProcess, getShortname, init, init, log, setClassname, setShortname
 
Methods inherited from class prefs.VSPrefs
clear, copyBooleans, copyColors, copyFloats, copyIntegers, copyLongs, copyStrings, deserialize_, getAllFullKeys, getBoolean, getBooleanKeySet, getBooleanObj, getColor, getColorKeySet, getDescription, getFloat, getFloatKeySet, getFloatObj, getID, getInteger, getIntegerKeySet, getIntegerObj, getLong, getLongKeySet, getLongObj, getObject, getRestriction, getString, getStringKeySet, getUnit, getVector, getVectorKeySet, initBoolean, initBoolean, initBoolean, initColor, initColor, initDescription, initFloat, initFloat, initFloat, initFloat, initInteger, initInteger, initInteger, initInteger, initInteger, initInteger, initLong, initLong, initLong, initLong, initRestriction, initString, initString, initUnit, initVector, initVector, initVector, isEmpty, objectExists, removeObject, serialize_, setBoolean, setBoolean, setColor, setFloat, setFloat, setInteger, setInteger, setLong, setLong, setObject, setString, setVector
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VSInternalTimeSyncProtocol

public VSInternalTimeSyncProtocol()
Instantiates a new internal time sync protocol.

Method Detail

onClientInit

public void onClientInit()
Description copied from class: VSAbstractProtocol
On client init.

Specified by:
onClientInit in class VSAbstractProtocol

onClientReset

public void onClientReset()
Description copied from class: VSAbstractProtocol
On client reset.

Specified by:
onClientReset in class VSAbstractProtocol

onClientStart

public void onClientStart()
Description copied from class: VSAbstractProtocol
On client start.

Overrides:
onClientStart in class VSAbstractProtocol

onClientRecv

public void onClientRecv(VSMessage recvMessage)
Description copied from class: VSAbstractProtocol
On client recv.

Specified by:
onClientRecv in class VSAbstractProtocol
Parameters:
recvMessage - the message

onClientSchedule

public void onClientSchedule()
Description copied from class: VSAbstractProtocol
On client schedule.

Specified by:
onClientSchedule in class VSAbstractProtocol

onServerInit

public void onServerInit()
Description copied from class: VSAbstractProtocol
On server init.

Specified by:
onServerInit in class VSAbstractProtocol

onServerReset

public void onServerReset()
Description copied from class: VSAbstractProtocol
On server reset.

Specified by:
onServerReset in class VSAbstractProtocol

onServerRecv

public void onServerRecv(VSMessage recvMessage)
Description copied from class: VSAbstractProtocol
On server recv.

Specified by:
onServerRecv in class VSAbstractProtocol
Parameters:
recvMessage - the message

onServerSchedule

public void onServerSchedule()
Description copied from class: VSAbstractProtocol
On server schedule.

Specified by:
onServerSchedule in class VSAbstractProtocol

toString

public java.lang.String toString()
Overrides:
toString in class VSAbstractProtocol