public class GeomConfig extends GeomElementList
Modified by: Joseph A. Huwaldt
subElements
Constructor and Description |
---|
GeomConfig()
Create an empty configuration (one that does not contain any vehicles).
|
GeomConfig(java.lang.String name)
Create an empty configuration with the specified name.
|
GeomConfig(java.lang.String name,
java.util.Collection vehicles)
Create a configuration made up of any vehicles found in the specified collection.
|
Modifier and Type | Method and Description |
---|---|
void |
add(int index,
java.lang.Object element)
Inserts the specified vehicle at the specified position in this configuration.
|
java.lang.Object |
set(int index,
java.lang.Object element)
Replaces the vehicle at the specified position in this configuration with the
specified vehicle.
|
java.util.Iterator |
vehicles()
Return an enumeration of all the vehicles in this configuration.
|
clear, clone, equals, get, getAllData, getArea, getBoundsMax, getBoundsMin, getData, getMaxX, getMaxY, getMaxZ, getMinX, getMinY, getMinZ, getName, getNumberOfPanels, hashCode, iterator, putData, remove, scale, setName, size, toString, translate
add, addAll, indexOf, lastIndexOf, listIterator, listIterator, removeRange, subList
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray
public GeomConfig()
public GeomConfig(java.lang.String name)
public GeomConfig(java.lang.String name, java.util.Collection vehicles)
name
- The name to be assigned to this configuration.vehicles
- A collection that contains a set of vehicles.public java.lang.Object set(int index, java.lang.Object element)
set
in interface java.util.List
set
in class java.util.AbstractList
index
- The index of the vehicle to replace.element
- The vehicle to be stored a the specified position.java.lang.ClassCastException
- - if the specified element is not a GeomVehicle type
object.public void add(int index, java.lang.Object element)
add
in interface java.util.List
add
in class java.util.AbstractList
index
- Index at which the specified vehicle is to be inserted.element
- Vehicle to be inserted.java.lang.ClassCastException
- - if the specified element is not a GeomVehicle type
object.public java.util.Iterator vehicles()