public class RoomDef
extends java.lang.Object
implements java.io.Externalizable
Constructor and Description |
---|
RoomDef()
Constructor.
|
RoomDef(java.lang.String roomID)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addAttribute(AttributeDef attr)
Add an attribute to the room.
|
void |
addModule(ModuleDef mod)
Add a room module to be deployed with the room.
|
java.util.Set<AttributeDef> |
getAttributes()
Get the attributes set for this room.
|
java.lang.String |
getOwnerID()
Get the clientID of the owner of the room.
|
java.lang.String |
getRoomID()
Get the ID of the room.
|
java.util.List<ModuleDef> |
getRoomModules()
Returns a list of the modules to be deployed with the room.
|
void |
readExternal(java.io.ObjectInput in) |
void |
setModules(java.util.List<ModuleDef> mods)
Set a list of modules to be deployed with the room.
|
void |
setOwnerID(java.lang.String ownerID)
Set the clientID of the owner of the room.
|
void |
setRoomID(java.lang.String roomID)
Set the ID of the room.
|
void |
writeExternal(java.io.ObjectOutput out) |
public RoomDef()
public RoomDef(java.lang.String roomID)
public void addModule(ModuleDef mod)
mod
- - the module definition to addpublic void setModules(java.util.List<ModuleDef> mods)
mods
- - the module definitions to setpublic java.util.List<ModuleDef> getRoomModules()
public void addAttribute(AttributeDef attr)
attr
- - an attributepublic java.util.Set<AttributeDef> getAttributes()
public java.lang.String getRoomID()
public void setRoomID(java.lang.String roomID)
roomID
- - the ID of the roompublic java.lang.String getOwnerID()
public void setOwnerID(java.lang.String ownerID)
ownerID
- - the clientID of the owner of the roompublic void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
java.io.IOException
java.lang.ClassNotFoundException
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
java.io.IOException