Package eu.bandm.tscore.model
Class TpSub
java.lang.Object
eu.bandm.tscore.model.Tp
eu.bandm.tscore.model.TpSub
- All Implemented Interfaces:
Formattable
,Cloneable
A time point corresponding to a division point between
two time points on a
higher level. This division can happen by placing single character markers in
the
"T" line, or be events which do not fall on such a marker.
(This definition has been created by UMod from
the source at SYSTEM "tscore.umod":181.3-195.7, see this pretty
print.)-
Field Summary
Modifier and TypeFieldDescriptionprotected boolean
Whether this time points was created by events, not by explicit subdivisions on the "T" time line.protected TDivision
The divistion which defines it.protected int
the position in the containing division, always != 0 and != the maximal index.Fields inherited from class eu.bandm.tscore.model.Tp
divisions, endingDivisions, location
-
Constructor Summary
ConstructorDescriptionTpSub()
TpSub
(eu.bandm.tools.location.Location<eu.bandm.tools.util.xml.XMLDocumentIdentifier> location, TDivision division, int pos, boolean defByEvent) Constructor generated according to specification #0
Constructor defined according to directive "C 0/..".Synthetic minimal constructor provided by the umod compiler. -
Method Summary
Modifier and TypeMethodDescriptiondoclone()
Clones this object.format()
Delivers a format object for pretty-printing by inheritance from some ancestor class.boolean
Whether this time points was created by events, not by explicit subdivisions on the "T" time line.int
The divistion which defines it.int
get_pos()
the position in the containing division, always != 0 and != the maximal index.Copies values of all common fields from the argument.boolean
set_defByEvent
(boolean val) Whether this time points was created by events, not by explicit subdivisions on the "T" time line.boolean
set_division
(TDivision val) The divistion which defines it.boolean
set_pos
(int val) the position in the containing division, always != 0 and != the maximal index.toString()
Methods inherited from class eu.bandm.tscore.model.Tp
containsKey_divisions, containsKey_divisions, descend_divisions, descend_endingDivisions, get_divisions, get_endingDivisions, get_location, makeDivision, put_divisions, put_divisions, set_divisions, set_endingDivisions, set_location
-
Field Details
-
division
The divistion which defines it.(This definition has been created by UMod from the source at SYSTEM "tscore.umod":185.7-186.7, see this pretty print.)
The type of this field isTDivision
(never null)
It is set by every possible constructor. -
pos
protected int posthe position in the containing division, always != 0 and != the maximal index.(This definition has been created by UMod from the source at SYSTEM "tscore.umod":189.7-190.7, see this pretty print.)
The type of this field is int(never null)
It is set by every possible constructor.- See Also:
-
defByEvent
protected boolean defByEventWhether this time points was created by events, not by explicit subdivisions on the "T" time line.(This definition has been created by UMod from the source at SYSTEM "tscore.umod":192.7-193.7, see this pretty print.)
The type of this field is boolean(never null)
It is set by every possible constructor.- See Also:
-
-
Constructor Details
-
TpSub
public TpSub(eu.bandm.tools.location.Location<eu.bandm.tools.util.xml.XMLDocumentIdentifier> location, TDivision division, int pos, boolean defByEvent) Constructor generated according to specification #0
Constructor defined according to directive "C 0/..".- Parameters:
location
- is copied to fieldTp.location
division
- is copied to fielddivision
pos
- is copied to fieldpos
defByEvent
- is copied to fielddefByEvent
-
TpSub
Synthetic minimal constructor provided by the umod compiler.
Constructor with minimal set of arguments, supplied automatically by the umod compiler, not explicitly by user.- Parameters:
division
- is copied to fielddivision
pos
- is copied to fieldpos
defByEvent
- is copied to fielddefByEvent
-
TpSub
TpSub()
-
-
Method Details
-
doclone
Clones this object. Method never fails, sinceCloneable
is known to be implemented. -
format
Delivers a format object for pretty-printing by inheritance from some ancestor class.- Specified by:
format
in interfaceFormattable
- Overrides:
format
in classTp
- Returns:
- a format that represents this object in a pretty-printable way
-
toString
-
get_depth
public int get_depth() -
initFrom
Copies values of all common fields from the argument. All fields of this class definition are copied, iff the argument is of this class. Then the superclass method is invoked with the same argument. -
get_division
The divistion which defines it.(This definition has been created by UMod from the source at SYSTEM "tscore.umod":185.7-186.7, see this pretty print.)
Generated getter method. @see #division- Returns:
- The current field value of type
TDivision
(never null)
-
set_division
The divistion which defines it.(This definition has been created by UMod from the source at SYSTEM "tscore.umod":185.7-186.7, see this pretty print.)
Updates the (mutable) instance destructively. -
get_pos
public int get_pos()the position in the containing division, always != 0 and != the maximal index.(This definition has been created by UMod from the source at SYSTEM "tscore.umod":189.7-190.7, see this pretty print.)
Generated getter method. @see #pos- Returns:
- The current field value of type int(never null)
-
set_pos
public boolean set_pos(int val) the position in the containing division, always != 0 and != the maximal index.(This definition has been created by UMod from the source at SYSTEM "tscore.umod":189.7-190.7, see this pretty print.)
Updates the (mutable) instance destructively.- Parameters:
val
- the new value of type int(never null)- Returns:
- whether a change (w.r.t. ==) did actually happen.
- See Also:
-
get_defByEvent
public boolean get_defByEvent()Whether this time points was created by events, not by explicit subdivisions on the "T" time line.(This definition has been created by UMod from the source at SYSTEM "tscore.umod":192.7-193.7, see this pretty print.)
Generated getter method. @see #defByEvent- Overrides:
get_defByEvent
in classTp
- Returns:
- The current field value of type boolean(never null)
-
set_defByEvent
public boolean set_defByEvent(boolean val) Whether this time points was created by events, not by explicit subdivisions on the "T" time line.(This definition has been created by UMod from the source at SYSTEM "tscore.umod":192.7-193.7, see this pretty print.)
Updates the (mutable) instance destructively.- Parameters:
val
- the new value of type boolean(never null)- Returns:
- whether a change (w.r.t. ==) did actually happen.
- See Also:
-