Class Column<A extends Activity>

  • Type Parameters:
    A - the type of the activities

    public final class Column<A extends Activity>
    extends Object
    A column is part of a Cluster. Each cluster can have one or more columns. The column stores / displays a list of non-overlapping activities.
    • Constructor Detail

      • Column

        public Column()
    • Method Detail

      • add

        public void add​(A activity)
        Adds the given activity to the cluster.
        Parameters:
        activity - the activity to add
      • hasRoomFor

        public boolean hasRoomFor​(A activity,
                                  Predicate<A> filter)
        Checks whether the column has room for the given activity, meaning whether the time interval occupied by the activity is currently being used or not.
        Parameters:
        activity - the activity to place
        filter - a filter used for determining if the given activity is relevant for conflict checks or not
        Returns:
        true if the column has enough space for the given activity
      • getActivities

        public List<A> getActivities()
        Returns all activities within the column.
        Returns:
        the column activities