|
__init__(self,
rl={ ' limit ' : 10000, ' maxth ' : 0.95} ) |
source code
|
|
|
|
|
registerService(self,
service,
time=1,
QoS=1)
registers a DF.Service time and QoS parameters are optional |
source code
|
|
|
|
|
getService(self,
name)
returns a DF.Service |
source code
|
|
|
getServiceInfo(self,
name)
returns info of a service Usage: name - string with the name of the
service returns a dict with the info of the service |
source code
|
|
|
addCase(self,
case)
inserts a new case in the case-base services of the case MUST be
registered in the TBCBP |
source code
|
|
|
|
|
getCases(self,
P=None,
Q=None,
inputs=None,
outputs=None)
returns a list of cases where the P,Q,inputs and outputs match. |
source code
|
|
|
getCase(self,
case)
returns the case of the case-base whose parameters (P,Q,inputs and
outputs) match with the 'case' parameters |
source code
|
|
|
getCaseOfService(self,
name)
returns the case that represents the service 'name' in the case-base
Usage: name - string with the name of the service |
source code
|
|
|
planMatchesInKB(self,
case,
kb)
returns True if all the Preconditions and Inputs of the case are true
in the knowledge-base otherwise returns False Usage: case - the case
that we want to compare. |
source code
|
|
|
composePlan(self,
Goal,
kb,
tout=20,
use_rl=True) |
source code
|
|
|
|
|
|
|
|