예제 #1
0
 public void setAutoDeactivate(final boolean autoDeactivate) {
   this.autoDeactivate = autoDeactivate;
   synchronized (agendaGroup) {
     if (autoDeactivate && agendaGroup.isActive() && agendaGroup.isEmpty()) {
       this.agendaGroup.setActive(false);
     }
   }
 }
예제 #2
0
 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 );
   //        }
 }
예제 #3
0
 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 );
   //        }
 }
예제 #4
0
 public int size() {
   synchronized (agendaGroup) {
     return agendaGroup.size();
   }
 }
예제 #5
0
 @Override
 public void visited() {
   agendaGroup.visited();
 }
예제 #6
0
 public long getClearedForRecency() {
   return agendaGroup.getClearedForRecency();
 }
예제 #7
0
 public void setClearedForRecency(long recency) {
   agendaGroup.setClearedForRecency(recency);
 }
예제 #8
0
 public long getActivatedForRecency() {
   return agendaGroup.getActivatedForRecency();
 }
예제 #9
0
 public void setActivatedForRecency(long recency) {
   agendaGroup.setActivatedForRecency(recency);
 }
예제 #10
0
 public Activation peek() {
   return agendaGroup.peek();
 }
예제 #11
0
 public void reset() {
   synchronized (agendaGroup) {
     agendaGroup.reset();
   }
 }
예제 #12
0
 public void clear() {
   synchronized (agendaGroup) {
     agendaGroup.clear();
   }
 }
예제 #13
0
 public boolean isActive() {
   return agendaGroup.isActive();
 }
예제 #14
0
 @Override
 public boolean isSequential() {
   return agendaGroup.isSequential();
 }
예제 #15
0
 public boolean isEmpty() {
   synchronized (agendaGroup) {
     return agendaGroup.isEmpty();
   }
 }
예제 #16
0
 public String getName() {
   return agendaGroup.getName();
 }
예제 #17
0
 public Activation remove() {
   return agendaGroup.remove();
 }