| javax.servlet.http.HttpServlet org.cougaar.planning.servlet.ServletBase org.cougaar.logistics.servlet.ConditionServlet
ConditionServlet | public class ConditionServlet extends ServletBase (Code) | |
Sets a double condition constrained to be in the range 0.0-1.0, in every agent with this servlet.
The name of the condition can be specified as a parameter to the component, e.g.
plugin = org.cougaar.core.servlet.BlackboardServletComponent(org.cougaar.logistics.servlet.ConditionServlet, /conditionsetter, conditionName=ferris)
would create a condition named "ferris".
This condition can then be set in every other agent with a servlet that specifies "ferris" as the
the name of it's condition.
To concurrently specify a different condition, specify a different servlet name-condition name pair, e.g.
plugin = org.cougaar.core.servlet.BlackboardServletComponent(org.cougaar.logistics.servlet.ConditionServlet, /buellersetter, conditionName=bueller)
An example URL to access the servlet is :
http://localhost:8800/$TRANSCOM/conditionsetter
NOTES :
- the default name of the condition is "DoubleCondition".
- the ConditionServiceProvider should also be loaded in any agent with this servlet
- the servlet does *not* depend on load order
|
Inner Class :protected static class ConditionRange extends OMCRange | |
CONDITION_IDENTIFIER | final public static String CONDITION_IDENTIFIER(Code) | | |
toString | public String toString()(Code) | | Pretty to-String for debugging.
|
Methods inherited from javax.servlet.http.HttpServlet | protected void doDelete(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doHead(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doOptions(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doPut(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doTrace(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected long getLastModified(HttpServletRequest req)(Code)(Java Doc) protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) public void service(ServletRequest req, ServletResponse res) throws ServletException, IOException(Code)(Java Doc)
|
|
|