Class ReservationRegistrationProposeDistributor<G>
java.lang.Object
ch.tocco.nice2.optional.reservation.impl.ReservationRegistrationProposeDistributor<G>
Distribute objects from groups to targets.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Only members of the same group are put in a targetvoid
Same number of members of each group are put in one target (as good as possible)boolean
void
-
Constructor Details
-
ReservationRegistrationProposeDistributor
public ReservationRegistrationProposeDistributor(int numTargets, int sizeTarget)
-
-
Method Details
-
setGroups
-
getTargets
-
hasFailed
public boolean hasFailed() -
assignSeparate
public void assignSeparate()Only members of the same group are put in a target -
assignSpread
public void assignSpread()Same number of members of each group are put in one target (as good as possible)
-