Interface ConstraintSession<Solution_,Score_ extends Score<Score_>>
-
- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
BavetConstraintSession,DroolsConstraintSession
public interface ConstraintSession<Solution_,Score_ extends Score<Score_>> 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)voidclose()Map<String,ConstraintMatchTotal<Score_>>getConstraintMatchTotalMap()As defined byInnerScoreDirector.getConstraintMatchTotalMap().Map<Object,Indictment<Score_>>getIndictmentMap()As defined byInnerScoreDirector.getIndictmentMap().voidinsert(Object fact)voidretract(Object fact)voidupdate(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<Score_>> getConstraintMatchTotalMap()
As defined byInnerScoreDirector.getConstraintMatchTotalMap().- Returns:
- never null
-
getIndictmentMap
Map<Object,Indictment<Score_>> getIndictmentMap()
As defined byInnerScoreDirector.getIndictmentMap().- Returns:
- never null
-
close
void close()
- Specified by:
closein interfaceAutoCloseable
-
-