...
- the system determines where to perform the compilation, or
- it performs global recomputation/optimization across all prior intents.
Compilers and Installers
Intent
s are ultimately compiled down into a set of FlowRule
model objects. The process may include:
- The compilation of an
Intent
down into installable intent(s), by anIntentCompiler
- The conversion of installable Intents into
FlowRuleBatchOperations
containingFlowRules
, by anIntentInstaller
Each non-installable Intent
has an IntentCompiler
associated with it. Similarly, installable Intents
will have a corresponding IntentInstaller
. For example, a PointToPointIntent must first be compiled into a PathIntent
by a PointToPointIntentCompiler
, before being converted into a BatchOperation
by the PathIntentInstaller
.
The IntentManager
coordinates the compilation and installation of FlowRule
s by managing the invocation of available IntentCompiler
s and IntentInstaller
s.