Пример #1
0
  public EffectorSecondHalf(NodeModel source, NodeModel target, control cont) {
    super(source, target);
    assert source instanceof Control;
    assert target instanceof Conversion || target instanceof Control || target instanceof Hub;

    this.cont = cont;
    this.sign = Control.isActivation(cont) ? Edge.POSITIVE : Edge.NEGATIVE;

    setArrow(
        cont instanceof catalysis
            ? "Catalysis"
            : cont.getCONTROL_TYPE() == null
                ? "Modulation"
                : this.isPositive() ? "Stimulation" : "Inhibition");

    setColor(this.isPositive() ? Control.EDGE_COLOR_ACTIVATE : Control.EDGE_COLOR_INHIBIT);
  }
Пример #2
0
 public String getIDHash() {
   return cont.getRDFId() + ((IBioPAXL2Node) getTargetNode()).getIDHash();
 }