org.otvl.sbxbsamp.simple
Class House

java.lang.Object
  extended byorg.otvl.sbxbsamp.simple.House

public class House
extends java.lang.Object

A house.

Version:
Author:

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

House

public House()
Method Detail

getAddress

public java.lang.String getAddress()
Returns the address.

Returns:
String

setAddress

public void setAddress(java.lang.String address)
Sets the address.

Parameters:
address - The address to set

getTheDoor

public Door getTheDoor()
Returns target of link theDoor.
The house's door.

Returns:
Door

setTheDoor

public void setTheDoor(Door theDoor)
Sets target of link theDoor.
The house's door.

Parameters:
theDoor - The theDoor to set

getRooms

public Room getRooms(int index)
Returns a target in link rooms.

Parameters:
index - offset in the array
Returns:
Room

iteratorRooms

public java.util.Iterator iteratorRooms()
Returns an iterator for targets in links rooms

Returns:
java.util.Iterator

sizeRooms

public int sizeRooms()
Returns the size of the collection rooms

Returns:
int

addRooms

public void addRooms(int index,
                     Room aRoom)
Inserts a target in link rooms.

Parameters:
index - offset in the list
aRoom - The Room to insert

addRooms

public void addRooms(Room aRoom)
Adds a target at end of link rooms.

Parameters:
aRoom - The Room to insert

removeRooms

public void removeRooms(int index)
Removes a target in link rooms

Parameters:
index - offset in the list

clearRooms

public void clearRooms()
Clears all targets in link rooms



Copyright © 2003-2006 Thierry Beigbeder. All Rights Reserved.