Package eu.bandm.tscore.model
Class TDivision
java.lang.Object
eu.bandm.tscore.model.TDivision
- All Implemented Interfaces:
Formattable
,Cloneable
Represents a sequence of time points constructed by
dividing the interval between
two time points.
(This definition has been created by UMod from
the source at SYSTEM "tscore.umod":102.3-123.5, see this pretty
print.)-
Field Summary
Modifier and TypeFieldDescriptionprotected boolean
Whether this division was created by events, not by explicit subdivisions on the "T" time line.protected Tp
The earlier of the limiting time points.protected CheckedList<TpSub>
The sequence of time points between the limits.protected Tp
The later of the limiting time points. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
descend_points
(MATCH_ONLY_00 visitor) Deprecated.doclone()
Clones this object.format()
Delivers a format object for pretty-printing by inheritance from some ancestor class.int
boolean
Whether this division was created by events, not by explicit subdivisions on the "T" time line.int
get_from()
The earlier of the limiting time points.The sequence of time points between the limits.get_upto()
The later of the limiting time points.getTp
(int num) Copies values of all common fields from the argument.boolean
set_defByEvent
(boolean val) Whether this division was created by events, not by explicit subdivisions on the "T" time line.boolean
The earlier of the limiting time points.boolean
set_points
(CheckedList<TpSub> val) The sequence of time points between the limits.boolean
The later of the limiting time points.toString()
-
Field Details
-
from
The earlier of the limiting time points.(This definition has been created by UMod from the source at SYSTEM "tscore.umod":105.5-106.5, see this pretty print.)
The type of this field isTp
(never null)
It is set by every possible constructor.- See Also:
-
upto
The later of the limiting time points.(This definition has been created by UMod from the source at SYSTEM "tscore.umod":108.5-109.5, see this pretty print.)
The type of this field isTp
(never null)
It is set by every possible constructor.- See Also:
-
defByEvent
protected boolean defByEventWhether this division 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":111.5-112.5, see this pretty print.)
The type of this field is boolean(never null)
It is set by every possible constructor.- See Also:
-
points
The sequence of time points between the limits. When equidistant division is meant, then the duration factor is 1 / count_points(). The very first points[0] is built and represents the very same time point as(This definition has been created by UMod from the source at SYSTEM "tscore.umod":115.5-116.5, see this pretty print.)from
. It is never used, ie. never returned bygetTp(int)
.
The type of this field isCheckedList
<TpSub
(never null)>(never null)
Its value defaults to an empty collection.
-
-
Constructor Details
-
TDivision
Constructor generated according to specification #0
Constructor defined according to directive "C 0/..".- Parameters:
from
- is copied to fieldfrom
upto
- is copied to fieldupto
defByEvent
- is copied to fielddefByEvent
-
TDivision
TDivision()
-
-
Method Details
-
doclone
Clones this object. Method never fails, sinceCloneable
is known to be implemented.- Returns:
- a fresh copy.
-
format
Delivers a format object for pretty-printing by inheritance from some ancestor class.- Specified by:
format
in interfaceFormattable
- Returns:
- a format that represents this object in a pretty-printable way
-
toString
-
getTp
-
get_depth
public int get_depth() -
get_count
public int get_count() -
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_from
The earlier of the limiting time points.(This definition has been created by UMod from the source at SYSTEM "tscore.umod":105.5-106.5, see this pretty print.)
Generated getter method. @see #from- Returns:
- The current field value of type
Tp
(never null)
-
set_from
The earlier of the limiting time points.(This definition has been created by UMod from the source at SYSTEM "tscore.umod":105.5-106.5, see this pretty print.)
Updates the (mutable) instance destructively. -
get_upto
The later of the limiting time points.(This definition has been created by UMod from the source at SYSTEM "tscore.umod":108.5-109.5, see this pretty print.)
Generated getter method. @see #upto- Returns:
- The current field value of type
Tp
(never null)
-
set_upto
The later of the limiting time points.(This definition has been created by UMod from the source at SYSTEM "tscore.umod":108.5-109.5, see this pretty print.)
Updates the (mutable) instance destructively. -
get_defByEvent
public boolean get_defByEvent()Whether this division 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":111.5-112.5, see this pretty print.)
Generated getter method. @see #defByEvent- Returns:
- The current field value of type boolean(never null)
-
set_defByEvent
public boolean set_defByEvent(boolean val) Whether this division 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":111.5-112.5, 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:
-
get_points
The sequence of time points between the limits. When equidistant division is meant, then the duration factor is 1 / count_points(). The very first points[0] is built and represents the very same time point as(This definition has been created by UMod from the source at SYSTEM "tscore.umod":115.5-116.5, see this pretty print.)from
. It is never used, ie. never returned bygetTp(int)
.
Generated getter method. @see #points- Returns:
- The current field value of type
CheckedList
<TpSub
(never null)>(never null)
-
set_points
The sequence of time points between the limits. When equidistant division is meant, then the duration factor is 1 / count_points(). The very first points[0] is built and represents the very same time point as(This definition has been created by UMod from the source at SYSTEM "tscore.umod":115.5-116.5, see this pretty print.)from
. It is never used, ie. never returned bygetTp(int)
.
Updates the (mutable) instance destructively.- Parameters:
val
- the new value of typeCheckedList
<TpSub
(never null)>(never null)- Returns:
- whether a change (w.r.t. ==) did actually happen.
- See Also:
-
descend_points
Deprecated.
-