Class CountAndContinue

    • Constructor Detail

      • CountAndContinue

        public CountAndContinue()
        Constructor with count initialized at zero.
      • CountAndContinue

        public CountAndContinue​(int startingCount)
        Constructor.
        Parameters:
        startingCount - value to initialize count
    • Method Detail

      • doesCount

        protected boolean doesCount​(SpacecraftState state,
                                    EventDetector detector,
                                    boolean increasing)
        Method returning true if and only if the count needs to be incremented.
        Specified by:
        doesCount in class CountingHandler
        Parameters:
        state - state at detection
        detector - detector
        increasing - flag on direction of event function
        Returns:
        flag on counting
      • getCount

        public int getCount()
        Getter for count.
        Returns:
        count
      • getAction

        protected Action getAction()
        Protected getter for the action to return.
        Returns:
        action
      • setAction

        protected void setAction​(Action action)
        Protected setter for action.
        Parameters:
        action - new action
      • reset

        public void reset()
        Reset count.
      • increment

        protected void increment()
        Increment count.