protocols.implementations
Class VSBerkelyTimeProtocol

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

public class VSBerkelyTimeProtocol
extends VSAbstractProtocol

The class VSBerkelyTimeProtocol, an implementation of the berkely time 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
VSBerkelyTimeProtocol()
          Instantiates a new berkely time 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 onServerInit()
          On server init.
 void onServerRecv(VSMessage recvMessage)
          On server recv.
 void onServerReset()
          On server reset.
 void onServerSchedule()
          On server schedule.
 void onServerStart()
          On server start.
 java.lang.String toString()
           
 
Methods inherited from class protocols.VSAbstractProtocol
currentContextIsServer, deserialize, getNumProcesses, hasOnServerStart, isClient, isClient, isRelevantMessage, isServer, isServer, onClientScheduleStart, onClientStart, onInit, onMessageRecvStart, onServerScheduleStart, 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

VSBerkelyTimeProtocol

public VSBerkelyTimeProtocol()
Instantiates a new berkely time protocol.

Method Detail

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

onServerStart

public void onServerStart()
Description copied from class: VSAbstractProtocol
On server start.

Overrides:
onServerStart 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

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

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

toString

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