Package eu.bandm.music.comp
Class FieldsFromIntervals.Item
java.lang.Object
eu.bandm.music.comp.FieldsFromIntervals.Item
- Enclosing class:
 FieldsFromIntervals
Each Item represents one construction step of a field.
- 
Field Summary
FieldsModifier and TypeFieldDescription(package private) final intThe number of sounding pitch classes, minus one.(package private) final intThe pitch class which is added by this step.(package private) final @Opt FieldsFromIntervals.ItemThe preceding field, which is enhanced by this step.The set of required intervals, that are those allowed intervals which do not yet appear. - 
Constructor Summary
ConstructorsConstructorDescriptionItem(FieldsFromIntervals.Item pre, int interval) Constructor for a derivation step which enhances the field by adding a further pitch class on the top of an existing field.Constructor for the root item which represents the starting pitch class (symbolically =0), has no predecessor and requires all intervals. - 
Method Summary
Modifier and TypeMethodDescription(package private) booleanisUsed(int i) Return whether the pitch class is already present somewhere in the field. 
- 
Field Details
- 
pre
The preceding field, which is enhanced by this step. - 
pos
final int posThe pitch class which is added by this step. - 
level
final int levelThe number of sounding pitch classes, minus one. - 
requiredIntervals
The set of required intervals, that are those allowed intervals which do not yet appear. 
 - 
 - 
Constructor Details
- 
Item
Constructor for the root item which represents the starting pitch class (symbolically =0), has no predecessor and requires all intervals. - 
Item
Item(FieldsFromIntervals.Item pre, int interval) Constructor for a derivation step which enhances the field by adding a further pitch class on the top of an existing field.- Parameters:
 pre- the predessor field.interval- by which the top pitch of the "pre" field shall be topped.
 
 - 
 - 
Method Details
- 
isUsed
boolean isUsed(int i) Return whether the pitch class is already present somewhere in the field. 
 -