Class GetterSetterBeliefBDI


  • public class GetterSetterBeliefBDI
    extends java.lang.Object
    Agent that has a getter setter belief.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected IInternalAccess agent
      The agent.
      protected int number
      The number field.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void body()
      The agent body.
      void destroy​(IInternalAccess agent)
      Called when agent is killed.
      int getNumber()
      Get the number.
      protected void plan()  
      void setNumber​(int number)
      Set the number.
      • Methods inherited from class java.lang.Object

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

      • number

        protected int number
        The number field.
    • Constructor Detail

      • GetterSetterBeliefBDI

        public GetterSetterBeliefBDI()
    • Method Detail

      • getNumber

        public int getNumber()
        Get the number.
        Returns:
        The number.
      • setNumber

        public void setNumber​(int number)
        Set the number.
        Parameters:
        number - The number to set.
      • body

        public void body()
        The agent body.
      • destroy

        public void destroy​(IInternalAccess agent)
        Called when agent is killed.
      • plan

        protected void plan()