Design Patterns
constraint_solver_interface.h
Go to the documentation of this file.
1 // Based on "Design Patterns: Elements of Reusable Object-Oriented Software"
2 // book by Erich Gamma, John Vlissides, Ralph Johnson, and Richard Helm
3 //
4 // Created by Bartosz Rachwal. The National Institute of Advanced Industrial Science and Technology, Japan.
5 
6 #ifndef OPERATIONAL_MEMENTO_CONSTRAINT_SOLVER_INTERFACE_H_
7 #define OPERATIONAL_MEMENTO_CONSTRAINT_SOLVER_INTERFACE_H_
8 
10 #include "graphic.h"
11 
12 namespace operational
13 {
14 namespace memento
15 {
17 {
18  public:
20 
21  virtual void Solve() = 0;
22  virtual void AddConstraint(Graphic* startConnection, Graphic* endConnection) = 0;
23  virtual void RemoveConstraint(Graphic* startConnection, Graphic* endConnection) = 0;
25  virtual void SetMemento(ConstraintSolverMemento*) = 0;
26 };
27 }
28 }
29 
30 #endif
31 
Definition: application.cc:10
Definition: graphic.h:15
virtual void SetMemento(ConstraintSolverMemento *)=0
virtual void AddConstraint(Graphic *startConnection, Graphic *endConnection)=0
virtual ConstraintSolverMemento * CreateMemento()=0
virtual ~ConstraintSolverInterface()
Definition: constraint_solver_interface.h:19
Definition: constraint_solver_interface.h:16
Definition: constraint_solver_memento.h:19
virtual void RemoveConstraint(Graphic *startConnection, Graphic *endConnection)=0