// Please don't add any method here!!!!!! @Override public Pair<Integer, Integer> getLocation() { if (!x.isDefined() || !y.isDefined()) { return null; } return new Pair<Integer, Integer>(x.getValue(), y.getValue()); }
/** * Find out if the repair cost property has been defined. * * @return True if the repair cost property has been defined, false otherwise. */ public boolean isRepairCostDefined() { return repairCost.isDefined(); }
/** Undefined the repair cost property. */ public void undefineRepairCost() { repairCost.undefine(); }
/** Undefine the Y property. */ public void undefineY() { y.undefine(); }
/** * Get the repair cost of this blockade. * * @return The repair cost. */ @Override public int getRepairCost() { return repairCost.getValue(); }
/** * Find out if the Y property has been defined. * * @return True if the Y property has been defined, false otherwise. */ public boolean isYDefined() { return y.isDefined(); }
/** * Get the Y coordinate. * * @return The Y coordinate. */ @Override public int getY() { return y.getValue(); }
/** Undefined the X property. */ public void undefineX() { x.undefine(); }
/** * Find out if the X property has been defined. * * @return True if the X property has been defined, false otherwise. */ public boolean isXDefined() { return x.isDefined(); }
/** * Get the X coordinate. * * @return The X coordinate. */ @Override public int getX() { return x.getValue(); }