public class Car extends java.lang.Object implements Agent
Modifier and Type | Field and Description |
---|---|
private boolean |
backAndForth |
private java.awt.Color |
color |
private double |
position |
private double |
velocity |
Constructor and Description |
---|
Car() |
Modifier and Type | Method and Description |
---|---|
java.awt.Color |
getColor() |
double |
getPosition() |
void |
run(double time) |
private boolean backAndForth
private double position
private double velocity
private java.awt.Color color
Car()
public double getPosition()
public java.awt.Color getColor()