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
Modifier and TypeFieldDescriptionstatic final EntityCatalog<RelWert>
Catalog for RelWert by names.static final RelWert
protected int
The numeric value -1/0/1 for U/M/O.static final RelWert
static final RelWert
Fields 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.int
Returns 0/1/2 for U/M/O.int
Returns -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.int
length()
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, getName, getNames, getParser, getParser, 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:
inv
in interfaceInvertible<RelWert>
-
length
public int length()Seen as a RelWertFolge, a single RelWert has the length==1.- Specified by:
length
in interfaceRelWertFolge
-
firstRelWert
Any RelWertFolge is its own "first value" if it is seen as a RelWertFolge.- Specified by:
firstRelWert
in interfaceRelWertFolge
-
lastRelWert
Any RelWertFolge is its own "last value" if it is seen as a RelWertFolge.- Specified by:
lastRelWert
in interfaceRelWertFolge
-