infosapient.servlet
Class ExecutionServlet

infosapient.servlet.ExecutionServlet

public class ExecutionServlet

ExecutionServlet
This servlet is reponsible for executing a KnowledgeBase toward a goal. This allows a user to test a KB and determine if it meets their needs.

Version:
$Revision: 1.1.1.1 $

Field Summary
private static java.util.Properties properties
           
private  boolean trace_enabled
           
private  int trace_indent
           
 
Constructor Summary
ExecutionServlet()
           
 
Method Summary
(package private)  void displayPrompts(infosapient.servlet.HttpServletRequest request, infosapient.servlet.HttpServletResponse response)
          displayPrompts sets the selected goal and displays the required attributes, descriptions, prompts, and a response field for each attribute.
 void doGet(infosapient.servlet.HttpServletRequest request, infosapient.servlet.HttpServletResponse response)
          directs the reponse to the proper method
 void doPost(infosapient.servlet.HttpServletRequest request, infosapient.servlet.HttpServletResponse response)
          directs the reponse to the proper method
(package private)  void execute(infosapient.servlet.HttpServletRequest request, infosapient.servlet.HttpServletResponse response)
          execute sets the domain values from the input form, and requests the kb to solve to the goal.
 java.lang.String getServletInfo()
           
 void init(infosapient.servlet.ServletConfig config)
           
 void log(java.lang.String str)
          Insert the method's description here.
private  void trace_call(java.lang.String s)
           
private  void trace_return(java.lang.String s)
           
 

Field Detail

properties

private static java.util.Properties properties

trace_enabled

private boolean trace_enabled

trace_indent

private int trace_indent
Constructor Detail

ExecutionServlet

public ExecutionServlet()
Method Detail

displayPrompts

void displayPrompts(infosapient.servlet.HttpServletRequest request,
                    infosapient.servlet.HttpServletResponse response)
displayPrompts sets the selected goal and displays the required attributes, descriptions, prompts, and a response field for each attribute.

doGet

public void doGet(infosapient.servlet.HttpServletRequest request,
                  infosapient.servlet.HttpServletResponse response)
           throws infosapient.servlet.ServletException
directs the reponse to the proper method

doPost

public void doPost(infosapient.servlet.HttpServletRequest request,
                   infosapient.servlet.HttpServletResponse response)
            throws infosapient.servlet.ServletException
directs the reponse to the proper method

execute

void execute(infosapient.servlet.HttpServletRequest request,
             infosapient.servlet.HttpServletResponse response)
execute sets the domain values from the input form, and requests the kb to solve to the goal. The kb is passed an output stream to write its response.

getServletInfo

public java.lang.String getServletInfo()

init

public void init(infosapient.servlet.ServletConfig config)
          throws infosapient.servlet.ServletException

log

public void log(java.lang.String str)
Insert the method's description here. Creation date: (12/13/1999 8:50:25 PM)
Parameters:
str - java.lang.String

trace_call

private final void trace_call(java.lang.String s)

trace_return

private final void trace_return(java.lang.String s)

License to use this program is provided under the TERMS OF THE COMMON PUBLIC LICENSE 0.5. ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT.

Copyright (c) 2001, Workplace Performance Tools, All Rights Reserved