Information Technology Reference
In-Depth Information
The interpreter of the algorithm is as follows:
Interpreter:
{
switch (constraint type)
case Constant:
return Constant:
case global variable:
interprete global variable:
case local variable or argument:
interprete local variable or argument:
case object-attribute pair:
interprete object-attribute pair:
case function call:
interprete function call:
case method call:
interprete method call:
case CASE expression:
interprete CASE expression:
...
default:
report error
}
COPS system fully utilizes the encapsulation and inheritance mechanism to
expand and reuse. Through overloading member function, COPS realizes
constraint solution efficiently and flexibly. We can also design new solution class
and add a lot methods of constraint solution to improve the weakness that
original system only has single strategy. At present, the main problem to solve is
that message passing across different classes, value propagation for sharing
variables and composition exploding in consistency maintenance. In the future,
we plan to apply constraint technology to multi-agent system in order to solve
cooperation and negation problem and apply constraint reasoning to solve multi-
goals problem in intelligent decision support system.
Search WWH ::




Custom Search