[rules-users] SelectionFilter<ChangeMove> question

dBijkoo bijkerkrick at hotmail.com
Mon Jun 16 07:46:28 EDT 2014


i have a class ChangeMoveFilter which implements
SelectionFilter<ChangeMoveSelector> to sort out moves that break hard
constraints.

In the config it looks like this 
    <constructionHeuristic>
        <queuedEntityPlacer>
            <entitySelector id="placerEntitySelector">
                <cacheType>PHASE</cacheType>
            </entitySelector>
            <changeMoveSelector>
                *<filterClass>solver.move.ChangeMoveFilter</filterClass>*
                <entitySelector mimicSelectorRef="placerEntitySelector"/>
                <valueSelector>
                    <cacheType>PHASE</cacheType>
                </valueSelector>
            </changeMoveSelector>
        </queuedEntityPlacer>
    </constructionHeuristic>

However I am getting the impression that the overridden accept function is
called before anything changed in the entity. Because the (only)
planningvariable of the entity is still null, which would never be able to
happen in my understanding.

Am i missing something or is the filter move called before anything changes
in the given entity?



--
View this message in context: http://drools.46999.n3.nabble.com/SelectionFilter-ChangeMove-question-tp4030063.html
Sent from the Drools: User forum mailing list archive at Nabble.com.


More information about the rules-users mailing list