package adaptive.agents.tutor;

import adaptive.core.*;

/************************************************************
 *
 * Copyright 2000, Institute for Complex Engineered Systems,
 *                 Carnegie Mellon University
 *
 * DESCRIPTION: Template for a simple port-based agent.
 *
 *
 ************************************************************/
public class PBASimpleTemplate extends PBAgent {
  

    /* put internal data definitions here */




    protected void initialize() {
	/* 
	   set number of ports
	   determine port types (and names if you want)
	   assign constants their default values
	   set sleep time for looping agents
	*/
    }


    protected boolean initOutputVals() {
	/* output values MUST be initialized before execution */
	return true;
    }



    protected void allocateInternals() {
	/* allocate any resources that the agent needs */
    }



    protected void runLoop() {    
	/*
	  code to be executed every time agent is awoken goes here
	  sleep() is automatically called at end of runLoop()
	*/
    }


    protected void deAllocateInternals() {
	/* deallocate any resources that we've asked for */
    }


}/* end of PBASimpleTemplate */

