com.swath
Class Tools.PortSearchParameters

java.lang.Object
  extended bycom.swath.Tools.PortSearchParameters
All Implemented Interfaces:
java.lang.Cloneable
Enclosing class:
Tools

public static final class Tools.PortSearchParameters
extends java.lang.Object
implements java.lang.Cloneable

This class contains parameters used when searching for ports and port pairs.

Since:
SWATH 1.6.2

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

Tools.PortSearchParameters

public Tools.PortSearchParameters()
Method Detail

toString

public java.lang.String toString()

equals

public boolean equals(java.lang.Object obj)

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Throws:
java.lang.CloneNotSupportedException

setPortOption

public void setPortOption(int type,
                          boolean buying)
Sets if the port should be buying or selling a specific product. The default for each product is to match both buying and selling when searching.

Parameters:
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.
Since:
SWATH 1.6.2
See Also:
Swath.FUEL_ORE, Swath.ORGANICS, Swath.EQUIPMENT

setMinAmount

public void setMinAmount(int type,
                         int minAmount)
Sets the minimum amount of a product to search for.

Parameters:
type - The type of product.
minAmount - The minimum amount.
Since:
SWATH 1.6.2
See Also:
Swath.FUEL_ORE, Swath.ORGANICS, Swath.EQUIPMENT

setMaxAmount

public void setMaxAmount(int type,
                         int maxAmount)
Sets the maximum amount of a product to search for.

Parameters:
type - The type of product.
maxAmount - The maximum amount.
Since:
SWATH 1.6.2
See Also:
Swath.FUEL_ORE, Swath.ORGANICS, Swath.EQUIPMENT

setMinPercentage

public void setMinPercentage(int type,
                             int minPer)
Sets the minimum percentage of a product to search for.

Parameters:
type - The type of product.
minPer - The minimum percentage.
Since:
SWATH 1.6.2
See Also:
Swath.FUEL_ORE, Swath.ORGANICS, Swath.EQUIPMENT

setMaxPercentage

public void setMaxPercentage(int type,
                             int maxPer)
Sets the maximum percentage of a product to search for.

Parameters:
type - The type of product.
maxPer - The maximum percentage.
Since:
SWATH 1.6.2
See Also:
Swath.FUEL_ORE, Swath.ORGANICS, Swath.EQUIPMENT