org.drools.planner.examples.nurserostering.domain
Class Assignment

java.lang.Object
  extended by org.drools.planner.examples.common.domain.AbstractPersistable
      extended by org.drools.planner.examples.nurserostering.domain.Assignment
All Implemented Interfaces:
Serializable, Comparable<Assignment>

public class Assignment
extends AbstractPersistable
implements Comparable<Assignment>

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.drools.planner.examples.common.domain.AbstractPersistable
id
 
Constructor Summary
Assignment()
           
 
Method Summary
 Assignment clone()
           
 int compareTo(Assignment other)
           
 Contract getContract()
           
 Employee getEmployee()
           
 String getLabel()
           
 Shift getShift()
           
 ShiftDate getShiftDate()
           
 int getShiftDateDayIndex()
           
 DayOfWeek getShiftDateDayOfWeek()
           
 ShiftType getShiftType()
           
 int getWeekendSundayIndex()
           
 boolean isWeekend()
           
 void setEmployee(Employee employee)
           
 void setShift(Shift shift)
           
 boolean solutionEquals(Object o)
          The normal methods Object.equals(Object) and Object.hashCode() cannot be used because the rule engine already requires them (for performance in their original state).
 int solutionHashCode()
          The normal methods Object.equals(Object) and Object.hashCode() cannot be used because the rule engine already requires them (for performance in their original state).
 String toString()
           
 
Methods inherited from class org.drools.planner.examples.common.domain.AbstractPersistable
getId, setId
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Assignment

public Assignment()
Method Detail

getShift

public Shift getShift()

setShift

public void setShift(Shift shift)

getEmployee

public Employee getEmployee()

setEmployee

public void setEmployee(Employee employee)

getLabel

public String getLabel()

compareTo

public int compareTo(Assignment other)
Specified by:
compareTo in interface Comparable<Assignment>

clone

public Assignment clone()
Overrides:
clone in class Object

solutionEquals

public boolean solutionEquals(Object o)
The normal methods Object.equals(Object) and Object.hashCode() cannot be used because the rule engine already requires them (for performance in their original state).

See Also:
solutionHashCode()

solutionHashCode

public int solutionHashCode()
The normal methods Object.equals(Object) and Object.hashCode() cannot be used because the rule engine already requires them (for performance in their original state).

See Also:
solutionEquals(Object)

toString

public String toString()
Overrides:
toString in class AbstractPersistable

getShiftDate

public ShiftDate getShiftDate()

getShiftType

public ShiftType getShiftType()

getShiftDateDayIndex

public int getShiftDateDayIndex()

getShiftDateDayOfWeek

public DayOfWeek getShiftDateDayOfWeek()

getContract

public Contract getContract()

isWeekend

public boolean isWeekend()

getWeekendSundayIndex

public int getWeekendSundayIndex()


Copyright © 2001-2011 JBoss Inc.. All Rights Reserved.