|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mars_sim.msp.config.model.settlement.Template
public class Template
Class Template.
| Constructor Summary | |
|---|---|
Template()
|
|
| Method Summary | |
|---|---|
void |
addBuilding(Building vBuilding)
|
void |
addBuilding(int index,
Building vBuilding)
|
void |
addEquipment(Equipment vEquipment)
|
void |
addEquipment(int index,
Equipment vEquipment)
|
void |
addPart(int index,
Part vPart)
|
void |
addPart(Part vPart)
|
void |
addPartPackage(int index,
PartPackage vPartPackage)
|
void |
addPartPackage(PartPackage vPartPackage)
|
void |
addResource(int index,
Resource vResource)
|
void |
addResource(Resource vResource)
|
void |
addVehicle(int index,
Vehicle vVehicle)
|
void |
addVehicle(Vehicle vVehicle)
|
Enumeration<? extends Building> |
enumerateBuilding()
Method enumerateBuilding. |
Enumeration<? extends Equipment> |
enumerateEquipment()
Method enumerateEquipment. |
Enumeration<? extends Part> |
enumeratePart()
Method enumeratePart. |
Enumeration<? extends PartPackage> |
enumeratePartPackage()
Method enumeratePartPackage. |
Enumeration<? extends Resource> |
enumerateResource()
Method enumerateResource. |
Enumeration<? extends Vehicle> |
enumerateVehicle()
Method enumerateVehicle. |
Building[] |
getBuilding()
Method getBuilding.Returns the contents of the collection in an Array. |
Building |
getBuilding(int index)
Method getBuilding. |
int |
getBuildingCount()
Method getBuildingCount. |
Equipment[] |
getEquipment()
Method getEquipment.Returns the contents of the collection in an Array. |
Equipment |
getEquipment(int index)
Method getEquipment. |
int |
getEquipmentCount()
Method getEquipmentCount. |
String |
getName()
Returns the value of field 'name'. |
Part[] |
getPart()
Method getPart.Returns the contents of the collection in an Array. |
Part |
getPart(int index)
Method getPart. |
int |
getPartCount()
Method getPartCount. |
PartPackage[] |
getPartPackage()
Method getPartPackage.Returns the contents of the collection in an Array. |
PartPackage |
getPartPackage(int index)
Method getPartPackage. |
int |
getPartPackageCount()
Method getPartPackageCount. |
Resource[] |
getResource()
Method getResource.Returns the contents of the collection in an Array. |
Resource |
getResource(int index)
Method getResource. |
int |
getResourceCount()
Method getResourceCount. |
Resupply |
getResupply()
Returns the value of field 'resupply'. |
Vehicle[] |
getVehicle()
Method getVehicle.Returns the contents of the collection in an Array. |
Vehicle |
getVehicle(int index)
Method getVehicle. |
int |
getVehicleCount()
Method getVehicleCount. |
boolean |
isValid()
Method isValid. |
Iterator<? extends Building> |
iterateBuilding()
Method iterateBuilding. |
Iterator<? extends Equipment> |
iterateEquipment()
Method iterateEquipment. |
Iterator<? extends Part> |
iteratePart()
Method iteratePart. |
Iterator<? extends PartPackage> |
iteratePartPackage()
Method iteratePartPackage. |
Iterator<? extends Resource> |
iterateResource()
Method iterateResource. |
Iterator<? extends Vehicle> |
iterateVehicle()
Method iterateVehicle. |
void |
marshal(ContentHandler handler)
|
void |
marshal(Writer out)
|
void |
removeAllBuilding()
|
void |
removeAllEquipment()
|
void |
removeAllPart()
|
void |
removeAllPartPackage()
|
void |
removeAllResource()
|
void |
removeAllVehicle()
|
boolean |
removeBuilding(Building vBuilding)
Method removeBuilding. |
Building |
removeBuildingAt(int index)
Method removeBuildingAt. |
boolean |
removeEquipment(Equipment vEquipment)
Method removeEquipment. |
Equipment |
removeEquipmentAt(int index)
Method removeEquipmentAt. |
boolean |
removePart(Part vPart)
Method removePart. |
Part |
removePartAt(int index)
Method removePartAt. |
boolean |
removePartPackage(PartPackage vPartPackage)
Method removePartPackage. |
PartPackage |
removePartPackageAt(int index)
Method removePartPackageAt. |
boolean |
removeResource(Resource vResource)
Method removeResource. |
Resource |
removeResourceAt(int index)
Method removeResourceAt. |
boolean |
removeVehicle(Vehicle vVehicle)
Method removeVehicle. |
Vehicle |
removeVehicleAt(int index)
Method removeVehicleAt. |
void |
setBuilding(Building[] vBuildingArray)
|
void |
setBuilding(int index,
Building vBuilding)
|
void |
setEquipment(Equipment[] vEquipmentArray)
|
void |
setEquipment(int index,
Equipment vEquipment)
|
void |
setName(String name)
Sets the value of field 'name'. |
void |
setPart(int index,
Part vPart)
|
void |
setPart(Part[] vPartArray)
|
void |
setPartPackage(int index,
PartPackage vPartPackage)
|
void |
setPartPackage(PartPackage[] vPartPackageArray)
|
void |
setResource(int index,
Resource vResource)
|
void |
setResource(Resource[] vResourceArray)
|
void |
setResupply(Resupply resupply)
Sets the value of field 'resupply'. |
void |
setVehicle(int index,
Vehicle vVehicle)
|
void |
setVehicle(Vehicle[] vVehicleArray)
|
static Template |
unmarshal(Reader reader)
Method unmarshal. |
void |
validate()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Template()
| Method Detail |
|---|
public void addBuilding(Building vBuilding)
throws IndexOutOfBoundsException
vBuilding -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collection
public void addBuilding(int index,
Building vBuilding)
throws IndexOutOfBoundsException
index - vBuilding -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collection
public void addEquipment(Equipment vEquipment)
throws IndexOutOfBoundsException
vEquipment -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collection
public void addEquipment(int index,
Equipment vEquipment)
throws IndexOutOfBoundsException
index - vEquipment -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collection
public void addPart(Part vPart)
throws IndexOutOfBoundsException
vPart -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collection
public void addPart(int index,
Part vPart)
throws IndexOutOfBoundsException
index - vPart -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collection
public void addPartPackage(PartPackage vPartPackage)
throws IndexOutOfBoundsException
vPartPackage -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collection
public void addPartPackage(int index,
PartPackage vPartPackage)
throws IndexOutOfBoundsException
index - vPartPackage -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collection
public void addResource(Resource vResource)
throws IndexOutOfBoundsException
vResource -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collection
public void addResource(int index,
Resource vResource)
throws IndexOutOfBoundsException
index - vResource -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collection
public void addVehicle(Vehicle vVehicle)
throws IndexOutOfBoundsException
vVehicle -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collection
public void addVehicle(int index,
Vehicle vVehicle)
throws IndexOutOfBoundsException
index - vVehicle -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic Enumeration<? extends Building> enumerateBuilding()
public Enumeration<? extends Equipment> enumerateEquipment()
public Enumeration<? extends Part> enumeratePart()
public Enumeration<? extends PartPackage> enumeratePartPackage()
public Enumeration<? extends Resource> enumerateResource()
public Enumeration<? extends Vehicle> enumerateVehicle()
public Building getBuilding(int index)
throws IndexOutOfBoundsException
index -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic Building[] getBuilding()
Note: Just in case the collection contents are changing in another thread, we pass a 0-length Array of the correct type into the API call. This way we know that the Array returned is of exactly the correct length.
public int getBuildingCount()
public Equipment getEquipment(int index)
throws IndexOutOfBoundsException
index -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic Equipment[] getEquipment()
Note: Just in case the collection contents are changing in another thread, we pass a 0-length Array of the correct type into the API call. This way we know that the Array returned is of exactly the correct length.
public int getEquipmentCount()
public String getName()
public Part getPart(int index)
throws IndexOutOfBoundsException
index -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic Part[] getPart()
Note: Just in case the collection contents are changing in another thread, we pass a 0-length Array of the correct type into the API call. This way we know that the Array returned is of exactly the correct length.
public int getPartCount()
public PartPackage getPartPackage(int index)
throws IndexOutOfBoundsException
index -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic PartPackage[] getPartPackage()
Note: Just in case the collection contents are changing in another thread, we pass a 0-length Array of the correct type into the API call. This way we know that the Array returned is of exactly the correct length.
public int getPartPackageCount()
public Resource getResource(int index)
throws IndexOutOfBoundsException
index -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic Resource[] getResource()
Note: Just in case the collection contents are changing in another thread, we pass a 0-length Array of the correct type into the API call. This way we know that the Array returned is of exactly the correct length.
public int getResourceCount()
public Resupply getResupply()
public Vehicle getVehicle(int index)
throws IndexOutOfBoundsException
index -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic Vehicle[] getVehicle()
Note: Just in case the collection contents are changing in another thread, we pass a 0-length Array of the correct type into the API call. This way we know that the Array returned is of exactly the correct length.
public int getVehicleCount()
public boolean isValid()
public Iterator<? extends Building> iterateBuilding()
public Iterator<? extends Equipment> iterateEquipment()
public Iterator<? extends Part> iteratePart()
public Iterator<? extends PartPackage> iteratePartPackage()
public Iterator<? extends Resource> iterateResource()
public Iterator<? extends Vehicle> iterateVehicle()
public void marshal(Writer out)
throws org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
out -
org.exolab.castor.xml.MarshalException - if object is
null or if any SAXException is thrown during marshaling
org.exolab.castor.xml.ValidationException - if this
object is an invalid instance according to the schema
public void marshal(ContentHandler handler)
throws IOException,
org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
handler -
IOException - if an IOException occurs during
marshaling
org.exolab.castor.xml.ValidationException - if this
object is an invalid instance according to the schema
org.exolab.castor.xml.MarshalException - if object is
null or if any SAXException is thrown during marshalingpublic void removeAllBuilding()
public void removeAllEquipment()
public void removeAllPart()
public void removeAllPartPackage()
public void removeAllResource()
public void removeAllVehicle()
public boolean removeBuilding(Building vBuilding)
vBuilding -
public Building removeBuildingAt(int index)
index -
public boolean removeEquipment(Equipment vEquipment)
vEquipment -
public Equipment removeEquipmentAt(int index)
index -
public boolean removePart(Part vPart)
vPart -
public Part removePartAt(int index)
index -
public boolean removePartPackage(PartPackage vPartPackage)
vPartPackage -
public PartPackage removePartPackageAt(int index)
index -
public boolean removeResource(Resource vResource)
vResource -
public Resource removeResourceAt(int index)
index -
public boolean removeVehicle(Vehicle vVehicle)
vVehicle -
public Vehicle removeVehicleAt(int index)
index -
public void setBuilding(int index,
Building vBuilding)
throws IndexOutOfBoundsException
index - vBuilding -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic void setBuilding(Building[] vBuildingArray)
vBuildingArray -
public void setEquipment(int index,
Equipment vEquipment)
throws IndexOutOfBoundsException
index - vEquipment -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic void setEquipment(Equipment[] vEquipmentArray)
vEquipmentArray - public void setName(String name)
name - the value of field 'name'.
public void setPart(int index,
Part vPart)
throws IndexOutOfBoundsException
index - vPart -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic void setPart(Part[] vPartArray)
vPartArray -
public void setPartPackage(int index,
PartPackage vPartPackage)
throws IndexOutOfBoundsException
index - vPartPackage -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic void setPartPackage(PartPackage[] vPartPackageArray)
vPartPackageArray -
public void setResource(int index,
Resource vResource)
throws IndexOutOfBoundsException
index - vResource -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic void setResource(Resource[] vResourceArray)
vResourceArray - public void setResupply(Resupply resupply)
resupply - the value of field 'resupply'.
public void setVehicle(int index,
Vehicle vVehicle)
throws IndexOutOfBoundsException
index - vVehicle -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic void setVehicle(Vehicle[] vVehicleArray)
vVehicleArray -
public static Template unmarshal(Reader reader)
throws org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
reader -
org.exolab.castor.xml.MarshalException - if object is
null or if any SAXException is thrown during marshaling
org.exolab.castor.xml.ValidationException - if this
object is an invalid instance according to the schema
public void validate()
throws org.exolab.castor.xml.ValidationException
org.exolab.castor.xml.ValidationException - if this
object is an invalid instance according to the schema
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||