All Packages Class Hierarchy This Package Previous Next Index
Class pinball.buffer.Buffer
java.lang.Object
|
+----pinball.buffer.Buffer
- public class Buffer
- extends Object
The buffer. Has a information buffer containing data collected by the frame.
The buffers are stored as a circular linked list.
- See Also:
- BuffInfo
-
id
- The buffer's id.
-
info
- The information of the buffer.
-
lock
- The lock for the buffer.
-
next
- The next buffer.
-
recordable
- Is this buffer able to be recorded.
-
skipped
- Indicates if the buffer was skipped in by a thread.
-
strategyUnlock
- The strategy's unlock status.
-
Buffer()
- For extended use.
-
Buffer(int)
- Set's the id of the buffer.
-
Buffer(int, BufferInfo, Watcher)
- Set's the id of the buffer.
-
canRecord()
- Returns recordable status.
-
clone()
- Used to clone the buffer.
-
id()
-
Get the buffer's id.
-
info()
- Get the buffer info.
-
info(BufferInfo)
- Set the information.
-
lock()
- The mutex for the buffer in the processing threads.
-
next()
-
Get the next buffer.
-
next(Buffer)
- Set the next buffer.
-
recordable()
-
The buffer can be recorded.
-
skipped()
-
Was the buffer skipped by a thread.
-
skipped(boolean)
- Set skip status.
-
strategyUnlock(String)
-
Get's the strategy unlock status.
lock
private Watcher lock
- The lock for the buffer.
next
private transient Buffer next
- The next buffer.
info
private BufferInfo info
- The information of the buffer.
id
private int id
- The buffer's id.
strategyUnlock
private String strategyUnlock
- The strategy's unlock status. Determines whether the buffer was unlocked
naturally or forced unlocked.
Naturally means that it was unlocked properly.
Forced means that it never got the signal to unlock and was forced unlocked
by another buffer being unlocked. This is used in network play, should
an unlock command be lost in the network.
skipped
private boolean skipped
- Indicates if the buffer was skipped in by a thread.
recordable
private boolean recordable
- Is this buffer able to be recorded.
Buffer
public Buffer(int id)
- Set's the id of the buffer.
- Parameters:
- id - the id for this buffer.
Buffer
public Buffer()
- For extended use.
Buffer
public Buffer(int id,
BufferInfo info,
Watcher lock)
- Set's the id of the buffer.
- Parameters:
- id - the id for this buffer.
- info - the information of the buffer.
- lock - The lock for the buffer. Used in clone.
skipped
public boolean skipped()
- Was the buffer skipped by a thread.
- Returns:
- skipped status.
skipped
public void skipped(boolean s)
- Set skip status.
- Parameters:
- s - skip status.
clone
public Object clone()
- Used to clone the buffer.
- Returns:
- clone of buffers.
- Overrides:
- clone in class Object
next
public void next(Buffer buffer)
- Set the next buffer.
- Parameters:
- buffer - The next buffer.
next
public Buffer next()
- Get the next buffer.
- Parameters:
- the - next buffer.
lock
public Watcher lock()
- The mutex for the buffer in the processing threads.
- Returns:
- the lock for the buffer.
info
public BufferInfo info()
- Get the buffer info.
- Returns:
- the information buffer.
info
public void info(BufferInfo i)
- Set the information.
- Parameters:
- i - information buffer to be set.
id
public int id()
- Get the buffer's id.
- Returns:
- the id of this buffer.
strategyUnlock
public void strategyUnlock(String u)
- Get's the strategy unlock status.
- Returns:
- strategy unlock status.
recordable
public void recordable()
- The buffer can be recorded.
canRecord
public boolean canRecord()
- Returns recordable status.
- Returns:
- Status of buffer's recordablity.
All Packages Class Hierarchy This Package Previous Next Index