All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class pinball.player.adjustable.AdjustableBuffer

java.lang.Object
   |
   +----pinball.buffer.Buffer
           |
           +----pinball.player.adjustable.AdjustableBuffer

public class AdjustableBuffer
extends Buffer
Adjustable buffer. Has a information buffer containing data collected by the frame. The adjustable part is that the flippers flip areas can then be readjusted by the user.


Constructor Index

 o AdjustableBuffer(int)
Set's the id of the buffer.
 o AdjustableBuffer(int, boolean)
Set's the id of the buffer.
 o AdjustableBuffer(int, BufferInfo, Watcher)
Set's the id of the buffer.

Method Index

 o canRecord()
Return recordable status.
 o clone()
Used to clone the buffer.
 o id()
Get the buffer's id.
 o info()
Get the buffer info.
 o info(BufferInfo)
Set the information.
 o lock()
The mutex for the buffer in the processing threads.
 o next()
Get the next buffer.
 o next(Buffer)
Set the next buffer.
 o recordable()
The buffer can be recorded.
 o skipped()
Was the buffer skipped by a thread.
 o skipped(boolean)
Set skip status.
 o strategyUnlock(String)
Get's the strategy unlock status.

Constructors

 o AdjustableBuffer
 public AdjustableBuffer(int id,
                         boolean flippers)
Set's the id of the buffer.

Parameters:
id - the id for this buffer.
flippers - Are flippers to be made.
 o AdjustableBuffer
 public AdjustableBuffer(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.
 o AdjustableBuffer
 public AdjustableBuffer(int id)
Set's the id of the buffer.

Parameters:
id - the id for this buffer.

Methods

 o skipped
 public boolean skipped()
Was the buffer skipped by a thread.

Returns:
skipped status.
Overrides:
skipped in class Buffer
 o skipped
 public void skipped(boolean s)
Set skip status.

Parameters:
s - skip status.
Overrides:
skipped in class Buffer
 o clone
 public Object clone()
Used to clone the buffer.

Returns:
clone of buffers.
Overrides:
clone in class Buffer
 o next
 public void next(Buffer buffer)
Set the next buffer.

Parameters:
buffer - The next buffer.
Overrides:
next in class Buffer
 o next
 public Buffer next()
Get the next buffer.

Parameters:
the - next buffer.
Overrides:
next in class Buffer
 o lock
 public Watcher lock()
The mutex for the buffer in the processing threads.

Returns:
the lock for the buffer.
Overrides:
lock in class Buffer
 o info
 public BufferInfo info()
Get the buffer info.

Returns:
the information buffer.
Overrides:
info in class Buffer
 o info
 public void info(BufferInfo i)
Set the information.

Parameters:
i - information buffer to be set.
Overrides:
info in class Buffer
 o id
 public int id()
Get the buffer's id.

Returns:
the id of this buffer.
Overrides:
id in class Buffer
 o strategyUnlock
 public void strategyUnlock(String u)
Get's the strategy unlock status.

Returns:
strategy unlock status.
Overrides:
strategyUnlock in class Buffer
 o recordable
 public void recordable()
The buffer can be recorded.

Overrides:
recordable in class Buffer
 o canRecord
 public boolean canRecord()
Return recordable status.

Returns:
Status of buffer's recordablity.
Overrides:
canRecord in class Buffer

All Packages  Class Hierarchy  This Package  Previous  Next  Index