Class Placement<A extends Activity>

  • Type Parameters:
    A - the type of the activities

    public final class Placement<A extends Activity>
    extends Object
    A data structure to store the placement of an activity. A placement is defined by the column index and the total column count. For example: an activity can be shown in the second column of a Cluster with a total of 5 columns.
    • Constructor Detail

      • Placement

        public Placement​(A activity,
                         int columnIndex,
                         int columnCount)
        Constructs a new placement.
        Parameters:
        activity - the activity to be placed
        columnIndex - the column where the activity will be shown
        columnCount - the total number of columns in the cluster
    • Method Detail

      • getActivity

        public A getActivity()
        Returns the activity.
        Returns:
        the activity
      • getColumnIndex

        public int getColumnIndex()
        Returns the index of the column where the activity will be shown within its cluster.
        Returns:
        the column index
      • getColumnCount

        public int getColumnCount()
        Returns the total number of columns used for the cluster where the activity is being shown.
        Returns:
        the total number of columns