|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.swath.Tools.PortSearchParameters
This class contains parameters used when searching for ports and port pairs.
| Constructor Summary | |
Tools.PortSearchParameters()
|
|
| Method Summary | |
java.lang.Object |
clone()
|
boolean |
equals(java.lang.Object obj)
|
void |
setMaxAmount(int type,
int maxAmount)
Sets the maximum amount of a product to search for. |
void |
setMaxPercentage(int type,
int maxPer)
Sets the maximum percentage of a product to search for. |
void |
setMinAmount(int type,
int minAmount)
Sets the minimum amount of a product to search for. |
void |
setMinPercentage(int type,
int minPer)
Sets the minimum percentage of a product to search for. |
void |
setPortOption(int type,
boolean buying)
Sets if the port should be buying or selling a specific product. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Tools.PortSearchParameters()
| Method Detail |
public java.lang.String toString()
public boolean equals(java.lang.Object obj)
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedException
public void setPortOption(int type,
boolean buying)
type - The type of product.buying - true if the port should be buying the product or
false if the port should be selling the product.Swath.FUEL_ORE,
Swath.ORGANICS,
Swath.EQUIPMENT
public void setMinAmount(int type,
int minAmount)
type - The type of product.minAmount - The minimum amount.Swath.FUEL_ORE,
Swath.ORGANICS,
Swath.EQUIPMENT
public void setMaxAmount(int type,
int maxAmount)
type - The type of product.maxAmount - The maximum amount.Swath.FUEL_ORE,
Swath.ORGANICS,
Swath.EQUIPMENT
public void setMinPercentage(int type,
int minPer)
type - The type of product.minPer - The minimum percentage.Swath.FUEL_ORE,
Swath.ORGANICS,
Swath.EQUIPMENT
public void setMaxPercentage(int type,
int maxPer)
type - The type of product.maxPer - The maximum percentage.Swath.FUEL_ORE,
Swath.ORGANICS,
Swath.EQUIPMENT
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||