public class SimpleModel extends java.util.Observable
SimpleModel(AnimatorBuilder)
.Constructor and Description |
---|
SimpleModel(AnimatorBuilder builder)
Creates a model to be visualized using the
builder . |
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Throw away this model.
|
void |
run(int duration)
Run the simulation for
duration model seconds. |
public SimpleModel(AnimatorBuilder builder)
builder
.
If the builder is null, no visualization is performed.
Each road has one Car
.