Class Bed
- java.lang.Object
-
- org.optaplanner.examples.common.domain.AbstractPersistable
-
- org.optaplanner.examples.pas.domain.Bed
-
- All Implemented Interfaces:
Labeled
public class Bed extends AbstractPersistable implements Labeled
-
-
Field Summary
-
Fields inherited from class org.optaplanner.examples.common.domain.AbstractPersistable
id
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getIndexInRoom()
String
getLabel()
String
getLabelInRoom()
Room
getRoom()
void
setIndexInRoom(int indexInRoom)
void
setRoom(Room room)
String
toString()
-
Methods inherited from class org.optaplanner.examples.common.domain.AbstractPersistable
getId, setId
-
-
-
-
Constructor Detail
-
Bed
public Bed()
-
Bed
public Bed(Room room, int indexInRoom)
-
-
Method Detail
-
getRoom
public Room getRoom()
-
setRoom
public void setRoom(Room room)
-
getIndexInRoom
public int getIndexInRoom()
-
setIndexInRoom
public void setIndexInRoom(int indexInRoom)
-
getLabelInRoom
public String getLabelInRoom()
-
toString
public String toString()
- Overrides:
toString
in classAbstractPersistable
-
-