package visitor;
public abstract class Equipment {
private int power;
private int netPrice;
private int disountPrice;
public Equipment
(String name
) { super();
this.name = name;
}
public abstract void Accept(EquipmentVisitor v);
return name;
}
public int getDisountPrice() {
return disountPrice;
}
public int getNetPrice() {
return netPrice;
}
public int getPower() {
return power;
}
public void setDisountPrice(int disountPrice) {
this.disountPrice = disountPrice;
}
public void setNetPrice(int netPrice) {
this.netPrice = netPrice;
}
public void setPower(int power) {
this.power = power;
}
/**
* Методы составного оборудования.
* По-умалчанию - они ничего не делают.
*/
public void Add(Equipment eq) {}
public void Remove(Equipment eq) {}
public Iterator<Equipment> getIterator() { return null; }
}