All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class pinball.buffer.BufferInfo

java.lang.Object
   |
   +----pinball.buffer.BufferInfo

public class BufferInfo
extends Object
implements Serializable
The information buffer's information. This contains data about the frame from the camera. It is passed around to each of the threads. Each thread makes whatever analysis it needs to do on the information so that the system can play pinball.

See Also:
Buffer

Variable Index

 o blip
The object found.
 o blips
The frame of found objects.
 o bottom
Used to define the top & bottom of the image to see if the ball is in play or out of play.
 o clearing
Are the frames to be cleared on the window.
 o dataIO
The data IO device.
 o flipperFlipped
Did the flipper flip.
 o flipperOffset
The y offset for the flippers.
 o frame
The frame from the camera.
 o height
The size of the frame.
 o id
The id of the information buffer.
 o imageOffset
The image offset.
 o number
The number of the frame grabed.
 o objects
Table of found objects.
 o resizeInfo
The resize information for the image.
 o size
Number of bytes for the image.
 o stub
The stub for the strategy.
 o timestamp
The time stamper, used to keep track of the time used by various processes.
 o top
Used to define the top & bottom of the image to see if the ball is in play or out of play.
 o transfer
The transfer size of the image.
 o verboseFrame
The frame from the camera.
 o width
The size of the frame.
 o XOffset
The x & y offsets for the image.
 o YOffset
The x & y offsets for the image.

Constructor Index

 o BufferInfo()
For extended class.
 o BufferInfo(int)
Build the buffer information.

Method Index

 o blip()
Get the blip (ball) seen.
 o bottom()
The bottom of the playfield.
 o cameraInfo(int)
Make the frame for the image.
 o cameraInfo(int, int, int)
Make the frame for the image.
 o cameraInfo(int, int, int, int)
Make the frame for the image.
 o clearing()
Get the clearing flag.
 o clearing(boolean)
Set the clearing flag.
 o flipperFlipped()
Get the flippers flipped condition.
 o flipperFlipped(boolean)
Set the flippers flipped condition.
 o flipperOffset()
Get the flipper offset.
 o flipperOffset(int)
Set the flipper offset.
 o get()
Get the frame, used to pass buffer to camera.
 o getBlipsFrame()
Get the frame of found objects.
 o getCameraFrame()
Get the CameraFrame for saving in a log file.
 o getObjects()
Get the objects table.
 o getStub()
Get the stub for the system.
 o height()
Get the height.
 o height(int)
Set frame height.
 o id()
Get the buffer's id.
 o imageOffset()
Get the image offset.
 o imageOffset(int)
Set the image offset.
 o number()
Get frame grabbed number.
 o number(int)
Set frame grabbed number.
 o offsets(int, int)
Set the location of the offsets.
 o resize()
Get the resize flag.
 o resize(int, int, int, int)
Set the resize flag and include resize information.
 o resize(int, int, int, int, int)
Set the resize flag and include resize information.
 o resized()
Set the condition that it was resized.
 o resizeTransfer()
Get the transfer size.
 o resizeX()
Get the resize x size.
 o resizeXOffset()
Get the resize x offset.
 o resizeY()
Get the resize y size.
 o resizeYOffset()
Get the resize y offset.
 o set(CameraFrame)
Set the frame buffer.
 o setBlips(int[][], Vector)
Store the found objects frame and Vector table.
 o setBlips(Vector)
Store the objects found.
 o setStub(Stub)
Set the stub for the system.
 o time()
The time stamp used in the threads.
 o top()
The top of the playfield.
 o topBottom(int, int)
Set the top & bottom for the in play area.
 o transfer()
Get the transfer size.
 o verboseFrame()
Get the verbose frame.
 o verboseFrame(byte[])
Set the verbose frame.
 o width()
Get the width of the frame.
 o width(int)
Set frame width.
 o XOffset()
Get the x offset.
 o YOffset()
Get the y offset.

Variables

 o frame
 protected CameraFrame frame
The frame from the camera.

 o verboseFrame
 protected byte verboseFrame[]
The frame from the camera.

 o blips
 protected int blips[][]
The frame of found objects.

 o objects
 protected Vector objects
Table of found objects.

 o id
 protected int id
The id of the information buffer.

 o number
 protected int number
The number of the frame grabed.

 o timestamp
 protected transient TimeStamp timestamp
The time stamper, used to keep track of the time used by various processes.

 o blip
 protected Blip blip
The object found.

 o width
 protected int width
The size of the frame.

 o height
 protected int height
The size of the frame.

 o XOffset
 protected int XOffset
The x & y offsets for the image.

 o YOffset
 protected int YOffset
The x & y offsets for the image.

 o transfer
 protected int transfer
The transfer size of the image.

 o clearing
 protected static boolean clearing
Are the frames to be cleared on the window.

 o flipperOffset
 protected int flipperOffset
The y offset for the flippers.

 o flipperFlipped
 protected boolean flipperFlipped
Did the flipper flip.

 o imageOffset
 protected static int imageOffset
The image offset.

 o size
 protected int size
Number of bytes for the image.

 o top
 protected static int top
Used to define the top & bottom of the image to see if the ball is in play or out of play.

 o bottom
 protected static int bottom
Used to define the top & bottom of the image to see if the ball is in play or out of play.

 o resizeInfo
 protected static ResizeInfo resizeInfo
The resize information for the image.

 o dataIO
 protected static DataIO dataIO
The data IO device.

 o stub
 protected static Stub stub
The stub for the strategy.

Constructors

 o BufferInfo
 public BufferInfo(int id)
Build the buffer information.

Parameters:
id - id number for buffer.
 o BufferInfo
 public BufferInfo()
