Class UniversityAgent


  • public class UniversityAgent
    extends java.lang.Object
    Go to university example taken from Winikoff, Padgham: developing intelligent agent systems, 2004.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected IInternalAccess agent  
      protected boolean raining
      Belief if it is currently raining.
    • Constructor Summary

      Constructors 
      Constructor Description
      UniversityAgent()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void body()
      The agent body is executed on startup.
      protected void takeX​(UniversityAgent.TakeXGoal goal)
      Take X plan for the take X goal.
      protected void tramPlan​(IPlan plan)
      The tram plan for come to university goal.
      • Methods inherited from class java.lang.Object

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

      • raining

        protected boolean raining
        Belief if it is currently raining. Set through an agent argument.
    • Constructor Detail

      • UniversityAgent

        public UniversityAgent()
    • Method Detail

      • body

        public void body()
        The agent body is executed on startup. It creates and dispatches a come to university goal.
      • tramPlan

        protected void tramPlan​(IPlan plan)
        The tram plan for come to university goal. Tram is always a good idea.