Jadex 0.96-beta1

jadex.runtime
Interface IPlanbase

All Superinterfaces:
IElement

public interface IPlanbase
extends IElement

The programmers interface for a plan base.


Method Summary
 void addPlanListener(String type, IPlanListener listener, boolean async)
          Add a plan listener.
 void deregisterPlan(IMPlan mplan)
          Deregister a plan.
 IPlan getPlan(String name)
          Get a plan by name.
 IPlan[] getPlans()
          Get all running plans of this planbase.
 IPlan[] getPlans(String type)
          Get all plans of a specified type (=model element name).
 void registerPlan(IMPlan mplan)
          Register a new plan.
 void removePlanListener(String type, IPlanListener listener)
          Remove a goal listener.
 
Methods inherited from interface jadex.runtime.IElement
getModelElement, getName
 

Method Detail

getPlans

IPlan[] getPlans()
Get all running plans of this planbase.

Returns:
The plans.

getPlans

IPlan[] getPlans(String type)
Get all plans of a specified type (=model element name).

Parameters:
type - The plan type.
Returns:
All plans of the specified type.

getPlan

IPlan getPlan(String name)
Get a plan by name.

Parameters:
name - The plan name.
Returns:
The plan with that name (if any).

registerPlan

void registerPlan(IMPlan mplan)
Register a new plan.

Parameters:
mplan - The new plan model.

deregisterPlan

void deregisterPlan(IMPlan mplan)
Deregister a plan.

Parameters:
mplan - The plan model.

addPlanListener

void addPlanListener(String type,
                     IPlanListener listener,
                     boolean async)
Add a plan listener.

Parameters:
type - The goal type.
listener - The plan listener.
async - True, if the notification should be done on a separate thread.

removePlanListener

void removePlanListener(String type,
                        IPlanListener listener)
Remove a goal listener.

Parameters:
type - The goal type.
listener - The goal listener.

Jadex 0.96-beta1

Submit a bug or feature
For further API reference and developer documentation, see the Jadex User Guide and the Jadex Tutorial. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, and working code examples.

Copyright (C) 2002-2007 Lars Braubach, Alexander Pokahr - University of Hamburg. Use is subject to license terms.