package com.poco.PoCoRuntime;

/**
 * Created by caoyan on 12/14/14.
 */
public class BopSRE extends SRE {
    // SRE Binary Operators: Union; Conjunction; Disjunction; Equals; Punion
    private String srebop;
    SRE sre1;
    SRE sre2;

    public BopSRE(String srebop, SRE sre1, SRE sre2) {
        this.srebop = srebop;
        this.sre1 = sre1;
        this.sre2 = sre2;
    }

    public SRE getSre1() {
        return sre1;
    }

    public void setSre1(SRE sre1) {
        this.sre1 = sre1;
    }

    public SRE getSre2() {
        return sre2;
    }

    public void setSre2(SRE sre2) {
        this.sre2 = sre2;
    }

    @Override
    protected SRE genSRE() {
        if (srebop != null) {
            SRE tempSRE1 = SRELib.GetBaseSRE(this.sre1);
            SRE tempSRE2 = SRELib.GetBaseSRE(this.sre2);
            return SRELib.PerformBOPs(srebop, tempSRE1, tempSRE2);
        } else
            return null;
    }

    public String getSrebop() {
        return srebop;
    }
}
@@ -452,18 +452,18 @@
 oid setS
-re
+RE
 1(SRE sr
@@ -576,18 +576,18 @@
 oid setS
-re
+RE
 2(SRE sr

rename function setSre to setSRE