public void setNegativeFactHandle(InternalFactHandle negativeFactHandle) {
this.negativeFactHandle = negativeFactHandle;
}
public void add( LinkedListNode node ) {
SimpleLogicalDependency ld = (SimpleLogicalDependency) ((LinkedListEntry) node).getObject();
boolean neg = ld.getValue() != null && MODE.NEGATIVE.getId().equals( ld.getValue().toString() );
if ( neg ) {
super.addLast( node ); //we add negatives to end
negCounter++;
} else {
super.add( node ); // we add positied to start
ld.setValue( MODE.POSITIVE.getId() ); // user may not have explicitely set MODE, so implicitely it's negative
posCounter++;
}
}