Interface MutableActivityRepository<A extends Activity>

Type Parameters:
A - the activity type
All Superinterfaces:
ActivityRepository<A>, EventTarget
All Known Implementing Classes:
IntervalTreeActivityRepository, ListActivityRepository, MutableActivityRepositoryBase

public interface MutableActivityRepository<A extends Activity> extends ActivityRepository<A>
The required interface for a repository that is also mutable (activities can be added and removed).
Since:
1.0
  • Method Details

    • addActivity

      void addActivity(ActivityRef<A> activity)
      Adds the given activity to the repository.
      Parameters:
      activity - the activity
      Since:
      1.0
    • removeActivity

      void removeActivity(ActivityRef<A> activity)
      Removes the given activity from the repository.
      Parameters:
      activity - the activity
      Since:
      1.0
    • clearActivities

      void clearActivities()
      Removes all activities from all layers from the repository.
      Since:
      1.0
    • clearActivities

      void clearActivities(Layer layer)
      Removes the activities on the given layer from the repository.
      Parameters:
      layer - the layer to clear
      Since:
      1.0