Package eu.bandm.music.haken
Class RelWert
- All Implemented Interfaces:
Invertible<RelWert>,RelWertFolge,Translet.Parseable<RelWert>
The three relative values to make up the "haken"("hkn"/"hook") motif.
It is an "agebraic" type, i.e. immutable and all instances are constructed once for ever.
praseable catalog name in languge...
.."de" .."symbolic"
/ \ numeric value
/ \ \
O "oben"="top" ^ +1
M "mittig"="middle" - 0
U "unten"="bottom" v -1
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final EntityCatalog<RelWert> Catalog for RelWert by names.static final RelWertprotected intThe numeric value -1/0/1 for U/M/O.static final RelWertstatic final RelWertFields inherited from class eu.bandm.tscore.base.Entity
documentations -
Method Summary
Modifier and TypeMethodDescriptionAny RelWertFolge is its own "first value" if it is seen as a RelWertFolge.intReturns 0/1/2 for U/M/O.intReturns -1/0/1 for U/M/O.inv()Return the inverse of the RelWert.Any RelWertFolge is its own "last value" if it is seen as a RelWertFolge.intlength()Seen as a RelWertFolge, a single RelWert has the length==1.Return the third value, which is neither this, nor the other.toString()Returns the Geman name, "O", "M", or "U".Methods inherited from class eu.bandm.tscore.base.Entity
addName, dump, dump, getCatalog, getDocumentation, getDocumentation, getDocumentations, getName, getNames, getParser, getParser, getSpecific, setDocumentation, toString
-
Field Details
-
catalog
Catalog for RelWert by names. -
U
-
M
-
O
-
numericValue
protected int numericValueThe numeric value -1/0/1 for U/M/O.
-
-
Method Details
-
getNumericValue
public int getNumericValue()Returns -1/0/1 for U/M/O. -
getArrayIndex
public int getArrayIndex()Returns 0/1/2 for U/M/O. -
neither
Return the third value, which is neither this, nor the other. -
toString
Returns the Geman name, "O", "M", or "U". -
inv
Return the inverse of the RelWert. That isM U O M O U- Specified by:
invin interfaceInvertible<RelWert>
-
length
public int length()Seen as a RelWertFolge, a single RelWert has the length==1.- Specified by:
lengthin interfaceRelWertFolge
-
firstRelWert
Any RelWertFolge is its own "first value" if it is seen as a RelWertFolge.- Specified by:
firstRelWertin interfaceRelWertFolge
-
lastRelWert
Any RelWertFolge is its own "last value" if it is seen as a RelWertFolge.- Specified by:
lastRelWertin interfaceRelWertFolge
-