private JButton findMarket = null;
private JLabel resultSummary = null;
private JLabel arbitrageResult = null;
private JButton findMarket = null;
private JLabel resultSummary = null;
private JLabel arbitrageResult = null;
private final static String PCTB_LIVE_HOST_URL = "http://pctb.crabdance.com/";
private final static String PCTB_TEST_HOST_URL = "http://pctb.ilk.org/";
private final static String PCTB_LIVE_HOST_URL = "http://pctb.crabdance.com/";
private final static String PCTB_TEST_HOST_URL = "http://pctb.ilk.org/";
private void progressNote(ProgressMonitor pm, String s) {
String arb = null;
if (arbitrageResult != null)
private void progressNote(ProgressMonitor pm, String s) {
String arb = null;
if (arbitrageResult != null)
* @exception Exception if an error we didn't expect occured
*/
private void runPCTB() throws Exception {
* @exception Exception if an error we didn't expect occured
*/
private void runPCTB() throws Exception {
String yarrgts = "";
ProgressMonitor pm = new ProgressMonitor(frame,"Processing Market Data","Getting table data",0,100);
pm.setMillisToDecideToPopup(0);
String yarrgts = "";
ProgressMonitor pm = new ProgressMonitor(frame,"Processing Market Data","Getting table data",0,100);
pm.setMillisToDecideToPopup(0);
String headings_expected[] = new String[]
{ "Commodity", "Trading outlet", "Buy price", "Will buy", "Sell price", "Will sell" };
ArrayList<ArrayList<String>> headers = getData(accesstable.getAccessibleColumnHeader());
String headings_expected[] = new String[]
{ "Commodity", "Trading outlet", "Buy price", "Will buy", "Sell price", "Will sell" };
ArrayList<ArrayList<String>> headers = getData(accesstable.getAccessibleColumnHeader());
yarrgdata = yarrgsb.toString();
progressNote(pm, "Yarrg: Uploading");
yarrgdata = yarrgsb.toString();
progressNote(pm, "Yarrg: Uploading");
if (islandName != null) {
doneyarrg = runYarrg(yarrgts, oceanName, islandName, yarrgdata);
} else {
System.out.println("Couldn't upload to Yarrg - no island name found");
}
if (islandName != null) {
doneyarrg = runYarrg(yarrgts, oceanName, islandName, yarrgdata);
} else {
System.out.println("Couldn't upload to Yarrg - no island name found");
}
dos.writeBytes(getAbbrevStallList(stallMap));
writeBuySellOffers(buys,sells,offerCount,out);
out.finish();
dos.writeBytes(getAbbrevStallList(stallMap));
writeBuySellOffers(buys,sells,offerCount,out);
out.finish();