All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class EDU.gatech.cc.is.simulation.BinSim

java.lang.Object
   |
   +----EDU.gatech.cc.is.simulation.AttractorSim
           |
           +----EDU.gatech.cc.is.simulation.BinSim

public class BinSim
extends AttractorSim
implements SimulatedObject
A simple bin for depositing attractors.

Copyright (c)1997 Georgia Tech Research Corporation

Version:
$Revision: 1.3 $
Author:
Tucker Balch

Variable Index

 o background
 o DEBUG

Constructor Index

 o BinSim()
Instantiate a BinSin object.

Method Index

 o draw(Graphics, int, int, double, double, double, double)
Draw the bin.
 o draw(Vec2, Graphics, int, int, double, double, double, double)
Draw the object in a specific spot.
 o getCenter(Vec2)
 o getClosestPoint(Vec2)
 o init(double, double, double, double, Color, Color, int, int, long)
Initialize an BinSim object.
 o isPickupable()
 o isPushable()
 o push(Vec2, Vec2)
 o quit()

Variables

 o background
 protected Color background
 o DEBUG
 public static final boolean DEBUG

Constructors

 o BinSim
 public BinSim()
Instantiate a BinSin object. Be sure to also call init with proper values.

See Also:
init

Methods

 o init
 public void init(double xp,
                  double yp,
                  double t,
                  double r,
                  Color f,
                  Color b,
                  int v,
                  int i,
                  long s)
Initialize an BinSim object. Called automatically by JavaBotSim.

Parameters:
xp - the x coordinate.
yp - the y coordinate.
t - ingored.
r - the radius.
f - the foreground color.
b - ignored.
v - the vision class.
i - the unique id.
s - random number seed.
Overrides:
init in class AttractorSim
 o isPushable
 public boolean isPushable()
Overrides:
isPushable in class AttractorSim
 o isPickupable
 public boolean isPickupable()
Overrides:
isPickupable in class AttractorSim
 o getClosestPoint
 public Vec2 getClosestPoint(Vec2 from)
Overrides:
getClosestPoint in class AttractorSim
 o getCenter
 public Vec2 getCenter(Vec2 from)
Overrides:
getCenter in class AttractorSim
 o push
 public void push(Vec2 d,
                  Vec2 v)
Overrides:
push in class AttractorSim
 o quit
 public void quit()
Overrides:
quit in class AttractorSim
 o draw
 public void draw(Graphics g,
                  int w,
                  int h,
                  double t,
                  double b,
                  double l,
                  double r)
Draw the bin.

Overrides:
draw in class AttractorSim
 o draw
 public void draw(Vec2 pos,
                  Graphics g,
                  int w,
                  int h,
                  double t,
                  double b,
                  double l,
                  double r)
Draw the object in a specific spot.

Overrides:
draw in class AttractorSim

All Packages  Class Hierarchy  This Package  Previous  Next  Index