Class Clock2BDI


  • public class Clock2BDI
    extends java.lang.Object
    Getter/setter belief.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected IInternalAccess agent
      The agent.
      java.text.SimpleDateFormat formatter
      The date formatter.
      protected long time
      The time.
    • Constructor Summary

      Constructors 
      Constructor Description
      Clock2BDI()  
    • Method Summary

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

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

      • time

        protected long time
        The time.
      • formatter

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

      • Clock2BDI

        public Clock2BDI()
    • Method Detail

      • body

        public void body()
        The agent body.
      • printTime

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

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

        public void setTime​(long time)
        Set the time.
        Parameters:
        time - The time to set.