boolean update,
boolean fullyRetract) {
JTMSBeliefSetImpl jtmsBeliefSet = (JTMSBeliefSetImpl) fh.getEqualityKey().getBeliefSet();
if ( jtmsBeliefSet.getWorkingMemoryAction() == null ) {
// doesn't exist, so create it
WorkingMemoryAction action = new LogicalCallback( fh,
context,
node.getJustifier(),
update,
fullyRetract ); // Only negative is fully retracted.
((NamedEntryPoint) fh.getEntryPoint()).enQueueWorkingMemoryAction( action );
} else {
// it exists (update required due to previous change in prime), so just update it's actions
LogicalCallback callback = ( LogicalCallback ) jtmsBeliefSet.getWorkingMemoryAction();
callback.setFullyRetract( fullyRetract );
callback.setUpdate( update );
}
}