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

java.lang.Object
  extended by org.drools.planner.examples.common.domain.AbstractPersistable
      extended by org.drools.planner.examples.nurserostering.domain.Pattern
All Implemented Interfaces:
Serializable, Comparable<Pattern>
Direct Known Subclasses:
FreeBefore2DaysWithAWorkDayPattern, ShiftType2DaysPattern, ShiftType3DaysPattern, WorkBeforeFreeSequencePattern

public abstract class Pattern
extends AbstractPersistable
implements Comparable<Pattern>

See Also:
Serialized Form

Field Summary
protected  String code
           
protected  int weight
           
 
Fields inherited from class org.drools.planner.examples.common.domain.AbstractPersistable
id
 
Constructor Summary
Pattern()
           
 
Method Summary
 int compareTo(Pattern other)
           
 String getCode()
           
 int getWeight()
           
 void setCode(String code)
           
 void setWeight(int weight)
           
 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
 

Field Detail

code

protected String code

weight

protected int weight
Constructor Detail

Pattern

public Pattern()
Method Detail

getCode

public String getCode()

setCode

public void setCode(String code)

getWeight

public int getWeight()

setWeight

public void setWeight(int weight)

compareTo

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

toString

public String toString()
Overrides:
toString in class AbstractPersistable


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