Class PirateActivity


  • public class PirateActivity
    extends java.lang.Object
    Storage container for keeping track of pirate activity.
    Author:
    Andi Hotz, (c) Sahits GmbH, 2017 Created on Oct 17, 2017
    • Constructor Detail

      • PirateActivity

        public PirateActivity()
    • Method Detail

      • add

        public void add​(PirateActivityEntry pirateActivity)
        Add a new pirate activity with the current date.
        Parameters:
        pirateActivity - to be added with the present date.
      • clearCache

        private void clearCache()
        Ensure that only the most recent events are kept.
      • getObservationPeriodInDays

        public int getObservationPeriodInDays()
        Retrieve the number of days for which attacks are tracked back into the past.