hasAssignments = new HasAssignmentsImpl();
if (version>=2){
hasAssignments.setSchedulingType(s.readInt());
hasAssignments.setEffortDriven(s.readBoolean());
availabilityTable=AvailabilityTable.deserialize(s);
}else availabilityTable=new AvailabilityTable(null);
version=DEFAULT_VERSION;
}