Overview Package Class Use Tree Deprecated Index Help
PREV CLASS NEXT CLASS FRAMES NO FRAMES All Classes
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

edu.cmu.emulator
Class EmuSynch

java.lang.Object
 extended by edu.cmu.emulator.EmuSynch
All Implemented Interfaces:
Runnable

public class EmuSynch
extends Object
implements Runnable


Field Summary
private static byte[] BROADCAST_ADDR
private static boolean isClient
private static boolean isServer
protected static double MIN_SLEEP_TIME_SECS
private static long startTime
private static int SYNCH_PORT
private static byte[] synchMsg
private static Object synchObj
Constructor Summary
EmuSynch()
Method Summary
static long curTime()
deprecated, use curTimeMillis
static long curTimeMillis()
static double curTimeSecs()
static void main(String[] args)
void run()
static void setClient()
static void setServer()
static void sleepUntilSecs(double awakeTime)
static void start()
static void waitForStart()
private static void waitForSynch()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Detail

isClient

private static boolean isClient

isServer

private static boolean isServer

startTime

private static long startTime

synchObj

private static Object synchObj

synchMsg

private static final byte[] synchMsg

BROADCAST_ADDR

private static final byte[] BROADCAST_ADDR

SYNCH_PORT

private static final int SYNCH_PORT
See Also:
Constant Field Values

MIN_SLEEP_TIME_SECS

protected static final double MIN_SLEEP_TIME_SECS
See Also:
Constant Field Values
Constructor Detail

EmuSynch

public EmuSynch()
Method Detail

setClient

public static void setClient()

setServer

public static void setServer()

start

public static void start()

waitForSynch

private static void waitForSynch()
 throws IOException
Throws:
IOException

waitForStart

public static void waitForStart()

curTime

public static long curTime()
deprecated, use curTimeMillis


curTimeMillis

public static long curTimeMillis()

curTimeSecs

public static double curTimeSecs()

sleepUntilSecs

public static void sleepUntilSecs(double awakeTime)

run

public void run()
Specified by:
run in interface Runnable

main

public static void main(String[] args)

Overview Package Class Use Tree Deprecated Index Help
PREV CLASS NEXT CLASS FRAMES NO FRAMES All Classes
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

Copyright © 2013. All Rights Reserved.

AltStyle によって変換されたページ (->オリジナル) /