All Packages Class Hierarchy This Package Previous Next Index
Class pinball.Watcher
java.lang.Object
|
+----pinball.Watcher
- public class Watcher
- extends Object
- implements Serializable
The monitor for the locks on the threads.
-
analyzed
- Buffer frame was analyzed.
-
busyAnalysis
- Buffer is in analysis.
-
busyGrabber
- Buffer is in frame grabber.
-
busyPost
- Buffer is in post.
-
busyStrategy
- Buffer is in strategy.
-
empty
- The values for the lock positions.
-
grabed
- Buffer frame was grabed.
-
posted
- Buffer frame was drawn on the screen.
-
strategied
- Buffer frame was used to make the flipping descision.
-
Watcher()
- Setup the lock for the threads.
-
analyze(int)
-
Start analyze.
-
analyzed(int)
-
End analyze.
-
grab(int)
-
Start grab.
-
grabed(int)
-
End grab.
-
post(int)
- Start display.
-
posted(int)
-
End display.
-
status()
-
Find the status of the lock.
-
strategied(int)
-
End strategy.
-
strategy(int)
- Start strategy.
empty
public final int empty
- The values for the lock positions.
grabed
public final int grabed
- Buffer frame was grabed.
analyzed
public final int analyzed
- Buffer frame was analyzed.
strategied
public final int strategied
- Buffer frame was used to make the flipping descision.
posted
public final int posted
- Buffer frame was drawn on the screen.
busyGrabber
public final int busyGrabber
- Buffer is in frame grabber.
busyAnalysis
public final int busyAnalysis
- Buffer is in analysis.
busyStrategy
public final int busyStrategy
- Buffer is in strategy.
busyPost
public final int busyPost
- Buffer is in post.
Watcher
public Watcher()
- Setup the lock for the threads.
grab
public synchronized void grab(int d)
- Start grab. Wait for frame to be empty.
- Parameters:
- id - id of buffer, used for debugging.
grabed
public synchronized void grabed(int d)
- End grab. Set frame to next stage status.
- Parameters:
- id - id of buffer, used for debugging.
analyze
public synchronized void analyze(int d)
- Start analyze. Wait for frame to be grabbed.
- Parameters:
- id - id of buffer, used for debugging.
analyzed
public synchronized void analyzed(int d)
- End analyze. Set frame to next stage status.
- Parameters:
- id - id of buffer, used for debugging.
strategy
public synchronized void strategy(int d)
- Start strategy. Wait for frame to be analyzed.
- Parameters:
- id - id of buffer, used for debugging.
strategied
public synchronized void strategied(int d)
- End strategy. Set frame to next stage status.
- Parameters:
- id - id of buffer, used for debugging.
post
public synchronized void post(int d)
- Start display. Wait for frame to got through strategy.
- Parameters:
- id - id of buffer, used for debugging.
posted
public synchronized void posted(int d)
- End display. Set frame to next stage status.
- Parameters:
- id - id of buffer, used for debugging.
status
public synchronized int status()
- Find the status of the lock.
- Returns:
- the status of the lock.
All Packages Class Hierarchy This Package Previous Next Index