Class CountGoal


  • public class CountGoal
    extends java.lang.Object
    Goal with target and drop condition.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected int drop
      The drop value.
      protected int target
      The target value.
    • Constructor Summary

      Constructors 
      Constructor Description
      CountGoal​(int target, int drop)
      Create a new count goal.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected boolean drop​(int cnt)
      Called whenever the counter belief changes.
      protected boolean target​(int cnt)
      Called whenever the counter belief changes.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • target

        protected int target
        The target value.
      • drop

        protected int drop
        The drop value.
    • Constructor Detail

      • CountGoal

        public CountGoal​(int target,
                         int drop)
        Create a new count goal.
    • Method Detail

      • target

        protected boolean target​(int cnt)
        Called whenever the counter belief changes.
      • drop

        protected boolean drop​(int cnt)
        Called whenever the counter belief changes.