public void setType(String type) throws Exception{
this.type = type;
controlPoint = ControlPointFactory.create(this);
+ syncNext();
+ syncPrevious();
+ syncBranch0();
}
return !controlPoint.isFixed();
}
+ public boolean isModifialble() {
+ return controlPoint.isMod();
+ }
+
public boolean isSizeChange() {
return controlPoint.isSizeChange();
}
if (controlPoint.getRotationAngle() != null && Math.abs(controlPoint.getRotationAngle()-angle) < MathTools.NEAR_ZERO)
return;
controlPoint.setRotationAngle(angle);
- try {
- PipingRules.requestUpdate(getControlPoint());
- } catch (Exception e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
+ PipingRules.requestUpdate(getControlPoint());
+
}
@RelatedGetValue(Plant3D.URIs.IsReversed)
return;
}
controlPoint.setReversed(reverse);
- try {
- PipingRules.requestUpdate(getControlPoint());
- } catch (Exception e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
+ PipingRules.requestUpdate(getControlPoint());
}
@Override
private void updateOffset() {
if (!componentCalculatedOffset && getControlPoint().isOffset()) {
- getControlPoint().setOffset(getPipeRun().getPipeDiameter()*0.5 - getAlternativePipeRun().getPipeDiameter()*0.5);
+ getControlPoint().setOffset(getPipeRun().getInsideDiameter()*0.5 - getAlternativePipeRun().getInsideDiameter()*0.5);
}
}