OptaPlanner distribution 6.0.0-SNAPSHOT

org.optaplanner.examples.common.domain
Class AbstractPersistable

java.lang.Object
  extended by org.optaplanner.examples.common.domain.AbstractPersistable
All Implemented Interfaces:
Serializable, Comparable<AbstractPersistable>
Direct Known Subclasses:
AdmissionPart, Allocation, Bed, BedDesignation, City, CloudBalance, CloudComputer, CloudProcess, Column, Contract, ContractLine, Course, CourseSchedule, Curriculum, Customer, Day, Day, Day, DayOffRequest, DayOnRequest, Department, DepartmentSpecialism, Depot, Domicile, Employee, Equipment, Exam, Examination, ExecutionMode, Guest, HobbyPractician, InstitutionParametrization, Job, Job, Lecture, Location, MachineReassignment, Manners2009, Match, MrBalancePenalty, MrGlobalPenaltyInfo, MrLocation, MrMachine, MrMachineCapacity, MrNeighborhood, MrProcess, MrProcessAssignment, MrProcessRequirement, MrResource, MrService, Night, NQueens, NurseRoster, NurseRosterInfo, NurseRosterParametrization, Patient, PatientAdmissionSchedule, Pattern, PatternContractLine, Period, Period, PeriodPenalty, PreferredPatientEquipment, Project, Queen, RequiredPatientEquipment, Resource, ResourceRequirement, Room, Room, Room, RoomEquipment, RoomPenalty, RoomSpecialism, Row, Schedule, Seat, SeatDesignation, Shift, ShiftAssignment, ShiftDate, ShiftOffRequest, ShiftOnRequest, ShiftType, ShiftTypeSkillRequirement, Skill, SkillProficiency, Specialism, Student, Table, Teacher, Team, Team, TeamAssignment, TennisSolution, Timeslot, Topic, TravelingSalesmanTour, TravelingTournament, UnavailabilityPenalty, UnavailablePeriodPenalty, Vehicle, VehicleRoutingSolution, Visit

public abstract class AbstractPersistable
extends Object
implements Serializable, Comparable<AbstractPersistable>

See Also:
Serialized Form

Field Summary
protected  Long id
           
 
Constructor Summary
protected AbstractPersistable()
           
protected AbstractPersistable(long id)
           
 
Method Summary
 int compareTo(AbstractPersistable other)
          Used by the GUI to sort the ConstraintMatch list by ConstraintMatch.getJustificationList().
 Long getId()
           
 void setId(Long id)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

id

protected Long id
Constructor Detail

AbstractPersistable

protected AbstractPersistable()

AbstractPersistable

protected AbstractPersistable(long id)
Method Detail

getId

public Long getId()

setId

public void setId(Long id)

compareTo

public int compareTo(AbstractPersistable other)
Used by the GUI to sort the ConstraintMatch list by ConstraintMatch.getJustificationList().

Specified by:
compareTo in interface Comparable<AbstractPersistable>
Parameters:
other - never null
Returns:
comparison

toString

public String toString()
Overrides:
toString in class Object

OptaPlanner distribution 6.0.0-SNAPSHOT

Copyright © 2006-2013 JBoss by Red Hat. All Rights Reserved.