/** * Construct a <code>RuleFlowGroupImpl</code> with the given name. * * @param name * The RuleFlowGroup name. */ public RuleFlowGroupImpl(final String name) { this.name = name; this.list = new LinkedList(); }
@Before public void setUp() throws Exception { this.list = new LinkedList(); this.node1 = new AbstractBaseLinkedListNodeMock(); this.node2 = new AbstractBaseLinkedListNodeMock(); this.node3 = new AbstractBaseLinkedListNodeMock(); }
public RuleFlowGroupImpl(final String name, final boolean active, final boolean autoDeactivate) { this.name = name; this.active = active; this.autoDeactivate = autoDeactivate; this.list = new LinkedList(); }
public ActivationGroupImpl(final String name) { this.name = name; this.list = new LinkedList(); }
public void addLogicalDependency(final LogicalDependency node) { if ( this.justified == null ) { this.justified = new LinkedList<LogicalDependency>(); } this.justified.add( node ); }
public void add(final Activation activation) { AgendaItem item = (AgendaItem) activation; this.size++; int seq = item.getSequenence(); if ( seq < this.index ) { this.index = seq; } if ( seq > this.lastIndex ) { this.lastIndex = seq; } LinkedList<LinkedListEntry<Activation>> list = this.array[seq]; if ( list == null ) { list = new LinkedList<LinkedListEntry<Activation>>(); this.array[item.getSequenence()] = list; } list.add( new LinkedListEntry<Activation>( activation ) ); }
this.ruleFlowGroups = new HashMap<String, RuleFlowGroup>(); this.focusStack = new LinkedList<AgendaGroup>(); this.scheduledActivations = new org.drools.core.util.LinkedList<ScheduledAgendaItem>(); this.agendaGroupFactory = rb.getConfiguration().getAgendaGroupFactory();
public void addBlocked(final LogicalDependency dep) { // Adds the blocked to the blockers list if ( this.blocked == null ) { this.blocked = new LinkedList<LogicalDependency>(); } this.blocked.add( dep ); // now ad the blocker to the blocked's list - we need to check that references are null first AgendaItem blocked = (AgendaItem)dep.getJustified(); if ( blocked.blockers == null ) { blocked.blockers = new LinkedList<LinkedListEntry<LogicalDependency>>(); blocked.blockers.add( dep.getJustifierEntry() ); } else if ( dep.getJustifierEntry().getNext() == null && dep.getJustifierEntry().getPrevious() == null && blocked.getBlockers().getFirst() != dep.getJustifierEntry() ) { blocked.blockers.add( dep.getJustifierEntry() ); } }
this.hashedFieldIndexes = new LinkedList<FieldIndex>(); fieldIndex = new FieldIndex( index, fieldExtractor );