osBridge
Class OsBridge

java.lang.Object
  |
  +--osBridge.OsBridge

public class OsBridge
extends java.lang.Object


Constructor Summary
OsBridge(int bridgeSize, int yellowQueue, int yellowExit, int purpleQueue, int purpleExit, BridgeListener list)
           
 
Method Summary
 void addPurple()
           
 void addYellow()
           
 void pulsePurple()
           
 void pulseUpdate()
           
 void pulseYellow()
           
 void setAllowStarvation(boolean newVal)
           
 void setPThreadSleep(int newVal)
           
 void setThreadsRunning(boolean newVal)
           
 void setUseMutexes(boolean newVal)
           
 void setYThreadSleep(int newVal)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OsBridge

public OsBridge(int bridgeSize,
                int yellowQueue,
                int yellowExit,
                int purpleQueue,
                int purpleExit,
                BridgeListener list)
Method Detail

setPThreadSleep

public void setPThreadSleep(int newVal)

setYThreadSleep

public void setYThreadSleep(int newVal)

setThreadsRunning

public void setThreadsRunning(boolean newVal)

setAllowStarvation

public void setAllowStarvation(boolean newVal)

setUseMutexes

public void setUseMutexes(boolean newVal)

pulseUpdate

public void pulseUpdate()

addPurple

public void addPurple()

addYellow

public void addYellow()

pulsePurple

public void pulsePurple()

pulseYellow

public void pulseYellow()