Class ClockBDI


  • public class ClockBDI
    extends java.lang.Object
    Belief with update rate.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.text.SimpleDateFormat formatter
      The date formatter.
    • Constructor Summary

      Constructors 
      Constructor Description
      ClockBDI()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      IFuture<java.lang.Void> body​(IInternalAccess agent)
      The agent body.
      long getTime()
      Get the time.
      protected void printTime()
      Plan that prints the time.
      • Methods inherited from class java.lang.Object

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

      • formatter

        public java.text.SimpleDateFormat formatter
        The date formatter.
    • Constructor Detail

      • ClockBDI

        public ClockBDI()
    • Method Detail

      • printTime

        protected void printTime()
        Plan that prints the time.
      • getTime

        public long getTime()
        Get the time.
        Returns:
        The time.