public void setAutoDeactivate(final boolean autoDeactivate) { this.autoDeactivate = autoDeactivate; synchronized (agendaGroup) { if (autoDeactivate && agendaGroup.isActive() && agendaGroup.isEmpty()) { this.agendaGroup.setActive(false); } } }
public void removeActivation(final Activation activation) { synchronized (agendaGroup) { agendaGroup.remove(activation); } // synchronized ( this.list ) { // final ActivationNode node = activation.getActivationNode(); // this.list.remove( node ); // activation.setActivationNode( null ); // } }
public void addActivation(final Activation activation) { synchronized (agendaGroup) { agendaGroup.add(activation); } // assert activation.getActivationNode() == null; // final ActivationNode node = new ActivationNode( activation, // this ); // activation.setActivationNode( node ); // synchronized ( this.list ) { // this.list.add( node ); // } // // if ( this.active ) { // ((InternalAgendaGroup) activation.getAgendaGroup()).add( activation ); // } }
public int size() { synchronized (agendaGroup) { return agendaGroup.size(); } }
@Override public void visited() { agendaGroup.visited(); }
public long getClearedForRecency() { return agendaGroup.getClearedForRecency(); }
public void setClearedForRecency(long recency) { agendaGroup.setClearedForRecency(recency); }
public long getActivatedForRecency() { return agendaGroup.getActivatedForRecency(); }
public void setActivatedForRecency(long recency) { agendaGroup.setActivatedForRecency(recency); }
public Activation peek() { return agendaGroup.peek(); }
public void reset() { synchronized (agendaGroup) { agendaGroup.reset(); } }
public void clear() { synchronized (agendaGroup) { agendaGroup.clear(); } }
public boolean isActive() { return agendaGroup.isActive(); }
@Override public boolean isSequential() { return agendaGroup.isSequential(); }
public boolean isEmpty() { synchronized (agendaGroup) { return agendaGroup.isEmpty(); } }
public String getName() { return agendaGroup.getName(); }
public Activation remove() { return agendaGroup.remove(); }