Interface ConstraintSession<Solution_>
-
- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
BavetConstraintSession
,DroolsConstraintSession
public interface ConstraintSession<Solution_> extends AutoCloseable
An instance of this class must be used in only one thread.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Score<?>
calculateScore(int initScore)
void
close()
Map<String,ConstraintMatchTotal>
getConstraintMatchTotalMap()
As defined byScoreDirector.getConstraintMatchTotalMap()
.Map<Object,Indictment>
getIndictmentMap()
As defined byScoreDirector.getIndictmentMap()
.void
insert(Object fact)
void
retract(Object fact)
void
update(Object fact)
-
-
-
Method Detail
-
insert
void insert(Object fact)
-
update
void update(Object fact)
-
retract
void retract(Object fact)
-
calculateScore
Score<?> calculateScore(int initScore)
-
getConstraintMatchTotalMap
Map<String,ConstraintMatchTotal> getConstraintMatchTotalMap()
As defined byScoreDirector.getConstraintMatchTotalMap()
.- Returns:
- never null
- See Also:
ScoreDirector.getConstraintMatchTotalMap()
-
getIndictmentMap
Map<Object,Indictment> getIndictmentMap()
As defined byScoreDirector.getIndictmentMap()
.- Returns:
- never null
- See Also:
ScoreDirector.getIndictmentMap()
-
close
void close()
- Specified by:
close
in interfaceAutoCloseable
-
-