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)
void
close()
Map<String,ConstraintMatchTotal<Score_>>
getConstraintMatchTotalMap()
As defined byInnerScoreDirector.getConstraintMatchTotalMap()
.Map<Object,Indictment<Score_>>
getIndictmentMap()
As defined byInnerScoreDirector.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<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:
close
in interfaceAutoCloseable
-
-