|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.charlesames.utility.common.Disposable
net.charlesames.utility.entity.Entity
net.charlesames.utility.entity.WriteableEntity
net.charlesames.music.ensemble.EnsembleEntity
net.charlesames.music.ensemble.NoteListParameterLink
public class NoteListParameterLink
NoteListParameterLink instances details how to obtain parameter values when
the EnsembleInstrument associated with the containing NoteListInstrumentLink
generates a note statement using the associated NoteListInstrument.
| Nested Class Summary | |
|---|---|
static class |
NoteListParameterLink.Moment
The NoteListParameterLink.Moment class identifies at what time during a note a Contour link should
acquire a parameter value. |
| Nested classes/interfaces inherited from class net.charlesames.music.ensemble.EnsembleEntity |
|---|
EnsembleEntity.AttributeTable |
| Constructor Summary | |
|---|---|
NoteListParameterLink(NoteListInstrumentLink instrumentLink,
NoteListParameter parameter)
Constructor for NoteListParameterLink instances. |
|
| Method Summary | |
|---|---|
boolean |
check(HtmlBuilder builder)
Check this component for errors and inconsistencies |
static XmlSpec |
createXmlSpec()
Create an XML specification for the NoteListParameterLink class. |
boolean |
equals(EnsembleEntity other)
Check if this entity has the same class and content as another entity. |
java.lang.String |
formatValue(double value)
Format the indicated value as a text string. |
static NoteListParameterLink |
fromXmlNode(org.w3c.dom.Element element,
NoteListInstrumentLink instrumentLink)
Create a new NoteListParameterLink instance and fill it with loaded data. |
NoteListInstrumentLink |
getContainer()
Getter for the NoteListInstrumentLink within which this parameter link operates. |
TypeOfParameterLink |
getLinkType()
Getter for the LinkType property; The LinkType indicates whether the parameter should draw its value from a constant, from a note attribute, or from a contour. |
NoteListParameterLink.Moment |
getMoment()
Get the NoteListParameterLink.Moment property. |
NoteAttribute |
getNoteAttribute()
Get the NoteAttribute instance corresponding to the attribute name. |
NoteListParameter |
getParameter()
Get the referenced NoteListParameter. |
java.lang.String |
getReference()
Getter for the Reference property. |
java.lang.String |
getText()
Return a unique description of this entity. |
double |
getValue()
Get the parameter value. |
double |
getValue(ScoreNote note)
Get the parameter value |
void |
linkToAttribute(NoteAttribute attribute)
Configure this NoteListParameterLink instance to draw from the indicated note attribute. |
void |
linkToConstant(double value)
Configure this NoteListParameterLink instance to employ a fixed double-precision value. |
void |
linkToContour(EnsembleContour ensembleContour,
NoteListParameterLink.Moment moment)
Configure this NoteListParameterLink instance to draw from the indicated contour as of the indicated moment. |
void |
linkToContour(java.lang.String contourName,
NoteListParameterLink.Moment moment)
Configure this NoteListParameterLink instance to draw from the contour with the indicated name as of the indicated moment. |
void |
resolve()
Do nothing, since contour links are now loosely bound. |
boolean |
setID(int id)
Setter for the ID property. |
void |
setLinkType(TypeOfParameterLink linkType)
Setter for the LinkType property; |
void |
setMoment(NoteListParameterLink.Moment moment)
Set the NoteListParameterLink.Moment property. |
void |
setReference(java.lang.String reference)
Setter for the Reference property. |
| Methods inherited from class net.charlesames.music.ensemble.EnsembleEntity |
|---|
buildDescription, copyToClipboard, createIndentCell, createXmlSpec, describeFeature, getEnsemble, logError, predecessor, toString |
| Methods inherited from class net.charlesames.utility.entity.WriteableEntity |
|---|
clearXmlSpecs, createXmlSpec, getTagName, getXmlData, getXmlSpec, getXmlSpec, initializeXsd, isPersistent, logError, logError, makeDirty, putXmlData, save, setName, setPersistent, setStatus, toXmlNode |
| Methods inherited from class net.charlesames.utility.entity.Entity |
|---|
decrementReferenceCount, dereferenceHandle, dispose, equals, getHandle, getID, getName, getPath, getReferenceCount, getStatus, hasContainer, incrementReferenceCount, isModifiable, methodHasOverride, predecessor, resequenceEntities, setContainer, setModifiable, shiftEntitiesDown, shiftEntityDown, shiftEntityUp, successor, wipe |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public NoteListParameterLink(NoteListInstrumentLink instrumentLink,
NoteListParameter parameter)
NoteListParameterLink instances.
instrumentLink - The container.parameter - The referenced parameter.| Method Detail |
|---|
public NoteListParameter getParameter()
NoteListParameter.
NoteListParameter.public boolean setID(int id)
EntityID property.
setID in class WriteableEntityid - The intended ID value.
ID change actually happened; false otherwise.public void resolve()
public boolean check(HtmlBuilder builder)
check in class WriteableEntitybuilder - Accumulates an HTML formatted record of each error or inconsistency found.
public java.lang.String getText()
Entity
getText in class Entitypublic void linkToConstant(double value)
NoteListParameterLink instance to employ a fixed double-precision value.
value - The intended value.public void linkToAttribute(NoteAttribute attribute)
NoteListParameterLink instance to draw from the indicated note attribute.
attribute - The indicated attribute.
public void linkToContour(EnsembleContour ensembleContour,
NoteListParameterLink.Moment moment)
NoteListParameterLink instance to draw from the indicated contour as of the indicated moment.
ensembleContour - The indicated contour.moment - The indicated moment.
public void linkToContour(java.lang.String contourName,
NoteListParameterLink.Moment moment)
NoteListParameterLink instance to draw from the contour with the indicated name as of the indicated moment.
contourName - The indicated contour name.moment - The indicated moment.public double getValue()
public double getValue(ScoreNote note)
note - A note
public NoteListInstrumentLink getContainer()
NoteListInstrumentLink within which this parameter link operates.
getContainer in class EnsembleEntityNoteListInstrumentLink within which this parameter link operates.public final java.lang.String getReference()
TypeOfParameterLink.CONSTANT links, the reference is not used.
For TypeOfParameterLink.ATTRIBUTE links, the Reference names the note attribute from which NoteListParameter values will be drawn.
For TypeOfParameterLink.CONTOUR links, the Reference names the contour from which NoteListParameter values will be drawn.
public final void setReference(java.lang.String reference)
TypeOfParameterLink.CONSTANT links, the reference formats the value as a string.
For TypeOfParameterLink.ATTRIBUTE links, the Reference names the note attribute from which NoteListParameter values will be drawn.
For TypeOfParameterLink.CONTOUR links, the Reference names the contour from which NoteListParameter values will be drawn.
reference - The intended reference.public NoteListParameterLink.Moment getMoment()
NoteListParameterLink.Moment property.
NoteListParameterLink.Moment property.
java.lang.UnsupportedOperationException - when the link type is not TypeOfParameterLink.CONTOUR.public void setMoment(NoteListParameterLink.Moment moment)
NoteListParameterLink.Moment property.
moment - The intended NoteListParameterLink.Moment property.
java.lang.UnsupportedOperationException - when the link type is not TypeOfParameterLink.CONTOUR.public TypeOfParameterLink getLinkType()
public void setLinkType(TypeOfParameterLink linkType)
linkType - The intended link type.public java.lang.String formatValue(double value)
value - The indicated value.
public NoteAttribute getNoteAttribute()
NoteAttribute instance corresponding to the attribute name.
NoteAttribute instance corresponding to the attribute name.
java.lang.UnsupportedOperationException - when the link type is not TypeOfParameterLink.ATTRIBUTE.
public static NoteListParameterLink fromXmlNode(org.w3c.dom.Element element,
NoteListInstrumentLink instrumentLink)
NoteListParameterLink instance and fill it with loaded data.
element - The XML element that provides the NoteListParameterLink datainstrumentLink - The NoteListInstrumentLink which will contain the new NoteListParameterLink.
NoteListParameterLink instance.public static XmlSpec createXmlSpec()
NoteListParameterLink class.
XmlSpec instance.
java.lang.RuntimeException - when an XmlSpec instance already exists for the NoteListParameterLink class.public boolean equals(EnsembleEntity other)
EnsembleEntity
equals in class EnsembleEntityother - The other entity.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||