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

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

public class Employee
extends AbstractPersistable
implements Comparable<Employee>

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.drools.planner.examples.common.domain.AbstractPersistable
id
 
Constructor Summary
Employee()
           
 
Method Summary
 int compareTo(Employee other)
           
 String getCode()
           
 Contract getContract()
           
 String getName()
           
 int getWeekendLength()
           
 void setCode(String code)
           
 void setContract(Contract contract)
           
 void setName(String name)
           
 String toString()
           
 
Methods inherited from class org.drools.planner.examples.common.domain.AbstractPersistable
getId, setId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Employee

public Employee()
Method Detail

getCode

public String getCode()

setCode

public void setCode(String code)

getName

public String getName()

setName

public void setName(String name)

getContract

public Contract getContract()

setContract

public void setContract(Contract contract)

compareTo

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

toString

public String toString()
Overrides:
toString in class AbstractPersistable

getWeekendLength

public int getWeekendLength()


Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.