For extended class.

Methods

 o id
 public int id()
Get the buffer's id.

Returns:
the buffer id.
 o cameraInfo
 public void cameraInfo(int size,
                        int width,
                        int height,
                        int transfer)
Make the frame for the image.

Parameters:
size - the frame.
width - of the frame.
height - the frame.
 o cameraInfo
 public void cameraInfo(int size,
                        int width,
                        int height)
Make the frame for the image.

Parameters:
size - the frame.
width - of the frame.
height - the frame.
 o cameraInfo
 public void cameraInfo(int size)
Make the frame for the image.

Parameters:
size - the frame.
 o get
 public byte[] get()
Get the frame, used to pass buffer to camera.

Returns:
frame to store image.
 o getCameraFrame
 public CameraFrame getCameraFrame()
Get the CameraFrame for saving in a log file.

Returns:
frame from camera.
 o set
 public void set(CameraFrame f)
Set the frame buffer.

Parameters:
b - frame to write to.
 o setBlips
 public void setBlips(int b[][],
                      Vector f)
Store the found objects frame and Vector table.

Parameters:
b - the blips frame.
f - The objects found.
 o setBlips
 public void setBlips(Vector f)
Store the objects found.

Parameters:
f - The objects found.
 o getBlipsFrame
 public int[][] getBlipsFrame()
Get the frame of found objects.

Returns:
the blips frame.
 o getObjects
 public Vector getObjects()
Get the objects table.

 o number
 public void number(int number)
Set frame grabbed number.

Parameters:
number - the number of the frame.
 o number
 public int number()
Get frame grabbed number.

Returns:
the number of this frame.
 o blip
 public Blip blip()
Get the blip (ball) seen.

Returns:
blip.
 o time
 public TimeStamp time()
The time stamp used in the threads.

Returns:
the time stamp.
 o width
 public void width(int w)
Set frame width.

Parameters:
width - of frame.
 o height
 public void height(int h)
Set frame height.

Parameters:
height - of frame.
 o width
 public int width()
Get the width of the frame.

Returns:
width.
 o height
 public int height()
Get the height.

Returns:
height.
 o offsets
 public void offsets(int x,
                     int y)
Set the location of the offsets.

Parameters:
x - xoffset.
y - yoffset.
 o resizeX
 public int resizeX()
Get the resize x size.

Returns:
x resize.
 o resizeY
 public int resizeY()
Get the resize y size.

Returns:
y resize.
 o resizeXOffset
 public int resizeXOffset()
Get the resize x offset.

Returns:
x resize offset.
 o resizeYOffset
 public int resizeYOffset()
Get the resize y offset.

Returns:
y resize offset.
 o resizeTransfer
 public int resizeTransfer()
Get the transfer size.

Returns:
the transfer size.
 o XOffset
 public int XOffset()
Get the x offset.

Returns:
x offset.
 o YOffset
 public int YOffset()
Get the y offset.

Returns:
y offset.
 o transfer
 public int transfer()
Get the transfer size.

Returns:
transfer size.
 o resize
 public void resize(int x,
                    int y,
                    int OX,
                    int OY,
                    int t)
Set the resize flag and include resize information.

Parameters:
x - x size.
y - y size.
OX - x offset.
OY - y offset.
t - transfer offset.
 o resize
 public void resize(int x,
                    int y,
                    int OX,
                    int OY)
Set the resize flag and include resize information.

Parameters:
x - x size.
y - y size.
OX - x offset.
OY - y offset.
 o resize
 public boolean resize()
Get the resize flag.

Returns:
resize flag.
 o resized
 public void resized()
Set the condition that it was resized.

 o clearing
 public void clearing(boolean c)
Set the clearing flag. Will clear the frame on the display. Used to clear when the ball's location is draw near the edge of the display. Clears the cross hair that's left at the edge.

Parameters:
c - clearing status.
 o clearing
 public boolean clearing()
Get the clearing flag.

Parameters:
clearing - status.
 o flipperOffset
 public int flipperOffset()
Get the flipper offset. Return flipper offset.

 o flipperOffset
 public void flipperOffset(int i)
Set the flipper offset.

Parameters:
i - flipper offset.
 o imageOffset
 public void imageOffset(int i)
Set the image offset.

Parameters:
i - the image offset.
 o imageOffset
 public int imageOffset()
Get the image offset.

Returns:
the image offset.
 o flipperFlipped
 public void flipperFlipped(boolean status)
Set the flippers flipped condition.

Parameters:
status - the flippers flipped status.
 o flipperFlipped
 public boolean flipperFlipped()
Get the flippers flipped condition.

Returns:
the status of the flippers flipped status.
 o topBottom
 public void topBottom(int t,
                       int b)
Set the top & bottom for the in play area. Top is the top of the screen to define anything over that is to be in play. Bottom is the end of the playing area. Anything under that is out of play.

Parameters:
t - top of playfield.
b - bottom of playfield.
 o top
 public int top()
The top of the playfield.

Returns:
top of playfield.
 o bottom
 public int bottom()
The bottom of the playfield.

Returns:
bottom of playfield.
 o setStub
 public void setStub(Stub s)
Set the stub for the system.

Parameters:
s - The stub.
 o getStub
 public Stub getStub()
Get the stub for the system.

Returns:
The stub.
 o verboseFrame
 public byte[] verboseFrame()
Get the verbose frame.

Returns:
verbose frame.
 o verboseFrame
 public void verboseFrame(byte verboseFrame[])
Set the verbose frame.

Parameters:
verbose - frame.

All Packages  Class Hierarchy  This Package  Previous  Next  Index