|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mars_sim.msp.config.model.construction.Building
public class Building
Class Building.
| Constructor Summary | |
|---|---|
Building()
|
|
| Method Summary | |
|---|---|
void |
addPart(int index,
Part vPart)
|
void |
addPart(Part vPart)
|
void |
addResource(int index,
Resource vResource)
|
void |
addResource(Resource vResource)
|
void |
addVehicle(int index,
Vehicle vVehicle)
|
void |
addVehicle(Vehicle vVehicle)
|
void |
deleteConstructable()
|
void |
deleteLength()
|
void |
deleteSalvagable()
|
void |
deleteSkillRequired()
|
void |
deleteWidth()
|
void |
deleteWorkTime()
|
Enumeration<? extends Part> |
enumeratePart()
Method enumeratePart. |
Enumeration<? extends Resource> |
enumerateResource()
Method enumerateResource. |
Enumeration<? extends Vehicle> |
enumerateVehicle()
Method enumerateVehicle. |
boolean |
getConstructable()
Returns the value of field 'constructable'. |
String |
getFrame()
Returns the value of field 'frame'. |
double |
getLength()
Returns the value of field 'length'. |
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. |
Resource[] |
getResource()
Method getResource.Returns the contents of the collection in an Array. |
Resource |
getResource(int index)
Method getResource. |
int |
getResourceCount()
Method getResourceCount. |
boolean |
getSalvagable()
Returns the value of field 'salvagable'. |
long |
getSkillRequired()
Returns the value of field 'skillRequired'. |
Vehicle[] |
getVehicle()
Method getVehicle.Returns the contents of the collection in an Array. |
Vehicle |
getVehicle(int index)
Method getVehicle. |
int |
getVehicleCount()
Method getVehicleCount. |
double |
getWidth()
Returns the value of field 'width'. |
double |
getWorkTime()
Returns the value of field 'workTime'. |
boolean |
hasConstructable()
Method hasConstructable. |
boolean |
hasLength()
Method hasLength. |
boolean |
hasSalvagable()
Method hasSalvagable. |
boolean |
hasSkillRequired()
Method hasSkillRequired. |
boolean |
hasWidth()
Method hasWidth. |
boolean |
hasWorkTime()
Method hasWorkTime. |
boolean |
isConstructable()
Returns the value of field 'constructable'. |
boolean |
isSalvagable()
Returns the value of field 'salvagable'. |
boolean |
isValid()
Method isValid. |
Iterator<? extends Part> |
iteratePart()
Method iteratePart. |
Iterator<? extends Resource> |
iterateResource()
Method iterateResource. |
Iterator<? extends Vehicle> |
iterateVehicle()
Method iterateVehicle. |
void |
marshal(ContentHandler handler)
|
void |
marshal(Writer out)
|
void |
removeAllPart()
|
void |
removeAllResource()
|
void |
removeAllVehicle()
|
boolean |
removePart(Part vPart)
Method removePart. |
Part |
removePartAt(int index)
Method removePartAt. |
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 |
setConstructable(boolean constructable)
Sets the value of field 'constructable'. |
void |
setFrame(String frame)
Sets the value of field 'frame'. |
void |
setLength(double length)
Sets the value of field 'length'. |
void |
setName(String name)
Sets the value of field 'name'. |
void |
setPart(int index,
Part vPart)
|
void |
setPart(Part[] vPartArray)
|
void |
setResource(int index,
Resource vResource)
|
void |
setResource(Resource[] vResourceArray)
|
void |
setSalvagable(boolean salvagable)
Sets the value of field 'salvagable'. |
void |
setSkillRequired(long skillRequired)
Sets the value of field 'skillRequired'. |
void |
setVehicle(int index,
Vehicle vVehicle)
|
void |
setVehicle(Vehicle[] vVehicleArray)
|
void |
setWidth(double width)
Sets the value of field 'width'. |
void |
setWorkTime(double workTime)
Sets the value of field 'workTime'. |
static Building |
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 Building()
| Method Detail |
|---|
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 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 void deleteConstructable()
public void deleteLength()
public void deleteSalvagable()
public void deleteSkillRequired()
public void deleteWidth()
public void deleteWorkTime()
public Enumeration<? extends Part> enumeratePart()
public Enumeration<? extends Resource> enumerateResource()
public Enumeration<? extends Vehicle> enumerateVehicle()
public boolean getConstructable()
public String getFrame()
public double getLength()
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 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 boolean getSalvagable()
public long getSkillRequired()
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 double getWidth()
public double getWorkTime()
public boolean hasConstructable()
public boolean hasLength()
public boolean hasSalvagable()
public boolean hasSkillRequired()
public boolean hasWidth()
public boolean hasWorkTime()
public boolean isConstructable()
public boolean isSalvagable()
public boolean isValid()
public Iterator<? extends Part> iteratePart()
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 removeAllPart()
public void removeAllResource()
public void removeAllVehicle()
public boolean removePart(Part vPart)
vPart -
public Part removePartAt(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 setConstructable(boolean constructable)
constructable - the value of field 'constructable'.public void setFrame(String frame)
frame - the value of field 'frame'.public void setLength(double length)
length - the value of field 'length'.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 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 setSalvagable(boolean salvagable)
salvagable - the value of field 'salvagable'.public void setSkillRequired(long skillRequired)
skillRequired - the value of field 'skillRequired'.
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 void setWidth(double width)
width - the value of field 'width'.public void setWorkTime(double workTime)
workTime - the value of field 'workTime'.
public static Building 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 | |||||||||