Package eu.bandm.music.haken
Class Haken
- All Implemented Interfaces:
Dodekaid<Haken>
,Invertible<Haken>
,RelWertFolge
,Translet.Parseable<Haken>
The four basic forms of hooks/Haken, based on
RelWert
.
It is an "agebraic" type, i.e. immutable and all instances are constructed once for ever.
A "Haken" / "hook" is a permutation of all three RelWert, which is NOT in a
straight line. So there are four possible forms.
Each is represented by two(2) RelWert
, which must differ,
and which define the first and the last position.
One of these must be "M", to avoid a straight line.
The value in the middle of the "hook" ist the vaule not mentioned.
There are parsers for a "graphical" name and for the "German" name,
which directly refer to the RelWert names:
in catalog name in languge "de" "symbolic" / / sequence of RelWert / / hook form OM \- \ O-U-M \/ UM /- /\ U-O-M / MO -/ / M-U-O \/ MU -\ /\ M-O-U \ not hooks: \ O-M-U \ / U-M-O /
-
Field Summary
Modifier and TypeFieldDescriptionstatic final EntityCatalog<Haken>
Catalog for hook instances by name.static final Haken
static final Haken
static final Haken
static final Haken
Fields inherited from class eu.bandm.tscore.base.Entity
documentations
-
Method Summary
Modifier and TypeMethodDescriptionThe first value when a haken is seen as a RelWertFolge.static Haken
return the Haken with the given first and last value.getFirst()
Return the first RelWert in this hook.getLast()
Return the last RelWert in this hook.Return the middle RelWert in this hook.inv()
Return the invers of a Haken symbol:The last value when a haken is seen as a RelWertFolge.int
length()
Length is always == 3 when a haken is seen as a RelWertFolge.retro()
Return the retrograde of a Haken symbol:retroInv()
Return the retrograde inverse of a haken symbol:toString()
Return the Germanlanguage name ("MO", "MU", "OM, "UM").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 hook instances by name. -
OM
-
UM
-
MO
-
MU
-
-
Method Details
-
getFirst
Return the first RelWert in this hook. -
getMiddle
Return the middle RelWert in this hook. (This is the one NOT mentioned in the hook's name. -
getLast
Return the last RelWert in this hook. -
inv
Return the invers of a Haken symbol:MO MU OM UM MU MO UM OM
-
retro
Return the retrograde of a Haken symbol:MO MU OM UM OM UM MO MU
-
retroInv
Return the retrograde inverse of a haken symbol:MO MU OM UM UM OM MU MO
-
get
return the Haken with the given first and last value. -
toString
Return the Germanlanguage name ("MO", "MU", "OM, "UM"). -
length
public int length()Length is always == 3 when a haken is seen as a RelWertFolge.- Specified by:
length
in interfaceRelWertFolge
-
firstRelWert
The first value when a haken is seen as a RelWertFolge.- Specified by:
firstRelWert
in interfaceRelWertFolge
-
lastRelWert
The last value when a haken is seen as a RelWertFolge.- Specified by:
lastRelWert
in interfaceRelWertFolge
-