NaryPropagator.java
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 package org.gecode;
00025
00030 public abstract class NaryPropagator<GV extends GecodeView> extends Propagator {
00031 protected ViewArray<GV> iv;
00032 private PropCond pc;
00033
00037 public NaryPropagator(Space s, ViewArray<GV> iv0, PropCond pc0) {
00038 iv = iv0;
00039 pc = pc0;
00040 }
00043 public NaryPropagator(Space s, boolean share,
00044 NaryPropagator<GV> p) {
00045 iv = new ViewArray<GV>(s, share, p.iv);
00046 pc = p.pc;
00047 }
00048 public void dispose(Space home) {
00049 iv.cancel(home, this, pc);
00050 }
00051 public ExecStatus setup(Space home) {
00052 iv.subscribe(home, this, pc);
00053 return ExecStatus.ES_OK;
00054 }
00055 }