|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.otvl.sbxbsamp.simple.House
A house.
Constructor Summary | |
House()
|
Method Summary | |
void |
addRooms(int index,
Room aRoom)
Inserts a target in link rooms. |
void |
addRooms(Room aRoom)
Adds a target at end of link rooms. |
void |
clearRooms()
Clears all targets in link rooms |
java.lang.String |
getAddress()
Returns the address. |
Room |
getRooms(int index)
Returns a target in link rooms. |
Door |
getTheDoor()
Returns target of link theDoor. |
java.util.Iterator |
iteratorRooms()
Returns an iterator for targets in links rooms |
void |
removeRooms(int index)
Removes a target in link rooms |
void |
setAddress(java.lang.String address)
Sets the address. |
void |
setTheDoor(Door theDoor)
Sets target of link theDoor. |
int |
sizeRooms()
Returns the size of the collection rooms |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public House()
Method Detail |
public java.lang.String getAddress()
public void setAddress(java.lang.String address)
address
- The address to setpublic Door getTheDoor()
public void setTheDoor(Door theDoor)
theDoor
- The theDoor to setpublic Room getRooms(int index)
index
- offset in the array
public java.util.Iterator iteratorRooms()
public int sizeRooms()
public void addRooms(int index, Room aRoom)
index
- offset in the listaRoom
- The Room to insertpublic void addRooms(Room aRoom)
aRoom
- The Room to insertpublic void removeRooms(int index)
index
- offset in the listpublic void clearRooms()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |