Class TDivision

java.lang.Object
eu.bandm.tscore.model.TDivision
All Implemented Interfaces:
Formattable, Cloneable

public class TDivision extends Object implements Cloneable, Formattable
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

    Fields
    Modifier and Type
    Field
    Description
    protected 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

    Constructors
    Constructor
    Description
     
    TDivision(Tp from, Tp upto, boolean defByEvent)
    Constructor generated according to specification #0
    Constructor defined according to directive "C 0/..".
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Deprecated.
    Clones this object.
    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
     
    The earlier of the limiting time points.
    The sequence of time points between the limits.
    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
    set_from(Tp val)
    The earlier of the limiting time points.
    boolean
    The sequence of time points between the limits.
    boolean
    set_upto(Tp val)
    The later of the limiting time points.
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

  • Constructor Details

    • TDivision

      public TDivision(Tp from, Tp upto, boolean defByEvent)
      Constructor generated according to specification #0
      Constructor defined according to directive "C 0/..".
      Parameters:
      from - is copied to field from
      upto - is copied to field upto
      defByEvent - is copied to field defByEvent
    • TDivision

      TDivision()
  • Method Details

    • doclone

      public TDivision doclone()
      Clones this object. Method never fails, since Cloneable is known to be implemented.
      Returns:
      a fresh copy.
    • format

      public Format format()
      Delivers a format object for pretty-printing by inheritance from some ancestor class.
      Specified by:
      format in interface Formattable
      Returns:
      a format that represents this object in a pretty-printable way
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getTp

      public Tp getTp(int num)
    • get_depth

      public int get_depth()
    • get_count

      public int get_count()
    • initFrom

      public TDivision initFrom(Object o0)
      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

      public Tp 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

      public boolean set_from(Tp val)
      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.
      Parameters:
      val - the new value of type Tp(never null)
      Returns:
      whether a change (w.r.t. ==) did actually happen.
      See Also:
    • get_upto

      public Tp 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

      public boolean set_upto(Tp val)
      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.
      Parameters:
      val - the new value of type Tp(never null)
      Returns:
      whether a change (w.r.t. ==) did actually happen.
      See Also:
    • 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

      public CheckedList<TpSub> 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 from. It is never used, ie. never returned by getTp(int).
      (This definition has been created by UMod from the source at SYSTEM "tscore.umod":115.5-116.5, see this pretty print.)
      Generated getter method. @see #points
      Returns:
      The current field value of type CheckedList<TpSub(never null)>(never null)
    • set_points

      public boolean set_points(CheckedList<TpSub> val)
      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 from. It is never used, ie. never returned by getTp(int).
      (This definition has been created by UMod from the source at SYSTEM "tscore.umod":115.5-116.5, see this pretty print.)
      Updates the (mutable) instance destructively.
      Parameters:
      val - the new value of type CheckedList<TpSub(never null)>(never null)
      Returns:
      whether a change (w.r.t. ==) did actually happen.
      See Also:
    • descend_points

      @Deprecated public void descend_points(MATCH_ONLY_00 visitor)
      Deprecated.