Package ioids :: Module policyengine :: Class PolicyEngine
[hide private]
[frames] | no frames]

Class PolicyEngine

source code

Instance Methods [hide private]
 
__init__(self)
Yet empty constructor.
source code
 
startup(self)
Loads the policy XML files into memory.
source code
 
lookup(self, parameters)
Checks the given parameters against its rules and comes back with the corrosponding action(s) including parameters.
source code
Method Details [hide private]

lookup(self, parameters)

source code 

Checks the given parameters against its rules and comes back with the corrosponding action(s) including parameters.

The parameters describe the situation of a rule. They have to be given in dictionary format. Allowed keys are:
- origin (values: local | remote)
- subsystem (values: name of the soapsy subsystem)
- sender (values: G4DS id of the sender)

@return: List of reactions