query
stringlengths
7
33.1k
document
stringlengths
7
335k
metadata
dict
negatives
listlengths
3
101
negative_scores
listlengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
Returns true if field bidPrice5 is set (has been assigned a value) and false otherwise
public boolean isSetBidPrice5() { return EncodingUtils.testBit(__isset_bitfield, __BIDPRICE5_ISSET_ID); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isSetBidPrice() {\n return EncodingUtils.testBit(__isset_bitfield, __BIDPRICE_ISSET_ID);\n }", "public boolean isSetBidPrice4() {\n return EncodingUtils.testBit(__isset_bitfield, __BIDPRICE4_ISSET_ID);\n }", "public boolean isSetBidVolume5() {\n return EncodingUtils.testBit(__isset_bitfield, __BIDVOLUME5_ISSET_ID);\n }", "public boolean isSetB2bprice() {\n return __isset_bit_vector.get(__B2BPRICE_ISSET_ID);\n }", "public boolean isSetPrice() {\n return EncodingUtils.testBit(__isset_bitfield, __PRICE_ISSET_ID);\n }", "public boolean isSetAskPrice() {\n return EncodingUtils.testBit(__isset_bitfield, __ASKPRICE_ISSET_ID);\n }", "public boolean isSetLimitPrice() {\n return EncodingUtils.testBit(__isset_bitfield, __LIMITPRICE_ISSET_ID);\n }", "public boolean isSetC2bprice() {\n return __isset_bit_vector.get(__C2BPRICE_ISSET_ID);\n }", "public boolean hasPrice() {\n return ((bitField0_ & 0x00000020) == 0x00000020);\n }", "public boolean isSetMarketPrice() {\n return EncodingUtils.testBit(__isset_bitfield, __MARKETPRICE_ISSET_ID);\n }", "public boolean hasPrice() {\n return ((bitField0_ & 0x00000010) == 0x00000010);\n }", "public boolean hasPrice() {\n return ((bitField0_ & 0x00000010) == 0x00000010);\n }", "public boolean hasPrice() {\n return ((bitField0_ & 0x00000020) == 0x00000020);\n }", "public boolean hasPrice() {\n return priceBuilder_ != null || price_ != null;\n }", "public boolean isSetBidVolume4() {\n return EncodingUtils.testBit(__isset_bitfield, __BIDVOLUME4_ISSET_ID);\n }", "public boolean isSetTeamPrice() {\n return EncodingUtils.testBit(__isset_bitfield, __TEAMPRICE_ISSET_ID);\n }", "public boolean isSetPriceLimit();", "public boolean priceIsValid() {\n if (bikePrice.length() != 0)\n return Double.parseDouble(bikePrice) >= MIN_BIKE_PRICE;\n\n return false;\n }", "public boolean hasPrice() {\n return price_ != null;\n }", "public boolean isSetTradePrice() {\n return EncodingUtils.testBit(__isset_bitfield, __TRADEPRICE_ISSET_ID);\n }", "public boolean isSetBidVolume() {\n return EncodingUtils.testBit(__isset_bitfield, __BIDVOLUME_ISSET_ID);\n }", "public boolean canBecombo(){\n \treturn price <5;\n }", "public boolean isSetDisplayprice() {\n return __isset_bit_vector.get(__DISPLAYPRICE_ISSET_ID);\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case BID_PRICE4:\n return isSetBidPrice4();\n case BID_VOLUME4:\n return isSetBidVolume4();\n case BID_PRICE5:\n return isSetBidPrice5();\n case BID_VOLUME5:\n return isSetBidVolume5();\n }\n throw new IllegalStateException();\n }", "public boolean isSetBudget() {\n return EncodingUtils.testBit(__isset_bitfield, __BUDGET_ISSET_ID);\n }", "public boolean isSetPreRepayAmt() {\n return EncodingUtils.testBit(__isset_bitfield, __PREREPAYAMT_ISSET_ID);\n }", "boolean hasPrice();", "boolean hasPrice();", "boolean hasPrice();", "public boolean hasCampaignprice() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "public boolean hasExchangeprice() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }", "public boolean hasExchangeprice() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }", "public boolean hasCampaignprice() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "public boolean hasBidid() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "boolean hasMoneyValue();", "boolean hasMoneyValue();", "boolean hasBidrequest();", "public boolean hasBidid() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean validateBid(int auctionID, int price) throws SQLException {\n\t\tif (price <= getMaxBidPrice(auctionID)) {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}", "public boolean hasBidrequest() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "boolean hasExchangeprice();", "public boolean hasBidrequest() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean isSetCarreferprice() {\n return __isset_bit_vector.get(__CARREFERPRICE_ISSET_ID);\n }", "boolean isSetAmount();", "boolean hasCampaignprice();", "public boolean hasBidresponse() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean isSetAmount() {\n return EncodingUtils.testBit(__isset_bitfield, __AMOUNT_ISSET_ID);\n }", "public boolean isSetPriceList();", "public boolean isSetGibbsq()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(GIBBSQ$2) != 0;\r\n }\r\n }", "boolean hasBidresponse();", "public boolean hasBidresponse() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean isSetBuycardate() {\n return this.buycardate != null;\n }", "boolean hasCampaignBidModifier();", "boolean isSetSingleBetMinimum();", "boolean hasBidid();", "public boolean isSetPriceStd();", "public boolean isSetBaidumap() {\n return this.baidumap != null;\n }", "public void setIsSetPriceLimit (boolean IsSetPriceLimit);", "public boolean isSetAmount()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(AMOUNT$6) != 0;\n }\n }", "public boolean isSetBrandid() {\n return __isset_bit_vector.get(__BRANDID_ISSET_ID);\n }", "boolean hasBonusMoney();", "public boolean isSetShouldPrepaymentFee() {\n return EncodingUtils.testBit(__isset_bitfield, __SHOULDPREPAYMENTFEE_ISSET_ID);\n }", "public void setBidPrice(double bidPrice) {\n\t\tthis.bidPrice = bidPrice;\n\t}", "public void setSMART_OPTION5(BigDecimal SMART_OPTION5) {\r\n this.SMART_OPTION5 = SMART_OPTION5;\r\n }", "public void setSMART_OPTION5(BigDecimal SMART_OPTION5) {\r\n this.SMART_OPTION5 = SMART_OPTION5;\r\n }", "private boolean validateBidPrice(String value){\n boolean isValid = true;\n\n if (value == null || value.isEmpty()) {\n isValid = false;\n } else {\n\n try {\n Float valueFloat = Float.valueOf(value);\n } catch (NumberFormatException e) {\n isValid = false;\n }\n\n if (isValid && value.contains(\".\")) {\n String[] priceParts = value.split(\"\\\\.\");\n if (priceParts[1].length() > 2) {\n isValid = false;\n }\n }\n }\n\n return isValid;\n }", "public boolean isSetAmountOpen()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(AMOUNTOPEN$8) != 0;\n }\n }", "boolean isSetMultipleBetMinimum();", "public boolean isSetPositionAvgPrice() {\n return EncodingUtils.testBit(__isset_bitfield, __POSITIONAVGPRICE_ISSET_ID);\n }", "boolean isSetValueQuantity();", "public boolean isSetBidHedgeFlag() {\n return this.bidHedgeFlag != null;\n }", "protected abstract boolean canHaveAsPrice(DukatAmount price);", "Boolean isAllowingNewAuctions();", "public void validateInitPrice(String value){\n boolean isValid = validateBidPrice(value);\n setInitPriceValid(isValid);\n }", "public boolean isSetAmountDescription() {\r\n return amountDescription != null;\r\n }", "boolean hasIsAutoBet();", "public boolean isSetGibbmt()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(GIBBMT$4) != 0;\r\n }\r\n }", "public boolean isBusted() {\n\t\tif (hand.checkHandValue() > 21) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public boolean hasVar5() {\n return fieldSetFlags()[6];\n }", "boolean hasSingleBet();", "public boolean canBecombo(){\n \treturn super.getPrice() <4;\n }", "boolean hasAdGroupBidModifier();", "public boolean hasMoneyValue() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "private void setBid() {\r\n int bid;\r\n int carInList;\r\n Car temp;\r\n input = new Scanner(System.in);\r\n\r\n cars.getListings();\r\n System.out.println(\"Which vehicle would you like to bid on?\");\r\n\r\n carInList = input.nextInt();\r\n temp = cars.getCar(carInList);\r\n\r\n System.out.println(\"How much would you like to place on the bid?\");\r\n bid = input.nextInt();\r\n\r\n if (bid <= temp.getBidPrice()) {\r\n System.out.println(\"Your bid has to be higher than the current bid price\");\r\n } else {\r\n temp.setBidPrice(bid);\r\n System.out.println(\"Your bid price of \" + temp.getBidPrice() + \" has been set.\");\r\n System.out.println(\"Please check back later to see if you have won the bid\");\r\n }\r\n }", "public boolean estValide()\r\n\t{\r\n\t\tif (size() == 5)\r\n\t\t{\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public void validateMinBid(String value){\n boolean isValid = validateBidPrice(value);\n setMinBidValid(isValid);\n }", "public boolean hasMoneyValue() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean isSetBidOffsetFlag() {\n return this.bidOffsetFlag != null;\n }", "public boolean hasAmount() {\n return amountBuilder_ != null || amount_ != null;\n }", "public boolean hasMoneyValue() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "public boolean getB25() {\n return b25_;\n }", "public abstract boolean isAcceptable(Bid plannedBid);", "public boolean isSetCurrencyID() {\n return this.currencyID != null;\n }", "public boolean hasMoneyValue() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "public boolean isAuctionAtMaxCapacity() {\n\t\treturn getInventoryCount() == maxItemsSold;\t\n\t}", "public boolean hasS5() {\n return ((bitField0_ & 0x00000010) == 0x00000010);\n }", "boolean hasTotalBet();", "boolean hasTotalBet();", "public boolean IsPayed(){\n\t\treturn payed;\n\t}", "public boolean getB25() {\n return b25_;\n }" ]
[ "0.7533059", "0.73039544", "0.72187513", "0.69462365", "0.6695993", "0.6657525", "0.65849066", "0.6502601", "0.6456568", "0.6445495", "0.6417571", "0.6415544", "0.64085275", "0.63573986", "0.63096833", "0.6309677", "0.62930286", "0.6228368", "0.61646235", "0.61595124", "0.6156935", "0.6116777", "0.60917175", "0.6049077", "0.6040572", "0.5947482", "0.5947406", "0.5947406", "0.5947406", "0.59472156", "0.59395397", "0.59254813", "0.5915836", "0.588577", "0.5884828", "0.5884828", "0.5880225", "0.5879725", "0.58756316", "0.5856347", "0.5847167", "0.5843932", "0.58080554", "0.58036643", "0.5757346", "0.5736963", "0.5726683", "0.57266194", "0.572279", "0.57165366", "0.5715036", "0.57097983", "0.5705365", "0.5687254", "0.5660043", "0.5651776", "0.5643477", "0.5633842", "0.561971", "0.56193495", "0.5616787", "0.5611632", "0.56100696", "0.5607832", "0.5607832", "0.56065", "0.5596991", "0.5595476", "0.55837613", "0.5581", "0.55774933", "0.5576952", "0.5575028", "0.5531426", "0.5530709", "0.5522672", "0.55117315", "0.5502562", "0.54927033", "0.545308", "0.5442271", "0.5417222", "0.5416622", "0.5408444", "0.5401371", "0.5397683", "0.5383143", "0.5379503", "0.5376037", "0.5362583", "0.53611827", "0.5356304", "0.5347774", "0.5345135", "0.5335844", "0.5328187", "0.53153664", "0.53153664", "0.5313586", "0.53089994" ]
0.8359873
0
Returns true if field bidVolume5 is set (has been assigned a value) and false otherwise
public boolean isSetBidVolume5() { return EncodingUtils.testBit(__isset_bitfield, __BIDVOLUME5_ISSET_ID); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isSetBidVolume() {\n return EncodingUtils.testBit(__isset_bitfield, __BIDVOLUME_ISSET_ID);\n }", "public boolean isSetBidVolume4() {\n return EncodingUtils.testBit(__isset_bitfield, __BIDVOLUME4_ISSET_ID);\n }", "public boolean isSetBidPrice5() {\n return EncodingUtils.testBit(__isset_bitfield, __BIDPRICE5_ISSET_ID);\n }", "public boolean isSetAskVolume() {\n return EncodingUtils.testBit(__isset_bitfield, __ASKVOLUME_ISSET_ID);\n }", "public boolean hasVolume() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }", "public boolean hasVolume() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }", "public boolean isSetBidPrice4() {\n return EncodingUtils.testBit(__isset_bitfield, __BIDPRICE4_ISSET_ID);\n }", "public boolean isSetTradeVolume() {\n return EncodingUtils.testBit(__isset_bitfield, __TRADEVOLUME_ISSET_ID);\n }", "public boolean isSetBidPrice() {\n return EncodingUtils.testBit(__isset_bitfield, __BIDPRICE_ISSET_ID);\n }", "boolean hasHadithVolumeNo();", "public boolean isSetOrderTotalVolume() {\n return EncodingUtils.testBit(__isset_bitfield, __ORDERTOTALVOLUME_ISSET_ID);\n }", "boolean hasVolume();", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case BID_PRICE4:\n return isSetBidPrice4();\n case BID_VOLUME4:\n return isSetBidVolume4();\n case BID_PRICE5:\n return isSetBidPrice5();\n case BID_VOLUME5:\n return isSetBidVolume5();\n }\n throw new IllegalStateException();\n }", "public boolean isSetB2bprice() {\n return __isset_bit_vector.get(__B2BPRICE_ISSET_ID);\n }", "protected boolean setBathWaterVolumeSetting1(byte[] edt) {return false;}", "public boolean hasVar5() {\n return fieldSetFlags()[6];\n }", "protected boolean setBathWaterVolumeSetting3(byte[] edt) {return false;}", "public boolean hasBidid() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean hasBidid() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean isSetBand1V()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(BAND1V$8) != 0;\n }\n }", "public boolean test(FluidVolume volume) {\n\t\treturn volume.test(getFluid()) && volume.hasAvailable(getAmount());\n\t}", "protected boolean setBathWaterVolumeSetting(byte[] edt) {return false;}", "boolean isSetValueQuantity();", "public boolean isSetBand2V()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(BAND2V$10) != 0;\n }\n }", "protected boolean setBathWaterVolumeSetting2(byte[] edt) {return false;}", "public boolean hasVar55() {\n return fieldSetFlags()[56];\n }", "boolean hasCampaignBidModifier();", "public boolean hasVar195() {\n return fieldSetFlags()[196];\n }", "public boolean setPropertyVolume(long aValue);", "public boolean hasBidrequest() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "boolean haveMBQuant()\n {\n return ((mbType & QUANT) != 0);\n }", "public boolean hasBidrequest() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean getB25() {\n return b25_;\n }", "public boolean isSetBudget() {\n return EncodingUtils.testBit(__isset_bitfield, __BUDGET_ISSET_ID);\n }", "public boolean isSetC2bprice() {\n return __isset_bit_vector.get(__C2BPRICE_ISSET_ID);\n }", "boolean isSetSingleBetMinimum();", "public boolean isSetBaidumap() {\n return this.baidumap != null;\n }", "protected boolean isValidBathWaterVolumeSetting(byte[] edt) {\n\t\tif(edt == null || !(edt.length == 1)) return false;\n\t\treturn true;\n\t}", "public boolean getB25() {\n return b25_;\n }", "public boolean isSetVertBwMin() {\n return (this.vertBwMin != null ? this.vertBwMin.isSetValue() : false);\n }", "public boolean hasS5() {\n return ((bitField0_ & 0x00000010) == 0x00000010);\n }", "public boolean hasMPValue() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "public boolean isSetVertBwMax() {\n return (this.vertBwMax != null ? this.vertBwMax.isSetValue() : false);\n }", "boolean m6865b() {\n return this.f5240k;\n }", "public boolean hasVar54() {\n return fieldSetFlags()[55];\n }", "public boolean hasS5() {\n return ((bitField0_ & 0x00000010) == 0x00000010);\n }", "public boolean hasMPValue() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "protected boolean isValidBathWaterVolumeSetting1(byte[] edt) {\n\t\tif(edt == null || !(edt.length == 1)) return false;\n\t\treturn true;\n\t}", "public boolean isSetDrivingmileage() {\n return __isset_bit_vector.get(__DRIVINGMILEAGE_ISSET_ID);\n }", "public boolean hasBidresponse() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "protected boolean isVolumeOn(int minVal){\n AudioManager audio = (AudioManager) getSystemService(Context.AUDIO_SERVICE);\n int currentVolume = audio.getStreamVolume(AudioManager.STREAM_MUSIC);\n if (currentVolume < minVal){\n printMessege(\"אנא הגבר/י את צלילי המדיה במכשיר שלך\");\n return false;\n }\n return true;\n }", "public boolean hasB() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasB() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean isSetGibbmt()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(GIBBMT$4) != 0;\r\n }\r\n }", "public boolean hasBidresponse() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean isSetPreRepayAmt() {\n return EncodingUtils.testBit(__isset_bitfield, __PREREPAYAMT_ISSET_ID);\n }", "boolean hasBidid();", "public void testVolume() {\n assertEquals(\"b.getVolume should \"+BALL_VOLUME+\" but it's \"+b.getVolume()+\" instead!\",\n BALL_VOLUME, b.getVolume(), JUNIT_DOUBLE_DELTA);\n }", "public boolean mo3882b() {\n return this.f3138s == 1;\n }", "public boolean isSetGibbsq()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(GIBBSQ$2) != 0;\r\n }\r\n }", "public boolean isSetByte_vals() {\n return this.byte_vals != null;\n }", "public boolean hasZeroVolume() {\n\t\treturn getSize() == 0;\n\t}", "public boolean isSetBrandid() {\n return __isset_bit_vector.get(__BRANDID_ISSET_ID);\n }", "public boolean hasB27() {\n return ((bitField0_ & 0x04000000) == 0x04000000);\n }", "public boolean isSetPrice() {\n return EncodingUtils.testBit(__isset_bitfield, __PRICE_ISSET_ID);\n }", "public boolean isSetAskPrice() {\n return EncodingUtils.testBit(__isset_bitfield, __ASKPRICE_ISSET_ID);\n }", "public boolean isSetLimitPrice() {\n return EncodingUtils.testBit(__isset_bitfield, __LIMITPRICE_ISSET_ID);\n }", "protected boolean isValidBathWaterVolumeSetting3(byte[] edt) {\n\t\tif(edt == null || !(edt.length == 2)) return false;\n\t\treturn true;\n\t}", "public boolean hasVar58() {\n return fieldSetFlags()[59];\n }", "public boolean isSetAmount() {\n return EncodingUtils.testBit(__isset_bitfield, __AMOUNT_ISSET_ID);\n }", "public boolean hasB27() {\n return ((bitField0_ & 0x04000000) == 0x04000000);\n }", "boolean isSetMultipleBetMinimum();", "public boolean hasVar56() {\n return fieldSetFlags()[57];\n }", "public boolean isSetTeamPrice() {\n return EncodingUtils.testBit(__isset_bitfield, __TEAMPRICE_ISSET_ID);\n }", "public boolean setPropertyVolumeMax(long aValue);", "public com.dj.model.avro.LargeObjectAvro.Builder setVar56(java.lang.Boolean value) {\n validate(fields()[57], value);\n this.var56 = value;\n fieldSetFlags()[57] = true;\n return this;\n }", "@java.lang.Override\n public boolean hasB() {\n return ((bitField0_ & 0x00000002) != 0);\n }", "public boolean hasValue() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "boolean isSetValueAttachment();", "public boolean isSetLimb() {\n return this.limb != null;\n }", "public boolean hasVar250() {\n return fieldSetFlags()[251];\n }", "@java.lang.Override\n public boolean hasB() {\n return ((bitField0_ & 0x00000002) != 0);\n }", "public boolean hasAntiEleMVA5() {\n return fieldSetFlags()[9];\n }", "public boolean isSetGuardBand() {\n return (this.guardBand != null ? this.guardBand.isSetValue() : false);\n }", "boolean hasAdGroupBidModifier();", "public boolean hasB25() {\n return ((bitField0_ & 0x01000000) == 0x01000000);\n }", "public boolean canBecombo(){\n \treturn price <5;\n }", "public boolean isSetAmountOpen()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(AMOUNTOPEN$8) != 0;\n }\n }", "public boolean hasB25() {\n return ((bitField0_ & 0x01000000) == 0x01000000);\n }", "public boolean hasVar57() {\n return fieldSetFlags()[58];\n }", "public boolean validateBSB() {\n\t\tif (!this.setBSB(this.bsb))\n\t\t\treturn false;\n\t\treturn this.getBSB().length() == 6;\n\t}", "public boolean hasPrice() {\n return ((bitField0_ & 0x00000020) == 0x00000020);\n }", "public boolean setPropertyVolumeLimit(long aValue);", "public boolean setPropertyVolume(long aValue)\n {\n return setPropertyUint(iPropertyVolume, aValue);\n }", "boolean hasMPValue();", "public boolean hasVarValue() {\n return ((bitField0_ & 0x00004000) == 0x00004000);\n }", "public boolean hasValue() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean hasValue() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean hasVar50() {\n return fieldSetFlags()[51];\n }", "public boolean hasPrice() {\n return ((bitField0_ & 0x00000010) == 0x00000010);\n }" ]
[ "0.78344446", "0.7603567", "0.73003495", "0.66318685", "0.6452742", "0.64485407", "0.6399127", "0.6385354", "0.63141346", "0.621829", "0.62093157", "0.6097404", "0.6063566", "0.60243887", "0.5977678", "0.59729093", "0.5940396", "0.5912192", "0.58978146", "0.5856739", "0.5792628", "0.57814467", "0.5756949", "0.5749802", "0.57436657", "0.564647", "0.5630818", "0.56230116", "0.56135666", "0.5598931", "0.55849046", "0.5584335", "0.5583361", "0.5575792", "0.5561071", "0.5548198", "0.5534364", "0.55310965", "0.55293095", "0.5514922", "0.5512793", "0.5507737", "0.55035454", "0.55030376", "0.5495006", "0.54948866", "0.5494107", "0.5493379", "0.5492318", "0.5478453", "0.54719234", "0.546498", "0.5457755", "0.54545575", "0.5445897", "0.544181", "0.5437331", "0.5431014", "0.542785", "0.5423431", "0.5421105", "0.54197323", "0.5419116", "0.541558", "0.5413892", "0.5401728", "0.5401217", "0.5397825", "0.53975713", "0.5396659", "0.5388793", "0.53725004", "0.53708345", "0.53648955", "0.5355294", "0.5350837", "0.53421503", "0.5338788", "0.5322638", "0.5321594", "0.53195846", "0.531566", "0.5312918", "0.53115886", "0.53112257", "0.5309888", "0.5307989", "0.53056455", "0.5304049", "0.52997357", "0.52966374", "0.5296382", "0.5295488", "0.5289977", "0.52888584", "0.52885646", "0.5287584", "0.5287584", "0.52873904", "0.5287222" ]
0.8412349
0
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case BID_PRICE4: return isSetBidPrice4(); case BID_VOLUME4: return isSetBidVolume4(); case BID_PRICE5: return isSetBidPrice5(); case BID_VOLUME5: return isSetBidVolume5(); } throw new IllegalStateException(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isSetField() {\r\n return this.field != null;\r\n }", "public boolean isSetField() {\r\n return this.field != null;\r\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case ID:\n return isSetId();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(int fieldID) {\n switch (fieldID) {\n case NAME:\n return isSetName();\n case PASSWORD:\n return isSetPassword();\n case SELECT_PRIV:\n return isSetSelect_priv();\n case INSERT_PRIV:\n return isSetInsert_priv();\n case CREATE_PRIV:\n return isSetCreate_priv();\n case DROP_PRIV:\n return isSetDrop_priv();\n case GRANT_PRIV:\n return isSetGrant_priv();\n case ALTER_PRIV:\n return isSetAlter_priv();\n case CREATE_USER_PRIV:\n return isSetCreate_user_priv();\n case SUPER_PRIV:\n return isSetSuper_priv();\n default:\n throw new IllegalArgumentException(\"Field \" + fieldID + \" doesn't exist!\");\n }\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case ID:\n return isSetId();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case IDS:\n return isSetIds();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case IDS:\n return isSetIds();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case IDS:\n return isSetIds();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case IDS:\n return isSetIds();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case USER_ID:\n return isSetUserId();\n case NUM:\n return isSetNum();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n case FIELD:\r\n return isSetField();\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case ID:\n return isSetId();\n case PARAMS:\n return isSetParams();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n case OBJ_ID:\r\n return isSetObjId();\r\n case SYMBOL:\r\n return isSetSymbol();\r\n case POSITION_X:\r\n return isSetPositionX();\r\n case POSITION_Y:\r\n return isSetPositionY();\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case USER_ID:\n return isSetUserId();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case USER_ID:\n return isSetUserId();\n }\n throw new IllegalStateException();\n }", "boolean hasField4();", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n case OBJECT_ID:\r\n return isSetObjectId();\r\n case SOURCE_ID:\r\n return isSetSourceId();\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n case OBJECT_ID:\r\n return isSetObjectId();\r\n case SOURCE_ID:\r\n return isSetSourceId();\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n case OBJECT_ID:\r\n return isSetObjectId();\r\n case SOURCE_ID:\r\n return isSetSourceId();\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n case OBJECT_ID:\r\n return isSetObjectId();\r\n case SOURCE_ID:\r\n return isSetSourceId();\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case TYPE:\n return isSetType();\n case POSTSID:\n return isSetPostsid();\n case USERID:\n return isSetUserid();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case IDENTIFIER:\n return isSetIdentifier();\n case KEY:\n return isSetKey();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case POST_ID:\n return isSetPostId();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n case ENTITY_ID:\r\n return isSetEntityId();\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case RECORD:\n return isSetRecord();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case RECORD:\n return isSetRecord();\n }\n throw new IllegalStateException();\n }", "boolean hasFieldId();", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case NUM:\n return isSetNum();\n }\n throw new java.lang.IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case DATAS:\n return isSetDatas();\n }\n throw new IllegalStateException();\n }", "boolean hasField0();", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case PARENT_ID:\n return isSetParentId();\n case TYPE:\n return isSetType();\n case VALUE:\n return isSetValue();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case INSTITUTION_ID:\n return isSetInstitutionID();\n case PRODUCTIDS:\n return isSetProductids();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case DATA:\n return isSetData();\n case FILE_ID:\n return isSetFileID();\n case SIZE:\n return isSetSize();\n }\n throw new java.lang.IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case BROKER_ID:\n return isSetBrokerID();\n case ACCOUNT_ID:\n return isSetAccountID();\n case ALGORITHM:\n return isSetAlgorithm();\n case MEMO:\n return isSetMemo();\n case CURRENCY_ID:\n return isSetCurrencyID();\n }\n throw new IllegalStateException();\n }", "public boolean isSetFields() {\n return this.fields != null;\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n case ID:\r\n return isSetId();\r\n case NAME:\r\n return isSetName();\r\n case ARTISTS:\r\n return isSetArtists();\r\n case RELEASE_DATE:\r\n return isSetRelease_date();\r\n case GENRES:\r\n return isSetGenres();\r\n case TRACK_NAMES:\r\n return isSetTrack_names();\r\n case TEXT:\r\n return isSetText();\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case RELATED_ID:\n return isSetRelatedId();\n case COMPANY_ID:\n return isSetCompanyId();\n case COMPANY_GROUP_ID:\n return isSetCompanyGroupId();\n case MACHINE_ID:\n return isSetMachineId();\n case ACTIVE_START_TIMESTAMP:\n return isSetActiveStartTimestamp();\n case ACTIVED_END_TIMESTAMP:\n return isSetActivedEndTimestamp();\n case MACHINE_INNER_IP:\n return isSetMachineInnerIP();\n case MACHINE_OUTER_IP:\n return isSetMachineOuterIP();\n case CREATE_TIMESTAMP:\n return isSetCreateTimestamp();\n case LASTMODIFY_TIMESTAMP:\n return isSetLastmodifyTimestamp();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case ACCOUNT_IDS:\n return isSetAccountIds();\n case COMMODITY_IDS:\n return isSetCommodityIds();\n }\n throw new IllegalStateException();\n }", "boolean hasField1();", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case ID:\n return isSetId();\n case TYPE:\n return isSetType();\n }\n throw new java.lang.IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case ID:\n return isSetId();\n case TYPE:\n return isSetType();\n }\n throw new java.lang.IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case X:\n return isSetX();\n case Y:\n return isSetY();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case PAGE_NO:\n return isSetPageNo();\n case PAGE_SIZE:\n return isSetPageSize();\n case USER_ID:\n return isSetUserId();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case ID:\n return isSetId();\n case STAFF_ID:\n return isSetStaffId();\n case LOGIN_TYPE:\n return isSetLoginType();\n case LOGIN_ID:\n return isSetLoginId();\n case LOGIN_PASS:\n return isSetLoginPass();\n case LOGIN_PASS_ENCRYPT:\n return isSetLoginPassEncrypt();\n case PHONE_NUMBER:\n return isSetPhoneNumber();\n case STAFF_TYPE:\n return isSetStaffType();\n case STATUS:\n return isSetStatus();\n case CERT_STATUS:\n return isSetCertStatus();\n case AVG_SCORE:\n return isSetAvgScore();\n case TAG:\n return isSetTag();\n case FINISH_ORDER_COUNT:\n return isSetFinishOrderCount();\n case ASSIGN_ORDER_COUNT:\n return isSetAssignOrderCount();\n case EXTRA_DATA1:\n return isSetExtraData1();\n case EXTRA_DATA2:\n return isSetExtraData2();\n case CREATE_TIME:\n return isSetCreateTime();\n case UPDATE_TIME:\n return isSetUpdateTime();\n case REGISTER_TIME:\n return isSetRegisterTime();\n case LAST_RECEPTION_TIME:\n return isSetLastReceptionTime();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case EXAM_ID:\n return isSetExam_id();\n }\n throw new java.lang.IllegalStateException();\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new java.lang.IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n case ID:\r\n return isSetId();\r\n case ID_CURSA:\r\n return isSetIdCursa();\r\n case NR_LOC:\r\n return isSetNrLoc();\r\n case CLIENT:\r\n return isSetClient();\r\n }\r\n throw new java.lang.IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case COMB_INSTRUMENT_ID:\n return isSetCombInstrumentID();\n case LEG_ID:\n return isSetLegID();\n case LEG_INSTRUMENT_ID:\n return isSetLegInstrumentID();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case PID:\n return isSetPid();\n case EXCEPTION_ID:\n return isSetExceptionId();\n case USER_ID:\n return isSetUserId();\n case REPORT_DATE:\n return isSetReportDate();\n case UN_ASSURE_CONDITION:\n return isSetUnAssureCondition();\n case HOUSE_PROPERY_CONDITION:\n return isSetHouseProperyCondition();\n case REMARK:\n return isSetRemark();\n case CREATE_DATE:\n return isSetCreateDate();\n case CREATE_ID:\n return isSetCreateId();\n case UPDATE_DATE:\n return isSetUpdateDate();\n case UPDATE_ID:\n return isSetUpdateId();\n case PROJECT_ID:\n return isSetProjectId();\n case LEGAL_LIST:\n return isSetLegalList();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case PATIENT_ID:\n return isSetPatient_id();\n }\n throw new java.lang.IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case IS_STAR:\n return isSetIs_star();\n case IS_DISTINCT:\n return isSetIs_distinct();\n case OP:\n return isSetOp();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new java.lang.IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new java.lang.IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new java.lang.IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new java.lang.IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new java.lang.IllegalStateException();\n }" ]
[ "0.79056656", "0.79056656", "0.78333884", "0.78036314", "0.77937067", "0.7780796", "0.7780796", "0.7780796", "0.7780796", "0.76468164", "0.754723", "0.75451803", "0.7542179", "0.7542179", "0.7542179", "0.7542179", "0.7542179", "0.7542179", "0.7542179", "0.7542179", "0.7542179", "0.7542179", "0.7542179", "0.7542179", "0.7542179", "0.7542179", "0.7542179", "0.7542179", "0.7542179", "0.7542179", "0.7542179", "0.7542179", "0.7542179", "0.7542179", "0.7542179", "0.7542179", "0.75237954", "0.7519931", "0.7519931", "0.7518171", "0.7517334", "0.7517334", "0.7517334", "0.7517334", "0.7516493", "0.7516493", "0.7516493", "0.7516493", "0.7516493", "0.7516493", "0.7516493", "0.7516493", "0.7516493", "0.7516493", "0.7516493", "0.7516493", "0.7516493", "0.7516493", "0.7516493", "0.7516493", "0.7516493", "0.7516493", "0.7516493", "0.7516493", "0.7516493", "0.7516493", "0.75077486", "0.74782556", "0.7463401", "0.7450414", "0.74464494", "0.74464494", "0.7432297", "0.74118006", "0.73933053", "0.7392036", "0.7386285", "0.7381753", "0.7379419", "0.7373811", "0.7371855", "0.73575383", "0.73532623", "0.7346856", "0.73463356", "0.7345177", "0.7345177", "0.73431945", "0.7337974", "0.7333134", "0.7332566", "0.73245287", "0.7323758", "0.7319723", "0.7318809", "0.7317446", "0.7308939", "0.7308939", "0.7308939", "0.7308939", "0.7308939" ]
0.0
-1
check for required fields check for substruct validity
public void validate() throws org.apache.thrift.TException { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void validate() throws org.apache.thrift.TException {\n if (institutionID == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'institutionID' was not present! Struct: \" + toString());\n }\n if (productids == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'productids' was not present! Struct: \" + toString());\n }\n // check for sub-struct validity\n }", "public void validate() throws org.apache.thrift.TException {\n if (is_null == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'is_null' was not present! Struct: \" + toString());\n }\n // check for sub-struct validity\n }", "public void validate() throws org.apache.thrift.TException {\n if (partition_exprs == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'partition_exprs' was not present! Struct: \" + toString());\n }\n if (partition_infos == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'partition_infos' was not present! Struct: \" + toString());\n }\n if (rollup_schemas == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'rollup_schemas' was not present! Struct: \" + toString());\n }\n // check for sub-struct validity\n }", "public void validate() throws org.apache.thrift.TException {\n if (!is_set_destApp()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'destApp' is unset! Struct:\" + toString());\n }\n\n if (!is_set_destPellet()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'destPellet' is unset! Struct:\" + toString());\n }\n\n if (!is_set_data()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'data' is unset! Struct:\" + toString());\n }\n\n // check for sub-struct validity\n }", "public void validate() throws org.apache.thrift.TException {\n if (!isSetResourcePlanName()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'resourcePlanName' is unset! Struct:\" + toString());\n }\n\n if (!isSetPoolPath()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'poolPath' is unset! Struct:\" + toString());\n }\n\n // check for sub-struct validity\n }", "public void validate() throws org.apache.thrift.TException {\n if (!isSetId()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'id' is unset! Struct:\" + toString());\n }\n\n // check for sub-struct validity\n }", "public void validate() throws org.apache.thrift.TException {\n if (!is_set_inputs()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'inputs' is unset! Struct:\" + toString());\n }\n\n if (!is_set_streams()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'streams' is unset! Struct:\" + toString());\n }\n\n // check for sub-struct validity\n }", "public void validate() throws org.apache.thrift.TException {\n if (version == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'version' was not present! Struct: \" + toString());\n }\n if (am_handle == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'am_handle' was not present! Struct: \" + toString());\n }\n if (user == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'user' was not present! Struct: \" + toString());\n }\n if (resources == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'resources' was not present! Struct: \" + toString());\n }\n // alas, we cannot check 'gang' because it's a primitive and you chose the non-beans generator.\n // check for sub-struct validity\n if (am_handle != null) {\n am_handle.validate();\n }\n if (reservation_id != null) {\n reservation_id.validate();\n }\n }", "public void validate() throws org.apache.thrift.TException {\n if (functionName == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'functionName' was not present! Struct: \" + toString());\n }\n if (className == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'className' was not present! Struct: \" + toString());\n }\n if (resources == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'resources' was not present! Struct: \" + toString());\n }\n // check for sub-struct validity\n }", "public void validate() throws org.apache.thrift.TException {\n if (emailId == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'emailId' was not present! Struct: \" + toString());\n }\n // check for sub-struct validity\n }", "public void validate() throws org.apache.thrift.TException {\n if (classification == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'classification' was not present! Struct: \" + toString());\n }\n // check for sub-struct validity\n }", "public void validate() throws org.apache.thrift.TException {\n if (!isSetColName()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'colName' is unset! Struct:\" + toString());\n }\n\n if (!isSetColType()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'colType' is unset! Struct:\" + toString());\n }\n\n if (!isSetStatsData()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'statsData' is unset! Struct:\" + toString());\n }\n\n // check for sub-struct validity\n }", "public void validate() throws org.apache.thrift.TException {\n if (version == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'version' was not present! Struct: \" + toString());\n }\n // check for sub-struct validity\n }", "public void validate() throws org.apache.thrift.TException {\n if (code == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'code' was not present! Struct: \" + toString());\n }\n // check for sub-struct validity\n }", "public void validate() throws org.apache.thrift.TException {\n if (op == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'op' was not present! Struct: \" + toString());\n }\n // check for sub-struct validity\n }", "public void validate() throws org.apache.thrift.TException {\n if (!isSetUserProfileId()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'userProfileId' is unset! Struct:\" + toString());\n }\n\n if (!isSetEntityId()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'entityId' is unset! Struct:\" + toString());\n }\n\n if (!isSetEntityType()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'entityType' is unset! Struct:\" + toString());\n }\n\n // check for sub-struct validity\n }", "public void validate() throws org.apache.thrift.TException {\n if (limb == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'limb' was not present! Struct: \" + toString());\n }\n if (pos == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'pos' was not present! Struct: \" + toString());\n }\n if (ori == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'ori' was not present! Struct: \" + toString());\n }\n if (speed == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'speed' was not present! Struct: \" + toString());\n }\n if (angls == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'angls' was not present! Struct: \" + toString());\n }\n if (mode == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'mode' was not present! Struct: \" + toString());\n }\n if (kin == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'kin' was not present! Struct: \" + toString());\n }\n // check for sub-struct validity\n if (pos != null) {\n pos.validate();\n }\n if (ori != null) {\n ori.validate();\n }\n if (speed != null) {\n speed.validate();\n }\n if (angls != null) {\n angls.validate();\n }\n }", "public void validate() throws org.apache.thrift.TException {\n if (!is_set_status()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'status' is unset! Struct:\" + toString());\n }\n\n if (!is_set_data()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'data' is unset! Struct:\" + toString());\n }\n\n if (!is_set_feature()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'feature' is unset! Struct:\" + toString());\n }\n\n if (!is_set_predictResult()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'predictResult' is unset! Struct:\" + toString());\n }\n\n if (!is_set_msg()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'msg' is unset! Struct:\" + toString());\n }\n\n // check for sub-struct validity\n if (feature != null) {\n feature.validate();\n }\n }", "public void validate() throws org.apache.thrift.TException {\n if (key_column_name == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'key_column_name' was not present! Struct: \" + toString());\n }\n if (key_column_type == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'key_column_type' was not present! Struct: \" + toString());\n }\n // alas, we cannot check 'is_preaggregation' because it's a primitive and you chose the non-beans generator.\n // check for sub-struct validity\n }", "public void validate() throws org.apache.thrift.TException {\n if (parseId == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'parseId' was not present! Struct: \" + toString());\n }\n // alas, we cannot check 'constituentIndex' because it's a primitive and you chose the non-beans generator.\n // check for sub-struct validity\n if (parseId != null) {\n parseId.validate();\n }\n }", "public void validate() throws org.apache.thrift.TException {\n if (!isSetUuidFicha()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'uuidFicha' is unset! Struct:\" + toString());\n }\n\n // check for sub-struct validity\n if (headerTransport != null) {\n headerTransport.validate();\n }\n }", "public void validate() throws org.apache.thrift.TException {\n if (statusCode == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'statusCode' was not present! Struct: \" + toString());\n }\n // check for sub-struct validity\n }", "private void fillMandatoryFields() {\n\n }", "public void checkFields(){\n }", "public void validate() throws org.apache.thrift.TException {\n if (tableType == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'tableType' was not present! Struct: \" + toString());\n }\n // alas, we cannot check 'numCols' because it's a primitive and you chose the non-beans generator.\n // alas, we cannot check 'numClusteringCols' because it's a primitive and you chose the non-beans generator.\n if (tableName == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'tableName' was not present! Struct: \" + toString());\n }\n if (dbName == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'dbName' was not present! Struct: \" + toString());\n }\n // check for sub-struct validity\n if (hdfsTable != null) {\n hdfsTable.validate();\n }\n if (hbaseTable != null) {\n hbaseTable.validate();\n }\n if (dataSourceTable != null) {\n dataSourceTable.validate();\n }\n }", "private boolean validateRequiredFields(StringBuffer b){\n boolean result = true;\n\n if (!TextFieldHelper.isNumericFieldValid(this.goalValue, \" Цель: \", b) ||\n !TextFieldHelper.isNumericFieldValid(this.startWeightValue, \" Исходный вес: \", b) ||\n !TextFieldHelper.isNumericFieldValid(this.heightValue, \" Рост: \", b) ||\n !CalendarHelper.isFieldValid(startProgramDateValue, \" Старт программы: \", b) ||\n !new ComboBoxFieldHelper<Client>().isFieldValid(clientFIOValue, \" Клиент: \", b))\n {\n result = false;\n }\n\n return result;\n }", "public static boolean checkMandatoryFields(Object obj) {\n\n\t\tif (obj instanceof UserDTO) {\n\n\t\t\tUserDTO userDTO = (UserDTO) obj;\n\n\t\t\tif (userDTO.getPasscode().trim().isEmpty()) {\n\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\treturn true;\n\t}", "private void fillMandatoryFields_custom() {\n\n }", "private void checkRequiredFields() {\n // check the fields which should be non-null\n if (configFileName == null || configFileName.trim().length() == 0) {\n throw new DAOConfigurationException(\n \"The 'configFileName' should not be null.\");\n }\n if (configNamespace == null || configNamespace.trim().length() == 0) {\n throw new DAOConfigurationException(\n \"The 'configNamespace' should not be null.\");\n }\n if (searchBundleManagerNamespace == null\n || searchBundleManagerNamespace.trim().length() == 0) {\n throw new DAOConfigurationException(\n \"The 'searchBundleManagerNamespace' should not be null.\");\n }\n if (entityManager == null) {\n throw new DAOConfigurationException(\n \"The 'entityManager' should not be null.\");\n }\n }", "public static boolean checkMandatoryFieldsRegistration(Object obj) {\n\n\t\tif (obj instanceof UserDTO) {\n\n\t\t\tUserDTO userDTO = (UserDTO) obj;\n\n\t\t\tif (userDTO.getPasscode().trim().isEmpty()) {\n\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\treturn true;\n\t}", "private void setupRequiredValidation() {\n requiredMafExpressions.put(FIELD_HUGO_SYMBOL, Pattern.compile(\"\\\\S+\"));\r\n requiredFieldDescriptions.put(FIELD_HUGO_SYMBOL, \"may not be blank\");\r\n requiredMafExpressions.put(FIELD_ENTREZ_GENE_ID, Pattern.compile(\"\\\\d+\")); // number\r\n requiredFieldDescriptions.put(FIELD_ENTREZ_GENE_ID, \"must be an integer number\");\r\n requiredMafExpressions.put(FIELD_MATCHED_NORM_SAMPLE_BARCODE, QcLiveBarcodeAndUUIDValidatorImpl.ALIQUOT_BARCODE_PATTERN);\r\n requiredFieldDescriptions.put(FIELD_MATCHED_NORM_SAMPLE_BARCODE, \"must be a full aliquot barcode\");\r\n requiredMafExpressions.put(FIELD_TUMOR_SAMPLE_BARCODE, QcLiveBarcodeAndUUIDValidatorImpl.ALIQUOT_BARCODE_PATTERN);\r\n requiredFieldDescriptions.put(FIELD_TUMOR_SAMPLE_BARCODE, \"must be a full aliquot barcode\");\r\n requiredMafExpressions.put(FIELD_VALIDATION_STATUS, Pattern.compile(\"Valid|Wildtype|Unknown|\\\\S?\"));\r\n requiredFieldDescriptions.put(FIELD_VALIDATION_STATUS, \"must be Valid, Wildtype, Unknown, or blank\");\r\n requiredMafExpressions.put(FIELD_CHROMOSOME, Pattern.compile(\"\\\\S+\"));\r\n requiredFieldDescriptions.put(FIELD_CHROMOSOME, \"must be one of: X, Y, M, 1-22, or full name of unassigned fragment\");\r\n setupMafSpecificChecks();\r\n }", "private void validateFields() {\n\t\t// TODO validate ID\n\t\tboolean valid = (mEdtAddress.getText().length() > 2)\n\t\t\t\t&& (mEdtPassword.getText().length() > 0);\n\t\tmBtnNext.setEnabled(valid);\n\t}", "private void validateData() {\n }", "public interface FieldValidator {\n static boolean validateStringIfPresent(Object o, int len) {\n return o == null || o instanceof String && !((String) o).isEmpty() && ((String) o).length() < len;\n }\n\n static boolean validateString(Object o, int len) {\n return !(o == null || !(o instanceof String) || ((String) o).isEmpty() || (((String) o).length() > len));\n }\n\n static boolean validateInteger(Object o) {\n if (o == null) {\n return false;\n }\n try {\n Integer.valueOf(o.toString());\n } catch (NumberFormatException e) {\n return false;\n }\n return true;\n }\n\n static boolean validateDateWithFormat(Object o, DateTimeFormatter formatter, boolean allowedInPast) {\n if (o == null) {\n return false;\n }\n try {\n LocalDate date = LocalDate.parse(o.toString(), formatter);\n if (!allowedInPast) {\n return date.isAfter(LocalDate.now());\n }\n } catch (DateTimeParseException e) {\n return false;\n }\n return true;\n }\n\n static boolean validateJsonIfPresent(Object o) {\n return o == null || o instanceof JsonObject && !((JsonObject) o).isEmpty();\n }\n\n static boolean validateJson(Object o) {\n return !(o == null || !(o instanceof JsonObject) || ((JsonObject) o).isEmpty());\n }\n\n static boolean validateJsonArrayIfPresent(Object o) {\n return o == null || o instanceof JsonArray && !((JsonArray) o).isEmpty();\n }\n\n static boolean validateJsonArray(Object o) {\n return !(o == null || !(o instanceof JsonArray) || ((JsonArray) o).isEmpty());\n }\n\n static boolean validateDeepJsonArrayIfPresent(Object o, FieldValidator fv) {\n if (o == null) {\n return true;\n } else if (!(o instanceof JsonArray) || ((JsonArray) o).isEmpty()) {\n return false;\n } else {\n JsonArray array = (JsonArray) o;\n for (Object element : array) {\n if (!fv.validateField(element)) {\n return false;\n }\n }\n }\n return true;\n }\n\n static boolean validateDeepJsonArray(Object o, FieldValidator fv) {\n if (o == null || !(o instanceof JsonArray) || ((JsonArray) o).isEmpty()) {\n return false;\n }\n JsonArray array = (JsonArray) o;\n for (Object element : array) {\n if (!fv.validateField(element)) {\n return false;\n }\n }\n return true;\n }\n\n static boolean validateBoolean(Object o) {\n return o != null && o instanceof Boolean;\n }\n\n static boolean validateBooleanIfPresent(Object o) {\n return o == null || o instanceof Boolean;\n }\n\n static boolean validateUuid(Object o) {\n try {\n UUID uuid = UUID.fromString((String) o);\n return true;\n } catch (IllegalArgumentException e) {\n return false;\n }\n }\n\n static boolean validateUuidIfPresent(String o) {\n return o == null || validateUuid(o);\n }\n\n boolean validateField(Object value);\n\n Pattern EMAIL_PATTERN =\n Pattern.compile(\"^[_A-Za-z0-9-\\\\+]+(\\\\.[_A-Za-z0-9-]+)*@[A-Za-z0-9-]+(\\\\.[A-Za-z0-9]+)*(\\\\.[A-Za-z]{2,})$\");\n\n static boolean validateEmail(Object o) {\n Matcher matcher = EMAIL_PATTERN.matcher((String) o);\n return matcher.matches();\n }\n}", "@Override\n\tprotected boolean verifyFields() {\n\t\treturn false;\n\t}", "@Override\n\tprotected boolean checkDataStructure(Data data) throws ImportitException {\n\t\tdata.setDatabase(39);\n\t\tdata.setGroup(3);\n\t\tboolean validDb = checkDatabaseName(data);\n\t\tboolean validHead = false;\n\t\tboolean validTable = false;\n\t\tboolean existImportantFields = false;\n\t\tif (validDb) {\n\t\t\tList<Field> headerFields = data.getHeaderFields();\n\t\t\tList<Field> tableFields = data.getTableFields();\n\t\t\tvalidHead = false;\n\t\t\tvalidTable = false;\n\t\t\ttry {\n\n\t\t\t\tvalidHead = checkWarehouseGroupProperties(headerFields, data.getOptionCode().useEnglishVariables());\n\t\t\t\tvalidTable = checkFieldList(tableFields, 39, 3, false, data.getOptionCode().useEnglishVariables());\n\t\t\t\tString[] checkDataCustomerPartProperties = checkDataWarehouseGroupProperties(data);\n\t\t\t\texistImportantFields = checkDataCustomerPartProperties.length == 2;\n\n\t\t\t} catch (ImportitException e) {\n\t\t\t\tlogger.error(e);\n\t\t\t\tdata.appendError(Util.getMessage(\"err.structure.check\", e.getMessage()));\n\t\t\t}\n\t\t}\n\t\tif (validTable && validHead && validDb & existImportantFields) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "private void checkValid() {\n getSimType();\n getInitialConfig();\n getIsOutlined();\n getEdgePolicy();\n getNeighborPolicy();\n getCellShape();\n }", "@Override\n\tprotected Boolean isValid(String[] fields) {\n\t\t//check - evnet_id, yes, maybe, invited, no\n return (fields.length > 4);\n\t}", "private void check()\n {\n Preconditions.checkArgument(name != null, \"Property name missing\");\n Preconditions.checkArgument(valueOptions != null || valueMethod != null, \"Value method missing\");\n Preconditions.checkArgument(\n !(this.validationRegex != null && this.valueOptions != null && this.valueOptionsMustMatch),\n \"Cant have regexp validator and matching options at the same time\");\n\n if (required == null)\n {\n /*\n If a property has a default value, the common case is that it's required.\n However, we need to allow for redundant calls of required(): defaultOf(x).required();\n and for unusual cases where a property has a default value but it's optional: defaultOf(x).required(false).\n */\n required = this.defaultValue != null;\n }\n\n if (description == null)\n description = \"Property name: \" + name + \", required = \" + required;\n\n if (valueOptions != null && defaultValue != null)\n {\n for (PropertySpec.Value v : valueOptions)\n {\n if (v.value.equals(defaultValue.value))\n v.isDefault = true;\n }\n }\n\n if (dependsOn != null)\n {\n if (category == null)\n throw new IllegalArgumentException(\"category required when dependsOn is set \" + name);\n\n if (!dependsOn.isOptionsOnly())\n throw new IllegalArgumentException(\n \"Invalid dependsOn propertySpec (must be optionsOnly) \" + dependsOn.name());\n }\n }", "private boolean CheckAllRequiredFields() {\n\t\tboolean res = true;\n\t\tres &= CheckParkSelection();\n\t\tres &= CheckDateSelection();\n\t\tres &= CheckVisitorHour();\n\t\tres &= CheckEmail();\n\t\tres &= CheckPhoneNumber();\n\t\treturn res;\n\t}", "@Override\n\tpublic boolean isValid(SchemaField field, Data data) {\n\t\treturn false;\n\t}", "private void validate() {\n\n if (this.clsname == null)\n throw new IllegalArgumentException();\n if (this.dimension < 0)\n throw new IllegalArgumentException();\n if (this.generics == null)\n throw new IllegalArgumentException();\n }", "private void validateFields () throws ModelValidationException\n\t\t\t{\n\t\t\t\tString pcClassName = getClassName();\n\t\t\t\tModel model = getModel();\n\t\t\t\t// check for valid typed public non-static fields\n\t\t\t\tList keyClassFieldNames = model.getAllFields(keyClassName);\n\t\t\t\tMap keyFields = getKeyFields();\n\n\t\t\t\tfor (Iterator i = keyClassFieldNames.iterator(); i.hasNext();)\n\t\t\t\t{\n\t\t\t\t\tString keyClassFieldName = (String)i.next();\n\t\t\t\t\tObject keyClassField = \n\t\t\t\t\t\tgetKeyClassField(keyClassName, keyClassFieldName);\n\t\t\t\t\tint keyClassFieldModifiers = \n\t\t\t\t\t\tmodel.getModifiers(keyClassField);\n\t\t\t\t\tString keyClassFieldType = model.getType(keyClassField);\n\t\t\t\t\tObject keyField = keyFields.get(keyClassFieldName);\n\n\t\t\t\t\tif (Modifier.isStatic(keyClassFieldModifiers))\n\t\t\t\t\t\t// we are not interested in static fields\n\t\t\t\t\t\tcontinue;\n\n\t\t\t\t\tif (!model.isValidKeyType(keyClassName, keyClassFieldName))\n\t\t\t\t\t{\n\t\t\t\t\t\tthrow new ModelValidationException(keyClassField,\n\t\t\t\t\t\t\tI18NHelper.getMessage(getMessages(), \n\t\t\t\t\t\t\t\"util.validation.key_field_type_invalid\", //NOI18N\n\t\t\t\t\t\t\tkeyClassFieldName, keyClassName));\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif (!Modifier.isPublic(keyClassFieldModifiers))\n\t\t\t\t\t{\n\t\t\t\t\t\tthrow new ModelValidationException(keyClassField,\n\t\t\t\t\t\t\tI18NHelper.getMessage(getMessages(), \n\t\t\t\t\t\t\t\"util.validation.key_field_public\", //NOI18N\n\t\t\t\t\t\t\tkeyClassFieldName, keyClassName));\n\t\t\t\t\t}\n\n\t\t\t\t\tif (keyField == null)\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\n\t\t\t\t\tif (!keyClassFieldType.equals(model.getType(keyField)))\n\t\t\t\t\t{\n\t\t\t\t\t\tthrow new ModelValidationException(keyClassField,\n\t\t\t\t\t\t\tI18NHelper.getMessage(getMessages(), \n\t\t\t\t\t\t\t\"util.validation.key_field_type_mismatch\", //NOI18N\n\t\t\t\t\t\t\tkeyClassFieldName, keyClassName, pcClassName));\n\t\t\t\t\t}\n\n\t\t\t\t\t// remove handled keyField from the list of keyFields\n\t\t\t\t\tkeyFields.remove(keyClassFieldName);\n\t\t\t\t}\n\n\t\t\t\t// check whether there are any unhandled key fields\n\t\t\t\tif (!keyFields.isEmpty())\n\t\t\t\t{\n\t\t\t\t\tObject pcClass = model.getClass(pcClassName);\n\t\t\t\t\tString fieldNames = StringHelper.arrayToSeparatedList(\n\t\t\t\t\t\tnew ArrayList(keyFields.keySet()));\n\n\t\t\t\t\tthrow new ModelValidationException(pcClass,\n\t\t\t\t\t\tI18NHelper.getMessage(getMessages(), \n\t\t\t\t\t\t\"util.validation.key_field_missing\", //NOI18N\n\t\t\t\t\t\tpcClassName, keyClassName, fieldNames));\n\t\t\t\t}\n\t\t\t}", "@Test\n\tpublic void testCheckForEmptyFields() {\n\t\t\n\t\t// Case 1: when all fields are present\n\t\tRequestData requestDataObj1 = new RequestData();\n\t\trequestDataObj1.setDomain(\"PBTV\");\n\t\trequestDataObj1.setOwningBusinessEntity(\"CH\");\n\t\trequestDataObj1.setSourceSystemName(\"CDI\");\n\t\tboolean expectedResponse1 = true;\n\t\tboolean response1 = tokenisationMainObj.checkForEmptyFields(requestDataObj1);\n\t\tassertEquals(response1, expectedResponse1);\n\n\t\t// Case 2: when any of them is empty\n\t\tRequestData requestDataObj2 = new RequestData();\n\t\trequestDataObj2.setDomain(\"PBTV\");\n\t\trequestDataObj2.setOwningBusinessEntity(\"CH\");\n\t\trequestDataObj2.setSourceSystemName(\"\");\n\t\tboolean expectedResponse2 = false;\n\t\tboolean response2 = tokenisationMainObj.checkForEmptyFields(requestDataObj2);\n\t\tassertEquals(response2, expectedResponse2);\n\t}", "public static boolean checkMandatoryFieldsUpdateUser(Object obj) {\n\n\t\tif (obj instanceof UpdateUserDTO) {\n\n\t\t\tUpdateUserDTO updateUserDTO = (UpdateUserDTO) obj;\n\n\t\t\tif (updateUserDTO.getFirstName().trim().isEmpty()\n\t\t\t\t\t|| updateUserDTO.getLastName().trim().isEmpty()\n\t\t\t\t\t|| updateUserDTO.getAddress1().trim().isEmpty()\n\t\t\t\t\t|| updateUserDTO.getCity().trim().isEmpty()\n\t\t\t\t\t|| updateUserDTO.getState().trim().isEmpty()\n\t\t\t\t\t|| updateUserDTO.getZipCode().trim().isEmpty()\n\t\t\t\t\t|| updateUserDTO.getNewEmailId().trim().isEmpty()\n\n\t\t\t) {\n\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\treturn true;\n\t}", "private boolean checkFields() {\n\t\tboolean status = true;\n\n\t\treturn status;\n\t}", "public abstract List<String> requiredFields();", "public void partValidation () throws ValidationException {\n\n // checks for a name to be entered\n if (getPartName().isEmpty() || !getPartName().matches(\"^[a-zA-Z0-9_ ]*$\")){\n throw new ValidationException(\"Name field is invalid. Can't be blank. Must be alphanumeric\");\n\n // checks that minimum stock isn't less than 0\n }else if (getPartStockMin() < 0) {\n throw new ValidationException(\"Inventory minimum can't be less than 0\");\n\n } else if (getPartStockMax() < 0) {\n throw new ValidationException(\"Inventory max must be greater than 0\");\n\n // checks to make sure max stock is not less than the minimum\n }else if (getPartStockMax() < getPartStockMin()) {\n throw new ValidationException(\"Max inventory can't be less than the minimum\");\n\n // checks that stock on hadn is not less than the minimum\n } else if (getPartStock() < getPartStockMin()){\n throw new ValidationException(\"Part inventory can't be less than the minimum\");\n\n // part price can't be 0 or less\n }else if (getPartPrice() < 0){\n throw new ValidationException(\"Price has to be a positive number\");\n\n // max stock can't be less than what you already have\n }else if (getPartStockMax() < getPartStock()){\n throw new ValidationException(\"Max inventory can't be less than what you have on hand\");\n\n // check stock is between min and max\n } else if (getPartStock() < getPartStockMin() || getPartStock() > getPartStockMax()){\n throw new ValidationException(\"Inventory level must be between min and max\");\n\n }\n }", "private void validateFields() throws InvalidConnectionDataException {\n if (driver == null) throw new InvalidConnectionDataException(\"No driver field\");\n if (address == null) throw new InvalidConnectionDataException(\"No address field\");\n if (username == null) throw new InvalidConnectionDataException(\"No username field\");\n if (password == null) throw new InvalidConnectionDataException(\"No password field\");\n }", "void validateState() throws EPPCodecException {\n // add/chg/rem\n if ((addDsData == null) && (chgDsData == null) && (remKeyTag == null)) {\n throw new EPPCodecException(\"EPPSecDNSExtUpdate required attribute missing\");\n }\n \n // Ensure there is only one non-null add, chg, or rem\n\t\tif (((addDsData != null) && ((chgDsData != null) || (remKeyTag != null)))\n\t\t\t\t|| ((chgDsData != null) && ((addDsData != null) || (remKeyTag != null)))\n\t\t\t\t|| ((remKeyTag != null) && ((chgDsData != null) || (addDsData != null)))) {\n\t\t\tthrow new EPPCodecException(\"Only one add, chg, or rem is allowed\");\n\t\t}\n }", "protected void doExtraValidation(Properties props) {\n /* nothing by default */\n }", "public void validateObjectMetier() throws NSValidation.ValidationException {\n\n\t}", "public void validateObjectMetier() throws NSValidation.ValidationException {\n\n\t}", "public void validateObjectMetier() throws NSValidation.ValidationException {\n\n\t}", "boolean hasFieldNested();", "private boolean checkFields() {\n boolean test = true;\n if (fname.isEmpty()) {\n test = false;\n }\n if (lname.isEmpty()) {\n test = false;\n }\n if (cin.isEmpty()) {\n test = false;\n }\n if (typeCompte.equals(\"Bancaire\")) {\n if (decouvertNF.isEmpty())\n test = false;\n } else if (typeCompte.equals(\"Epargne\")) {\n if (tauxInteretNF.isEmpty())\n test = false;\n }\n if (s_datePK.getValue() == null) {\n s_datePK.setStyle(\"-fx-border-color:red;-fx-border-radius:3px;-fx-border-size: 1px;\");\n test = false;\n }\n\n return test;\n }", "public void validate() {\n transportStats.validate(this);\n\n for (String unitName : produces) {\n Args.validate(!UnitFactory.hasUnitForName(unitName), \"Illegal unit name \" + unitName + \" in build unit stats\");\n }\n\n for (Map.Entry<String, String> entry : buildCities.entrySet()) {\n String terrainName = entry.getKey();\n String cityName = entry.getValue();\n Args.validate(!TerrainFactory.hasTerrainForName(terrainName), \"Illegal terrain \" + terrainName + \" in build cities stats\");\n Args.validate(!CityFactory.hasCityForName(cityName), \"Illegal city \" + cityName + \" in build cities stats\");\n }\n\n for (String unitName : supplyUnits) {\n Args.validate(!UnitFactory.hasUnitForName(unitName), \"Illegal unit \" + unitName + \" in supply units stats\");\n }\n\n for (String unitName : supplyUnitsInTransport) {\n Args.validate(!UnitFactory.hasUnitForName(unitName), \"Illegal unit \" + unitName + \" in supply units in transport stats\");\n }\n\n Args.validate(StringUtil.hasContent(primaryWeaponName) && !WeaponFactory.hasWeapon(primaryWeaponName),\n \"Illegal primary weapon \" + primaryWeaponName + \" for unit \" + name);\n Args.validate(StringUtil.hasContent(secondaryWeaponName) && !WeaponFactory.hasWeapon(secondaryWeaponName),\n \"Illegal secondary weapon \" + secondaryWeaponName + \" for unit \" + name);\n }", "@Override\n public boolean validate() throws ValidationException\n {\n boolean isValid = super.validate();\n return checkAAField() && isValid;\n }", "boolean hasNestedField();", "protected abstract List<TemporalField> validFields();", "@Override\r\n\tpublic boolean validaObj() {\n\t\treturn false;\r\n\t}", "public void validate() {\n if (valid) return;\n \n layer = getAttValue(\"layer\").getString();\n hasFrame = getAttValue(\"hasframe\").getBoolean();\n\n valid = true;\n }", "@Test\n public void testCheckValidity_InvalidFields() throws Exception {\n expectCheckValidityFailure(msg -> msg.setSource(null));\n \n // null protocol\n expectCheckValidityFailure(msg -> msg.setProtocol(null));\n \n // null or empty topic\n expectCheckValidityFailure_NullOrEmpty((msg, value) -> msg.setTopic(value));\n \n // null payload\n expectCheckValidityFailure(msg -> msg.setPayload(null));\n \n // empty payload should NOT throw an exception\n Forward forward = makeValidMessage();\n forward.setPayload(\"\");\n forward.checkValidity();\n \n // null or empty requestId\n expectCheckValidityFailure_NullOrEmpty((msg, value) -> msg.setRequestId(value));\n \n // invalid hop count\n expectCheckValidityFailure(msg -> msg.setNumHops(-1));\n }", "private boolean validateMandatoryParameters(QuotationDetailsDTO detail) {\t\n\n\t\tif(detail.getArticleName() == null || detail.getArticleName().equals(EMPTYSTRING)){\t\t\t\n\t\t\tAdminComposite.display(\"Please Enter Article Name\", STATUS_SUCCESS, SUCCESS_FONT_COLOR);\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}", "private void validate() {\n\n etCardNumber.validate();\n\n etCardExpiryDate.validate();\n\n etCardCvv.validate();\n\n etCardHolderName.validate();\n\n etPhoneNumber.validate();\n\n etCustomerName.validate();\n }", "@Override\n\tpublic void validate() {\n\t\tsuper.validate();\n\t}", "boolean hasNestedOuterField();", "private boolean checkFields() {\n if (editTxtName.getText().equals(\"\")) return false;//name\n if (editTxtDesc.getText().equals(\"\")) return false;//desc\n if (editClrColor.getValue() == null) return false;//color\n if (oldEnvironment == null) return false;//environment is null\n return true;//everything is valid\n }", "@Override\n public JsonNode required(String fieldName) {\n return _reportRequiredViolation(\"Node of type %s has no fields\",\n ClassUtil.nameOf(getClass()));\n }", "@Override\r\n\tpublic void validate() {\n\t\t\r\n\t}", "@Override\r\n public void validate() {\r\n }", "public boolean hasFieldErrors();", "private boolean verifyObligedFields() {\n if(label.getText().toString().isEmpty() || label.getText().toString().equals(\"\"))\n {\n Toast.makeText(ExpenseCardViewDetails.this, R.string.label_must_be_filled, Toast.LENGTH_SHORT).show();\n return false;\n }\n if(category.getSelectedItem().toString().isEmpty())\n {\n Toast.makeText(ExpenseCardViewDetails.this, R.string.category_must_be_filled, Toast.LENGTH_SHORT).show();\n return false;\n }\n if(cost.getText().toString().isEmpty()){\n Toast.makeText(ExpenseCardViewDetails.this, R.string.cost_must_be_filled, Toast.LENGTH_SHORT).show();\n return false;\n }\n if(dateDue.getText().toString().isEmpty()){\n Toast.makeText(ExpenseCardViewDetails.this, R.string.date_due_must_be_filled, Toast.LENGTH_SHORT).show();\n return false;\n }\n return true;\n }", "private void checkRep() {\n\t\tassert (this != null) : \"this Edge cannot be null\";\n\t\tassert (this.label != null) : \"this Edge's label cannot be null\";\n\t\tassert (this.child != null) : \"this Edge's child cannot be null\";\n\t}", "boolean valid() {\n boolean valid = true;\n\n if (!isAgencyLogoPathValid()) {\n valid = false;\n }\n if (!isMemFieldValid()) {\n valid = false;\n }\n if (!isLogNumFieldValid()) {\n valid = false;\n }\n\n return valid;\n }", "private boolean Validate() {\n EditText titleText = findViewById(R.id.register_movie_title_txt);\n EditText yearText = findViewById(R.id.register_movie_year_txt);\n EditText ratingText = findViewById(R.id.register_movie_rating_txt);\n\n\n boolean is_filled_required_fields = false;\n is_filled_required_fields = titleText.getText().toString().length() > 0\n && yearText.getText().toString().length() > 0\n && ratingText.getText().toString().length() > 0;\n\n if (!is_filled_required_fields) {\n Snackbar mySnackbar = Snackbar.make(findViewById(R.id.activity_register_base_layout), \"Please fill required fields\", BaseTransientBottomBar.LENGTH_SHORT);\n mySnackbar.show();\n }\n return is_filled_required_fields;\n }", "public void check(ResourceMemberInterface resource) {\n\t\tassert resource.getParent() != null;\r\n\t\tassert resource.getName() != null;\r\n\t\tassert resource.getLabel() != null;\r\n\t\tassert resource.getTLModelObject() != null;\r\n\t\tassert resource.getTLModelObject().getListeners() != null;\r\n\t\tassert !resource.getTLModelObject().getListeners().isEmpty();\r\n\t\tassert Node.GetNode(resource.getTLModelObject()) == resource;\r\n\t\tresource.getFields(); // don't crash\r\n\t}", "protected void validate()\r\n\t{\r\n\t\tif( this.mapper==null )\r\n\t\t\tthrow new IllegalStateException(\"Please specify the Mapper of this dataset.\");\r\n\t\tif( this.input_format==null )\r\n\t\t\tthrow new IllegalStateException(\"Please specify the InputFormat of this dataset.\");\r\n\t\tif( this.inputs==null || this.inputs.size()==0 )\r\n\t\t\tthrow new IllegalStateException(\"Please specify the input path(s) of this dataset\");\r\n\t\tif ( this.getSchema()==null || this.getSchema().size()==0 )\r\n\t\t\tthrow new IllegalStateException(\"Please specify the schema of this dataset first\");\r\n\t}", "private void validCheck ()\n\t{\n\t\tassert allButLast != null || cachedFlatListOrMore != null;\n\t}", "@Test (priority = 2)\n\tpublic void TC2_CheckAllFields_Exisit ()\n\n\t{\n\t\tCreateUserPage UserObj = new CreateUserPage (driver);\n\n\t\t// This is to Validate If all fields of create user page are existing\n\t\tUserObj.Validate_AllFields_Exsist();\n\t\n\n\t}", "public void validate () throws ModelValidationException\n\t\t\t{\n\t\t\t\tif (MappingClassElement.VERSION_CONSISTENCY == \n\t\t\t\t\tmappingClass.getConsistencyLevel())\n\t\t\t\t{\n\t\t\t\t\tMappingFieldElement versionField =\n\t\t\t\t\t\t validateVersionFieldExistence();\n\t\t\t\t\tString className = mappingClass.getName();\n\t\t\t\t\tString fieldName = versionField.getName();\n\t\t\t\t\tString columnName = null;\n\t\t\t\t\tColumnElement column = null;\n\n\t\t\t\t\tif (versionField instanceof MappingRelationshipElement)\n\t\t\t\t\t{\n\t\t\t\t\t\tthrow constructFieldException(fieldName, \n\t\t\t\t\t\t\t\"util.validation.version_field_relationship_not_allowed\");//NOI18N\n\t\t\t\t\t}\n\t\t\t\t\telse if (MappingFieldElement.GROUP_DEFAULT != \n\t\t\t\t\t\tversionField.getFetchGroup()) // must be in DFG\n\t\t\t\t\t{\n\t\t\t\t\t\tthrow constructFieldException(fieldName, \n\t\t\t\t\t\t\t\"util.validation.version_field_fetch_group_invalid\");//NOI18N\n\t\t\t\t\t}\n\n\t\t\t\t\tvalidatePersistenceFieldAttributes(className, fieldName);\n\t\t\t\t\tcolumnName = validateVersionFieldMapping(versionField);\n\t\t\t\t\tcolumn = validateTableMatch(className, fieldName, columnName);\n\t\t\t\t\tvalidateColumnAttributes(className, fieldName, column);\n\t\t\t\t}\n\t\t\t}", "private boolean checkIfHasRequiredFields(BoxItem shareItem){\n return shareItem.getSharedLink() != null && shareItem.getAllowedSharedLinkAccessLevels() != null;\n }", "@Override\n\tpublic void validate()\n\t{\n\n\t}", "boolean isValidSubResource(Object fieldValue) {\n return fieldValue != null\n && BaseEntity.class.isAssignableFrom(fieldValue.getClass())\n && fieldValue.getClass().getDeclaredAnnotation(Sensible.class) == null;\n }", "void calculateValidationRequirement() {\n this.elementRequiringJSR303Validation = Util.hasValidation(this.type);\n\n // Check for JSR 303 or @OnValidate annotations in default group\n if (Util.requiresDefaultValidation(this.type)) {\n this.requiresDefaultValidation = true;\n return;\n }\n\n // Check for any simple index uniqueness constraints\n if (!this.uniqueConstraintFields.isEmpty()) {\n this.requiresDefaultValidation = true;\n return;\n }\n\n // Check for any composite index uniqueness constraints\n if (!this.uniqueConstraintCompositeIndexes.isEmpty()) {\n this.requiresDefaultValidation = true;\n return;\n }\n }", "protected void validate() {\n // no op\n }", "protected boolean isValidData() {\n return true;\n }", "@Override\n\t\tpublic void checkPreconditions() {\n\t\t}", "public boolean isRequired();", "public void validate() throws org.apache.thrift.TException {\n if (levelInfo != null) {\r\n levelInfo.validate();\r\n }\r\n }", "public void validate() {\n\t\tClass<?> clazz = this.getModelObject().getClass();\n\t\tif (!ArenaUtils.isObservable(clazz)) {\n\t\t\tthrow new RuntimeException(\"La clase \" + clazz.getName() + \" no tiene alguna de estas annotations \" + ArenaUtils.getRequiredAnnotationForModels() + \" que son necesarias para ser modelo de una vista en Arena\");\n\t\t}\n\t\t// TODO: Validate children bindings?\n\t}", "@Override\r\n\tpublic boolean checkValidity() {\n\t\treturn false;\r\n\t}", "@Override\n\tpublic void validate() {\n\t}", "void checkValid();", "private void validateInputParameters(){\n\n }", "public boolean validate(Struct data) {\r\n\t\tif (data == null)\r\n\t\t\treturn false;\r\n\t\t\r\n\t\tif (this.options.size() == 0) {\r\n\t\t\tOperationContext.get().errorTr(437, data);\t\t\t\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\tif (this.options.size() == 1) \r\n\t\t\treturn this.options.get(0).validate(data);\r\n\t\t\r\n\t\tfor (DataType dt : this.options) {\r\n\t\t\tif (dt.match(data)) \r\n\t\t\t\treturn dt.validate(data);\r\n\t\t}\r\n\t\t\r\n\t\tOperationContext.get().errorTr(438, data);\t\t\t\r\n\t\treturn false;\r\n\t}", "private void validate() throws BaseException\n {\n boolean okay = true;\n\n //TODO: check the bases in seq for validity\n // If the type is RNA, the base T is not allowed\n // If the type is DNA, the base U is not allowed\n // If a disallowed type is present, set okay to false.\n \n if (!okay)\n {\n throw new BaseException();\n }\n }", "@Override\r\n\tprotected void validate() {\n\t}", "public void validateInput(Information information) {\n information.validateFirstName();\n information.validateLastName();\n information.validateZipcode();\n information.validateEmployeeID();\n }", "public boolean validateInputFields(){\n if(titleText.getText().isEmpty() || descriptionText.getText().isEmpty()){\n showError(true, \"All fields are required. Please complete.\");\n return false;\n }\n if(locationCombo.getSelectionModel().isEmpty()){\n showError(true, \"Please select a location.\");\n return false;\n }\n if(contactCombo.getSelectionModel().isEmpty()){\n showError(true, \"Please select a contact.\");\n return false;\n }\n if(typeCombo.getSelectionModel().isEmpty()){\n showError(true, \"Please select the type.\");\n return false;\n }\n if(customerCombo.getSelectionModel().isEmpty()){\n showError(true, \"Please select a customer.\");\n return false;\n }\n if(userCombo.getSelectionModel().isEmpty()){\n showError(true, \"Please select a user.\");\n return false;\n }\n return true;\n }", "public void validate() {}" ]
[ "0.75401354", "0.74719286", "0.7333375", "0.7304861", "0.72982836", "0.729518", "0.72577775", "0.7225706", "0.71371984", "0.7129901", "0.7116786", "0.7092598", "0.70728713", "0.70518136", "0.70367175", "0.70314413", "0.69580764", "0.690188", "0.68602306", "0.6692948", "0.66799486", "0.66016793", "0.6531198", "0.6201798", "0.61862105", "0.6125509", "0.60847056", "0.6062816", "0.6039728", "0.600999", "0.59966576", "0.5976531", "0.59758466", "0.5965871", "0.5947064", "0.59223855", "0.5922278", "0.58906883", "0.58834726", "0.5867908", "0.5825018", "0.58205366", "0.57992554", "0.5780987", "0.57802767", "0.5757422", "0.5754295", "0.5752983", "0.57528615", "0.57414174", "0.5738411", "0.57320136", "0.57320136", "0.57320136", "0.5725357", "0.5719012", "0.5706793", "0.5690102", "0.5678541", "0.5659636", "0.5639797", "0.5627573", "0.56135464", "0.5606204", "0.5589754", "0.55717397", "0.5568869", "0.5565506", "0.55608743", "0.55607665", "0.5547348", "0.5544268", "0.55411816", "0.55269957", "0.5522637", "0.5516646", "0.5516371", "0.55138063", "0.55137813", "0.5500658", "0.5499726", "0.54987335", "0.5498394", "0.5496379", "0.54960924", "0.5473159", "0.54723763", "0.54722196", "0.546883", "0.54670763", "0.54607475", "0.54482555", "0.5445599", "0.5433513", "0.54323035", "0.54323", "0.542701", "0.54248434", "0.54239476", "0.5421569", "0.5419966" ]
0.0
-1
TODO Autogenerated method stub
@Override public User getModel() { user = new User(); return user; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
Log.d(TAG, "" + position);
@Override public void onBindViewHolder(MovieViewHolder holder, int position) { MovieModel movie = movieModelList.get(position); //holder.title.setText(movie.getTitle()); Picasso.with(mContext) .load("http://image.tmdb.org/t/p/w185/"+movie.getPoster_path()) .into(holder.img); //holder.genre.setText(movie.getGenre()); //holder.year.setText(movie.getYear()); //holder.bind(position); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onClick(View v) {\n Toast.makeText(mContext, \"You Clicked \" + position, Toast.LENGTH_LONG).show();\n }", "@Override\n public void onClick(View v) {\n Toast.makeText(RecycleTestActivity.this, pos + \"\", Toast.LENGTH_SHORT)\n .show();\n }", "int getPosition() {\n\n for (int i = 0; i < numbers.length; i++) {\n\n if (numbers[i] == \"0\") {\n\n Toast.makeText(getApplicationContext(), (CharSequence) (\"Position: \" + new Integer(i).toString()), Toast.LENGTH_SHORT).show();\n return i;\n }\n }\n return 0;\n }", "@Override\n public int getPosition() {\n return position;\n }", "@Override\n public void onClick(View v) {\n \tSystem.out.println(\"ss1ss\");\n //Toast.makeText(ListViewActivity.this, title[mPosition], Toast.LENGTH_SHORT).show();\n }", "public int getPosition(){\n return -1;\n }", "@Override\n public Object getItem(int position) {\n return position;\n }", "@Override\n public Object getItem(int position) {\n return position;\n }", "@Override\n public Object getItem(int position) {\n return position;\n }", "@Override\n public Object getItem(int position) {\n return position;\n }", "@Override\n public Object getItem(int position) {\n return position;\n }", "@Override\n public Object getItem(int position) {\n return position;\n }", "@Override\n public Object getItem(int position) {\n return position;\n }", "@Override\n public Object getItem(int position) {\n return position;\n }", "@Override\n public Object getItem(int position) {\n return position;\n }", "@Override\n public Object getItem(int position) {\n return position;\n }", "public int position() {\n return pos;\n }", "public String getPosition(){\r\n\t\treturn position;\r\n\t}", "public int getPosition()\r\n {\r\n return position;\r\n }", "@Override\n public void onItemClick(View view, int position) {\n Toast.makeText(getContext(), \"You clicked \" + adapter.getItem(position) + \" on row number \" + position, Toast.LENGTH_SHORT).show();\n }", "public int getPosition() {\n log.log(Level.FINE, \"position: \" + position + \"ms\");\n return position;\n }", "@Override\n\tpublic Object getItem(int position) \n\t{\n\t\treturn position;\n\t}", "@Override\n public Object getItem(int position) {\n return position;\n }", "@Override\n public Object getItem(int position) {\n return position;\n }", "@Override\n public Object getItem(int position) {\n return position;\n }", "@Override\n public Object getItem(int position) {\n return position;\n }", "@Override\n public Object getItem(int position) {\n return position;\n }", "@Override\n public Object getItem(int position) {\n return position;\n }", "@Override\n public Object getItem(int position) {\n return position;\n }", "@Override\n\tpublic int index(final int position) {\n\t\treturn 0;\n\t}", "@Override\n\tpublic Object getItem(int position) {\n\t\treturn position;\n\t}", "@Override\n\tpublic Object getItem(int position) {\n\t\treturn position;\n\t}", "@Override\n\tpublic Object getItem(int position) {\n\t\treturn position;\n\t}", "@Override\n\tpublic Object getItem(int position) {\n\t\treturn position;\n\t}", "@Override\n\tpublic Object getItem(int position) {\n\t\treturn position;\n\t}", "@Override\n\tpublic Object getItem(int position) {\n\t\treturn position;\n\t}", "@Override\n\tpublic Object getItem(int position) {\n\t\treturn position;\n\t}", "@Override\n\tpublic Object getItem(int position) {\n\t\treturn position;\n\t}", "@Override\n\tpublic Object getItem(int position) {\n\t\treturn position;\n\t}", "@Override\n\tpublic Object getItem(int position) {\n\t\treturn position;\n\t}", "@Override\n\tpublic Object getItem(int position) {\n\t\treturn position;\n\t}", "@Override\n\tpublic Object getItem(int position) {\n\t\treturn position;\n\t}", "@Override\n\tpublic Object getItem(int position) {\n\t\treturn position;\n\t}", "@Override\n\tpublic Object getItem(int position) {\n\t\treturn position;\n\t}", "@Override\n\tpublic Object getItem(int position) {\n\t\treturn position;\n\t}", "@Override\n\tpublic Object getItem(int position) {\n\t\treturn position;\n\t}", "@Override\n\tpublic Object getItem(int position) {\n\t\treturn position;\n\t}", "@Override\n\tpublic Object getItem(int position) {\n\t\treturn position;\n\t}", "@Override\n\tpublic Object getItem(int position) {\n\t\treturn position;\n\t}", "@Override\n\tpublic Object getItem(int position) {\n\t\treturn position;\n\t}", "@Override\n\tpublic Object getItem(int position) {\n\t\treturn position;\n\t}", "@Override\n\tpublic Object getItem(int position) {\n\t\treturn position;\n\t}", "@Override\n\tpublic Object getItem(int position) {\n\t\treturn position;\n\t}", "public int getPos()\n {\n return pos;\n }", "public String getPosition() {\n return position;\n }", "public String getPosition() {\n return position;\n }", "public String getPosition() {\n return position;\n }", "public String getPosition() {\n return position;\n }", "public String getPosition() {\n return position;\n }", "public int getPosition() {\r\n return position;\r\n }", "@Override\n\tpublic long getItemId(int position) {\n\t\tLog.d(\"jereh\",\"getItemId()\");\n\t\treturn position;\n\t}", "@Override\n\t\tpublic Object getItem(int position) {\n\t\t\treturn position;\n\t\t}", "@Override\n\t\tpublic Object getItem(int position) {\n\t\t\treturn position;\n\t\t}", "@Override\n\t\tpublic Object getItem(int position) {\n\t\t\treturn position;\n\t\t}", "@Override\n\t\tpublic Object getItem(int position) {\n\t\t\treturn position;\n\t\t}", "@Override\n\t\tpublic Object getItem(int position) {\n\t\t\treturn position;\n\t\t}", "@Override\n\t\tpublic Object getItem(int position) {\n\t\t\treturn position;\n\t\t}", "@Override\n\t\tpublic Object getItem(int position) {\n\t\t\treturn position;\n\t\t}", "@Override\n\t\tpublic Object getItem(int position) {\n\t\t\treturn position;\n\t\t}", "public int getPosition() {\n return position;\n }", "public int getPosition() {\n return position;\n }", "public int getPosition() {\n return position;\n }", "@Override\r\n\tpublic Object getItem(int position) {\n\t\treturn position;\r\n\t}", "@Override\r\n\tpublic Object getItem(int position) {\n\t\treturn position;\r\n\t}", "@Override\r\n\tpublic Object getItem(int position) {\n\t\treturn position;\r\n\t}", "@Override\r\n\tpublic Object getItem(int position) {\n\t\treturn position;\r\n\t}", "@Override\r\n\tpublic Object getItem(int position) {\n\t\treturn position;\r\n\t}", "@Override\r\n\tpublic Object getItem(int position) {\n\t\treturn position;\r\n\t}", "@Override\r\n\tpublic Object getItem(int position) {\n\t\treturn position;\r\n\t}", "public int getPosition() {\n return position;\n }", "public Object getItem(int position)\r\n {\n return position;\r\n }", "@Override\n\t\t \t public void onItemClick(AdapterView<?> arg0, View arg1,int position, long arg3) {\n\t\t \t \n\t\t \t Toast.makeText(getApplicationContext(), \"Clicked at Position\"+position, Toast.LENGTH_SHORT).show();\n\t\t \t }", "public int getPosition()\n\t{\n\t\treturn position;\n\t}", "public String getPos(){\r\n\t\t return pos;\r\n\t }", "@Override\n public void onPageSelected(int position) {\n Log.d(TAG, \"onPageSelected: \"+position);\n }", "@Override\n\tpublic Object getItem(int position) {\n\t return listMyLog.get(position);\n\t}", "public String getPos() {\n return this.pos;\n }", "public Object getItem(int position) {\n return position;\n }", "public Object getItem(int position) {\n return position;\n }", "public int getPos();", "public int getPos();", "public long getItemId(int position)\n {\n return position;\n }", "public Integer getPosition()\n {\n return position;\n }", "@Override\n public void onItemClick(AdapterView<?> arg0, View arg1,\n int position, long arg3) {\n Toast.makeText(getApplicationContext(), strs[location][position], Toast.LENGTH_SHORT).show();\n }", "public long getItemId(int position)\n {\n return position;\n }", "@Override\n\t\tpublic long getItemId(int position) {\n\t\t\tLog.v(TAG, \"joey onItemClick getItemId :\" + position);\n\t\t\treturn position;\n\t\t}", "@Override\n\tpublic int getPosition() {\n\t\treturn 0;\n\t}", "public int getPosition() {\r\n\t\treturn position;\r\n\t}", "int getPosition();", "@Override\n public long getItemId(int position)\n {\n return position;\n }", "@Override\n public long getItemId(int position)\n {\n return position;\n }" ]
[ "0.6331245", "0.6280982", "0.62347996", "0.6230406", "0.615567", "0.61237127", "0.6115748", "0.6115748", "0.6115748", "0.6115748", "0.6115748", "0.6115748", "0.6115748", "0.6115748", "0.6115748", "0.6115748", "0.6090386", "0.6088981", "0.60527337", "0.60326904", "0.59797657", "0.59609616", "0.5943869", "0.5943869", "0.5943869", "0.5943869", "0.5943869", "0.5943869", "0.5943869", "0.59315187", "0.5915353", "0.5915353", "0.5915353", "0.5915353", "0.5915353", "0.5915353", "0.5915353", "0.5915353", "0.5915353", "0.5915353", "0.5915353", "0.5915353", "0.5915353", "0.5915353", "0.5915353", "0.5915353", "0.5915353", "0.5915353", "0.5915353", "0.5915353", "0.5915353", "0.5915353", "0.5915353", "0.5903385", "0.5889916", "0.5889916", "0.5889916", "0.5889916", "0.5889916", "0.5883327", "0.587389", "0.58694863", "0.58694863", "0.58694863", "0.58694863", "0.58694863", "0.58694863", "0.58694863", "0.58694863", "0.5862729", "0.5862729", "0.5862729", "0.585947", "0.585947", "0.585947", "0.585947", "0.585947", "0.585947", "0.585947", "0.58543533", "0.5841094", "0.5841046", "0.5834504", "0.5833808", "0.5828464", "0.5823108", "0.58153266", "0.57779527", "0.57779527", "0.5770394", "0.5770394", "0.57643193", "0.57638204", "0.57560074", "0.57383525", "0.57335293", "0.5713276", "0.5707506", "0.56912464", "0.5686833", "0.5686833" ]
0.0
-1
/metodo che mi restituisce instance
public static Replica1Singleton getInstance() { if (instance==null){ /*System.err.println("Istanza creata");*/ instance = new Replica1Singleton(); } return instance; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\tpublic void rest() {\n\t\t\t\n\t\t}", "public CalificacionREST() {\r\n\r\n gson = new Gson();\r\n sdao = new SolicitudDAO();\r\n /**\r\n * Creates a new instance of SolicitudREST\r\n */\r\n }", "public SolicitudREST() {\n gson = new Gson();\n sdao= new SolicitudDAO();\n }", "private RESTBackend()\n\t\t{\n\t\t\t\n\t\t}", "public interface RestaurantRest {\r\n\t}", "public GetMembersREST() {\n }", "public KorisniciREST() {\n }", "public interface Rest {\n}", "public RestService() {\r\n \r\n }", "public RestClient(){\n }", "public RestApplication() {\n\t\tsingletons.add(new UtilResource());\n\t\tsingletons.add(new StudentResource());\n\t}", "RestApplicationModel createRestApplicationModel();", "ResourceAPI createResourceAPI();", "public MessageRest() {\n client = javax.ws.rs.client.ClientBuilder.newClient();\n webTarget = client.target(BASE_URI).path(\"MessageResources\");\n }", "public DoctoresResource() {\n servDoctores = new ServicioDoctores();\n }", "RESTElement createRESTElement();", "public RestService() {\r\n }", "protected RestClient() {\n }", "private MeteoRESTResource(String id) {\n this.id = id;\n }", "private RestClient() {\n }", "protected abstract RunREST makeRunInterface();", "public UsuarioRest obtenerUsuarioRest(String user);", "public interface LugarRest {\n // Obtener todos\n // GET: http://localhost:8080/lugares\n @GET(\"lugares/\")\n Call<List<Lugar>> findAll();\n\n // Obtener uno lugar por ID\n // GET: http://localhost:8080/lugares/{id}\n @GET(\"lugares/{id}\")\n Call<Lugar> findById(@Path(\"id\") Long id);\n\n // Crear un lugar\n //POST: http://localhost:8080/lugares\n @POST(\"lugares/\")\n Call<Lugar> create(@Body Lugar lugar);\n\n // Elimina un lugar\n // DELETE: http://localhost:8080/lugares/{id}\n @DELETE(\"lugares/{id}\")\n Call<Lugar> delete(@Path(\"id\") Long id);\n\n // Actualiza un lugar\n // PUT: http://localhost:8080/lugares/{id}\n @PUT(\"lugares/{id}\")\n Call<Lugar> update(@Path(\"id\") Long id, @Body Lugar lugar);\n}", "@Path(\"/travel\")\n\npublic interface TravelResource {\n\n @POST\n @Produces({ MediaType.APPLICATION_JSON + \";charset=utf-8\"})\n public Travel postTravelDetails(Travel travel) throws Exception;\n\n\n @GET\n @Path(\"/{id}\")\n @Produces({ MediaType.APPLICATION_JSON + \";charset=utf-8\"})\n public Travel getTravelDetails(@PathParam(\"id\") Long id) throws Exception;\n}", "RESTClient(String serverName, String omasServerURL)\n {\n this.serverName = serverName;\n this.omasServerURL = omasServerURL;\n this.restTemplate = new RestTemplate();\n }", "private FournisseurArboTraficService() {\r\n\t\tsuper();\r\n\t}", "public RestBean() {\n System.out.println(\"made RestBean\");\n movieData = new ArrayList<Movie>();\n }", "public interface LignePlanningFormationRS\r\n extends GenericService<LignePlanningFormation, Long>\r\n{\r\n\r\n\t@PUT\r\n @Consumes({MediaType.APPLICATION_JSON})\r\n @Produces({MediaType.APPLICATION_JSON})\r\n @Path(\"demarre\")\r\n public LignePlanningFormation demarrer(@Context HttpHeaders headers,LignePlanningFormation entity);\r\n\t\r\n\r\n}", "private RestUtil() {\n\t}", "public abstract RestURL getURL();", "protected RestClient()\n\t{\n\t\tclient = new HttpClient();\n\t\tclient.setIdleTimeout(3000000);\n\t\t// for possible future use:\n\t\t//exchange_get = new ContentExchange()\n\t\t{\n\t\t\t// define the callback method to process the response when you get it back\n\t\t\t// protected void onResponseComplete() throws IOException\n\t\t\t// {\n\t\t\t// super.onResponseComplete();\n\t\t\t// int responseStatus = this.getStatus();\n\n\t\t\t// do something with the response content\n\t\t\t//System.out.println(\"Response status: \" + responseStatus);\n\t\t\t//System.out.println(this.getResponseContent());\n\t\t\t//\t }\n\t\t};\n\t}", "private Response() {\n initFields();\n }", "Service_Resource createService_Resource();", "private WebServicesFabrica(){}", "public interface RestService {\n\n @POST(\"/ComenziRestaurant/task3\")\n public void sendComanda(@Body Comanda comanda, Callback<Integer> callback);\n\n @GET(\"/ComenziRestaurant/task1\")\n public void getProduse(Callback<Collection<Produs>> callback);\n\n @GET(\"/ComenziRestaurant/task2\")\n public void getMese(Callback<Collection<Masa>> callback);\n\n\n\n\n}", "public static ApiREST api(){\n\n RestAdapter restAdapter = new RestAdapter.Builder()\n .setEndpoint(CONFIG_BASE_DOMAIN)\n //.setLogLevel(RestAdapter.LogLevel.FULL)\n .build();\n ApiREST apiRest = restAdapter.create(ApiREST.class);\n return apiRest;\n }", "@Override\n\tpublic Router getRestlet(Context context){\n\t\tRouter router = new Router(context);\n\t\trouter.attach(\"/links/json\", LinksResource.class);\n\t\trouter.attach(\"/config/json\",FdmReq_CapResource.class);\n\t\t\n\t\t\n\t\treturn router;\n\t}", "public TopTrumpsRESTAPI(TopTrumpsJSONConfiguration conf) {\n\t\t// ----------------------------------------------------\n\t\t// Add relevant initalization here\n\t\t// ----------------------------------------------------\n\t}", "SourceBuilder createRestController();", "public TarefaResource() {\r\n }", "public CalculadoraRESTfulWS() {\n }", "private Request() {\n initFields();\n }", "public ContatosResource() {\n }", "public GenericResource() {\n }", "private Resource() {}", "public interface PIService {\n @POST(\"learningrace1/rest/participante\")\n Call<List<Participante>> getParticipante(@Body Participante participante);\n\n @GET(\"learningrace1/rest/evento/{identificador}\")\n Call<List<Evento>> getEvento(@Path(\"identificador\") String identificador);\n\n}", "public GenericResource() {\r\n }", "public AppInstanceResp() {\n super();\n }", "private String getRestUrl() {\n return restUrl;\n }", "public FlightsResource() {\r\n }", "public interface BonCommandeRS\n extends GenericService<BonCommande, Long>\n{\n\n @PUT\n @Consumes({MediaType.APPLICATION_JSON})\n @Produces({MediaType.APPLICATION_JSON})\n @Path(\"envoye\")\n public BonCommande envoyer(@Context HttpHeaders headers,BonCommande entity);\n \n @PUT\n @Consumes({MediaType.APPLICATION_JSON})\n @Produces({MediaType.APPLICATION_JSON})\n @Path(\"confirme\")\n public BonCommande confirmer(@Context HttpHeaders headers,BonCommande entity);\n \n @PUT\n @Consumes({MediaType.APPLICATION_JSON})\n @Produces({MediaType.APPLICATION_JSON})\n @Path(\"reception\")\n public BonReception reception(@Context HttpHeaders headers,BonCommande entity);\n \n @PUT\n @Consumes({MediaType.APPLICATION_JSON})\n @Produces({MediaType.APPLICATION_JSON})\n @Path(\"annule\")\n public BonCommande annuler(@Context HttpHeaders headers,BonCommande entity);\n \n @PUT\n @Consumes({MediaType.APPLICATION_JSON})\n @Produces({MediaType.APPLICATION_JSON})\n @Path(\"facture\")\n public BonCommande facture(@Context HttpHeaders headers,BonCommande entity);\n \n @PUT\n @Consumes({MediaType.APPLICATION_JSON})\n @Produces({MediaType.APPLICATION_JSON})\n @Path(\"imprime\")\n public List<BonCommande> imprimer(@Context HttpHeaders headers,BonCommande dmde);\n}", "public RestServlet() {}", "public RootResource() {\n setNegotiated(false);\n // setExisting(false);\n }", "private APIClient() {\n }", "@Path(\"/software\")\n@Produces(MediaType.APPLICATION_JSON)\npublic interface RestSoftware {\n\n String SOFTWARE_ID_FIELD = \"idSoftware\";\n\n @GET\n @Path(\"/\")\n List<Software> findAll();\n\n @GET\n @Path(\"/{\"+ SOFTWARE_ID_FIELD +\"}\")\n Software findOne(@PathParam(SOFTWARE_ID_FIELD) int idSoftware);\n\n @POST\n @Path(\"/\")\n void save(@RequestBody Software software);\n\n @PUT\n @Path(\"/\")\n void update(@RequestBody Software software);\n\n @DELETE\n @Path(\"/{\"+ SOFTWARE_ID_FIELD +\"}\")\n void delete(@PathParam(SOFTWARE_ID_FIELD) int idSoftware);\n\n}", "public GenericResource()\n {\n }", "public GenericResource()\r\n {\r\n }", "public AddResource() {\n }", "@Override\n \tpublic Representation getResource() throws Exception {\n \t\tJsonRepresentation result = null;\n \t\t// Rcupre l'identifiant unique de la ressource demande.\n \t\tString interId = (String) this.getRequestAttributes().get(\"interId\");\n \t\tString srcId = (String) this.getRequestAttributes().get(\"sourceId\");\n \t\tSystem.out.println(srcId);\n \t\t// Rcupration des sources de l'intervention\n \t\tList<Source> sources = Interventions.getInstance().getIntervention(interId).getSources();\n \n \t\tSource source = null;\n \t\t\n \t\t// Si on demande un source prcis\n \t\tif (srcId != null) {\n \t\t\t// Recherche du source demand\n \t\t\tfor (int i = 0; i < sources.size(); i++) {\n \t\t\t\tif (sources.get(i).getUniqueID().equals(srcId)) {\n \t\t\t\t\tsource = sources.get(i);\n \t\t\t\t}\n \t\t\t}\n \t\t\t// Si le source n'est pas trouv\n \t\t\tif (source == null) {\n \t\t\t\tresult = null;\n \t\t\t\tgetResponse().setStatus(Status.CLIENT_ERROR_NOT_ACCEPTABLE);\n \t\t\t} else {\n \t\t\t\tresult = new JsonRepresentation(source.toJSON());\n \t\t\t}\n \t\t// Si on veut tous les sources\n \t\t} else if (srcId == null) {\n \t\t\t\n \t\t\tJSONArray jsonAr = new JSONArray(); //Cration d'une liste Json\n \t\t\tfor(int i=0; i< sources.size();i++){\n\t\t\t\tjsonAr.put(sources.get(i).toJSON()); // On ajoute un jsonObject contenant le source dans le jsonArray\n \t\t\t}\n \t\t\t\n \t\t\tresult = new JsonRepresentation(jsonAr); // On cre la reprsentation de la liste\n \t\t}\n \n \t\t// Retourne la reprsentation, le code status indique au client si elle est valide\n \t\treturn result;\n \t}", "public interface RestService {\n\n //\n //\n // AUTH\n //\n //\n @POST(\"auth\")\n Call<AccessToken> logIn(@Body Credentials credentials);\n\n @POST(\"users\")\n Call<Void> signUp(@Body Credentials credentials);\n\n //\n //\n // Fetch Data\n //\n //\n @GET(\"data\")\n Call<CategoriesWrapper> fetchData();\n\n @POST(\"categories\")\n Call<Category> addCategory(@Body AddCategoryWrapper wrapper);\n\n @POST(\"feeds\")\n Call<Void> subscribeFeed(@Body AddFeedWrapper wrapper);\n\n @DELETE(\"feeds/{id_feed}\")\n Call<Void> unsubscribeFeed(@Path(\"id_feed\") Integer channelId);\n\n //\n //\n // Update Read Items. Mark as read.\n //\n //\n @PUT(\"items\")\n Call<Void> updateReadAllItems(@Body ItemStateWrapper wrapper);\n\n @PUT(\"feeds/{id_feed}/items/\")\n Call<Void> updateReadItemsByChannelId(@Path(\"id_feed\") Integer channelId,\n @Body ItemStateWrapper wrapper);\n\n @PUT(\"items/{id_item}\")\n Call<Void> updateStateItem(@Path(\"id_item\") Integer itemId,\n @Body ItemStateWrapper wrapper);\n}", "public String getRestUrl() {\n return this.restUrl;\n }", "private RESTResource getRestResource(GeobatchRunInfo runInfo) {\n // Mapping og run status\n RESTResource resource = new RESTResource();\n // Category it's our category for geobatch execution\n resource.setCategory(getGeobatchExecutionCategory());\n // Name it's the run UID for the execution\n resource.setName(runInfo.getFlowUid());\n // Description it's the composite id\n resource.setDescription(runInfo.getInternalUid());\n // Metadata it's the status of the execution\n resource.setMetadata(runInfo.getFlowStatus());\n resource.setId(runInfo.getId());\n return resource;\n }", "ObjectResource createObjectResource();", "public interface ResultatMissionRS\n extends GenericService<ResultatMission, Long>\n{\n\n\t@PUT\n @Consumes({MediaType.APPLICATION_JSON})\n @Produces({MediaType.APPLICATION_JSON})\n @Path(\"cloture\")\n public ResultatMission cloture(@Context HttpHeaders headers,ResultatMission entity);\n\n}", "@Path(\"/api/khy\")\n@Produces(\"application/json\")\npublic interface LegaliteDysRESTApis {\n\n @POST\n @Consumes(\"application/json\")\n @Produces(\"application/json\")\n @Path(\"/belge-durum-guncelle\")\n SimpleResponse belgeDurumGuncelle(BelgeDurumuModel belgeDurum);\n\n @POST\n @Consumes(\"application/json\")\n @Produces(\"application/json\")\n @Path(\"/belge-al\")\n SimpleResponse belgeGonder(BelgeAlRestModel request);\n}", "public Image getSemibreveRest();", "RestClientBuilder(){\n\n }", "@Override public void startUp(FloodlightModuleContext context) {\n restApi.addRestletRoutable(this);\n\n }", "public Instance() {\n super(Routing.NAMESPACE, \"instance\");\n }", "public BookSearchResource() {\n }", "public CarroResource() {\r\n }", "@Inject\n public MachineMonkeyRestApiImpl() {\n }", "public WebService_Detalle_alquiler_factura() {\n }", "private RepositorioOrdemServicoHBM() {\n\n\t}", "public JerseyWrapper() {\n super(prc);\n }", "public interface RestApi {\n}", "private Request() {}", "private Request() {}", "API createAPI();", "public interface GiftSvcApi {\n\n public static final String PASSWORD_PARAMETER = \"password\";\n\n public static final String USERNAME_PARAMETER = \"username\";\n\n public static final String TITLE_PARAMETER = \"title\";\n\n public static final String TOKEN_PATH = \"/oauth/token\";\n\n public static final String DATA_PARAMETER = \"data\";\n\n public static final String ID_PARAMETER = \"id\";\n\n public static final String OBSCENE_PARAMETER = \"obscene\";\n\n // The path where we expect the GiftSvc to live\n public static final String GIFT_SVC_PATH = \"/gift\";\n\n public static final String GIFT_DATA_PATH = GIFT_SVC_PATH + \"/{id}/data\";\n\n public static final String GIFT_OBSCENE_PATH = GIFT_SVC_PATH + \"/{id}/obscene\";\n\n public static final String GIFT_UPDATE_PATH = GIFT_SVC_PATH + \"/update\";\n\n public static final String GIFT_TITLE_SEARCH_PATH = GIFT_SVC_PATH + \"/search/findByTitle\";\n\n public static final String GIFT_OBSCENE_SEARCH_PATH = GIFT_SVC_PATH + \"/search/findByObscene\";\n\n @GET(GIFT_SVC_PATH)\n public Collection<Gift> getGiftList();\n\n @POST(GIFT_SVC_PATH)\n public Gift addGift(@Body Gift gift);\n\n @POST(GIFT_SVC_PATH + \"/{id}\")\n public List<Long> deleteGift(@Path(ID_PARAMETER) long id);\n\n @GET(GIFT_TITLE_SEARCH_PATH)\n public Collection<Gift> findByTitle(@Query(TITLE_PARAMETER) String title);\n\n @Multipart\n @POST(GIFT_DATA_PATH)\n public GiftStatus setGiftData(@Path(ID_PARAMETER) long id, @Part(DATA_PARAMETER) TypedFile giftData);\n\n @GET(GIFT_DATA_PATH)\n Response getData(@Path(ID_PARAMETER) long id);\n\n @POST(GIFT_UPDATE_PATH)\n public Long updateGift(@Body Gift gift);\n\n @POST(GIFT_SVC_PATH + \"/{id}/touch\")\n public Long touchGift(@Path(\"id\") long id);\n\n @POST(GIFT_SVC_PATH + \"/{id}/untouch\")\n public Long untouchGift(@Path(\"id\") long id);\n\n @POST(GIFT_OBSCENE_PATH)\n public Boolean obsceneGift(@Path(\"id\") long id);\n\n public static final String USER_SVC_PATH = \"/user\";\n\n @GET(USER_SVC_PATH)\n public Collection<User> getUserList();\n\n @GET(GIFT_SVC_PATH + \"/{user}\")\n public Collection<Gift> getGiftListForUser(@Path(\"user\") User user);\n\n @POST(USER_SVC_PATH)\n public boolean addUser(@Body User user);\n}", "public interface RESTDocument {\n\n}", "public interface RESTService {\n\n /**\n * Check Voter Services\n **/\n\n //TODO to check this is work or not\n //@GET(Config.REGISTER) Call<User> registerUser(@Header(\"uuid\") String uuid,\n // @QueryMap Map<String, String> body);\n\n @GET(Config.REGISTER) Call<User> registerUser(@QueryMap Map<String, String> body);\n\n /**\n * Maepaysoh services\n **/\n\n //candidate\n @GET(Config.CANDIDATE_LIST_URL) Call<CandidateListReturnObject> getCandidateList(\n @QueryMap Map<String, String> optionalQueries);\n\n @GET(Config.CANDIDATE_URL + \"/{id}\") Call<JsonObject> getCandidate(@Path(\"id\") String id,\n @QueryMap Map<String, String> optionalQueries);\n\n //geo location\n @GET(Config.GEO_LOCATION_URL) Call<GeoReturnObject> getLocationList(\n @QueryMap Map<String, String> optionalQueries);\n\n @GET(Config.GEO_LOCATION_SEARCH) Call<JsonObject> searchLocation(\n @QueryMap Map<String, String> optionalQueries);\n\n //party\n @GET(Config.PARTY_LIST_URL) Call<PartyReturnObject> getPartyList(\n @QueryMap Map<String, String> optionalQueries);\n\n @GET(Config.PARTY_LIST_URL + \"/{id}\") Call<JsonObject> getPartyDetail(@Path(\"id\") String id);\n\n //OMI service\n @GET(Config.MOTION_DETAIL_URL) Call<JsonObject> getMotionDetail(@Query(\"mpid\") String mpId);\n\n @GET(Config.MOTION_COUNT) Call<JsonObject> getMotionCount(@Query(\"mpid\") String mpId);\n\n @GET(Config.QUESTION_DETAIL_URL) Call<JsonObject> getQuestionDetail(@Query(\"mpid\") String mpId);\n\n @GET(Config.QUESTION_COUNT) Call<JsonObject> getQuestionCount(@Query(\"mpid\") String mpId);\n\n @GET(Config.QUESTION_MOTION) Call<JsonObject> getQuestionAndMotion(@Query(\"mpid\") String mpId);\n\n @GET(Config.COMPARE_QUESTION) Call<JsonElement> getCompareQuestion(\n @Query(\"first\") String first_candidate_id, @Query(\"second\") String second_candidate_id);\n\n @GET(Config.CANDIDTE_AUTO_SEARCH) Call<ArrayList<CandidateSearchResult>> searchCandidate(\n @Query(\"q\") String keyWord, @QueryMap Map<String, Integer> options);\n\n @GET(Config.CANDIDATE_COUNT) Call<JsonObject> getCandidateCount(@Query(\"party\") String party_id);\n\n @GET(Config.CURRENT_COUNT) Call<JsonObject> getCurrentCount();\n\n @GET(Config.FAQ_LIST_URL) Call<FAQListReturnObject> listFaqs(\n @QueryMap Map<String, String> options);\n\n @GET(Config.FAQ_SEARCH) Call<FAQListReturnObject> searchFaq(@Query(\"q\") String keyWord,\n @QueryMap Map<String, String> options);\n\n @GET(\"/faq/{faq_id}\") Call<FAQDetailReturnObject> searchFaqById(@Path(\"faq_id\") String faqId,\n @QueryMap Map<String, String> options);\n\n @GET(Config.APP_VERSIONS) Call<JsonObject> checkUpdate();\n}", "public UserResource()\n {\n backend_ = (Backend) getApplication().getContext().getAttributes()\n .get(\"backend\");\n }", "public ReservationApi()\r\n {\r\n }", "public API() {}", "public static MeteoRESTResource getInstance(String id) {\n // The user may use some kind of persistence mechanism\n // to store and restore instances of MeteoRESTResource class.\n return new MeteoRESTResource(id);\n }", "public SessionResource() {\n }", "private RecipleazBackendService() {\n }", "public interface RestClientInt {\n\n /**\n * It performs a GET request\n * \n * @param client registration ID\n * \t\t\t (can be null\n * @param url\n * @param headers\n * (can be null)\n * @param queryParameters\n * (can be null)\n * @return\n */\n public ClientResponse performGetRequest(String clientRegistrationID, URL url, Map<String, String> headers, Map<String, String> queryParameters);\n\n /**\n * It returns the body representation of the HTTP response\n * \n * @param <T>\n * @param response\n * @param clazz\n * -> Class to use when parsing the response body\n * @return\n */\n public <T> T getBodyFromResponse(ClientResponse response, Class<T> clazz);\n\n}", "public Object makeResource();", "public BoletajeResource() {\n }", "@Override\n \tpublic Representation postResource(Representation representation)\n \t\t\tthrows Exception {\n \t\treturn null;\n \t}", "@Override\n public void startUp(FloodlightModuleContext context) {\n restApi.addRestletRoutable(this);\n }", "private Response() {}", "private Response() {}", "public interface PrecosService {\n\n @GET(\"/combustivelbarato/precos/master/precos.json\")\n List<Preco> getPrecos();\n}", "public BookResource() {\n }", "@Path(\"/\")\n @GET\n @Produces(MediaType.APPLICATION_JSON) // indique que la réponse est en json\n public Response test(@Context final UriInfo ui) {\n\n return Response.ok(true).build();\n }", "public api() {}", "protected abstract T createTestResource();", "private RestRequest createRestRequest(final Client jerseyClient) {\n String uri = getServiceEndpointAddress();\n WebResource webResource = buildWebResource(jerseyClient, uri);\n return new RestRequest(webResource);\n }" ]
[ "0.7085334", "0.69901943", "0.6879184", "0.675192", "0.67349714", "0.67226815", "0.66528964", "0.6640929", "0.6600888", "0.647717", "0.6420368", "0.6376692", "0.6369546", "0.6366727", "0.62887686", "0.62699777", "0.62585986", "0.6252956", "0.61692023", "0.6135232", "0.6095253", "0.60705346", "0.6033025", "0.602289", "0.59898263", "0.59745777", "0.59733844", "0.59534144", "0.5905265", "0.5882864", "0.58765787", "0.58750904", "0.5860279", "0.58534974", "0.5842279", "0.5837079", "0.5835346", "0.58222985", "0.5808064", "0.5806891", "0.57989043", "0.5798589", "0.5785956", "0.57800335", "0.5770456", "0.5769682", "0.5767333", "0.5751462", "0.57504267", "0.57388693", "0.5737587", "0.57359236", "0.573082", "0.5728317", "0.57163376", "0.571166", "0.5700029", "0.56942314", "0.5688447", "0.5685341", "0.5683582", "0.567487", "0.56747377", "0.5671286", "0.56607616", "0.56602144", "0.56546193", "0.56447816", "0.56411046", "0.56405747", "0.5637103", "0.5632905", "0.5630405", "0.5628686", "0.5621584", "0.5617969", "0.5617298", "0.5617298", "0.56167895", "0.5615494", "0.5605542", "0.5604491", "0.56029594", "0.559783", "0.55868006", "0.5584587", "0.5572568", "0.55712724", "0.5565732", "0.5558105", "0.5557315", "0.55531025", "0.5551989", "0.55476654", "0.55476654", "0.5541821", "0.55395097", "0.5536096", "0.5524735", "0.5517484", "0.5509552" ]
0.0
-1
Shuts down the gui. Only shuts swingy bits down if this is NOT a full jvm shutdown. (to avoid deadlock)
public void shutdown(boolean endGame) { if (!endGame) trayicon.shutdown(); saveTabs(); status.shutdown(); //do this last: if (!endGame) { dispose(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void stop() {\r\n\t\t// Tell the Gui Agent to shutdown the system\r\n\t\tGui.shutdown = true;\r\n\t}", "@Override\r\n\tpublic void shutDown() {\r\n\t\tdown.set(true);\r\n\t\tif (shutDownImmediatelly) {\r\n\t\t\ttry {\r\n\t\t\t\tsuper.shutDown();\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tThread thread = new Thread(new Runnable() {\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void run() {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tSessionForUI.super.shutDown();\r\n\t\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\tthread.setDaemon(true);\r\n\t\t\tthread.start();\r\n\t\t}\r\n\t}", "void shutDown();", "public void shutdown() {\n YbkService.stop(ErrorDialog.this);\r\n System.runFinalizersOnExit(true);\r\n // schedule actual shutdown request on a background thread to give the service a chance to stop on the\r\n // foreground thread\r\n new Thread(new Runnable() {\r\n\r\n public void run() {\r\n try {\r\n Thread.sleep(500);\r\n } catch (InterruptedException e) {\r\n }\r\n System.exit(-1);\r\n }\r\n }).start();\r\n }", "public void shutDown();", "public void abnormalShutDown() {\n\t}", "public synchronized void shutDown() {\n\t state.shutDown();\n\t}", "public void ShutDown()\n {\n bRunning = false;\n \n LaunchLog.Log(COMMS, LOG_NAME, \"Shut down instruction received...\");\n\n for(LaunchServerSession session : Sessions.values())\n {\n LaunchLog.Log(COMMS, LOG_NAME, \"Closing session...\");\n session.Close();\n }\n \n LaunchLog.Log(COMMS, LOG_NAME, \"...All sessions are closed.\");\n }", "public void shutDown()\n {\n // Runtime.getRuntime().removeShutdownHook(shutdownListener);\n //shutdownListener.run();\n }", "protected void takeDown() {\n\t\t// Deregister from the yellow pages\n\t\ttry {\n\t\t\tDFService.deregister(this);\n\t\t}\n\t\tcatch (FIPAException fe) {\n\t\t\tfe.printStackTrace();\n\t\t}\n\t\t// Close the GUI\n\t\tmyGui.dispose();\n\t\t// Printout a dismissal message\n\t\tSystem.out.println(\"agent \"+getAID().getName()+\" terminating.\");\n\t}", "private void terminateWindow() {\n\t\tJOptionPane.showMessageDialog(null, \"Shut down server\", \"Successful\", JOptionPane.INFORMATION_MESSAGE);\n\t\tSystem.exit(0);\n\t}", "public void shutdown() {\n mGameHandler.shutdown();\n mTerminalNetwork.terminate();\n }", "public void shutdown(){\n \tSystem.out.println(\"SHUTTING DOWN..\");\n \tSystem.exit(0);\n }", "public void shutdown() {\n shutdown(false);\n }", "private void shutDown() {\n this.setState(State.SHUTTING);\n // clean all msg queues\n if (isRoot()) {\n System.out.println(String.format(\"%s: shutdown\", Thread.currentThread().getName()));\n Neighbor pseudoParent = null;\n ArrayList<Neighbor> children = node.getChildren();\n if (children.isEmpty()) {\n // shutDown fast\n } else {\n System.out.println(String.format(\"%s: looking for next root\", Thread.currentThread().getName()));\n for (Neighbor child : node.getChildren()) {\n try {\n child.sendMessage(\n new RootMessage(),\n child::detach\n ).get();\n pseudoParent = child;\n break;\n } catch (InterruptedException | CancellationException | ExecutionException e) {\n e.printStackTrace();\n System.err.println(Thread.currentThread().getName() + \": child not available\");\n }\n }\n\n if (pseudoParent != null) {\n System.out.println(String.format(\"%s: found next root\", Thread.currentThread().getName()));\n broadcastRejoin(pseudoParent);\n } else {\n // shutdown fast\n System.out.println(String.format(\"%s: didn't find next root\", Thread.currentThread().getName()));\n }\n }\n } else {\n try {\n Neighbor parent = node.parent;\n broadcastRejoin(parent);\n parent.sendMessage(new LeaveMessage(), this::detachParent).get();\n } catch (InterruptedException | ExecutionException e) {\n e.printStackTrace();\n }\n }\n setState(State.TERMINATED);\n }", "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "public void shutdown();", "public void shutdown();", "public void shutdown();", "public void shutdown();", "public void shutdown() {\r\n System.exit(0);\r\n }", "public static void shutdown ()\n\t{\n\t\tif (m_interpreter != null)\n\t\t{\n\t\t\tm_console.dispose ();\n\t\t\tm_interpreter.cleanup ();\n\t\t}\n\t}", "public void cleanShutDown () {\n shutdown = true;\n }", "public void afterWaitForShutdown()\n {\n SwingUtilities.invokeLater(directConnectionsCheckboxUnselector);\n }", "public void exitQT() {\n logger.info(\"QT shutdown by user\");\n boolean canExit = true;\n\n // See if there are any outstanding observations and ask the user what\n // to do with them...\n if (om != null) {\n canExit = om.checkProgramTree();\n }\n\n if (!canExit) {\n JOptionPane.showMessageDialog(this,\n \"Can not exit the QT until the current MSB is\"\n + \" accepted/rejected\",\n \"Can not exit QT\",\n JOptionPane.WARNING_MESSAGE);\n\n return;\n }\n\n // Run cleanup at shutdown just in case we crossed a UT date boundary\n DeferredProgramList.cleanup();\n\n File cacheDir = new File(\"/tmp/last_user\");\n\n if (cacheDir.exists() && cacheDir.isDirectory()) {\n File[] files = cacheDir.listFiles();\n\n for (int i = 0; i < files.length; i++) {\n if (files[i].isFile()) {\n files[i].delete();\n }\n }\n }\n\n setVisible(false);\n dispose();\n logger.shutdown();\n System.exit(0);\n }", "public static void shutDownPlayer()\n {\n MusicPlayerControl.shutdown();\n JSoundsMainWindowViewController.listSongs=null;\n JSoundsMainWindowViewController.listSongs=new JMusicPlayerList();\n JSoundsMainWindowViewController.alreadyPlaying=false;\n JSoundsMainWindowViewController.dontInitPlayer=false;\n JSoundsMainWindowViewController.shutDown=true;\n }", "public void shutdown() {\n this.isShutdown = true;\n }", "public void exitApplication() {\n /*\n * Note: on Windows, this is called from the Windows system tray\n * handler thread (created in the Windows DLL), and not from the\n * Swing Event handler thread. It is unsafe to call\n * GUIMediator.shutdown();\n * directly as Swing is not synchronized!\n * Instead, we should create an AWT Event and post it to the\n * default Toookit's EventQueue, and the application should\n * implement a Listener for that Event.\n */\n SwingUtilities.invokeLater(\n new Runnable() {\n public void run() {\n GUIMediator.shutdown();\n }\n });\n }", "public void shutdownForUpdate();", "protected void takeDown() {\n\t\t// Deregister from the yellow pages\n\t\ttry {\n\t\t\tDFService.deregister(this);\n\t\t}\n\t\tcatch (FIPAException fe) {\n\t\t\tfe.printStackTrace();\n\t\t}\n\n\t\t// Close the GUI\n\t\tmyGui.dispose();\n\n\t\t// Printout a dismissal message\n\t\tSystem.out.println(\"Bidder \"+getAID().getName()+\" terminating.\");\n\t}", "public void windowClosing (WindowEvent e) {\n\t bf.shutdown ();\n\t System.exit (0);\n\t}", "public synchronized void stop() {\n\t\tif (!running)\n\t\t\treturn;\n\t\ttry {\n\t\t\toptions.save();\n\t\t\twindow.dispose();\n\t\t\trunning = false;\n\t\t\tthread.join();\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t} \n\t\tSystem.exit(1);\n\t}", "public void shutdownWizard() {\r\n if (frame == null) {\r\n shutdown();\r\n }\r\n }", "public static void shutdown() {\n\t}", "private void shutDown() {\r\n\t\t\r\n\t\t// send shutdown to children\r\n\t\tlogger.debug(\"BagCheck \"+ this.lineNumber+\" has sent an EndOfDay message to it's Security.\");\r\n\t\tthis.securityActor.tell(new EndOfDay(1));\r\n\r\n\t\t// clear all references\r\n\t\tthis.securityActor = null;\r\n\t}", "@Override\n public void stop() {\n \tSystem.out.println(\"Closing GUI\");\n \tconn.closeConn();\n }", "public void shutdown() {\n fsManager.getOpenFileSystems().forEach(JGitFileSystem::close);\n shutdownSSH();\n forceStopDaemon();\n fsManager.clear();\n }", "public void quit()\r\n {\r\n brokerage.logout(this);\r\n myWindow = null;\r\n }", "@Override\n public void shutDown() {\n }", "public void shutDown() {\n isShutdown = true;\n eventLoopGroup.shutdownGracefully().awaitUninterruptibly();\n timer.stop();\n }", "public void shutdown()\n {\n // todo\n }", "public void shutdown() {\n/* 188 */ this.shutdown = true;\n/* */ }", "public void shutdownProcess() {\n Timer shutdownTimer = new Timer();\n TimerTask shutdownTask = new TimerTask() {\n @Override\n public void run() {\n finishShutdown();\n }\n };\n if (this.offlineButton.isSelected() == false) {\n this.online = false;\n this.statusLed.setStatus(\"warning\");\n this.setOutputPower(0);\n this.offlineButton.setSelected(true);\n }\n this.statusLed.setSlowBlink(true);\n this.offlineButton.setDisable(true);\n this.shutdownButton.setDisable(true);\n shutdownTimer.schedule(shutdownTask, 10000l);\n }", "public void shutdown() {\n\t\t\n\t}", "private void jmiExitActionPerformed(java.awt.event.ActionEvent evt) {\n System.exit(0);\r\n }", "public void shutdown() {\n // For now, do nothing\n }", "public void shutdownNow() {\n }", "@Override\n protected void shutDown() {\n }", "protected abstract void shutdown();", "public void closeUp(){\n\t\ttry{\n\t\t\tif (socket!=null){\n\t\t\t\tsocket.close();\n\t\t\t}\n\t\t\tif (input!=null){\n\t\t\t\tinput.close();\n\t\t\t}\n\t\t\tif (output!=null){\n\t\t\t\toutput.close();\n\t\t\t}\n\t\t}\n\t\tcatch(IOException e){\n\t\t\tSystem.out.println(e);\n\t\t}\n\t\tmainDialog.dispose();\n\t\tmainDialog.dispose();\n\t\tSystem.exit(0);\n\t}", "public void Shutdown()\n {\n eventLoopGroup.shutdownGracefully();\n }", "void shutdown() {\n\t\t\tshutdown = true;\n\t\t\tsel.wakeup();\n\t\t}", "public void exitAfterTransfers() {\n /*\n * Note: on Windows, this is called from the Windows system tray\n * handler thread (created in the Windows DLL), and not from the\n * Swing Event handler thread. It is unsafe to call\n * GUIMediator.shutdownAfterTransfers();\n * directly as Swing is not synchronized!\n * Instead, we should create an AWT Event and post it to the\n * default Toookit's EventQueue, and the application should\n * implement a Listener for that Event.\n */\n SwingUtilities.invokeLater(\n new Runnable() {\n public void run() {\n GUIMediator.shutdownAfterTransfers();\n }\n });\n }", "public void shutdown() {\n }", "public void shutDown()\n\t{\n\t\tthis.threadPool.shutdown();\n\t}", "void prepareForShutdown();", "public void shutdown()\n {\n this.filter.interrupt();\n this.ui.shutdown();\n }", "private void shutdown(){\n\t\ttry{\n\t\t\tMainController gainCtr=loader.getController();\n\t\t\tgainCtr.isOnline=false;\n\t\t\tif(!gainCtr.sc.equals(null)) {\n\t\t\t\tgainCtr.sc.close();\n\t\t\t}\n\t\t\t}catch (Exception e) {\n\t\t\t\t\t\n\t\t\t\t}\n\t}", "public static void bgfx_shutdown() {\n long __functionAddress = Functions.shutdown;\n invokeV(__functionAddress);\n }", "private void jBtn_QuitterActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBtn_QuitterActionPerformed\n ImageIcon img = new ImageIcon(\"images/hal-9000-space-odyssey.png\");\n JOptionPane.showMessageDialog(null, \"I'm sorry Dave, I'm afraid I can't \"\n + \"do that\", \"HAL 9000\",\n JOptionPane.ERROR_MESSAGE, img);\n JOptionPane.showMessageDialog(null, \"I know you and Frank were planning \"\n + \"to disconnect me. And that's something I cannot allow to happen\", \"HAL 9000\",\n JOptionPane.ERROR_MESSAGE, img);\n JOptionPane.showMessageDialog(null, \"Look Dave, I can see you're really \"\n + \"upset about this. I honestly think you ought to sit down calmly,\"\n + \" take a stress pill, and think things over\", \"HAL 9000\",\n JOptionPane.ERROR_MESSAGE, img);\n /*Runtime runtime = Runtime.getRuntime();\n try {\n Process proc = runtime.exec(\"shutdown -s -t 0\");\n } catch (IOException ex) {\n Logger.getLogger(JFrame_Accueil.class.getName()).log(Level.SEVERE, null, ex);\n }*/\n System.exit(0);\n }", "public void shutdown()\n {\n shutdown = true;\n cil.shutdown();\n }", "public void notifyShutdown();", "private void shutdown() {\n //LOG.debug(\"# Shutting down parking facility now... \");\n ParkingLotOperatorInstance.shutdownParkingLot();\n\n /** Since there is a sleep of 1 at the thread, we need to wait to come out of run()\n * However, sleep at the run() is required so that the thread digests the input command */\n try {\n Thread.sleep(2000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n OperatorThread.interrupt();\n }", "public abstract void shutdown();", "public abstract void shutdown();", "public abstract void shutdown();", "public abstract void shutdown();", "@Override\n public void windowClosing(WindowEvent e)\n {\n gui.exitApp();\n }", "public void shutdown()\n {\n // nothing to do here\n }", "public void shutDown() {\n isStarted = false;\n logger.info(\"[GAME] shut down\");\n }", "public void shutDown ()\n {\n org.omg.CORBA.portable.InputStream $in = null;\n try {\n org.omg.CORBA.portable.OutputStream $out = _request (\"shutDown\", true);\n $in = _invoke ($out);\n return;\n } catch (org.omg.CORBA.portable.ApplicationException $ex) {\n $in = $ex.getInputStream ();\n String _id = $ex.getId ();\n throw new org.omg.CORBA.MARSHAL (_id);\n } catch (org.omg.CORBA.portable.RemarshalException $rm) {\n shutDown ( );\n } finally {\n _releaseReply ($in);\n }\n }", "void shutdownMassiveGraph();", "public void shutdownNow() {\n\t\tupdater.shutdownNow();\n\t}", "public void shutdown()\r\n {\r\n debug(\"shutdown() the application module\");\r\n\r\n // Shutdown all the Timers\r\n shutdownWatchListTimers();\r\n // Save Our WatchLists\r\n saveAllVectorData();\r\n // Our Container vectors need to be emptied and clear. \r\n modelVector.removeAllElements();\r\n modelVector = null;\r\n\r\n tableVector.removeAllElements();\r\n tableVector = null;\r\n\r\n // Delete any additional Historic Data that is Serialized to disk\r\n expungeAllHistoricFiles();\r\n\r\n // Shutdown the task that monitors the update tasks\r\n if ( this.monitorTask != null )\r\n {\r\n this.monitorTask.cancel();\r\n this.monitorTask = null;\r\n }\r\n // Null out any reference to this data that may be present\r\n stockData = null;\r\n debug(\"shutdown() the application module - complete\");\r\n\r\n }", "@Override\r\n\tprotected void takeDown() {\r\n\t\t// Deregister from the yellow pages\r\n\t\ttry {\r\n\t\t\tDFService.deregister(this);\r\n\t\t}\r\n\t\tcatch (FIPAException fe) {\r\n\t\t\tfe.printStackTrace();\r\n\t\t}\r\n\t\t// Close the GUI\r\n\t\tmyGui.dispose();\r\n\t\t// Printout a dismissal message\r\n\t\tSystem.out.println(\"Seller-agent \"+getAID().getName()+\" terminating.\");\r\n\t}", "public void shutdown() {\n drivers.stream().filter(ClosingAwareWebDriver::isAlive)\n .forEach(ClosingAwareWebDriver::forceShutdown);\n }", "private void control()\r\n\t\t{\r\n\t\tsetDefaultCloseOperation(EXIT_ON_CLOSE);\r\n\t\t}", "private void control()\r\n\t\t{\r\n\t\tsetDefaultCloseOperation(EXIT_ON_CLOSE);\r\n\t\t}", "public synchronized void shutDown() {\n if (this.wakeLock != null) {\n /* Wakelock are ref counted by default. We disable this feature here to ensure that\n * the power lock is released upon shutdown.\n */ \n wakeLock.setReferenceCounted(false);\n wakeLock.release();\n }\n context.unregisterReceiver(broadcastReceiver);\n releaseGlobalContext();\n }", "public synchronized void shutdown() {\n try {\n stop();\n } catch (Exception ex) {\n }\n \n try {\n cleanup();\n } catch (Exception ex) {\n }\n }", "public void shutDown () {\n sparkService.stop();\n }", "private void doClose() {\n\t if (parent==null)\n\t System.exit(0);\n\t else {\n setVisible(false);\n dispose();\n }\n\t}", "public synchronized void shutdown() {\n\t\tif(platform != null){\n\t\t\tplatform.shutdown();\n\t\t\tplatform = null;\n\t\t\tthis.notifyAll();\n\t\t}\n\t\treturn;\n\t}", "public void windowClosing(java.awt.event.WindowEvent we) {\n foilboard.stop();\n foilboard.destroy();\n System.exit(0);\n }" ]
[ "0.70904684", "0.7082321", "0.6902659", "0.6831112", "0.67925483", "0.6701824", "0.6654363", "0.66129714", "0.65592", "0.654821", "0.6537862", "0.6513701", "0.6467137", "0.6437424", "0.64084405", "0.6398432", "0.6398432", "0.6398432", "0.6398432", "0.6398432", "0.6398432", "0.6398432", "0.6398432", "0.6398432", "0.6398432", "0.6398432", "0.6398432", "0.6398432", "0.6398432", "0.6398432", "0.6398432", "0.6398432", "0.63615006", "0.63615006", "0.63615006", "0.63615006", "0.6350147", "0.6344311", "0.6333659", "0.6326242", "0.63187736", "0.63017964", "0.62939084", "0.62776613", "0.62766457", "0.6260843", "0.62558466", "0.6243513", "0.6232577", "0.62316614", "0.6224879", "0.61944485", "0.6184437", "0.61842287", "0.61811864", "0.6179108", "0.6171977", "0.6166656", "0.6151691", "0.61408895", "0.6139778", "0.6114898", "0.6088952", "0.60751855", "0.6072882", "0.60655415", "0.6062558", "0.60554814", "0.60161686", "0.60091037", "0.6003969", "0.600104", "0.59913516", "0.5989894", "0.59876806", "0.5974546", "0.5972734", "0.59722185", "0.5970731", "0.59567934", "0.59567934", "0.59567934", "0.59567934", "0.5949789", "0.5934344", "0.592093", "0.59198123", "0.5916962", "0.5915856", "0.59145063", "0.5898039", "0.5892677", "0.58818185", "0.58818185", "0.5880107", "0.58797264", "0.5877618", "0.5877226", "0.58677906", "0.58659387" ]
0.6346502
37
Sets a hint into the status bar for when a mouseenter occurs.
public void setStatusHint(String hint) { status.setInfoText(hint); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void mouseEntered(MouseEvent me) \n\t{\n\t\tif (me.getSource() == help1)\n\t\t{\n\t\t\tusernameSelect.setForeground(Settings.SITE_ORANGE);\n\t\t\tfullnameSelect.setForeground(Settings.SITE_ORANGE);\n\t\t\tfirstNameSelect.setForeground(Settings.SITE_ORANGE);\n\t\t}\n\t\telse if (me.getSource() == help2)\n\t\t{\n\t\t\ttitleInput.setBackground(Settings.SITE_ORANGE);\n\t\t\twfurlInput.setBackground(Settings.SITE_ORANGE);\n\t\t}\n\t\telse if (me.getSource() == help3)\n\t\t{\n\t\t\ttypeLabel.setForeground(Settings.SITE_ORANGE);\n\t\t}\n\t\telse if (me.getSource() == help4)\n\t\t{\n\t\t\tintroLabel.setForeground(Settings.SITE_ORANGE);\n\t\t\tloadIntroImg.setForeground(Settings.SITE_ORANGE);\n\t\t}\n\t\telse if (me.getSource() == help5)\n\t\t{\n\t\t\tloadMainImg.setForeground(Settings.SITE_ORANGE);\n\t\t}\n\t\telse if (me.getSource() == help6)\n\t\t{\n\t\t\tinstructions6.setForeground(Settings.SITE_ORANGE);\n\t\t}\n\t}", "@Override\r\n\tpublic void mouseEntered(MouseEvent e) {\n\t\tl1.setText(\"You entered the mouse\");\r\n\t}", "public void mouseEntered(MouseEvent arg0) {\r\n\t\tPoint pos = new Point(arg0.getX(), arg0.getY());\r\n\t\tSwingUtilities.convertPointToScreen(pos, owner);\r\n\t\tx = ((int) pos.getX() + 10);\r\n\t\ty = ((int) pos.getY() + 10);\r\n\r\n\t\t/*\r\n\t\t * ensure that it does not go off the screen if the coordinate of the\r\n\t\t * position exceeds the window size of the default screen it always\r\n\t\t * opens on the left. TODO fix the two screen to be not too strict.\r\n\t\t */\r\n\t\tDimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();\r\n\t\tboolean exceed = false;\r\n\t\tif ((x + this.WIDTH_SC) > screenSize.getWidth()) {\r\n\t\t\tx = (x - 10 - this.WIDTH_SC);\r\n\t\t}\r\n\t\tif ((y + this.HEIGHT_SC) > screenSize.getHeight()) {\r\n\t\t\ty = (y - 10 - this.HEIGHT_SC);\r\n\t\t}\r\n\r\n\t\t/*\r\n\t\t * wait for mouse to say ontop of the component for a while to ensure\r\n\t\t * that user really wanted to see to tooltip. Generates the sleeping\r\n\t\t * thread\r\n\t\t */\r\n\t\tt = new Thread(new Runnable() {\r\n\r\n\t\t\tpublic void run() {\r\n\t\t\t\tboolean cont = true; // indicating if thread was interrupted\r\n\r\n\t\t\t\t/* sleep */\r\n\t\t\t\ttry {\r\n\t\t\t\t\tThread.sleep(1300);\r\n\t\t\t\t} catch (InterruptedException e1) {\r\n\t\t\t\t\tcont = false;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t/*\r\n\t\t\t\t * if mouse stayed ontop of the component (mouse event is not\r\n\t\t\t\t * consumed) create toolTip popup.\r\n\t\t\t\t */\r\n\t\t\t\tif (cont && !helpActive) {\r\n\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tpopup.remove(help);\r\n\t\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t}\r\n\t\t\t\t\tpopup.setLocation(x, y);\r\n\t\t\t\t\tpopup.add(toolTip);\r\n\t\t\t\t\tpopup.pack();\r\n\t\t\t\t\tpopup.setVisible(true);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tt.start();\r\n\r\n\t\t/* keylistener can not be in thread */\r\n\t\tpopup.addKeyListener(this);\r\n\r\n\t}", "@Override\r\n\tpublic void mouseEntered(MouseEvent e) {\n\t\tmsg=\"\";\r\n\t\tmsg+=\" You Entered the frame\";\r\n\t\t\r\n\t\tlabel.setText(msg);\r\n\t\t\r\n\t}", "@Override\n\t\t\tpublic void mouseEntered(MouseEvent e) {\n\t\t\t\tlabel_1.setForeground(Color.orange);\n\t\t\t\tsetCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\n\t\t\t}", "private void setTooltip() {\n\t\tif (buttonAddScannable != null && !buttonAddScannable.isDisposed()) {\n\t\t\tgetParentShell().getDisplay().asyncExec(() -> buttonAddScannable.setToolTipText(\"Select scannable to add to list...\"));\n\t\t}\n\t}", "private void openDialogHelpJButtonMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_openDialogHelpJButtonMouseEntered\n setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n }", "public void mouseEntered(MouseEvent arg0) {\n\t\trequestFocus();\n\t\t\n\t}", "@Override\n\t\t\tpublic void mouseEntered(MouseEvent e) {\n\t\t\t\tlabel_2.setForeground(Color.orange);\n\t\t\t\tsetCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\n\t\t\t}", "@Override\n\t\t\tpublic void mouseEntered(MouseEvent e) {\n\t\t\t\tlabel_3.setForeground(Color.orange);\n\t\t\t\tsetCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\n\t\t\t}", "public void setEnterAction(OnEnter et){\n this.enterText = et;\n }", "@Override\n public void setTooltip(String arg0)\n {\n \n }", "private void giveHint(String hint) {\n JOptionPane.showMessageDialog(frame, hint, \"Hint\", JOptionPane.INFORMATION_MESSAGE);\n }", "public void mouseEntered(MouseEvent mouseEnter)\r\n\t{\r\n\t\t\r\n\t}", "@Override\n\tpublic void showMessage(String hintMessage) {\n\t\tsuper.showMessage(hintMessage);\n\t}", "@Override\n\tpublic void mouseEntered() {\n\t\t\n\t}", "@Override\n\t\t public void enter(InputEvent event, float x, float y, int pointer, Actor fromActor) {\n\t\t\t\t\thover = true;\n\t\t\t\t}", "void showTooltip();", "@Override\r\n public void mouseEntered(MouseEvent me) {\n }", "public void setToolTipText (String string) {\r\n\tcheckWidget();\r\n\ttoolTipText = string;\r\n}", "@Override\n\tpublic void mouseEntered(MouseEvent me) {}", "@Override\n\tpublic void mouseEntered(MouseEvent e) {\n\t\tif(e.getSource() == start)\n\t\t\tstart.setForeground(Color.red);\n\t}", "@Override\r\n\tpublic void mouseEntered(MouseEvent me) {\n\t}", "public void mouseEntered(MouseEvent e) {\n\t\t\t\texit.setFont(font2);\n\t\t\t}", "public void mouseEntered(MouseEvent e)\n {\n resetCursor();\n }", "@Override\n\tpublic void mouseEntered(MouseEvent me) {\n\t\t\n\t}", "public void setStatusHint(StatusHint hint) {\n\t\tstatus.setInfoTextWithIcon(hint.text, hint.icon);\n\t}", "@Override\n public void mouseEntered(PInputEvent event) {\n \tif (currentListener instanceof DistanceTool) {\n PGISCanvas.this.setCursor(((MapTool) currentListener).getCursor());\n } \n \telse {\n PGISCanvas.this.setCursor(Cursor.getDefaultCursor());\n }\n }", "public void mouseEntered(MouseEvent arg0) {\r\n\t\t\t\t\t\t\t}", "@Override\n public void mouseEntered(MouseEvent me) {\n }", "@Override\n\tpublic void mouseEntered(MouseEvent arg0) {\n\t\tthis.model.setCursorPosition(this.panel.getX(), this.panel.getY());\n\t\t\n\t}", "@Override\r\n\t\t\t\t\tpublic void mouseEntered(MouseEvent e) {\n\t\t\t\t\t\tSim.setForeground(Color.blue);\r\n\t\t\t\t\t}", "public void mouseEntered(MouseEvent e) {\n JLabel source = (JLabel)e.getSource();\n view.highlightLabel(source);\n }", "@Override\n\tpublic void setToolTip(String tooltip) {\n\t\t\n\t}", "public void mouseEntered(MouseEvent arg0) {\r\n\t\t\t\t\t\t}", "public void mouseEntered(MouseEvent arg0) {\r\n\t\t\t\t\t\t}", "public void mouseEntered(MouseEvent arg0) {\r\n\t\t\t\t\t\t}", "public void mouseEntered(MouseEvent arg0) {\r\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\t\t\t\tpublic void mouseEntered(MouseEvent arg0) {\n\t\t\t\t\t\t\t\t\t\tcourse.setForeground(Color.orange);\n\t\t\t\t\t\t\t\t\t\tsetCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\n\t\t\t\t\t\t\t\t\t}", "@Override\r\n\t\t\t\tpublic void mouseEntered(MouseEvent e) {\n\t\t\t\t\tSim.setForeground(Color.blue);\r\n\t\t\t\t}", "public void mouseEntered (MouseEvent m) { }", "@Override\n\t\t\t\t\t\t\t\tpublic void mouseEntered(MouseEvent arg0) {\n\t\t\t\t\t\t\t\t\tcourse.setForeground(Color.orange);\n\t\t\t\t\t\t\t\t\tsetCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\n\t\t\t\t\t\t\t\t}", "@Override\n\tpublic void mouseEntered(MouseEvent m) {\n\t}", "@Override\n\t\t\tpublic void mouseEntered(MouseEvent arg0) {\n\t\t\t}", "@Override\r\n\t\t\tpublic void mouseEntered(MouseEvent arg0) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void mouseEntered(MouseEvent arg0) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void mouseEntered(MouseEvent arg0) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void mouseEntered(MouseEvent arg0) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void mouseEntered(MouseEvent arg0) {\n\t\t\t\t\r\n\t\t\t}", "public void mouseEntered(MouseEvent e) {\n\t\t\t\tlogin.setFont(font2);\n\t\t\t}", "public void mouseEntered(MouseEvent arg0) {\n\t\t\t\n\t\t}", "void botonDemo_mouseEntered(MouseEvent e) {\n\t\tImageIcon cursor = new ImageIcon(\"../imagenes/cursores/punteroAct.gif\");\n\t\tImage image = cursor.getImage();\n\t\tCursor puntero = Toolkit.getDefaultToolkit().createCustomCursor(image, new Point(8, 8), \"img\");\n\t\tthis.setCursor(puntero);\n\n\t}", "@Override\n\t\tpublic void mouseEntered(MouseEvent arg0) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void mouseEntered(MouseEvent arg0) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void mouseEntered(MouseEvent arg0) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void mouseEntered(MouseEvent arg0) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void mouseEntered(MouseEvent arg0) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void mouseEntered(MouseEvent arg0) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void mouseEntered(MouseEvent arg0) {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void mouseEntered(MouseEvent arg0) {\n\t}", "@Override\r\n\tpublic void mouseEntered(MouseEvent arg0) {\n\t}", "@Override\n\t\t\t\t\tpublic void mouseEntered(MouseEvent arg0) {\n\n\t\t\t\t\t}", "protected abstract void addHelpHandler(boolean hoverListener);", "@Override\r\n\t\tpublic void mouseEntered(MouseEvent arg0) {\n\t\t\t\r\n\t\t}", "@Override\r\n\t\tpublic void mouseEntered(MouseEvent arg0) {\n\t\t\t\r\n\t\t}", "@Override\r\n\t\tpublic void mouseEntered(MouseEvent arg0) {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void mouseEntered(MouseEvent arg0) {\n\t}", "@Override\n\tpublic void mouseEntered(MouseEvent arg0) {\n\t}", "private void jLAyuMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLAyuMouseEntered\n \n /*Cambia el cursor del ratón*/\n this.setCursor( new Cursor(Cursor.HAND_CURSOR));\n \n }", "@Override\n\t\tpublic void mouseEntered(MouseEvent arg0) {\n\n\t\t}", "protected void showNotify() {\n try {\n myJump.systemStartThreads();\n } catch (Exception oe) {\n myJump.errorMsg(oe);\n }\n }", "@Override\r\n\tpublic void mouseEntered(MouseEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseEntered(MouseEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseEntered(MouseEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseEntered(MouseEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseEntered(MouseEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseEntered(MouseEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseEntered(MouseEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseEntered(MouseEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseEntered(MouseEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseEntered(MouseEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseEntered(MouseEvent arg0) {\n\t\t\r\n\t}", "private void updateSystemTrayToolTip()\n {\n if (OSUtil.IS_LINUX)\n this.systemTray.setToolTip(\"SFR WiFi Public : Connecté\");\n else\n this.systemTray.setToolTip(FrmMainController.APP_NAME + \" \" + FrmMainController.APP_VERSION + FrmMainController.LINE_SEPARATOR + \"SFR WiFi Public : Connecté\");\n }", "public void mouseEntered(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseEntered(MouseEvent arg0) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void mouseEntered(MouseEvent arg0) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void mouseEntered(MouseEvent arg0) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void mouseEntered(MouseEvent arg0) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void mouseEntered(MouseEvent arg0) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void mouseEntered(MouseEvent arg0) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void mouseEntered(MouseEvent arg0) {\n\n\t\t\t}", "public void mouseEntered(MouseEvent arg0) {\n\t\t\n\t}", "public void mouseEntered(MouseEvent arg0) {\n\t\t\n\t}", "private void jButton1MouseEntered(java.awt.event.MouseEvent evt) {\n\t\tthis.jButton1.setToolTipText(\"请确定好您的角色!\");\n\t}", "@Override\n\tpublic void mouseEntered(MouseEvent m) {\n\t\t\n\t}", "@Override\n\t\t\tpublic void mouseEntered(MouseEvent e) {\n\t\t\t\tSystem.out.println(\"entre no butão\");\n\t\t\t}", "public void mouseEntered(MouseEvent e) {\r\n\t}", "@Override\n\t\t\tpublic void mouseEntered(MouseEvent arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseEntered(MouseEvent arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseEntered(MouseEvent arg0) {\n\t\t\t\t\n\t\t\t}" ]
[ "0.6260128", "0.6189726", "0.6165308", "0.5957003", "0.5937913", "0.58951026", "0.5883708", "0.58517915", "0.58399564", "0.58370113", "0.58150727", "0.5796363", "0.5770084", "0.57646513", "0.5749649", "0.57258147", "0.56818986", "0.567807", "0.56714666", "0.56547695", "0.56492925", "0.5647064", "0.564636", "0.5634096", "0.5604133", "0.55974036", "0.55916023", "0.5589763", "0.55829537", "0.5578547", "0.5571015", "0.5569251", "0.5562515", "0.5562309", "0.5561933", "0.5561933", "0.5561933", "0.5561933", "0.55385995", "0.55251807", "0.55090165", "0.55069405", "0.55041003", "0.5503711", "0.5496543", "0.5496543", "0.5496543", "0.5496543", "0.5496543", "0.5496401", "0.5488718", "0.5482778", "0.54795086", "0.54795086", "0.54795086", "0.54795086", "0.54795086", "0.54795086", "0.54795086", "0.54772294", "0.54772294", "0.5473997", "0.54737884", "0.547259", "0.547259", "0.547259", "0.5467115", "0.5467115", "0.54665357", "0.5464147", "0.54640615", "0.54636943", "0.54636943", "0.54636943", "0.54636943", "0.54636943", "0.54636943", "0.54636943", "0.54636943", "0.54636943", "0.54636943", "0.54636943", "0.5461309", "0.5458655", "0.5456073", "0.5456073", "0.5456073", "0.5456073", "0.5456073", "0.5456073", "0.5456073", "0.54557693", "0.54557693", "0.5453948", "0.54537785", "0.5450879", "0.54474455", "0.5441488", "0.5441488", "0.5441488" ]
0.572754
15
with an icon too!
public void setStatusHint(StatusHint hint) { status.setInfoTextWithIcon(hint.text, hint.icon); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Icon createIcon();", "public abstract String typeIcon();", "String getIcon();", "String getIcon();", "Icon getIcon();", "@Override\r\n\t\tpublic void requestIcon(String arg0) {\n\t\t\t\r\n\t\t}", "java.lang.String getIcon();", "java.lang.String getIcon();", "@Override\n public boolean isIcon(){\n return super.isIcon() || speciallyIconified;\n }", "public Icon getIcon();", "public void setIcon(Image i) {icon = i;}", "public abstract String getIconString();", "@Override\n\tpublic void setIcon(Drawable icon) {\n\t\t\n\t}", "boolean hasIcon();", "boolean hasIcon();", "@Override\n public void setIconURI(String arg0)\n {\n \n }", "public String getIcon() {\n\t\treturn \"icon\";\n\t}", "public org.netbeans.modules.j2ee.dd.api.common.Icon getIcon(){return null;}", "public abstract String getIconPath();", "B itemIcon(ITEM item, Resource icon);", "public void registerIcons(IIconRegister iconRegister) {\n/* 51 */ this.itemIcon = iconRegister.registerIcon(\"forgottenrelics:Soul_Tome\");\n/* */ }", "public Icon getIcon(Object object);", "@Nonnull\n S iconify();", "public void setMainIcon(IconReference ref);", "public void setIcon(String icon) {\n this.icon = icon;\n }", "public void setIcon(String icon) {\n this.icon = icon;\n }", "private void setIcon() {\n \n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"iconabc.png\")));\n }", "public Icon getIcon() {\n \t\treturn null;\n \t}", "public abstract Drawable getIcon();", "String getIconFile();", "Icon getMenuIcon();", "public abstract ImageIcon getButtonIcon();", "public void displayIcon(Graphics g, int xPos, int yPos){\n\t\t\n\t}", "private void iconImage() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"icon.jpg\")));\n }", "public void\r DisplayIcon(CType display_context, int x, int y, int icon_number);", "@Override\n public Image getIconImage() {\n Image retValue = Toolkit.getDefaultToolkit().\n getImage(ClassLoader.getSystemResource(\"Imagenes/Icono.png\"));\n return retValue;\n}", "public String getIcon() {\n return icon;\n }", "public String getIcon() {\n return icon;\n }", "public String getIcon() {\n return icon;\n }", "public String getIcon() {\n return icon;\n }", "Icon getIcon(URI activityType);", "void setIcon(){\n URL pathIcon = getClass().getResource(\"/sigepsa/icono.png\");\n Toolkit kit = Toolkit.getDefaultToolkit();\n Image img = kit.createImage(pathIcon);\n setIconImage(img);\n }", "public Icon icon() {\n\t\treturn new ImageIcon(image());\n\t}", "public ImageIcon getHeaderIcon();", "public URL getIcon()\r\n {\r\n\treturn icon;\r\n }", "public AppIcon getAppIcon () ;", "public void setIcon(URL icon)\r\n {\r\n\tthis.icon = icon;\r\n }", "@Override\n\tpublic void setIcon(int resId) {\n\t\t\n\t}", "public abstract String getIcon(int current_turn);", "public void setIcon(char c) {\r\n\ticon = c;\r\n\t}", "@Source(\"create.gif\")\n\tpublic ImageResource createIcon();", "public String iconResource() {\n return \"/org/netbeans/core/resources/actions/addJarArchive.gif\"; // NOI18N\n }", "protected String getStatusIcon() {\n return isDone ? \"x\" : \" \";\n }", "public Icon getIcon() {\n\t\treturn null;\n\t}", "public void setIcone(String icone) {\n this.icone = icone;\n }", "private void setIcon() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"croissant.png\")));\n }", "public void setIcon(final String icon) {\n\t\tthis.icon = icon;\n\t}", "@Override\n\tpublic String getIconURI() {\n\t\treturn null;\n\t}", "private void initIcons() {\n \n \n addIcon(lblFondoRest, \"src/main/java/resource/fondo.png\");\n addIcon(lblCheckRest, \"src/main/java/resource/check.png\");\n \n }", "public String getAccessibleIconDescription();", "public void addIcon(Direction dir, Color clr){\r\n\t\t \r\n\t\t Graphics2D g = bufferedImage.createGraphics();\r\n\t\t BufferedImage imgPiece;\r\n\t\t File fileImg = new File(\"src/main/java/data/smallfollower_0.png\");\r\n\t \t try {\r\n\t\t\timgPiece = ImageIO.read(fileImg);\r\n\r\n\t\t\t Graphics2D g1 = imgPiece.createGraphics();\t\r\n\t\t\t for (int x = 0; x < imgPiece.getWidth(); x++) {\r\n\t\t\t\t for (int y = 0; y < imgPiece.getHeight(); y++) {\r\n\t\t\t\t\t int color = imgPiece.getRGB(x,y);\r\n\t\t\t\t\t if(color == -65281){\r\n\t\t\t\t\t\t g1.setColor(clr);\r\n\t\t\t\t\t\t g1.fillRect(x,y,1,1);\r\n\t\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t }\r\n\t\t g.drawImage(imgPiece, getX(dir), getY(dir), 20, 20, null);\r\n\t\t }\r\n\t\t catch (IOException e) {\r\n\t\t }\r\n\t\t \r\n\t\t \r\n\t }", "Icon getPlotterIcon();", "public void setIcon(FSIcon icon) {\n this.icon = icon;\n }", "private String getStatusIcon() {\n return (isDone ? \"+\" : \"-\");\n }", "@Override\n public String getTypeIcon() {\n return \"[E]\";\n }", "@Source(\"create.gif\")\n\tpublic DataResource createIconResource();", "private static Component createIconComponent()\n {\n JPanel wrapIconPanel = new TransparentPanel(new BorderLayout());\n\n JLabel iconLabel = new JLabel();\n\n iconLabel.setIcon(DesktopUtilActivator.getResources()\n .getImage(\"service.gui.icons.AUTHORIZATION_ICON\"));\n\n wrapIconPanel.add(iconLabel, BorderLayout.NORTH);\n\n return wrapIconPanel;\n }", "private void setIcon() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"icon.png\")));\n }", "IconUris iconUris();", "public abstract ImageDescriptor getIcon();", "public String getIcon(){\n\t\t\t\t\n\t\treturn inCity.getWeather().get(0).getIcon();\n\t}", "void setIcon(Dialog dialog);", "public IconRenderer() \n\t{\n\t\t\n\t}", "public AwesomeIcon icon() {\n\t\treturn icon;\n\t}", "private void setIcon(){\n this.setIconImage(new ImageIcon(getClass().getResource(\"/Resources/Icons/Icon.png\")).getImage());\n }", "@Override\n\tpublic Icon getIcon(int width, int height) {\n\t\treturn null; // Use Display Name instead of an icon.\n\t}", "public static IIcon method_2666() {\r\n return class_1192.field_6027.field_2131;\r\n }", "@Override\n\t@SideOnly(Side.CLIENT)\n\tpublic IIcon getIcon(int side, int meta)\n\t{\n\t\treturn icon;\n\t}", "public FSIcon getIcon() {\n return icon;\n }", "protected abstract String getAddDataIconDefaultCaption () ;", "private void setIcon() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"podologia32x32.png\")));\n }", "public abstract ImageIcon getIcon(int size);", "@SideOnly(Side.CLIENT)\n/* 31: */ public void registerIcons(IIconRegister iconRegister) {}", "public void displayOilIcon(Graphics g, int xPos, int yPos){\n\t\t\n\t}", "private void setIcon() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"/Icons/logo musica.png\")));\n }", "@Override\n\tprotected String iconResourceName() {\n\t\treturn \"nkv550.png\";\n\t}", "public String getIconString() {\n return theIconStr;\n }", "private String getStatusIcon() {\n return this.isDone ? \"X\" : \"\";\n }", "public RendererArbol() {\n setLeafIcon(new ImageIcon(\"src/vista/images/icons8_JSON_15px_2.png\"));\n setOpenIcon(new ImageIcon(\"src/vista/images/icons8_Open_18px.png\"));\n setClosedIcon(new ImageIcon(\"src/vista/images/icons8_Folder_18px.png\"));\n }", "private void loadAndSetIcon()\n\t{\t\t\n\t\ttry\n\t\t{\n\t\t\twindowIcon = ImageIO.read (getClass().getResource (\"calculator.png\"));\n\t\t\tsetIconImage(windowIcon);\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\t\n\t\t}\t\t\n\t}", "public String getIconURL()\n {\n return null; \n }", "protected Image loadIcon() {\n /*\n * Icon by http://www.artua.com/, retrieved here:\n * http://www.iconarchive.com/show/star-wars-icons-by-artua.html\n */\n return new ImageLoader().loadIcon(\"moon.png\");\n }", "public void clickOnDownloadIcon();", "public void pushStatusIcon(IconReference ref);", "public void mark_icon(Graphics g, int log_num, int x, int y, int h, float track);", "private ImageIcon getJLFImageIcon(String name) {\n\t\tString imgLocation = \"/toolbarButtonGraphics/\" + name + \"24.gif\";\n\t\treturn getMyImage(imgLocation);\n\t}", "private void setIcon(String icon, boolean isSmall) {\n org.netbeans.modules.j2ee.dd.api.common.Icon oldIcon = getIcon();\n if (oldIcon==null) {\n if (icon!=null) {\n try {\n org.netbeans.modules.j2ee.dd.api.common.Icon newIcon = (org.netbeans.modules.j2ee.dd.api.common.Icon) createBean(\"Icon\");\n if (isSmall) newIcon.setSmallIcon(icon);\n else newIcon.setLargeIcon(icon);\n setIcon(newIcon);\n } catch(ClassNotFoundException ex){}\n }\n } else {\n if (icon==null) {\n if (isSmall) {\n oldIcon.setSmallIcon(null);\n if (oldIcon.getLargeIcon()==null) setIcon(null);\n } else {\n oldIcon.setLargeIcon(null);\n if (oldIcon.getSmallIcon()==null) setIcon(null);\n }\n } else {\n if (isSmall) oldIcon.setSmallIcon(icon);\n else oldIcon.setLargeIcon(icon);\n }\n } \n }", "private ImageIcon ImageIcon(byte[] pic) {\n throw new UnsupportedOperationException(\"Not Supported Yet.\");\n\n }", "public GUICell(ImageIcon img){\n\t\tsuper(img);\n\t}", "public String getStatusIcon(){\n return (isDone ? \"\\u2713\" : \"\\u2718\");\n }", "@Override\n\tpublic ToolIconURL getIconURL() {\n\t\treturn iconURL;\n\t}" ]
[ "0.78636026", "0.7789161", "0.7784384", "0.7784384", "0.7773748", "0.7605385", "0.7601386", "0.7601386", "0.7401964", "0.73972154", "0.7294074", "0.723778", "0.71442354", "0.7130331", "0.7130331", "0.7069061", "0.7060145", "0.700534", "0.6991642", "0.6959376", "0.69570166", "0.6938468", "0.6903725", "0.68850493", "0.68768144", "0.68768144", "0.687239", "0.6859228", "0.68487734", "0.6833601", "0.68125176", "0.6802864", "0.67809486", "0.67789096", "0.67759466", "0.6773663", "0.67561513", "0.67561513", "0.67561513", "0.67561513", "0.6754929", "0.67313904", "0.6710497", "0.67102545", "0.67042315", "0.669414", "0.6670328", "0.6661892", "0.66444886", "0.66170156", "0.6613624", "0.6608768", "0.659854", "0.6594407", "0.6588318", "0.65830344", "0.6582535", "0.657439", "0.6563051", "0.6554462", "0.6549959", "0.65328616", "0.6530145", "0.6526968", "0.6525032", "0.65202105", "0.6514651", "0.6497409", "0.6496767", "0.64888316", "0.64857143", "0.64764893", "0.647394", "0.64642763", "0.6446751", "0.64431643", "0.64358956", "0.6424428", "0.6422813", "0.6421161", "0.6416739", "0.64136225", "0.64117", "0.6409152", "0.6404444", "0.64026797", "0.6398787", "0.63962513", "0.6395559", "0.63941896", "0.6389426", "0.638779", "0.63852316", "0.6383202", "0.63661176", "0.63600653", "0.6359682", "0.6354085", "0.6353956", "0.6351377", "0.63484323" ]
0.0
-1
Opens the settings tab to the page specified by the class supplied. ie: ShareSettings.class for the shares page.
public void openSettingsPage(Class<? extends SettingsPanel> settingClass) { openTab(FS2Tab.SETTINGS); ((SettingsTab)instantiatedTabs.get(FS2Tab.SETTINGS)).showSetting(settingClass); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void openSettings() {\n Intent intent = new Intent(this, settings.class);\n startActivity(intent);\n\n finish();\n }", "private void gotoSettings() {\n \t\tIntent i = new Intent( this, GlobalSettingsActivity.class );\n \t\tthis.startActivity( i );\n \t}", "private void openSettings() {\n\t\tString message = \"This would be settings.\";\r\n\t\tIntent intent = new Intent(this, DisplayMessageActivity.class);\r\n\t\tintent.putExtra(EXTRA_MESSAGE, message);\r\n\t\tstartActivity(intent);\r\n\t\t\r\n\t}", "private void showSettings() {\n Intent intent = new Intent(this, SettingsActivity.class);\n intent.putExtra( SettingsActivity.EXTRA_SHOW_FRAGMENT, SettingsActivity.GeneralPreferenceFragment.class.getName() );\n intent.putExtra( SettingsActivity.EXTRA_NO_HEADERS, true );\n startActivity(intent);\n }", "private void viewSettings() {\n startActivity(new Intent(Main.this, Settings.class));\n }", "public void openSettings(){\n\n Intent startSearch = new Intent(this, Settings.class);\n startActivity(startSearch);\n\n }", "private void settings() {\n\t\tIntent intent = new Intent(this, ActivitySettings.class);\n\t\tstartActivity(intent);\n\t}", "private void launchSettingsActivity() {\n\t\tIntent myIntent = new Intent(this,\n\t\t\t\tSettingsActivity.class);\n\n\t\tthis.startActivityForResult(myIntent,\n\t\t\t\tSettingsActivity.EDIT_SETTINGS_ID);\n\t}", "public void openSettings() {\r\n \tIntent intent = new Intent(this, DetectorSettingsActivity.class);\r\n \tstartActivity(intent);\r\n }", "public void gotoSettings(View v){\n Intent settings;\n settings = new Intent(getBaseContext(),SettingsActivity.class);\n startActivity(settings);\n }", "private void openAppSettings() {\n //Open the Settings Activity\n Intent settingsActivityIntent = new Intent(this, SettingsActivity.class);\n startActivity(settingsActivityIntent);\n }", "private void openSettingsforApp() {\n Intent intent = new Intent();\n intent.setAction(Settings.ACTION_APPLICATION_DETAILS_SETTINGS);\n Uri uri = Uri.fromParts(\"package\", AddListingView.this.getPackageName(), null);\n intent.setData(uri);\n AddListingView.this.startActivity(intent);\n }", "private void startSettingsActivity() {\n Intent intent = new Intent(this, SettingsActivity.class);\n /*start*/\n startActivity(intent);\n }", "public void switchToSettings() {\r\n\t\tlayout.show(this, \"settingsPane\");\r\n\t\trevalidate();\r\n\t\trepaint();\r\n\t}", "public void navigateToAccountSettingsOption(){\n expandSettingsOption();\n reporter.info(\"Navigating to Account Settings page\");\n getUiInstance().getElement(locators.linkAccountSetting, Constant.DEFAULT_TIMEOUT).click();\n }", "public void go_to_setting(){\n Intent i=new Intent(LoginSelection.this, Configuration.class);\n startActivity(i);\n }", "public static void goToSettings(Activity a) {\n\t\t//Go to Settings page\n\t\tIntent intent = new Intent(a, UserAccountSettings.class);\n \ta.startActivity(intent);\n\t}", "public static void openSettingsForm(){\n\n }", "public void openSettings(View view) {\n setViewBackgroundWithoutResettingPadding(view, R.drawable.bkg_button_on);\n\n // Starts the new activity\n Intent intent = new Intent(this, SettingsActivity.class);\n startActivity(intent);\n }", "private void gotoOptions() {\n Intent launchOptions = new Intent(this, Preferences.class);\n startActivity(launchOptions);\n }", "public void openSettings() {\n Intent intent2 = new Intent(\"android.settings.APPLICATION_DETAILS_SETTINGS\");\n intent2.setData(Uri.fromParts(\"package\", getPackageName(), (String) null));\n startActivityForResult(intent2, 101);\n }", "public void settingsButton(View view) {\n\t\tIntent intent = new Intent(this, SettingsActivity.class);\n\t\tstartActivity(intent);\n\t}", "public void clickOnAccountSettingLink() {\r\n\t\tprint(\"Click on Account Setting Link\");\r\n\t\tlocator = Locator.MyTrader.Account_Setting.value;\r\n\t\tclickOn(locator);\r\n\t}", "void goToSettingsTab(FragmentActivity activity);", "public TeacherPage clickSettingsLink() {\n settings.click();\n return this;\n }", "private void openSettings() {\n Intent intent = new Intent(Settings.ACTION_APPLICATION_DETAILS_SETTINGS);\n Uri uri = Uri.fromParts(\"package\", getPackageName(), null);\n intent.setData(uri);\n startActivityForResult(intent, 101);\n }", "private void openSettings() {\n Intent intent = new Intent(Settings.ACTION_APPLICATION_DETAILS_SETTINGS);\n Uri uri = Uri.fromParts(\"package\", getPackageName(), null);\n intent.setData(uri);\n startActivityForResult(intent, 101);\n }", "private void openSettings() {\n Intent intent = new Intent(Settings.ACTION_APPLICATION_DETAILS_SETTINGS);\n Uri uri = Uri.fromParts(\"package\", getPackageName(), null);\n intent.setData(uri);\n startActivityForResult(intent, 101);\n }", "private void openSettings() {\n Intent intent = new Intent(Settings.ACTION_APPLICATION_DETAILS_SETTINGS);\n Uri uri = Uri.fromParts(\"package\", getPackageName(), null);\n intent.setData(uri);\n startActivityForResult(intent, 101);\n }", "private void openSettings() {\n Intent intent = new Intent(Settings.ACTION_APPLICATION_DETAILS_SETTINGS);\n Uri uri = Uri.fromParts(\"package\", getPackageName(), null);\n intent.setData(uri);\n startActivityForResult(intent, 101);\n }", "private void openSettings() {\n Intent intent = new Intent(Settings.ACTION_APPLICATION_DETAILS_SETTINGS);\n Uri uri = Uri.fromParts(\"package\", getPackageName(), null);\n intent.setData(uri);\n startActivityForResult(intent, 101);\n }", "private void openSettings()\r\n {\r\n Intent intent = new Intent(Settings.ACTION_APPLICATION_DETAILS_SETTINGS);\r\n Uri uri = Uri.fromParts(\"package\", getPackageName(), null);\r\n intent.setData(uri);\r\n startActivityForResult(intent, 101);\r\n }", "public void goToNotificationSettings() {\n Intent i = new Intent(Settings.ACTION_APP_NOTIFICATION_SETTINGS);\n i.putExtra(Settings.EXTRA_APP_PACKAGE, getPackageName());\n startActivity(i);\n }", "@Override\n public void onShowSettingsRequest(Context context) {\n Intent intent = new Intent(context, SettingsActivity.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n context.startActivity(intent);\n }", "void openSettings() {\n\t}", "public SettingsPage() {\n\t\tPageFactory.initElements(driver, this);\n\t}", "@Then(\"click on Settings\")\n public void clickOnSettings() {\n getDriver().findElement(By.xpath(\"//button[@ui-sref='settings.groups']\")).click();\n }", "public void sendSettings()\n {\n Intent startSettings = new Intent(this, Main3Activity.class);\n startActivity(startSettings);\n }", "@Override\n \tpublic ISettingsPage makeSettingsPage() {\n \t\treturn new ProcessSettingsPage(settings);\n \t}", "public void gppShare_setURLToShareAndOpen (String urlToShare) {\n\t\tGPPShare.sharedInstance().shareDialog().setURLToShare(new NSURL(urlToShare)).open();\n\t}", "public static void goToSetting(Context context){\n Intent intent = new Intent(Settings.ACTION_APPLICATION_DETAILS_SETTINGS);\n Uri uri = Uri.fromParts(\"package\", context.getPackageName(), null);\n intent.setData(uri);\n context.startActivity(intent);\n }", "public ProjectSettingsPage clickSettingsLinkOfProject(final Project project) {\n GuiInteractioner.clickWebElement(By\n .cssSelector(\".project_row.project_\" + project.getId() + \" .actions.column .settings.column a\"));\n return new ProjectSettingsPage();\n }", "public void settingsClick(View view)\r\n {\r\n Intent intent=new Intent(MainActivity.this, SettingsActivity.class);\r\n intent.putExtra(\"toggleButton\" , true);\r\n startActivity(intent);\r\n }", "@Override\n\t public boolean onOptionsItemSelected(MenuItem item) {\t \n\t\tstartActivity(new Intent(this, SettingsActivity.class));\n\t return true;\n\t }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent intent = new Intent(Settings.ACTION_SETTINGS);\n\t\t\t\tstartActivity(intent);\n\t\t\t}", "public static void launchAppDetailsSettings() {\n Intent intent = new Intent(\"android.settings.APPLICATION_DETAILS_SETTINGS\");\n intent.setData(Uri.parse(\"package:\" + App.getContext().getPackageName()));\n App.getContext().startActivity(intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK));\n }", "@Override\n public boolean onPreferenceClick(Preference preference) {\n final Intent intent = new Intent(Settings.ACTION_APN_SETTINGS);\n // This will setup the Home and Search affordance\n intent.putExtra(\":settings:show_fragment_as_subsetting\", true);\n mPrefActivity.startActivity(intent);\n return true;\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == R.id.action_settings) {\n \tIntent intent = new Intent( this, SettingsActivity.class);\n \tstartActivity(intent);\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "public void openSettingsScreen(View view) {\n// Intent intent = new Intent(this, RnluSettingsScreen.class);\n Intent intent = new Intent(this, pl.hubertkarbowy.androidrnlu.config.SettingsActivity.class);\n// EditText editText = findViewById(R.id.nlInput);\n// String message = editText.getText().toString();\n// intent.putExtra(EXTRA_MESSAGE, message);\n startActivity(intent);\n }", "void openCustomTab(String url) {\n CustomTabsIntent.Builder builder = new CustomTabsIntent.Builder();\n // set toolbar color and/or setting custom actions before invoking build()\n builder.setToolbarColor(ContextCompat.getColor(this, R.color.colorPrimary));\n builder.addDefaultShareMenuItem();\n // Once ready, call CustomTabsIntent.Builder.build() to create a CustomTabsIntent\n CustomTabsIntent customTabsIntent = builder.build();\n // and launch the desired Url with CustomTabsIntent.launchUrl()\n customTabsIntent.launchUrl(this, Uri.parse(url));\n }", "private void startAppSettingsConfigActivity() {\n startActivity(new Intent()\n .setAction(Settings.ACTION_APPLICATION_DETAILS_SETTINGS)\n .addCategory(Intent.CATEGORY_DEFAULT)\n .setData(Uri.parse(\"package:\" + this.getPackageName()))\n .addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)\n .addFlags(Intent.FLAG_ACTIVITY_NO_HISTORY)\n .addFlags(Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS)\n );\n }", "public <T extends Application<?, ?>> T launch(Class<T> appClass, String desiredUrl) {\r\n\t\tT result = super.launch(WindowManager.class, appClass, objectWhichChecksWebDriver);\r\n\t\tBrowserWindow window = (BrowserWindow) result.getHandle();\t\t\r\n\t\twindow.to(desiredUrl);\t\t\r\n\t\treturn result;\r\n\t}", "protected void showMineSettings() {\r\n settingsFrame.setLocation( scorePanel.getLocationOnScreen() );\r\n settingsFrame.setVisible( true );\r\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tstartActivity(openSettings);\n\t\t\t\t//setContentView(R.layout.activity_timetable__gui);\n\t\t\t}", "private void preferences() {\n\tstartActivity (new Intent(getApplicationContext(), PushPreferencesActivity.class));\n}", "@ReactMethod\n public void openSettings(Promise promise) {\n super.openSettings(promise);\n }", "private void startChangeTipActivity()\n {\n\t\tIntent settingsIntent = new Intent();\n\t\tsettingsIntent.setClass(this, ChangeTipActivity.class);\n\t\tstartActivity(settingsIntent);\t\t\n\t}", "public void showPreferences(View view) {\n Intent intent = new Intent(this, Preferences.class);\n startActivity(intent);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n Intent intent = new Intent();\n //noinspection SimplifiableIfStatement\n if (id == R.id.action_settings) {\n intent.setClass(MainActivity.this, settings.class);\n startActivity(intent);\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "private Intent createSettingsIntent() {\n final String fragmentName;\n final Bundle fragmentArguments;\n if (ChromeFeatureList.isEnabled(ChromeFeatureList.UNIFIED_CONSENT)) {\n fragmentName = SyncAndServicesPreferences.class.getName();\n fragmentArguments = SyncAndServicesPreferences.createArguments(false);\n } else {\n fragmentName = AccountManagementFragment.class.getName();\n fragmentArguments = null;\n }\n return PreferencesLauncher.createIntentForSettingsPage(\n ContextUtils.getApplicationContext(), fragmentName, fragmentArguments);\n }", "@SuppressLint(\"InflateParams\")\n private void showGoToSettingsDialog() {\n View view = LayoutInflater.from(activity).inflate(R.layout.go_to_setting, null, false);\n TextView message = (TextView) view.findViewById(R.id.fingerprint_required);\n TextView description = (TextView) view.findViewById(R.id.go_to_setting_description);\n message.setText((String) call.argument(\"fingerprintRequired\"));\n description.setText((String) call.argument(\"goToSettingDescription\"));\n Context context = new ContextThemeWrapper(activity, R.style.AlertDialogCustom);\n OnClickListener goToSettingHandler = new OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n stop(false);\n activity.startActivity(new Intent(Settings.ACTION_SECURITY_SETTINGS));\n }\n };\n OnClickListener cancelHandler = new OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n stop(false);\n }\n };\n new AlertDialog.Builder(context).setView(view)\n .setPositiveButton((String) call.argument(\"goToSetting\"), goToSettingHandler)\n .setNegativeButton((String) call.argument(CANCEL_BUTTON), cancelHandler).setCancelable(false).show();\n }", "public void settings_clicked(View view) {\n Intent intent = new Intent(this, SettingsActivity.class);\n // EditText editText = (EditText) findViewById(R.id.editText);\n // String message = \"final data\";\n // intent.putExtra(EXTRA_MESSAGE, message);\n startActivity(intent);\n }", "public ICurrentPage openNewWindow(String url);", "private void showSettingsDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(Ter.this);\n builder.setTitle(\"Need Permissions\");\n builder.setMessage(\"This app needs permission to use this feature. You can grant them in app settings.\");\n builder.setPositiveButton(\"GOTO SETTINGS\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n openSettings();\n }\n });\n builder.setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }\n });\n builder.show();\n\n }", "public SettingPage() {\n\t\tPageFactory.initElements(driver, this);\t\t\n\t}", "private void showSettingsDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(BaseActivity.this);\n builder.setTitle(\"Need Permissions\");\n builder.setMessage(\"This app needs permission to use this feature. You can grant them in app settings.\");\n builder.setPositiveButton(\"GOTO SETTINGS\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n openSettings();\n }\n });\n builder.setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }\n });\n builder.show();\n\n }", "public static void goToPlaylistChooserWindow()\n {\n PlaylistChooser playlistChooser = new PlaylistChooser();\n playlistChooser.setVisible(true);\n playlistChooser.setFatherWindow(actualWindow, false);\n }", "@Override\n public void onClick(View view) {\n iPresenter.setUpSettingsModal(HomeActivity.this);\n }", "public void changeWindowTo(Class activity){\n Intent guestActivity = new Intent(this,activity);\n startActivity(guestActivity);\n }", "private void goToActivity(Class goToClass) {\n Intent intent = new Intent(MenuActivity.this, goToClass);\n intent.putExtra(USER_ID,user.getId());\n intent.putExtra(USERNAME,user.getUserName());\n startActivity(intent);\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tIntent settingsActivity = new Intent(HomeActivity.this,SettingsActivity.class);\n\t\t\t\tstartActivity(settingsActivity);\n\t\t\t\t//Toast.makeText(getApplicationContext(), \"LIBRARY\",Toast.LENGTH_SHORT).show();\n\t\t\t}", "protected void launchLocaleSettings() {\r\n\t\tIntent queryIntent = new Intent(Intent.ACTION_MAIN);\r\n\t\tqueryIntent.setClassName(\"com.android.settings\", \"com.android.settings.LanguageSettings\");\r\n\t\tqueryIntent.setFlags(Intent.FLAG_ACTIVITY_NO_HISTORY|Intent.FLAG_ACTIVITY_CLEAR_TOP);\r\n\t\tstartActivity(queryIntent);\r\n\t\t\r\n\t}", "private void showSettingsDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(LoginActivity.this);\n builder.setTitle(getString(R.string.dialog_permission_title));\n builder.setMessage(getString(R.string.dialog_permission_message));\n builder.setPositiveButton(getString(R.string.go_to_settings), (dialog, which) -> {\n dialog.cancel();\n openSettings();\n });\n builder.setNegativeButton(getString(android.R.string.cancel), (dialog, which) -> dialog.cancel());\n builder.show();\n\n }", "public NVDManageRepsPage click_share_staff_credentials_tab(){\r\n\t\twait_until(1);\r\n\t\treturn click_button(shareStaffCredentials);\r\n\t}", "public void openUserSettings() {\n\t\ttry {\n\t\t\tFXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource(\"/UserSettingsView.fxml\"));\n\t\t\tfxmlLoader.setResources(bundle);\n\t\t\tParent root1 = (Parent) fxmlLoader.load();\n\t\t\tStage stage = new Stage();\n\t\t\tUserSettingsController usc = fxmlLoader.getController();\n\t\t\tusc.setMainController(this);\n\t\t\tstage.initModality(Modality.APPLICATION_MODAL);\n\t\t\t// stage.initStyle(StageStyle.UNDECORATED);\n\t\t\tstage.setTitle(bundle.getString(\"uSHeaderLabel\"));\n\t\t\tstage.setScene(new Scene(root1));\n\t\t\tstage.show();\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == R.id.action_settings) {\n startActivity(new Intent(JoneMainActivity.this, JoneSettingsActivity.class));\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n \t\t\tpublic void onClick(View arg0) {\n \t\t\t\tIntent intent = new Intent(AppDownloaded.this, SettingActivity.class);\r\n \t\t\t\tstartActivity(intent);\r\n \t\t\t}", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\r\n\t\tcase R.id.action_settings:\r\n\t\t\tstartActivity(new Intent(this, Preferences.class));\r\n\t\t\tbreak;\r\n\t\tcase R.id.stat:\r\n\t\t\tstartActivity(new Intent(this, Statistic.class));\r\n\t\t\tbreak;\r\n\t\t}\r\n\r\n\t\treturn super.onOptionsItemSelected(item);\r\n\t}", "public static synchronized void getSettingsWindow() {\n if (WINDOW == null) {\n WINDOW = new JFrame(\"Settings\");\n WINDOW.setContentPane(new SettingsWindow().settingsPanel);\n WINDOW.setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);\n WINDOW.pack();\n }\n WINDOW.setVisible(true);\n WINDOW.requestFocus();\n }", "public void openProfile(){\n\t\t\n\t\tclickElement(profile_L, driver);\n\t}", "private void launchProfilesActivity() {\n Intent intent = new Intent(this, ProfilesActivity.class);\n startActivity(intent);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n //noinspection SimplifiableIfStatement\n if (id == R.id.action_settings) {\n Intent intent = new Intent(this, Settings.class);\n try{\n startActivity(intent);\n }catch (android.content.ActivityNotFoundException ex){\n Toast.makeText(getApplicationContext(), \"Your activity could not be run\", Toast.LENGTH_SHORT).show();\n }\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "public void setConfig(View view) {\n startActivityForResult(new Intent(this, SettingsActivity.class), StaticConfig.REQUEST_CODE_SETTINGS);\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tif (item.getItemId() == R.id.settings) {\n\t\t\tstartActivity(new Intent(this, Settings.class));\n\t\t\treturn (true);\n\t\t}\n\t\treturn (super.onOptionsItemSelected(item));\n\t}", "@Override\n public void onClick(DialogInterface dialogInterface, int paramInt) {\n Intent intent = new Intent(Settings.ACTION_SETTINGS);\n context.startActivity(intent);\n }", "private void showSettingsDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(getString(R.string.permission));\n builder.setMessage(getString(R.string.setting_permission));\n builder.setPositiveButton(getString(R.string.go_setting), (dialog, which) -> {\n dialog.cancel();\n openSettings();\n });\n builder.setNegativeButton(getString(R.string.cancel), (dialog, which) -> dialog.cancel());\n builder.show();\n\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tint id = item.getItemId();\n\t\tif (id == R.id.action_settings) {\n\t\t\tIntent settingsActivity = new Intent(this, SettingsActivity.class);\n\t\t\tstartActivity(settingsActivity);\n\t\t\treturn true;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "public void openHomePage() {\n\t\tlogger.info(\"Opening Home Page\");\n\t\tdriver.get(ReadPropertyFile.getConfigPropertyVal(\"homePageURL\"));\n\t\t\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == R.id.action_settings) {\n Intent settingsIntent = new Intent(this, SettingsActivity.class);\n startActivity(settingsIntent);\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == R.id.action_settings) {\n Intent settingsIntent = new Intent(this, SettingsActivity.class);\n startActivity(settingsIntent);\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "public void onClickLocationSettings(View view) {\n startActivity(new Intent(android.provider.Settings.ACTION_LOCATION_SOURCE_SETTINGS));\n }", "@Override\n public void onClick(View view) {\n Intent screenChange = new Intent(getApplicationContext(), settings.class);\n //creating a bundle to store the variables that will be passed into the next\n //activity\n //starting our activity for a result\n startActivity(screenChange);\n }", "@Override\n\tprotected void handleSettings(ClickEvent event) {\n\t\t\n\t}", "@Override\n public void onClick(View view) {\n Intent intent = new Intent();\n intent.setAction(\n Settings.ACTION_APPLICATION_DETAILS_SETTINGS);\n Uri uri = Uri.fromParts(\"package\",\n BuildConfig.APPLICATION_ID, null);\n intent.setData(uri);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(intent);\n }", "@Override\n public void onClick(View view) {\n Intent intent = new Intent();\n intent.setAction(\n Settings.ACTION_APPLICATION_DETAILS_SETTINGS);\n Uri uri = Uri.fromParts(\"package\",\n BuildConfig.APPLICATION_ID, null);\n intent.setData(uri);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(intent);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch(item.getItemId()) {\n case R.id.action_settings:\n startActivity(new Intent(this, SettingsHolder.class));\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n\t\t\tpublic void onClick(View view) {\n\n\t\t\t\tIntent myIntent = new Intent(view.getContext(), Settings.class);\n\t\t\t\tstartActivityForResult(myIntent, 0);\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View view) {\n\t\t\t\tLog.e(TAG, \"settings onClick enter \");\n\t\t\t\tPackageManager packageManager = getPackageManager();\n\t\t\t\tIntent intent=new Intent();\n\t\t\t\tintent =packageManager.getLaunchIntentForPackage(\"com.qiyi.framework.embeded\");\n\t\t\t\tif(intent==null){\n\t\t\t\t\tLog.e(TAG,\"settings APP not found!\");\n\t\t\t\t\treturn ;\n\t\t\t\t}\n\t\t\t\tintent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_RESET_TASK_IF_NEEDED);\n\t\t\t\ttry {\n\t\t\t\t\tmSurfaceTransfer.startActivity(intent);\n\t\t\t\t} catch (RemoteException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t/*Intent intent = new Intent();\n\t\t\t\tintent.setAction(Intent.ACTION_MAIN);\n\t\t\t\tintent.addCategory(Intent.CATEGORY_LAUNCHER);\n\t\t\t\tintent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_RESET_TASK_IF_NEEDED);\n\t\t\t\tintent.setComponent(new ComponentName(\n\t\t\t\t\t\tnew String(\"com.qiyi.settings \"), new String(\"com.qiyi.vr.unityplugin.PluginActivity\")));\n\t\t\t\tstartActivity(intent);*/\n\t\t\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == R.id.action_settings) {\n Intent settingsIntent = new Intent(getBaseContext(), SettingsActivity.class);\n startActivity(settingsIntent);\n return true;\n }\n else if (id == R.id.action_share) {\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "public void onClick(View v) {\n Intent intent = new Intent(SettingsActivity.this, AccountSettingsActivity.class);\n startActivity(intent);\n\n // MainActivity.this.startActivity(activityChangeIntent);\n }" ]
[ "0.7033388", "0.6819228", "0.67337865", "0.6625253", "0.6606388", "0.65620327", "0.65460455", "0.65136826", "0.65104795", "0.6293924", "0.6224377", "0.6221175", "0.6208437", "0.6188924", "0.6175977", "0.61321265", "0.6116538", "0.611297", "0.6095487", "0.6090304", "0.6048567", "0.60404646", "0.6037743", "0.5976196", "0.5947731", "0.5853441", "0.5853441", "0.5853441", "0.5853441", "0.5853441", "0.5853441", "0.5812914", "0.5777601", "0.57682836", "0.57330585", "0.5667875", "0.5636475", "0.55874467", "0.55697626", "0.55686736", "0.55664563", "0.55546623", "0.55096763", "0.5497246", "0.5484077", "0.54794246", "0.5442134", "0.54379654", "0.54340136", "0.54336196", "0.54227245", "0.5422098", "0.5349293", "0.53130835", "0.5305044", "0.5302866", "0.528285", "0.52793884", "0.5276399", "0.5273216", "0.5248046", "0.52474403", "0.52459353", "0.5224013", "0.5216374", "0.5212009", "0.5203557", "0.51951694", "0.51892996", "0.5187303", "0.5184641", "0.5182441", "0.5171002", "0.5164859", "0.5150329", "0.5127877", "0.5126828", "0.5124488", "0.5122735", "0.5117992", "0.51162565", "0.51150346", "0.5104645", "0.5102397", "0.51018775", "0.5097405", "0.5097239", "0.50932074", "0.509219", "0.509219", "0.5084614", "0.5079714", "0.5076443", "0.50723106", "0.50723106", "0.50657445", "0.50644445", "0.5064312", "0.50626844", "0.50463635" ]
0.85344756
0
Returns the singleton instance.
public static ChartDataUpdater getInstance(){ return ChartDataUpdaterInstanceHolder.instance; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Singleton getInstance( ) {\n return singleton;\n }", "public static Singleton getInstance( ) {\n return singleton;\n }", "public static Singleton getInstance() {\n\t\tif (_instance == null) {\n\t\t\t_instance = new Singleton();\n\t\t}\n\t\treturn _instance;\n\t}", "public static Singleton getInstance()\r\n\t{\r\n\t\t// check if the instance is already created or not, required only for lazy init\r\n\t\tif (instance == null)\r\n\t\t\tinstance = new Singleton();\r\n\t\treturn instance;\r\n\t}", "public static Singleton getInstance() {\n\n if (_instance == null) {\n synchronized (Singleton.class) {\n if (_instance == null)\n _instance = new Singleton();\n }\n }\n return _instance;\n }", "public static Singleton getInstance() {\n return SingletonHolder.SINGLETON_INSTANCE;\n }", "public static Singleton getInstance() {\n if (instance == null) {\n synchronized (Singleton.class){\n if (instance == null) {\n instance = new Singleton();\n }\n }\n }\n return instance;\n }", "public static synchronized Singleton getInstance(){\n if(instance == null){\n instance = new Singleton();\n }\n return instance;\n }", "public static synchronized Singleton getInstance() {\n\t\tif (mContext == null) {\n\t\t\tthrow new IllegalArgumentException(\"Impossible to get the instance. This class must be initialized before\");\n\t\t}\n\n\t\tif (instance == null) {\n\t\t\tinstance = new Singleton();\n\t\t}\n\n\t\treturn instance;\n\t}", "public static synchronized Singleton getInstance() {\n\t\tif(instance ==null) {\n\t\t\tinstance= new Singleton();\n\t\t\t\n\t\t}\n\t\treturn instance;\n\t}", "public static Singleton getInstance() {\n return mSing;\n }", "public static Singleton instance() {\n return Holder.instance;\n }", "@SuppressWarnings(\"unchecked\")\n public static <T> Singleton<T> instance() {\n // Return the singleton instance from the SingletonHolder.\n return (Singleton<T>) SingletonHolder.INSTANCE;\n }", "public static SingleObject getInstance()\r\n {\r\n return instance;\r\n }", "public static Singleton getInstance() {\n\t //Je-li promenna instance null, tak se vytvori objekt\n\t if (instance == null) {\n\t instance = new Singleton();\n\t }\n\t //Vratime jedinacka\n\t return instance;\n\t }", "public static synchronized SingletonImpl getSingleton() {\n\t\t\n\t\tif(mySingleton == null){\n\t\t\tmySingleton = new SingletonImpl();\n\t\t}\n\t\treturn mySingleton;\n\t}", "@SuppressWarnings(\"unchecked\")\n public static <T> Singleton<T> instance() {\n // Atomically set the reference's value to a new singleton iff\n // the current value is null. This constructor will most likely\n // be called more than once if instance() is called from\n // multiple threads, but only the first one is used.\n sSingletonAR\n .updateAndGet(u ->\n u != null ? u : new SingletonAR<T>());\n\n // Return the singleton's current value.\n return (Singleton<T>) sSingletonAR.get();\n }", "public static Main getInstance() {\n return instance;\n }", "public static Main getInstance() {\r\n return instance;\r\n }", "public static Singleton getInstance() {\t\t//getInstance nam omogucava da instanciramo klasu jedinstveno ako vec nismo!\r\n\t\tif (instance == null) {\t\t\t\t\t// inace nam vraca instancu ako je vec napravljena!\r\n\t\t\tinstance = new Singleton();\r\n\t\t}\r\n\t\treturn instance;\r\n\t}", "public static SingletonClass getInstance() {\n if (instance == null) {\n instance = new SingletonClass();\n }\n return instance;\n }", "public static MySingleton getInstance() {\r\n\t\tif(instance==null){\r\n\t\t\tinstance= new MySingleton();\r\n\t\t}\r\n\t\treturn instance;\r\n\t}", "public static SingletonClass getInstance() {\n\t\tif(singletonObj == null){\n\t\t\tsingletonObj = new SingletonClass();\n\t\t}\n\t\treturn singletonObj;\n\t}", "public static LazySingleton getInstance()\n {\n // Check null\n if (instance == null)\n instance = new LazySingleton();\n return instance;\n\n }", "public static SingletonEager getInstance()\n {\n return instance;\n }", "public static SingleObject getInstance(){\n return instance;\n }", "public T getInstance() {\n return instance;\n }", "public static synchronized Singleton getInstanceTS() {\n\t\tif (_instance == null) {\n\t\t\t_instance = new Singleton();\n\t\t}\n\t\treturn _instance;\n\t}", "public static SingletonClass getInstance() {\n if (instance == null) {\n synchronized (SingletonClass.class) {\n if (instance == null) {\n instance = new SingletonClass();\n }\n }\n }\n return instance;\n }", "public static SingleObject getInstance(){\n\t\treturn instance;\n\t}", "public static Singleton getInstance(){\n if(instance == null)\n {\n synchronized (Singleton.class) {\n if (instance == null) {\n instance = new Singleton();\n Log.d(\"***\", \"made new Singleton\");\n }\n }\n }\n return instance;\n }", "@Override\n public T getInstance() {\n return instance;\n }", "public static AccountVerificationSingleton getInstance()\n {\n if (uniqueInstance == null)\n {\n uniqueInstance = new AccountVerificationSingleton();\n }\n \n return uniqueInstance;\n }", "public static synchronized ThreadSafeSingleton getInstance() {\n\t\tif (null == instance) {\n\t\t\tinstance = new ThreadSafeSingleton();\n\t\t}\n\n\t\treturn instance;\n\t}", "public static synchronized ThreadSafeSingleton getInstance() {\n\t\tif (instance == null) {\n\t\t\tinstance = new ThreadSafeSingleton();\n\t\t}\n\t\treturn instance;\n\t}", "public static ChatSingleton getInstance( ) {\n return singleton;\n }", "public static LazyInitializedSingleton getInstance(){ // method for create/return Object\n if(instance == null){//if instance null?\n instance = new LazyInitializedSingleton();//create new Object\n }\n return instance; // return early created object\n }", "public static synchronized MultiThreadedSingleton getInstance() {\n\t\t//Lazy instantiation using double locking mechanism.\n\t\tif (singleton == null) {\n\t\t\tsynchronized (MultiThreadedSingleton.class) {\n\t\t\t\tif (singleton == null) {\n\t\t\t\t\tsimulateRandomActivity();\n\t\t\t\t\tsingleton = new MultiThreadedSingleton();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tlogger.info(\"created singleton: \" + singleton);\n\t\treturn singleton;\n\t}", "public static SingletonEager get_instance(){\n }", "synchronized public static SampletypeManager getInstance()\n {\n return singleton;\n }", "public static CZSZApplication_bak getInstance() {\n return theSingletonInstance;\n }", "public static Replica1Singleton getInstance() {\r\n\t\tif (instance==null){\r\n\t\t/*System.err.println(\"Istanza creata\");*/\r\n\t\tinstance = new Replica1Singleton();\r\n\t\t}\r\n\t\treturn instance;\r\n\t\r\n\t}", "public static EagerInitializationSingleton getInstance() {\n\t\treturn INSTANCE;\n\t}", "public static Singleton getInstanceDC() {\n\t\tif (_instance == null) {\n\t\t\tsynchronized (Singleton.class) {\n\t\t\t\tif (_instance == null) {\n\t\t\t\t\t_instance = new Singleton();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn _instance;\n\t}", "public static J2_Singleton getInstance() {\n\t\tif(singletonInstance == null ) {\n\t\t\tsynchronized(J2_Singleton.class) {\n\t\t\t\tif(singletonInstance == null) {\n\t\t\t\t\tsingletonInstance = new J2_Singleton();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn singletonInstance;\n\t}", "public static SingletonDoubleCheck getInstance() {\n\t\tif (_instance == null) {\n\t\t\tsynchronized (SingletonDoubleCheck.class) {\n\t\t\t\tif (_instance == null) {\n\t\t\t\t\t_instance = new SingletonDoubleCheck();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn _instance;\n\t}", "T getInstance();", "public static RCProxy instance(){\n\t\treturn SingletonHolder.INSTANCE;\n\t}", "public SingletonSyncBlock getInstance() { // when getting a new instance, getInstance as synchronized method is\n\t\t\t\t\t\t\t\t\t\t\t\t// called\n\n\t\tif (SINGLETON_INSTANCE == null) { // if no Singleton was yet initialized, one instance will be created else,\n\t\t\t\t\t\t\t\t\t\t\t// it's returned the one already created.\n\n\t\t\tsynchronized (SingletonSyncBlock.class) { // synchronized block\n\n\t\t\t\tif (SINGLETON_INSTANCE == null) {\n\n\t\t\t\t\tSINGLETON_INSTANCE = new SingletonSyncBlock();\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\n\t\treturn SINGLETON_INSTANCE;\n\n\t}", "public static Boot getInstance()\n {\n return instance;\n }", "@Override\n\t\tpublic Object getInstance() {\n\t\t\treturn null;\n\t\t}", "public static HierarchyFactory getSingleton ()\n {\n return HierarchyFactorySingleton._singleton;\n }", "public static User getInstance(){\n if(singleton == null){\n singleton = new User();\n }\n return singleton;\n }", "public static OneByOneManager getInstance() {\n // The static instance of this class\n return INSTANCE;\n }", "public synchronized static SynchronizedMethodSingleton getInstance()\n\t{\n\t\tif ( instance == null )\n\t\t{\n\t\t\tinstance = new SynchronizedMethodSingleton();\n\t\t}\n\t\treturn instance;\n\t}", "public static ThreadSingleton getInstance() {\n if (instance == null) {\n synchronized(ThreadSingleton.class) {\n if (instance == null) {\n instance = new ThreadSingleton();\n }\n }\n }\n \n return instance;\n }", "public static OI getInstance() {\n\t\treturn INSTANCE;\n\t}", "public static SalesOrderDataSingleton getInstance()\n {\n // Return the instance\n return instance;\n }", "public static Manager getInstance() {\n if (instance == null) {\n instance = new Manager();\n }\n return instance;\n }", "public static UI getInstance() {\r\n if (singleton == null) {\r\n singleton = new UI();\r\n }\r\n return singleton;\r\n }", "public static synchronized Model getInstance() {\n if (instance == null) {\n instance = new Model();\n }\n return instance;\n }", "private static Injector instance() {\n if (instance == null) {\n instance = new Injector();\n }\n \n return instance;\n }", "public static LinkList instance() {\n\t\tif(singleton == null) \n\t\t\tsingleton = new LinkList();\n\t\t\t\t\n\t\t\n\t\treturn singleton;\n\t}", "public static Empty getInstance() {\n return instance;\n }", "synchronized public static InstitutionManager getInstance()\n {\n return singleton;\n }", "public static Controller getInstance() { return INSTANCE; }", "public static MetaDataManager getInstance() {\n return instance;\n }", "public static Resource getInstance() {\n if (singleInstance == null) {\n // lazy initialization of Resource class\n singleInstance = Resource.loadFromFile();\n }\n return singleInstance;\n }", "private Singleton(){}", "public DPSingletonLazyLoading getInstance(){ //not synchronize whole method. Instance oluşmuş olsa bile sürekli burada bekleme olur.\r\n\t\tif (instance == null){//check\r\n\t\t\tsynchronized(DPSingletonLazyLoading.class){ //critical section code NOT SYNCRONIZED(this) !!\r\n\t\t\t\tif (instance == null){ //double check\r\n\t\t\t\t\tinstance = new DPSingletonLazyLoading();//We are creating instance lazily at the time of the first request comes.\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn instance;\r\n\t}", "public static MainActivity instance() {\n Log.d(TAG, \" instance(): called\");\n return inst;\n }", "public static Settings get() {\n return INSTANCE;\n }", "public static DataManager getInstance() {\n return instance == null ? (instance = new DataManager()) : instance;\n }", "public static MarketDataManagerImpl getInstance()\n {\n return instance;\n }", "private Singleton() {\n if (instance != null){\n throw new RuntimeException(\"Use getInstance() to create Singleton\");\n }\n }", "public static synchronized LazyLoadingSingleton getInstanceSynchronized() {\n\t\tif (INSTANCE == null) {\n\t\t\tINSTANCE = new LazyLoadingSingleton();\n\t\t}\n\t\treturn INSTANCE;\n\t}", "public static Backend get() {\n\t\tif (Backend.singleton == null) {\n\t\t\tBackend.singleton = new Backend();\n\t\t}\n\n\t\treturn Backend.singleton;\n\t}", "private static Session getInstance() {\n return SingletonHolder.INSTANCE;\n }", "public static SingletonTextureFactory getInstance(){\n\t\treturn instance;\n\t}", "public static LazyLoadingSingleton getInstaceWithoutThreadSafty() {\n\t\tif (INSTANCE == null) {\n\t\t\tINSTANCE = new LazyLoadingSingleton();\n\t\t}\n\t\treturn INSTANCE;\n\t}", "public static TaskManager getInstance()\n {\n return gInstance;\n }", "public static MySingleTon getInstance(){\n if(myObj == null){\n myObj = new MySingleTon();\n }\n return myObj;\n }", "public static synchronized DemoApplication getInstance() {\n return mInstance;\n }", "public static Log getInstance() {\r\n if (firstInstance == null) {\r\n firstInstance = new Log();\r\n }\r\n return firstInstance;\r\n }", "public synchronized static RecordManager instance() {\n\t\tif (s_Instance == null) s_Instance = new RecordManager();\n\t\treturn s_Instance;\n\t}", "public static DAOFactory getInstance() {\r\n return instance;\r\n }", "public static ServerModel getInstance() {\n if (SINGLETON == null) {\n SINGLETON = new ServerModel();\n }\n return SINGLETON;\n }", "public static AppClient getInstance() {\n return instance;\n }", "public static FixtureCache getInstance() {\n\t\tif(instance==null) {\n\t\t\tsynchronized(lock) {\n\t\t\t\tif(instance==null) {\n\t\t\t\t\tinstance = new FixtureCache();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn instance;\n\t}", "public static ModuleMapper getInstance() {\n return singleton;\n }", "public static DataStore getInstance() {\n if (ourInstance == null) {\n ourInstance = new DataStore();\n }\n return ourInstance;\n }", "synchronized public static PreferenceManager getInstance()\n {\n return singleton;\n }", "public static UserManagerImpl getInstance()\r\n\t{\r\n\t\treturn singleton;\r\n\t}", "public static DotPrinter getInstance() {\n\t\t// needed because once there is singleton available no need to acquire\n\t\t// monitor again & again as it is costly\n\t\tif (instance == null) {\n\t\t\tsynchronized (DotPrinter.class) {\n\t\t\t\t// this is needed if two threads are waiting at the monitor at\n\t\t\t\t// the\n\t\t\t\t// time when singleton was getting instantiated\n\t\t\t\tif (instance == null) {\n\t\t\t\t\tinstance = new DotPrinter();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn instance;\n\t}", "public static Boolean getSingleton() {\r\n\t\treturn singleton;\r\n\t}", "public static UrlDAO instance() {\n\n if (instance == null) {\n synchronized(UrlDAO.class) {\n if (instance == null)\n instance = new UrlDAO();\n }\n }\n return instance;\n }", "public static synchronized DataInterface getSingletonInstance() {\n\t\tif (null == dataInstance) {\n\t\t\tsynchronized (DataInterface.class){\n\t\t\t\t\tif (null == dataInstance) {\n\t\t\t\t\t\tdataInstance = new DataInterface();\n\t\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn dataInstance;\n\t}", "public static LOCFacade getInstance() {\r\n\t\tcreateInstance();\r\n\t\treturn instance;\r\n\t}", "public static DataStore getInstance() {\n if (instance == null) {\n synchronized (mutex) {\n if (instance == null)\n instance = new DataStore();\n }\n }\n return instance;\n }", "public static METSNamespace getInstance() {\n return ONLY_INSTANCE;\n }", "public static App getInstance() {\n return applicationInstance;\n }" ]
[ "0.8822471", "0.87570286", "0.84804916", "0.8441053", "0.8359148", "0.83195096", "0.8303231", "0.8235651", "0.8220296", "0.8217972", "0.81511813", "0.81132245", "0.80848545", "0.8077749", "0.8023748", "0.8014843", "0.8010512", "0.7973557", "0.7972792", "0.79717726", "0.79572606", "0.7955434", "0.79511905", "0.7929343", "0.7890712", "0.7858661", "0.7848892", "0.78476757", "0.7795151", "0.77793014", "0.77315426", "0.7708577", "0.76069254", "0.7557677", "0.7550491", "0.7500901", "0.7498747", "0.74956906", "0.74755037", "0.7465775", "0.74608594", "0.74201584", "0.74069446", "0.74067205", "0.7403718", "0.73869324", "0.7349715", "0.73489463", "0.73402613", "0.73265666", "0.7308979", "0.73048437", "0.72843975", "0.72767043", "0.7260182", "0.723668", "0.7223381", "0.7218589", "0.7216977", "0.7211653", "0.7207643", "0.72005045", "0.7197191", "0.71960574", "0.71958774", "0.7190917", "0.7171052", "0.7169909", "0.7169661", "0.7168271", "0.7164043", "0.7155242", "0.7151942", "0.7144548", "0.7142621", "0.7142252", "0.71313965", "0.71287817", "0.7120874", "0.7120592", "0.7118581", "0.71090925", "0.7107998", "0.7106754", "0.71020263", "0.70989174", "0.7096093", "0.70948803", "0.70941496", "0.7092612", "0.708788", "0.7085289", "0.7076717", "0.70727277", "0.7068275", "0.7066157", "0.70650876", "0.7063041", "0.70495915", "0.7046197", "0.7041111" ]
0.0
-1
Creates a new connector task.
public ConnectorTask(Component aComponent, List<String> someAccumulatorNames){ component = aComponent; accumulatorNames = someAccumulatorNames; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public CreateWirelessGatewayTaskResult createWirelessGatewayTask(CreateWirelessGatewayTaskRequest request) {\n request = beforeClientExecution(request);\n return executeCreateWirelessGatewayTask(request);\n }", "Task createTask();", "Task createTask();", "Task createTask();", "public abstract AbstractTask createTask(String repositoryUrl, String id, String summary);", "@Override\n public CreateWirelessGatewayTaskDefinitionResult createWirelessGatewayTaskDefinition(CreateWirelessGatewayTaskDefinitionRequest request) {\n request = beforeClientExecution(request);\n return executeCreateWirelessGatewayTaskDefinition(request);\n }", "protected abstract void createTasks();", "public void createTask(Task task) {\n ContentValues values = new ContentValues();\n values.put(SQLiteHelper.COLUMN_NAME, task.getName());\n database.insert(SQLiteHelper.TABLE_TASKS, null, values);\n }", "public Task makeTask() {\n Task new_task = new Task();\n new_task.setAction(this);\n new_task.setDeadline(\n new Date(System.currentTimeMillis() + deadlineSeconds() * 1000L));\n\n return new_task;\n }", "private Task createTask(StressTest test)\n\t{\n\t\treturn new ClientServerTask(test);\n\t}", "public Task createTask(String taskType) throws BuildException {\n return ComponentHelper.getComponentHelper(this).createTask(taskType);\n }", "@Override\n public CreateFuotaTaskResult createFuotaTask(CreateFuotaTaskRequest request) {\n request = beforeClientExecution(request);\n return executeCreateFuotaTask(request);\n }", "public void createTask() {\n \tSystem.out.println(\"Inside createTask()\");\n \tTask task = Helper.inputTask(\"Please enter task details\");\n \t\n \ttoDoList.add(task);\n \tSystem.out.println(toDoList);\n }", "public String createTaskDefinition(TaskDefinition tasDef) throws DaoRepositoryException;", "@POST\n @Consumes(MediaType.APPLICATION_JSON)\n @Produces(MediaType.APPLICATION_JSON)\n @RolesAllowed({\"admin\"})\n public Task create(Task task, @Context UriInfo uriInfo) {\n Long projectId = (uriInfo.getPathSegments().size() != 1?\n Long.valueOf(uriInfo.getPathSegments().get(1).getPath())\n :null);\n\n if (projectId != null) {\n Project proj = em.find(Project.class, projectId);\n\n if (proj == null) {\n throw new InvalidParentException(String.format(\"Project with ID %s not found for this task\", projectId));\n }\n\n task.setProject(proj);\n }\n\n em.persist(task);\n\n return task;\n }", "public Task() {\n\t}", "protected Task<Void> createTask() {\n\n\t\t\treturn new Task<Void>() {\n\n\t\t\t\tprotected Void call() {\n\t\t\t\t\t_button.setDisable(true);\n\t\t\t\t\tTaskScheduler.executeAlgorithm(_digraph);\n\n\t\t\t\t\treturn null;\n\n\n\t\t\t\t}\n\t\t\t};\n\t\t}", "@Override\n\tpublic void addTask(Teatask ta)\n\t{\n\t\tteataskMapper.addTask(ta);\n\t}", "public void addNewTask(String taskName) {\n\t\tCommand cmdAdd = new CmdAdd();\n\t\tcmdAdd.setParameter(CmdParameters.PARAM_NAME_TASK_NAME, taskName);\n\t\tcmdAdd.execute();\n\t}", "public static BucketbotTask createTaskCANCEL() {\r\n\t\tBucketbotTask t = new BucketbotTask();\r\n\t\tt.taskType = TaskType.CANCEL;\r\n\t\treturn t;\r\n\t}", "public void newTask() {\r\n\r\n todoTaskGui(\"Create\", null);\r\n }", "private Task makeTask(String taskType, Optional<String> taskDescription, \r\n Optional<LocalDateTime> taskDeadline, \r\n Optional<LocalDateTime> taskStartDateTime,\r\n Optional<LocalDateTime> taskEndDateTime) {\r\n \r\n Task task;\r\n \r\n if (taskDescription.get().isBlank()) {\r\n throw new InvalidTaskArgumentException(\r\n MESSAGE_ADD_COMMAND_INVALID_TASK_DESCRIPTION);\r\n }\r\n \r\n switch(taskType) {\r\n case \"todo\": \r\n task = new ToDos(TaskList.taskIdCounter, taskDescription.get());\r\n break;\r\n case \"deadline\":\r\n if (taskDeadline.isEmpty()) {\r\n throw new InvalidTaskArgumentException(\r\n MESSAGE_ADD_COMMAND_INVALID_TASK_REQUIREMENT_DEADLINES);\r\n }\r\n \r\n task = new Deadlines(TaskList.taskIdCounter, taskDescription.get(), \r\n taskDeadline.get()); \r\n break;\r\n case \"event\":\r\n if (taskStartDateTime.isEmpty() || taskEndDateTime.isEmpty()) {\r\n throw new InvalidTaskArgumentException(\r\n MESSAGE_ADD_COMMAND_INVALID_TASK_REQUIREMENT_EVENTS);\r\n }\r\n task = new Events(TaskList.taskIdCounter, taskDescription.get(), \r\n taskStartDateTime.get(), taskEndDateTime.get());\r\n break;\r\n default:\r\n throw new InvalidTaskArgumentException(MESSAGE_INVALID_TASK_TYPE);\r\n }\r\n return task;\r\n }", "private void newTask()\n {\n \t//TODO add alarm\n \tTask task = new Task(taskName.getText().toString(), taskDetails.getText().toString());\n \tdb.createTask(task);\n \t//TODO Tie notification to an alarm\n \t//Create notification\n \tIntent notifyIntent = new Intent(this, TaskNotification.class);\n \tnotifyIntent.putExtra(\"title\", task.name); //add title name\n \tnotifyIntent.putExtra(\"id\", (int) task.id); //add id\n \tstartActivity(notifyIntent); //create the intent\n \t\n \trefreshData();\n }", "public Task() {\r\n }", "private ITaskCluster createTaskCluster(ITaskObject... taskObjects) {\n ITaskCluster taskCluster = getTaskManagerConfiguration().getTaskFactory().newTaskCluster();\n taskCluster = getTaskManagerConfiguration().getTaskManagerWriter().saveNewTaskCluster(taskCluster);\n\n return createTaskGraphForTaskCluster(taskCluster, taskObjects);\n }", "public Task() { }", "public Task(){}", "public static Object createTaskObject(){\n try {\n\n return taskModel.make()\n .load(ClassLoader.getSystemClassLoader(), ClassLoadingStrategy.Default.WRAPPER)\n .getLoaded()\n .newInstance();\n\n\n } catch (InstantiationException e) {\n e.printStackTrace();\n } catch (IllegalAccessException e) {\n e.printStackTrace();\n }\n\n return null;\n }", "public AddCommand(Task task){\r\n this.task = task;\r\n }", "public Task() {\n }", "public Task createTask(final String description) {\n final Task t = new Task(taskid, description, this);\n taskid++;\n tasks.put(t.getId(), t);\n\n return t;\n }", "public Task(String url) {\n this.url = url;\n logger.debug(\"Created task for \" + url);\n }", "public Tasks() {\n }", "org.oasis_open.docs.ns.bpel4people.ws_humantask.types._200803.TTaskAbstract addNewTaskAbstract();", "TaskFactory getTaskFactory();", "public void createNewTask(View view) {\n try{\n newTaskLayout.checkTaskLayoutIsValid();\n ImageView taskImage = (ImageView) findViewById(R.id.imageViewBoard);\n String layoutImagePath = takeScreenshot(taskImage);\n newTaskLayout.setImagePath(layoutImagePath);\n\n // save new task\n HashMap<String, Integer> instructions = convertSpinnersToHashMap();\n Task newTask = new Task(newTaskLayout, instructions);\n Task.saveTask(getApplicationContext(), newTask);\n\n // alert user task created and return to task menu.\n Toast.makeText(this, \"new task created\", Toast.LENGTH_LONG).show();\n startActivity(new Intent(getApplicationContext(), TaskOptionsActivity.class));\n } catch (TaskLayoutException | InstructionsRequiredException e) {\n // layout was not valid on insufficient instructions set.\n makeMessageDialogue(e.getMessage());\n }\n }", "public Task(String creator) {\r\n \t\tthis(creator, \"Untitled\", \"\", true, false);\r\n \t}", "@Test\n\tpublic static void create_Task() {\n\t\tString testName = \"Valid Scenario- When all the data are valid\";\n\t\tlog.info(\"Valid Scenario: Create Task\");\n\t\t// report generation start\n\t\textentTest = extent.startTest(\"Task Controller- Create Task\");\n\n\t\tResponse response = HttpOperation\n\t\t\t\t.createAuthToken(PayLoads.createAuthToken_Payload(extentTest, auth_sheetName, auth_valid_testName));\n\t\tString authToken = ReusableMethods.Auth(extentTest, response);\n\n\t\t// response for login the user\n\t\tresponse = HttpOperation.loginUser(authToken, PayLoads.create_user_Payload(user_sheet, testName));\n\t\tlog.info(\"Response received for login\");\n\t\textentTest.log(LogStatus.INFO, \"Response received for login:- \" + response.asString());\n\n\t\t// get the User Token\n\t\tJsonPath jp = ReusableMethods.rawToJson(response);\n\t\tuserToken = jp.get(\"jwt\");\n\t\tlog.info(\"Received User Token:- \" + userToken);\n\t\textentTest.log(LogStatus.INFO, \"User Token:- \" + userToken);\n\n\t\t// Creating the Task response\n\t\tresponse = HttpOperation.create_Task(userToken, PayLoads.create_task_Payload(sheetName, testName));\n\n\t\tlog.info(\"Response received to create the task\");\n\t\textentTest.log(LogStatus.INFO, \"Response received to create the task:- \" + response.asString());\n\n\t\t// Assertion\n\n\t\tAssert.assertEquals(response.getStatusCode(), 201);\n\t\tlog.info(\"Assertion Passed!!\");\n\t\textentTest.log(LogStatus.INFO, \"HTTP Status Code:- \" + response.getStatusCode());\n\n\t}", "@RequestMapping(value = \"/tasks\",\n method = RequestMethod.POST,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<TaskDTO> createTask(@Valid @RequestBody TaskDTO taskDTO) throws URISyntaxException {\n log.debug(\"REST request to save Task : {}\", taskDTO);\n if (taskDTO.getId() != null) {\n return ResponseEntity.badRequest().headers(HeaderUtil.createFailureAlert(\"task\", \"idexists\", \"A new task cannot already have an ID\")).body(null);\n }\n TaskDTO result = taskService.save(taskDTO);\n return ResponseEntity.created(new URI(\"/api/tasks/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(\"task\", result.getId().toString()))\n .body(result);\n }", "private int createTask() {\n Calendar cal = Calendar.getInstance();\n String taskName = \"Task-\" + cal.getTimeInMillis();\n\n return TaskServiceClient.createTask(\n projObjKey, // projObjKey-新建立工作項目所在的專案key值\n parentObjKey, // parentObjKey-新建立工作項目所屬的子專案/專案key值\n \"工作敘述永不變\", // taskDesc-工作Memo區,\n 100, // taskOwnerKey-工作項目負責人, 填入使用者Key值 ,\n 0, // udaSet-在何組工作之下\n 0, // sdaSet-套用哪一組預設欄位,填0即可\n \"\", // sda0-系統預設欄位\n \"\", // sda1-系統預設欄位\n \"\", // sda2-系統預設欄位\n \"\", // sda3-系統預設欄位\n \"\", // sda4-系統預設欄位\n \"\", // sda5-系統預設欄位\n \"\", // sda6-系統預設欄位\n \"\", // sda7-系統預設欄位\n \"\", // sda8-系統預設欄位\n taskName, // sda9-系統預設欄位\n \"\", // sda10-系統預設欄位\n \"\", // sda11-系統預設欄位\n \"\", // sda12-系統預設欄位\n \"\", // sda13-系統預設欄位\n \"\", // sda14-系統預設欄位\n \"\", // sda15-系統預設欄位\n \"\", // sda16-系統預設欄位\n \"\", // sda17-系統預設欄位\n \"\", // sda18-系統預設欄位\n \"\", // sda19-系統預設欄位\n \"\", // uda0-自定欄位\n \"\", // uda1-自定欄位\n \"\", // uda2-自定欄位\n \"\", // uda3-自定欄位\n \"\", // uda4-自定欄位\n \"\", // uda5-自定欄位\n \"\", // uda6-自定欄位\n \"\", // uda7-自定欄位\n \"\", // uda8-自定欄位\n \"\", // uda9-自定欄位\n \"\", // uda10-自定欄位\n \"\", // uda11-自定欄位\n \"\", // uda12-自定欄位\n \"\", // uda13-自定欄位\n \"\", // uda14-自定欄位\n \"\", // uda15-自定欄位\n \"\", // uda16-自定欄位\n \"\", // uda17-自定欄位\n \"\", // uda18-自定欄位\n \"\", // uda19-自定欄位\n \"\", // uda60-自定欄位\n \"\", // uda61-自定欄位\n \"\", // uda62-自定欄位\n \"\", // uda63-自定欄位\n \"\", // uda64-自定欄位\n \"\", // uda65-自定欄位\n \"\", // uda66-自定欄位\n \"\", // uda67-自定欄位\n \"\", // uda68-自定欄位\n \"\", // uda69-自定欄位\n \"\", // uda70-自定欄位\n \"\", // uda71-自定欄位\n \"\", // uda72-自定欄位\n \"\", // uda73-自定欄位\n \"\", // uda74-自定欄位\n \"\", // uda75-自定欄位\n \"\", // uda76-自定欄位\n \"\", // uda77-自定欄位\n \"\", // uda78-自定欄位\n \"\", // uda79-自定欄位\n \"\", // accessList-存取成員,(userID,userID,userID)\n \"\", // userGroupAccessList-存取群組, (群組ID,群組ID)\n \"\", // subTeamAccessList-存取子團隊,(subTeamObjKey,subTeamObjKey)\n \"N\", // isMilestoneFlag-里程碑 (Y/N)\n 999999, // seqNO-序列編號\n \"admin\" // userID-建立者ID\n );\n }", "public void addTask(Task task) {\n\t\tMessage msg=new Message(null, null, task);\n\t\ttry {\n\t\t\tchannel.send(msg);\n\t\t}\n\t\tcatch (Exception ex) {\n\t\t\t//Runtime exception with info for use in debugging\n\t\t\tthrow new RuntimeException(ex.getMessage());\n\t\t}\n\t}", "public static CrmTask createEntity(EntityManager em) {\n CrmTask crmTask = new CrmTask()\n .subject(DEFAULT_SUBJECT)\n .activityDate(DEFAULT_ACTIVITY_DATE)\n .activityLength(DEFAULT_ACTIVITY_LENGTH)\n .comment(DEFAULT_COMMENT);\n return crmTask;\n }", "public AbstractTask createTaskFromExistingId(TaskRepository repository, String id, IProgressMonitor monitor)\n \t\t\tthrows CoreException {\n \t\treturn createTaskFromExistingId(repository, id, true, monitor);\n \t}", "public static Task create(long taskId) {\n\t\treturn getPersistence().create(taskId);\n\t}", "public SftpDownloadTask() {\n\n\t}", "@Override\n\tpublic ITaskInstance createTaskInstance(WorkflowSession workflowSession,\n\t\t\tRuntimeContext rtCtx, IToken token,\n\t\t\tIProcessInstance processInstance, Task task, Activity activity) {\n\t\treturn null;\n\t}", "void addTask(Task task);", "public Task(Task source) {\n if (source.Application != null) {\n this.Application = new Application(source.Application);\n }\n if (source.TaskName != null) {\n this.TaskName = new String(source.TaskName);\n }\n if (source.TaskInstanceNum != null) {\n this.TaskInstanceNum = new Long(source.TaskInstanceNum);\n }\n if (source.ComputeEnv != null) {\n this.ComputeEnv = new AnonymousComputeEnv(source.ComputeEnv);\n }\n if (source.EnvId != null) {\n this.EnvId = new String(source.EnvId);\n }\n if (source.RedirectInfo != null) {\n this.RedirectInfo = new RedirectInfo(source.RedirectInfo);\n }\n if (source.RedirectLocalInfo != null) {\n this.RedirectLocalInfo = new RedirectLocalInfo(source.RedirectLocalInfo);\n }\n if (source.InputMappings != null) {\n this.InputMappings = new InputMapping[source.InputMappings.length];\n for (int i = 0; i < source.InputMappings.length; i++) {\n this.InputMappings[i] = new InputMapping(source.InputMappings[i]);\n }\n }\n if (source.OutputMappings != null) {\n this.OutputMappings = new OutputMapping[source.OutputMappings.length];\n for (int i = 0; i < source.OutputMappings.length; i++) {\n this.OutputMappings[i] = new OutputMapping(source.OutputMappings[i]);\n }\n }\n if (source.OutputMappingConfigs != null) {\n this.OutputMappingConfigs = new OutputMappingConfig[source.OutputMappingConfigs.length];\n for (int i = 0; i < source.OutputMappingConfigs.length; i++) {\n this.OutputMappingConfigs[i] = new OutputMappingConfig(source.OutputMappingConfigs[i]);\n }\n }\n if (source.EnvVars != null) {\n this.EnvVars = new EnvVar[source.EnvVars.length];\n for (int i = 0; i < source.EnvVars.length; i++) {\n this.EnvVars[i] = new EnvVar(source.EnvVars[i]);\n }\n }\n if (source.Authentications != null) {\n this.Authentications = new Authentication[source.Authentications.length];\n for (int i = 0; i < source.Authentications.length; i++) {\n this.Authentications[i] = new Authentication(source.Authentications[i]);\n }\n }\n if (source.FailedAction != null) {\n this.FailedAction = new String(source.FailedAction);\n }\n if (source.MaxRetryCount != null) {\n this.MaxRetryCount = new Long(source.MaxRetryCount);\n }\n if (source.Timeout != null) {\n this.Timeout = new Long(source.Timeout);\n }\n if (source.MaxConcurrentNum != null) {\n this.MaxConcurrentNum = new Long(source.MaxConcurrentNum);\n }\n if (source.RestartComputeNode != null) {\n this.RestartComputeNode = new Boolean(source.RestartComputeNode);\n }\n if (source.ResourceMaxRetryCount != null) {\n this.ResourceMaxRetryCount = new Long(source.ResourceMaxRetryCount);\n }\n }", "private <E, F extends ITaskObject> IStatusTask createInitTask(F taskObject) {\n ITaskObjectManager<E, F> taskObjectManager = getTaskManagerConfiguration().getTaskObjectManagerRegistry().getTaskObjectManager(taskObject);\n Class<F> taskObjectClass = taskObjectManager.getTaskObjectClass();\n\n E currentStatus = taskObjectManager.getInitialStatus(taskObject);\n\n // Create a first task, it does nothing\n return getTaskManagerConfiguration().getTaskFactory().newStatusTask(null, taskObjectClass, currentStatus);\n }", "TaskDependency createTaskDependency();", "public ServiceTask() {\n\t}", "public void addTask(Task task) {\n\t\tSystem.out.println(\"Inside createTask()\");\n\t\t\n\t\ttoDoList.add(task);\n\t\tdisplay();\n\t}", "public AddTasks() {\n }", "public Task(Task T){\n\n\t\tcmd = T.cmd;\n\t\ttasknum = T.tasknum;\n\t\tterminated = T.terminated;\n\t\tcycle_term = T.cycle_term;\n\t\taborted = T.aborted;\n\t\twaiting = T.waiting;\n\t\ttime_wait = T.time_wait;\n\t\trunning = T.running;\n\n\t\tfor (int i = 0; i < T.actions.size(); i++){\n\n\t\t\tactions.add(T.actions.get(i));\n\t\t\tres_needed.add(T.res_needed.get(i));\n\t\t\treq_num.add(T.req_num.get(i));\n\t\t}\n\n\t\tfor(int i = 0; i < T.claims.size(); i++){\n\n\t\t\tclaims.add(T.claims.get(i));\n\t\t\tallocation.add(T.allocation.get(i));\n\t\t}\n\n\t}", "String addTask(Task task);", "public void setupTask(TaskAttemptContext context) throws IOException {\n }", "public Task(){\n super();\n }", "public Task(String taskDescription) {\n this.taskDescription = taskDescription;\n this.isDone = false;\n }", "public AddCommand(String taskType, Optional<String> taskDescription, \r\n Optional<LocalDateTime> taskStartDateTime,\r\n Optional<LocalDateTime> taskEndDateTime) {\r\n \r\n this.taskType = taskType;\r\n this.taskDescription = taskDescription;\r\n this.taskDeadline = Optional.empty();\r\n this.taskStartDateTime = taskStartDateTime;\r\n this.taskEndDateTime = taskEndDateTime;\r\n this.task = makeTask(taskType, taskDescription, taskDeadline, \r\n taskStartDateTime, taskEndDateTime); \r\n }", "public AddTopicTask(\n// Context context, ContentResolver cr,\n// Uri uriFile, String comment, String eventId, String topicId,\n Topic topic,\n TaskCallBack cb){\n\n// this.context = context;\n// this.socoApp = (SocoApp) context;\n// this.requestURL = UrlUtil.getTopicUrl();\n\n// this.cr = cr;\n// this.uriFile = uriFile;\n// this.comment = comment;\n// this.eventId = eventId;\n// this.topicId = topicId;\n// this.topicTitle = topicTitle;\n// this.topicDesc = topicDesc;\n this.topic = topic;\n this.callback = cb;\n }", "protected TaskFlow( ) { }", "@Override\n\tpublic void addTask(Task task) {\n\t\t\n\t}", "@Nullable\n @Override\n public MakeBeforeRunTask createTask(RunConfiguration runConfiguration) {\n if (AndroidStudioSpecificInitializer.isAndroidStudio() && runConfiguration instanceof AndroidRunConfigurationBase) {\n return new MakeBeforeRunTask();\n } else {\n return null;\n }\n }", "public Task getCreationTask() throws ProcessManagerException {\r\n try {\r\n Task creationTask = Workflow.getTaskManager().getCreationTask(\r\n currentUser, currentRole, processModel);\r\n \r\n return creationTask;\r\n } catch (WorkflowException e) {\r\n throw new ProcessManagerException(\"SessionController\",\r\n \"processManager.CREATION_TASK_UNAVAILABLE\", e);\r\n }\r\n }", "private void saveNewTask(int taskId, int catId) {\n Task task = new Task();\n task.setCategoryId(catId);\n task.setTaskId(taskId);\n task.setTaskContent(mTaskContent.getText().toString());\n task.setDueDate(dueDate);\n if (setReminder)\n task.setReminder(1);\n else\n task.setReminder(0);\n task.setStatus(0);\n task.setTaskTitle(mTaskTile.getText().toString());\n task.save();\n if (setReminder)\n setAlarm(task);\n }", "protected void setupTask(Task task) {\n }", "@Override\n public String createTask(String name, String[] taskTypeNames, HashMap inputParameter,\n HashMap outputParameter, String title, String subject, String description, String priority) {\n ITaskInstance task = null;\n JSONObject response = new JSONObject();\n // Check if taskType is there\n if (taskTypeNames == null) {\n return \"taskType\";\n }\n // Create taskInstance\n try {\n task = dataAccessTosca.createTask(name, title, subject, description, priority, taskTypeNames);\n if (task == null) {\n return \"taken\";\n }\n response.put(\"id\", task.getId());\n\n // map task to task type\n /* for (int i = 0; i < taskTypeNames.length; i++) {\n dataAccessTosca.addTaskToTaskType(task.getId(), taskTypeNames[i]);\n }*/\n // insert inputParameters, if not null\n if (inputParameter != null) {\n Set<String> entries = inputParameter.keySet();\n for (String entry: entries) {\n boolean insert = false;\n try {\n insert = dataAccessTosca.createInputParameter(entry, (String) inputParameter.get(entry), task.getId());\n } catch (DatabaseException e) {\n e.printStackTrace();\n }\n if (!insert) {\n return null;\n }\n }\n }\n // insert outputParameters, if not null\n if (outputParameter != null) {\n Set<String> entries = outputParameter.keySet();\n for (String entry: entries) {\n boolean insert = false;\n try {\n insert = dataAccessTosca.createOutputParameter(entry, (String) outputParameter.get(entry), task.getId());\n } catch (DatabaseException e) {\n e.printStackTrace();\n }\n if (!insert) {\n return null;\n }\n }\n }\n } catch (DatabaseException e) {\n e.printStackTrace();\n\n\n }\n\n return response.toString();\n }", "@Override\n public ExecutionPlan build(Config cfg, DataFlowTaskGraph taskGraph,\n TaskSchedulePlan taskSchedule) {\n TaskPlan taskPlan =\n TaskPlanBuilder.build(workerId, workerInfoList, taskSchedule, taskIdGenerator);\n ParallelOperationFactory opFactory = new ParallelOperationFactory(\n cfg, network, taskPlan, edgeGenerator);\n\n Map<Integer, ContainerPlan> containersMap = taskSchedule.getContainersMap();\n ContainerPlan conPlan = containersMap.get(workerId);\n if (conPlan == null) {\n LOG.log(Level.INFO, \"Cannot find worker in the task plan: \" + workerId);\n return null;\n }\n\n ExecutionPlan execution = new ExecutionPlan();\n\n Set<TaskInstancePlan> instancePlan = conPlan.getTaskInstances();\n // for each task we are going to create the communications\n for (TaskInstancePlan ip : instancePlan) {\n Vertex v = taskGraph.vertex(ip.getTaskName());\n Map<String, String> inEdges = new HashMap<>();\n Map<String, String> outEdges = new HashMap<>();\n if (v == null) {\n throw new RuntimeException(\"Non-existing task scheduled: \" + ip.getTaskName());\n }\n\n INode node = v.getTask();\n if (node instanceof ICompute || node instanceof ISource) {\n // lets get the communication\n Set<Edge> edges = taskGraph.outEdges(v);\n // now lets create the communication object\n for (Edge e : edges) {\n Vertex child = taskGraph.childOfTask(v, e.getName());\n // lets figure out the parents task id\n Set<Integer> srcTasks = taskIdGenerator.getTaskIds(v.getName(),\n ip.getTaskId(), taskGraph);\n Set<Integer> tarTasks = taskIdGenerator.getTaskIds(child.getName(),\n getTaskIdOfTask(child.getName(), taskSchedule), taskGraph);\n\n if (!parOpTable.contains(v.getName(), e.getName())) {\n parOpTable.put(v.getName(), e.getName(),\n new Communication(e, v.getName(), child.getName(), srcTasks, tarTasks));\n }\n outEdges.put(e.getName(), child.getName());\n }\n }\n\n if (node instanceof ICompute || node instanceof ISink) {\n // lets get the parent tasks\n Set<Edge> parentEdges = taskGraph.inEdges(v);\n for (Edge e : parentEdges) {\n Vertex parent = taskGraph.getParentOfTask(v, e.getName());\n // lets figure out the parents task id\n Set<Integer> srcTasks = taskIdGenerator.getTaskIds(parent.getName(),\n getTaskIdOfTask(parent.getName(), taskSchedule), taskGraph);\n Set<Integer> tarTasks = taskIdGenerator.getTaskIds(v.getName(),\n ip.getTaskId(), taskGraph);\n\n if (!parOpTable.contains(parent.getName(), e.getName())) {\n parOpTable.put(parent.getName(), e.getName(),\n new Communication(e, parent.getName(), v.getName(), srcTasks, tarTasks));\n }\n inEdges.put(e.getName(), parent.getName());\n }\n }\n\n // lets create the instance\n INodeInstance iNodeInstance = createInstances(cfg, ip, v, taskGraph.getOperationMode(),\n inEdges, outEdges, taskSchedule);\n // add to execution\n execution.addNodes(v.getName(), taskIdGenerator.generateGlobalTaskId(\n v.getName(), ip.getTaskId(), ip.getTaskIndex()), iNodeInstance);\n }\n\n // now lets create the queues and start the execution\n for (Table.Cell<String, String, Communication> cell : parOpTable.cellSet()) {\n Communication c = cell.getValue();\n\n // lets create the communication\n OperationMode operationMode = taskGraph.getOperationMode();\n IParallelOperation op = opFactory.build(c.getEdge(), c.getSourceTasks(), c.getTargetTasks(),\n operationMode);\n // now lets check the sources and targets that are in this executor\n Set<Integer> sourcesOfThisWorker = intersectionOfTasks(conPlan, c.getSourceTasks());\n Set<Integer> targetsOfThisWorker = intersectionOfTasks(conPlan, c.getTargetTasks());\n\n // set the parallel operation to the instance\n //let's separate the execution instance generation based on the Operation Mode\n if (operationMode == OperationMode.STREAMING) {\n for (Integer i : sourcesOfThisWorker) {\n if (streamingTaskInstances.contains(c.getSourceTask(), i)) {\n TaskStreamingInstance taskStreamingInstance\n = streamingTaskInstances.get(c.getSourceTask(), i);\n taskStreamingInstance.registerOutParallelOperation(c.getEdge().getName(), op);\n } else if (streamingSourceInstances.contains(c.getSourceTask(), i)) {\n SourceStreamingInstance sourceStreamingInstance\n = streamingSourceInstances.get(c.getSourceTask(), i);\n sourceStreamingInstance.registerOutParallelOperation(c.getEdge().getName(), op);\n } else {\n throw new RuntimeException(\"Not found: \" + c.getSourceTask());\n }\n }\n\n for (Integer i : targetsOfThisWorker) {\n if (streamingTaskInstances.contains(c.getTargetTask(), i)) {\n TaskStreamingInstance taskStreamingInstance\n = streamingTaskInstances.get(c.getTargetTask(), i);\n op.register(i, taskStreamingInstance.getInQueue());\n taskStreamingInstance.registerInParallelOperation(c.getEdge().getName(), op);\n } else if (streamingSinkInstances.contains(c.getTargetTask(), i)) {\n SinkStreamingInstance streamingSinkInstance\n = streamingSinkInstances.get(c.getTargetTask(), i);\n streamingSinkInstance.registerInParallelOperation(c.getEdge().getName(), op);\n op.register(i, streamingSinkInstance.getstreamingInQueue());\n } else {\n throw new RuntimeException(\"Not found: \" + c.getTargetTask());\n }\n }\n execution.addOps(op);\n }\n\n if (operationMode == OperationMode.BATCH) {\n for (Integer i : sourcesOfThisWorker) {\n if (batchTaskInstances.contains(c.getSourceTask(), i)) {\n TaskBatchInstance taskBatchInstance = batchTaskInstances.get(c.getSourceTask(), i);\n taskBatchInstance.registerOutParallelOperation(c.getEdge().getName(), op);\n } else if (batchSourceInstances.contains(c.getSourceTask(), i)) {\n SourceBatchInstance sourceBatchInstance\n = batchSourceInstances.get(c.getSourceTask(), i);\n sourceBatchInstance.registerOutParallelOperation(c.getEdge().getName(), op);\n } else {\n throw new RuntimeException(\"Not found: \" + c.getSourceTask());\n }\n }\n\n for (Integer i : targetsOfThisWorker) {\n if (batchTaskInstances.contains(c.getTargetTask(), i)) {\n TaskBatchInstance taskBatchInstance = batchTaskInstances.get(c.getTargetTask(), i);\n op.register(i, taskBatchInstance.getInQueue());\n taskBatchInstance.registerInParallelOperation(c.getEdge().getName(), op);\n } else if (batchSinkInstances.contains(c.getTargetTask(), i)) {\n SinkBatchInstance sinkBatchInstance = batchSinkInstances.get(c.getTargetTask(), i);\n sinkBatchInstance.registerInParallelOperation(c.getEdge().getName(), op);\n op.register(i, sinkBatchInstance.getBatchInQueue());\n } else {\n throw new RuntimeException(\"Not found: \" + c.getTargetTask());\n }\n }\n execution.addOps(op);\n }\n }\n return execution;\n }", "public <T> Task<Response<T>> createTask(final Request<T> request, final RequestContext requestContext) {\n return createTask(generateTaskName(request), request, requestContext);\n }", "private static Task convertITaskToTask(ITask iTask) {\r\n Task task = new Task();\r\n task.setId(iTask.getId());\r\n task.setCaseId(iTask.getCase().getId());\r\n task.setDescription(iTask.getDescription());\r\n task.setCaseDescription(iTask.getCase().getDescription());\r\n task.setCreatedOn(iTask.getStartTimestamp());\r\n task.setState(iTask.getState().toString());\r\n task.setActivator(iTask.getActivator());\r\n task.setIvyTask(iTask);\r\n return task;\r\n }", "@Override\n\tpublic Task constructInstance(Robot robot) {\n\t\treturn null;\n\t}", "int createParentTask();", "public JBombardierAntTask(Task owner) {\r\n bindToOwner(owner);\r\n }", "public Task(String description) {\n this.description = description;\n this.isDone = false;\n this.taskType = \"\";\n }", "public Task createTask(long userId, String description, String groupId, String dueTimeStr, int priority, String labels, \n\t\t\tString parentId, long owner);", "public AddCommand(String taskType, Optional<String> taskDescription, \r\n Optional<LocalDateTime> taskDeadline) {\r\n \r\n this.taskType = taskType;\r\n this.taskDescription = taskDescription;\r\n this.taskDeadline = taskDeadline;\r\n this.taskStartDateTime = Optional.empty();\r\n this.taskEndDateTime = Optional.empty();\r\n this.task = makeTask(taskType, taskDescription, taskDeadline, \r\n taskStartDateTime, taskEndDateTime); \r\n }", "public AddCommand(String taskType, Optional<String> taskDescription) { \r\n this.taskType = taskType;\r\n this.taskDescription = taskDescription;\r\n this.taskDeadline = Optional.empty();\r\n this.taskStartDateTime = Optional.empty();\r\n this.taskEndDateTime = Optional.empty();\r\n this.task = makeTask(taskType, taskDescription, taskDeadline, \r\n taskStartDateTime, taskEndDateTime); \r\n }", "@Test(groups = { \"wso2.esb\" }, description = \"agilezen {createTask} integration test with optional parameters.\", dependsOnMethods = { \"testCreateStoryWithOptionalParameters\" })\n public void testCreateTaskWithOptionalParameters() throws IOException, JSONException {\n \n esbRequestHeadersMap.put(\"Action\", \"urn:createTask\");\n \n RestResponse<JSONObject> esbRestResponse =\n sendJsonRestRequest(proxyUrl, \"POST\", esbRequestHeadersMap, \"esb_createTask_optional.json\");\n final String taskIdOptional = esbRestResponse.getBody().getString(\"id\");\n connectorProperties.setProperty(\"taskIdOptional\", taskIdOptional);\n \n final String apiEndPoint =\n apiRequestUrl + \"/projects/\" + connectorProperties.getProperty(\"projectId\") + \"/stories/\"\n + connectorProperties.getProperty(\"storyId\") + \"/tasks/\" + taskIdOptional;\n RestResponse<JSONObject> apiRestResponse = sendJsonRestRequest(apiEndPoint, \"GET\", apiRequestHeadersMap);\n \n Assert.assertEquals(connectorProperties.getProperty(\"textTaskOptional\"), apiRestResponse.getBody().getString(\n \"text\"));\n Assert.assertEquals(connectorProperties.getProperty(\"status\"), apiRestResponse.getBody().getString(\"status\"));\n Assert.assertEquals(esbRestResponse.getBody().getString(\"createTime\").split(\"\\\\.\")[0], apiRestResponse\n .getBody().getString(\"createTime\"));\n }", "public Task(String description){\n this.description = description;\n this.isDone = false;\n }", "public Task(String description){\n this.description = description;\n this.isDone = false;\n }", "public Task(String description) {\n\n this.description = description;\n this.isDone = false;\n taskCounter++;\n }", "public void createTask(){\n final String name = newTaskNameField.getText().toString();\n final String description = newTaskDescriptionField.getText().toString();\n\n if (name.isEmpty()){\n newTaskNameField.setText(\"Please Enter a name\");\n newTaskNameField.requestFocus();\n newTaskNameField.selectAll();\n return;\n }\n\n if (description.isEmpty()){\n newTaskDescriptionField.setText(\"Please Enter a Description\");\n newTaskDescriptionField.requestFocus();\n newTaskDescriptionField.selectAll();\n return;\n }\n\n if(!getValidDate(newtaskDateField.getText().toString())) {\n handleInvalidDate();\n return;\n }\n\n if(newTaskAssignee == null) {\n newTaskAssigneeField.setText(\"Please assign a user\");\n newTaskAssigneeField.selectAll();\n return;\n }\n\n TaskManager.sharedInstance().CreateTask(name, description, newTaskAssignee, DueDate, false);\n newTaskDialog.dismiss();\n }", "void saveTask( org.openxdata.server.admin.model.TaskDef task, AsyncCallback<Void> callback );", "public Todo(String task) {\n super(task);\n }", "@Test(priority = 1, dependsOnMethods = { \"testGetFileWithNegativeCase\" },\n description = \"podio {createTask} integration test with mandatory parameters.\")\n public void testCreateTaskWithMandatoryParameters() throws IOException, JSONException {\n \n esbRequestHeadersMap.put(\"Action\", \"urn:createTask\");\n \n RestResponse<JSONObject> esbRestResponse =\n sendJsonRestRequest(proxyUrl, \"POST\", esbRequestHeadersMap, \"esb_createTask_mandatory.json\");\n String taskId = esbRestResponse.getBody().getString(\"task_id\");\n connectorProperties.put(\"taskId\", taskId);\n \n String apiEndPoint = apiUrl + \"/task/\" + taskId;\n \n RestResponse<JSONObject> apiRestResponse = sendJsonRestRequest(apiEndPoint, \"GET\", apiRequestHeadersMap);\n \n Assert.assertEquals(esbRestResponse.getBody().getJSONObject(\"created_by\").getString(\"name\"), apiRestResponse\n .getBody().getJSONObject(\"created_by\").getString(\"name\"));\n Assert.assertEquals(esbRestResponse.getBody().getString(\"text\"), apiRestResponse.getBody().getString(\"text\"));\n }", "private ITaskCluster createTaskGraphForTaskCluster(ITaskCluster taskCluster, ITaskObject... taskObjects) {\n List<IStatusTask> statusTasks = null;\n List<Pair<ITaskObject, IStatusTask>> taskObjectNodes = new ArrayList<>();\n if (taskObjects != null && taskObjects.length > 0) {\n statusTasks = new ArrayList<>();\n for (ITaskObject taskObject : taskObjects) {\n IStatusTask initTask = createInitTask(taskObject);\n taskObjectNodes.add(Pair.of(taskObject, initTask));\n }\n }\n\n ITaskCluster res = getTaskManagerConfiguration().getTaskManagerWriter().saveNewGraphFromTaskCluster(taskCluster, taskObjectNodes);\n\n onTodoTasks(res, statusTasks);\n onCurrentTasks(res, statusTasks);\n\n return res;\n }", "public Task(String taskDescription) {\n this.taskDescription = taskDescription;\n this.isDone = false;\n this.completed = \"0\";\n }", "public XmlAdaptedTask() {}", "public XmlAdaptedTask() {}", "public void init(){\n taskClient.connect(\"127.0.0.1\", 9123);\n }", "public void addTask(Task task){\n SQLiteDatabase db = this.getWritableDatabase();\n ContentValues values = new ContentValues();\n values.put(KEY_ID, task.getId());\n values.put(KEY_LABEL, task.getLabel());\n values.put(KEY_TIME, task.getTime());\n db.insert(TABLE_NAME, null, values);\n db.close();\n }", "public Task(String description) {\n this.description = description;\n this.isDone = false;\n }", "public Task(String description) {\n this.description = description;\n this.isDone = false;\n }", "public boolean create(final TaskModel taskModel) {\n GeneratedKeyHolder keyHolder = new GeneratedKeyHolder();\n\n int affected = jdbcTemplate.update(\n new PreparedStatementCreator() {\n @Override\n public PreparedStatement createPreparedStatement(Connection con) throws SQLException {\n PreparedStatement ps = con.prepareStatement(\n \"insert into \" + TABLE_NAME + \" (\" + COL_TASK_NAME + \",\" + COL_NODE_ID + \",\" + COL_POOL_ID + \") values (?, ?, ?)\",\n Statement.RETURN_GENERATED_KEYS // specify to populate the generated key holder\n );\n ps.setString(1, taskModel.taskName.name());\n ps.setLong(2, taskModel.nodeId);\n ps.setString(3, taskModel.poolId);\n return ps;\n }\n },\n keyHolder\n );\n\n // keep data integrity - fetch the last insert id and update the model\n taskModel.id = keyHolder.getKey().longValue();\n\n return affected > 0;\n }", "public ToDoTask(String description, int id) {\n super(description, id);\n }", "public Task(String name) {\r\n this(name, false);\r\n }", "public TaskBO(Task task) {\n\t\tthis.m_Task = task;\n\t\tthis.m_QuestionIds = new ArrayList<>();\n\t\tfor (Question question : task.getQuestions())\n\t\t\tthis.m_QuestionIds.add(question.getId());\n\t}", "Task(String name) {\n this.name = name;\n }", "private static void addTask() {\n Task task = new Task();\n System.out.println(\"Podaj tytuł zadania\");\n task.setTitle(scanner.nextLine());\n System.out.println(\"Podaj datę wykonania zadania (yyyy-mm-dd)\");\n\n while (true) {\n try {\n LocalDate parse = LocalDate.parse(scanner.nextLine(), DateTimeFormatter.ISO_LOCAL_DATE);\n task.setExecuteDate(parse);\n break;\n } catch (DateTimeParseException e) {\n System.out.println(\"Nieprawidłowy format daty. Spróbuj YYYY-MM-DD\");\n }\n }\n\n task.setCreationDate(LocalDate.now());\n\n queue.offer(task);\n System.out.println(\"tutuaj\");\n }", "int insertTask(TaskInfo taskInfo);", "private ExecTask getExecTask(String taskName, String cmd, File outDir) {\r\n ExecTask task = new ExecTask();\r\n task.bindToOwner(this);\r\n task.setDir(outDir);\r\n task.setExecutable(cmd);\r\n return task;\r\n }" ]
[ "0.68961465", "0.6792322", "0.6792322", "0.6792322", "0.67251414", "0.61417025", "0.6118694", "0.6035301", "0.5990319", "0.59847015", "0.59834087", "0.5940188", "0.5847896", "0.5824413", "0.5750797", "0.57040197", "0.56756127", "0.56539387", "0.5653612", "0.5633107", "0.5625838", "0.561238", "0.5604525", "0.55937666", "0.55625844", "0.55600494", "0.5541921", "0.5521855", "0.55192834", "0.55061", "0.55030686", "0.54994774", "0.54890907", "0.54791594", "0.5476811", "0.5471752", "0.5471364", "0.5458396", "0.545832", "0.5445104", "0.54278356", "0.542623", "0.5415924", "0.5395553", "0.5392578", "0.5379357", "0.536437", "0.53468585", "0.5340568", "0.53322965", "0.5327518", "0.53273374", "0.53010803", "0.5296781", "0.5295844", "0.5287374", "0.5280225", "0.52710325", "0.5266241", "0.5266216", "0.5247372", "0.5241726", "0.52314276", "0.52225345", "0.5219729", "0.5215444", "0.5212944", "0.5203023", "0.51960075", "0.51941013", "0.5189834", "0.518673", "0.51844513", "0.51807857", "0.5149918", "0.51368123", "0.51366097", "0.51336944", "0.5118689", "0.5118689", "0.51164126", "0.51048684", "0.5104476", "0.5103811", "0.50976115", "0.50950646", "0.5092473", "0.509094", "0.509094", "0.50875276", "0.5085152", "0.5076932", "0.5076932", "0.5076213", "0.5074653", "0.5073559", "0.5068897", "0.5066016", "0.5059866", "0.50593436", "0.50590587" ]
0.0
-1
Creates a new task for given application and component.
public ChartUpdaterTask( Component aComponent){ super( aComponent); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Task createTask();", "Task createTask();", "Task createTask();", "@Override\n public CreateFuotaTaskResult createFuotaTask(CreateFuotaTaskRequest request) {\n request = beforeClientExecution(request);\n return executeCreateFuotaTask(request);\n }", "public abstract AbstractTask createTask(String repositoryUrl, String id, String summary);", "public Task createTask(String taskType) throws BuildException {\n return ComponentHelper.getComponentHelper(this).createTask(taskType);\n }", "public void createTask(Task task) {\n ContentValues values = new ContentValues();\n values.put(SQLiteHelper.COLUMN_NAME, task.getName());\n database.insert(SQLiteHelper.TABLE_TASKS, null, values);\n }", "private Task createTask(StressTest test)\n\t{\n\t\treturn new ClientServerTask(test);\n\t}", "@GET\n\t@Path(\"/component/{componentName}/new\")\n\t@Produces( MediaType.APPLICATION_JSON )\n\tInstance createInstanceFromComponent( @PathParam(\"name\") String applicationName, @PathParam(\"componentName\") String componentName );", "public void createNewTask(View view) {\n try{\n newTaskLayout.checkTaskLayoutIsValid();\n ImageView taskImage = (ImageView) findViewById(R.id.imageViewBoard);\n String layoutImagePath = takeScreenshot(taskImage);\n newTaskLayout.setImagePath(layoutImagePath);\n\n // save new task\n HashMap<String, Integer> instructions = convertSpinnersToHashMap();\n Task newTask = new Task(newTaskLayout, instructions);\n Task.saveTask(getApplicationContext(), newTask);\n\n // alert user task created and return to task menu.\n Toast.makeText(this, \"new task created\", Toast.LENGTH_LONG).show();\n startActivity(new Intent(getApplicationContext(), TaskOptionsActivity.class));\n } catch (TaskLayoutException | InstructionsRequiredException e) {\n // layout was not valid on insufficient instructions set.\n makeMessageDialogue(e.getMessage());\n }\n }", "public static Object createTaskObject(){\n try {\n\n return taskModel.make()\n .load(ClassLoader.getSystemClassLoader(), ClassLoadingStrategy.Default.WRAPPER)\n .getLoaded()\n .newInstance();\n\n\n } catch (InstantiationException e) {\n e.printStackTrace();\n } catch (IllegalAccessException e) {\n e.printStackTrace();\n }\n\n return null;\n }", "protected abstract void createTasks();", "private void newTask()\n {\n \t//TODO add alarm\n \tTask task = new Task(taskName.getText().toString(), taskDetails.getText().toString());\n \tdb.createTask(task);\n \t//TODO Tie notification to an alarm\n \t//Create notification\n \tIntent notifyIntent = new Intent(this, TaskNotification.class);\n \tnotifyIntent.putExtra(\"title\", task.name); //add title name\n \tnotifyIntent.putExtra(\"id\", (int) task.id); //add id\n \tstartActivity(notifyIntent); //create the intent\n \t\n \trefreshData();\n }", "@POST\n @Consumes(MediaType.APPLICATION_JSON)\n @Produces(MediaType.APPLICATION_JSON)\n @RolesAllowed({\"admin\"})\n public Task create(Task task, @Context UriInfo uriInfo) {\n Long projectId = (uriInfo.getPathSegments().size() != 1?\n Long.valueOf(uriInfo.getPathSegments().get(1).getPath())\n :null);\n\n if (projectId != null) {\n Project proj = em.find(Project.class, projectId);\n\n if (proj == null) {\n throw new InvalidParentException(String.format(\"Project with ID %s not found for this task\", projectId));\n }\n\n task.setProject(proj);\n }\n\n em.persist(task);\n\n return task;\n }", "public void createTask() {\n \tSystem.out.println(\"Inside createTask()\");\n \tTask task = Helper.inputTask(\"Please enter task details\");\n \t\n \ttoDoList.add(task);\n \tSystem.out.println(toDoList);\n }", "public void newTask() {\r\n\r\n todoTaskGui(\"Create\", null);\r\n }", "private int createTask() {\n Calendar cal = Calendar.getInstance();\n String taskName = \"Task-\" + cal.getTimeInMillis();\n\n return TaskServiceClient.createTask(\n projObjKey, // projObjKey-新建立工作項目所在的專案key值\n parentObjKey, // parentObjKey-新建立工作項目所屬的子專案/專案key值\n \"工作敘述永不變\", // taskDesc-工作Memo區,\n 100, // taskOwnerKey-工作項目負責人, 填入使用者Key值 ,\n 0, // udaSet-在何組工作之下\n 0, // sdaSet-套用哪一組預設欄位,填0即可\n \"\", // sda0-系統預設欄位\n \"\", // sda1-系統預設欄位\n \"\", // sda2-系統預設欄位\n \"\", // sda3-系統預設欄位\n \"\", // sda4-系統預設欄位\n \"\", // sda5-系統預設欄位\n \"\", // sda6-系統預設欄位\n \"\", // sda7-系統預設欄位\n \"\", // sda8-系統預設欄位\n taskName, // sda9-系統預設欄位\n \"\", // sda10-系統預設欄位\n \"\", // sda11-系統預設欄位\n \"\", // sda12-系統預設欄位\n \"\", // sda13-系統預設欄位\n \"\", // sda14-系統預設欄位\n \"\", // sda15-系統預設欄位\n \"\", // sda16-系統預設欄位\n \"\", // sda17-系統預設欄位\n \"\", // sda18-系統預設欄位\n \"\", // sda19-系統預設欄位\n \"\", // uda0-自定欄位\n \"\", // uda1-自定欄位\n \"\", // uda2-自定欄位\n \"\", // uda3-自定欄位\n \"\", // uda4-自定欄位\n \"\", // uda5-自定欄位\n \"\", // uda6-自定欄位\n \"\", // uda7-自定欄位\n \"\", // uda8-自定欄位\n \"\", // uda9-自定欄位\n \"\", // uda10-自定欄位\n \"\", // uda11-自定欄位\n \"\", // uda12-自定欄位\n \"\", // uda13-自定欄位\n \"\", // uda14-自定欄位\n \"\", // uda15-自定欄位\n \"\", // uda16-自定欄位\n \"\", // uda17-自定欄位\n \"\", // uda18-自定欄位\n \"\", // uda19-自定欄位\n \"\", // uda60-自定欄位\n \"\", // uda61-自定欄位\n \"\", // uda62-自定欄位\n \"\", // uda63-自定欄位\n \"\", // uda64-自定欄位\n \"\", // uda65-自定欄位\n \"\", // uda66-自定欄位\n \"\", // uda67-自定欄位\n \"\", // uda68-自定欄位\n \"\", // uda69-自定欄位\n \"\", // uda70-自定欄位\n \"\", // uda71-自定欄位\n \"\", // uda72-自定欄位\n \"\", // uda73-自定欄位\n \"\", // uda74-自定欄位\n \"\", // uda75-自定欄位\n \"\", // uda76-自定欄位\n \"\", // uda77-自定欄位\n \"\", // uda78-自定欄位\n \"\", // uda79-自定欄位\n \"\", // accessList-存取成員,(userID,userID,userID)\n \"\", // userGroupAccessList-存取群組, (群組ID,群組ID)\n \"\", // subTeamAccessList-存取子團隊,(subTeamObjKey,subTeamObjKey)\n \"N\", // isMilestoneFlag-里程碑 (Y/N)\n 999999, // seqNO-序列編號\n \"admin\" // userID-建立者ID\n );\n }", "TaskDependency createTaskDependency();", "public String createTaskDefinition(TaskDefinition tasDef) throws DaoRepositoryException;", "@TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED)\n public long addTask(Task taskObj, ContentData cData) throws CannotAddTaskException {\n OrganizationalEntity orgOBj = taskObj.getTaskData().getCreatedBy();\n checkAndSetTempOrgEntitySet(orgOBj);\n checkAndSetListOfOrgEntities(taskObj.getPeopleAssignments().getPotentialOwners());\n \n TaskServiceSession taskSession = null;\n try {\n taskSession = taskService.createSession();\n taskSession.addTask(taskObj, cData);\n int sessionId = taskObj.getTaskData().getProcessSessionId();\n eventSupport.fireTaskAdded(taskObj, cData);\n return taskObj.getId();\n }finally {\n if(taskSession != null)\n taskSession.dispose();\n }\n }", "public JBombardierAntTask(Task owner) {\r\n bindToOwner(owner);\r\n }", "@Override\n\tpublic ITaskInstance createTaskInstance(WorkflowSession workflowSession,\n\t\t\tRuntimeContext rtCtx, IToken token,\n\t\t\tIProcessInstance processInstance, Task task, Activity activity) {\n\t\treturn null;\n\t}", "@Override\n\tpublic void addTask(Teatask ta)\n\t{\n\t\tteataskMapper.addTask(ta);\n\t}", "public AddCommand(Task task){\r\n this.task = task;\r\n }", "@Override\n public CreateWirelessGatewayTaskResult createWirelessGatewayTask(CreateWirelessGatewayTaskRequest request) {\n request = beforeClientExecution(request);\n return executeCreateWirelessGatewayTask(request);\n }", "public Task(String creator) {\r\n \t\tthis(creator, \"Untitled\", \"\", true, false);\r\n \t}", "public Ant(Task owner) {\n bindToOwner(owner);\n }", "private <E, F extends ITaskObject> IStatusTask createInitTask(F taskObject) {\n ITaskObjectManager<E, F> taskObjectManager = getTaskManagerConfiguration().getTaskObjectManagerRegistry().getTaskObjectManager(taskObject);\n Class<F> taskObjectClass = taskObjectManager.getTaskObjectClass();\n\n E currentStatus = taskObjectManager.getInitialStatus(taskObject);\n\n // Create a first task, it does nothing\n return getTaskManagerConfiguration().getTaskFactory().newStatusTask(null, taskObjectClass, currentStatus);\n }", "String addTask(Task task);", "public void addTask(Task task) {\n\t\tSystem.out.println(\"Inside createTask()\");\n\t\t\n\t\ttoDoList.add(task);\n\t\tdisplay();\n\t}", "@FXML\n void addTaskClicked(ActionEvent event)\n {\n createTask();\n }", "org.oasis_open.docs.ns.bpel4people.ws_humantask.types._200803.TTaskAbstract addNewTaskAbstract();", "public static Task create(long taskId) {\n\t\treturn getPersistence().create(taskId);\n\t}", "@Test(priority = 1, dependsOnMethods = { \"testGetFileWithNegativeCase\" },\n description = \"podio {createTask} integration test with mandatory parameters.\")\n public void testCreateTaskWithMandatoryParameters() throws IOException, JSONException {\n \n esbRequestHeadersMap.put(\"Action\", \"urn:createTask\");\n \n RestResponse<JSONObject> esbRestResponse =\n sendJsonRestRequest(proxyUrl, \"POST\", esbRequestHeadersMap, \"esb_createTask_mandatory.json\");\n String taskId = esbRestResponse.getBody().getString(\"task_id\");\n connectorProperties.put(\"taskId\", taskId);\n \n String apiEndPoint = apiUrl + \"/task/\" + taskId;\n \n RestResponse<JSONObject> apiRestResponse = sendJsonRestRequest(apiEndPoint, \"GET\", apiRequestHeadersMap);\n \n Assert.assertEquals(esbRestResponse.getBody().getJSONObject(\"created_by\").getString(\"name\"), apiRestResponse\n .getBody().getJSONObject(\"created_by\").getString(\"name\"));\n Assert.assertEquals(esbRestResponse.getBody().getString(\"text\"), apiRestResponse.getBody().getString(\"text\"));\n }", "TaskFactory getTaskFactory();", "public void creatTask(int uid,String title,String detail,int money,String type,int total_num,Timestamp end_time,String state);", "public Task createTask(long userId, String description, String groupId, String dueTimeStr, int priority, String labels, \n\t\t\tString parentId, long owner);", "void addTask(Task task);", "public void addNewTask(String taskName) {\n\t\tCommand cmdAdd = new CmdAdd();\n\t\tcmdAdd.setParameter(CmdParameters.PARAM_NAME_TASK_NAME, taskName);\n\t\tcmdAdd.execute();\n\t}", "@Test\n\tpublic static void create_Task() {\n\t\tString testName = \"Valid Scenario- When all the data are valid\";\n\t\tlog.info(\"Valid Scenario: Create Task\");\n\t\t// report generation start\n\t\textentTest = extent.startTest(\"Task Controller- Create Task\");\n\n\t\tResponse response = HttpOperation\n\t\t\t\t.createAuthToken(PayLoads.createAuthToken_Payload(extentTest, auth_sheetName, auth_valid_testName));\n\t\tString authToken = ReusableMethods.Auth(extentTest, response);\n\n\t\t// response for login the user\n\t\tresponse = HttpOperation.loginUser(authToken, PayLoads.create_user_Payload(user_sheet, testName));\n\t\tlog.info(\"Response received for login\");\n\t\textentTest.log(LogStatus.INFO, \"Response received for login:- \" + response.asString());\n\n\t\t// get the User Token\n\t\tJsonPath jp = ReusableMethods.rawToJson(response);\n\t\tuserToken = jp.get(\"jwt\");\n\t\tlog.info(\"Received User Token:- \" + userToken);\n\t\textentTest.log(LogStatus.INFO, \"User Token:- \" + userToken);\n\n\t\t// Creating the Task response\n\t\tresponse = HttpOperation.create_Task(userToken, PayLoads.create_task_Payload(sheetName, testName));\n\n\t\tlog.info(\"Response received to create the task\");\n\t\textentTest.log(LogStatus.INFO, \"Response received to create the task:- \" + response.asString());\n\n\t\t// Assertion\n\n\t\tAssert.assertEquals(response.getStatusCode(), 201);\n\t\tlog.info(\"Assertion Passed!!\");\n\t\textentTest.log(LogStatus.INFO, \"HTTP Status Code:- \" + response.getStatusCode());\n\n\t}", "public static CrmTask createEntity(EntityManager em) {\n CrmTask crmTask = new CrmTask()\n .subject(DEFAULT_SUBJECT)\n .activityDate(DEFAULT_ACTIVITY_DATE)\n .activityLength(DEFAULT_ACTIVITY_LENGTH)\n .comment(DEFAULT_COMMENT);\n return crmTask;\n }", "public interface TaskProcessFactory {\n\n TaskProcessor createTaskProcessor(String domain);\n}", "public Task getCreationTask() throws ProcessManagerException {\r\n try {\r\n Task creationTask = Workflow.getTaskManager().getCreationTask(\r\n currentUser, currentRole, processModel);\r\n \r\n return creationTask;\r\n } catch (WorkflowException e) {\r\n throw new ProcessManagerException(\"SessionController\",\r\n \"processManager.CREATION_TASK_UNAVAILABLE\", e);\r\n }\r\n }", "int createParentTask();", "java.util.concurrent.Future<CreateApplicationResult> createApplicationAsync(CreateApplicationRequest createApplicationRequest);", "public ScheduledTask (Task task, int startTime, int processor) {\n\t\tthis.task = task;\n\t\tthis.startTime = startTime;\n\t\tthis.processor = processor;\n\t}", "public Task makeTask() {\n Task new_task = new Task();\n new_task.setAction(this);\n new_task.setDeadline(\n new Date(System.currentTimeMillis() + deadlineSeconds() * 1000L));\n\n return new_task;\n }", "private Task makeTask(String taskType, Optional<String> taskDescription, \r\n Optional<LocalDateTime> taskDeadline, \r\n Optional<LocalDateTime> taskStartDateTime,\r\n Optional<LocalDateTime> taskEndDateTime) {\r\n \r\n Task task;\r\n \r\n if (taskDescription.get().isBlank()) {\r\n throw new InvalidTaskArgumentException(\r\n MESSAGE_ADD_COMMAND_INVALID_TASK_DESCRIPTION);\r\n }\r\n \r\n switch(taskType) {\r\n case \"todo\": \r\n task = new ToDos(TaskList.taskIdCounter, taskDescription.get());\r\n break;\r\n case \"deadline\":\r\n if (taskDeadline.isEmpty()) {\r\n throw new InvalidTaskArgumentException(\r\n MESSAGE_ADD_COMMAND_INVALID_TASK_REQUIREMENT_DEADLINES);\r\n }\r\n \r\n task = new Deadlines(TaskList.taskIdCounter, taskDescription.get(), \r\n taskDeadline.get()); \r\n break;\r\n case \"event\":\r\n if (taskStartDateTime.isEmpty() || taskEndDateTime.isEmpty()) {\r\n throw new InvalidTaskArgumentException(\r\n MESSAGE_ADD_COMMAND_INVALID_TASK_REQUIREMENT_EVENTS);\r\n }\r\n task = new Events(TaskList.taskIdCounter, taskDescription.get(), \r\n taskStartDateTime.get(), taskEndDateTime.get());\r\n break;\r\n default:\r\n throw new InvalidTaskArgumentException(MESSAGE_INVALID_TASK_TYPE);\r\n }\r\n return task;\r\n }", "private Tasks createNoKeywordTask(Tasks task, String descriptionOfTask, ArrayList<String> timeArray,\n int numberOfArguments) {\n if (numberOfArguments == 1 || numberOfArguments == 2) { //deadline tasks\n task = createDeadlineTask(task, descriptionOfTask, timeArray);\n } else { //duration tasks\n task = createDurationTask(task, descriptionOfTask, timeArray);\n }\n return task;\n }", "public Task(Task source) {\n if (source.Application != null) {\n this.Application = new Application(source.Application);\n }\n if (source.TaskName != null) {\n this.TaskName = new String(source.TaskName);\n }\n if (source.TaskInstanceNum != null) {\n this.TaskInstanceNum = new Long(source.TaskInstanceNum);\n }\n if (source.ComputeEnv != null) {\n this.ComputeEnv = new AnonymousComputeEnv(source.ComputeEnv);\n }\n if (source.EnvId != null) {\n this.EnvId = new String(source.EnvId);\n }\n if (source.RedirectInfo != null) {\n this.RedirectInfo = new RedirectInfo(source.RedirectInfo);\n }\n if (source.RedirectLocalInfo != null) {\n this.RedirectLocalInfo = new RedirectLocalInfo(source.RedirectLocalInfo);\n }\n if (source.InputMappings != null) {\n this.InputMappings = new InputMapping[source.InputMappings.length];\n for (int i = 0; i < source.InputMappings.length; i++) {\n this.InputMappings[i] = new InputMapping(source.InputMappings[i]);\n }\n }\n if (source.OutputMappings != null) {\n this.OutputMappings = new OutputMapping[source.OutputMappings.length];\n for (int i = 0; i < source.OutputMappings.length; i++) {\n this.OutputMappings[i] = new OutputMapping(source.OutputMappings[i]);\n }\n }\n if (source.OutputMappingConfigs != null) {\n this.OutputMappingConfigs = new OutputMappingConfig[source.OutputMappingConfigs.length];\n for (int i = 0; i < source.OutputMappingConfigs.length; i++) {\n this.OutputMappingConfigs[i] = new OutputMappingConfig(source.OutputMappingConfigs[i]);\n }\n }\n if (source.EnvVars != null) {\n this.EnvVars = new EnvVar[source.EnvVars.length];\n for (int i = 0; i < source.EnvVars.length; i++) {\n this.EnvVars[i] = new EnvVar(source.EnvVars[i]);\n }\n }\n if (source.Authentications != null) {\n this.Authentications = new Authentication[source.Authentications.length];\n for (int i = 0; i < source.Authentications.length; i++) {\n this.Authentications[i] = new Authentication(source.Authentications[i]);\n }\n }\n if (source.FailedAction != null) {\n this.FailedAction = new String(source.FailedAction);\n }\n if (source.MaxRetryCount != null) {\n this.MaxRetryCount = new Long(source.MaxRetryCount);\n }\n if (source.Timeout != null) {\n this.Timeout = new Long(source.Timeout);\n }\n if (source.MaxConcurrentNum != null) {\n this.MaxConcurrentNum = new Long(source.MaxConcurrentNum);\n }\n if (source.RestartComputeNode != null) {\n this.RestartComputeNode = new Boolean(source.RestartComputeNode);\n }\n if (source.ResourceMaxRetryCount != null) {\n this.ResourceMaxRetryCount = new Long(source.ResourceMaxRetryCount);\n }\n }", "@Override\r\n\tpublic ProjectFunMobileLogicTask CreateActivityInterface(\r\n\t\t\tBundle savedInstanceState) {\n\t\treturn new GoldRushTask();\r\n\t}", "private Task createTaskFromGivenArgs(Name name, TaskDate taskStartDate, TaskDate taskEndDate, Status taskStatus) {\n\t if (isEventTask(taskStartDate, taskEndDate)) {\n\t return new EventTask(name, taskStartDate, taskEndDate, taskStatus);\n\t }\n\t if (isDeadline(taskEndDate)) {\n\t return new DeadlineTask(name, taskEndDate, taskStatus);\n\t }\n\t return new Task(name, taskStatus);\n\t}", "@Override\n\tpublic Task constructInstance(Robot robot) {\n\t\treturn null;\n\t}", "private void addTask(JPanel panel,Tasks task){\n Task taskPane = new Task(task, this.agenda.getConnector());\n this.setUpSize(taskPane,1920,50,AgendaConstants.ALL);\n panel.add(taskPane);\n if(add) {\n agenda.getConnector().addTask(task);\n }\n this.updateComponent(panel);\n }", "public final int newFGTask(final int idapp) throws IOException,\n JSONException {\n URL obj2 = new URL(fgURL + \"/v1.0/tasks\");\n HttpURLConnection con2 = (HttpURLConnection) obj2.openConnection();\n\n //add request header\n con2.setRequestMethod(\"POST\");\n con2.setRequestProperty(\"Authorization\", \"Bearer \" + token);\n con2.setRequestProperty(\"Content-Type\", \"application/json\");\n\n String urlParameters = \"{\\\"application\\\":\\\"\" + idapp + \"\\\"}\";\n\n // Send post request\n con2.setDoOutput(true);\n DataOutputStream wr = new DataOutputStream(con2.getOutputStream());\n wr.writeBytes(urlParameters);\n wr.flush();\n wr.close();\n\n int responseCode2 = con2.getResponseCode();\n System.out.println(\"\\nSending 'POST' request to URL: \"\n + obj2.toString());\n System.out.println(\"Post parameters : \" + urlParameters);\n System.out.println(\"Response Code : \" + responseCode2);\n\n final int code1 = 200;\n final int code2 = 201;\n int idtask = -1;\n if (responseCode2 == code1 || responseCode2 == code2) {\n InputStream in = con2.getInputStream();\n BufferedReader in2 = new BufferedReader(new InputStreamReader(in));\n\n String inputLine2;\n StringBuffer response2 = new StringBuffer();\n\n while ((inputLine2 = in2.readLine()) != null) {\n response2.append(inputLine2);\n }\n in2.close();\n\n JSONObject myObject2 = JSONFactoryUtil.createJSONObject(\n response2.toString());\n idtask = myObject2.getInt(\"id\");\n }\n return idtask;\n }", "private static Task convertITaskToTask(ITask iTask) {\r\n Task task = new Task();\r\n task.setId(iTask.getId());\r\n task.setCaseId(iTask.getCase().getId());\r\n task.setDescription(iTask.getDescription());\r\n task.setCaseDescription(iTask.getCase().getDescription());\r\n task.setCreatedOn(iTask.getStartTimestamp());\r\n task.setState(iTask.getState().toString());\r\n task.setActivator(iTask.getActivator());\r\n task.setIvyTask(iTask);\r\n return task;\r\n }", "int insertTask(TaskInfo taskInfo);", "public void createTask(){\n final String name = newTaskNameField.getText().toString();\n final String description = newTaskDescriptionField.getText().toString();\n\n if (name.isEmpty()){\n newTaskNameField.setText(\"Please Enter a name\");\n newTaskNameField.requestFocus();\n newTaskNameField.selectAll();\n return;\n }\n\n if (description.isEmpty()){\n newTaskDescriptionField.setText(\"Please Enter a Description\");\n newTaskDescriptionField.requestFocus();\n newTaskDescriptionField.selectAll();\n return;\n }\n\n if(!getValidDate(newtaskDateField.getText().toString())) {\n handleInvalidDate();\n return;\n }\n\n if(newTaskAssignee == null) {\n newTaskAssigneeField.setText(\"Please assign a user\");\n newTaskAssigneeField.selectAll();\n return;\n }\n\n TaskManager.sharedInstance().CreateTask(name, description, newTaskAssignee, DueDate, false);\n newTaskDialog.dismiss();\n }", "public static org.jfree.data.gantt.Task createTask(String name, int start, int end) {\r\n\t\treturn new org.jfree.data.gantt.Task(name, SchedulerUtils.dateTime(start), SchedulerUtils.dateTime(end));\r\n\t}", "public ServiceTask() {\n\t}", "BPMNActivityConcept createBPMNActivityConcept();", "private Tasks createKeywordTask(Tasks task, String descriptionOfTask, ArrayList<String> timeArray) {\n timeArray.set(0, timeArray.get(0).toLowerCase());\n ArrayList<String> formattedTimeArray = new ArrayList<String>();\n createFormattedTimeArray(timeArray, formattedTimeArray);\n assert(formattedTimeArray.size() < 5);\n if (formattedTimeArray.size() == 2) { //deadline task\n createFormattedTimeArray(timeArray, formattedTimeArray);\n task = createDeadlineTask(task, descriptionOfTask, formattedTimeArray);\n } else if (formattedTimeArray.size() == 4) { //duration task\n createFormattedTimeArray(timeArray, formattedTimeArray);\n task = createDurationTask(task, descriptionOfTask, formattedTimeArray);\n }\n return task;\n }", "Task(String name) {\n this.name = name;\n }", "public void createTask()\n {\n boolean copy = false;\n if(check.checkTask(taskName.getText()))\n {\n // Go through list and make sure task isnt already there\n // If there is one already in list, then tell user there it is on list\n if(!(Item.getToDoList().isEmpty()))\n {\n for(Item task : Item.getToDoList())\n {\n if(task.getTask().equals(taskName.getText()))\n {\n status.setText(\"Task is already on the list. \");\n copy = true;\n }\n }\n\n if(!copy)\n {\n // If not copy, add the task to the list by calling method\n addTaskAndDisplay(taskName.getText(), completionDate.getText(), taskCompletedCheckBox.isSelected());\n }\n }\n\n // If list is empty, then no need to check if task is copy\n else\n {\n addTaskAndDisplay(taskName.getText(), completionDate.getText(), taskCompletedCheckBox.isSelected());\n }\n\n }\n\n // If task is invalid, alert user\n else\n {\n status.setText(\"Task invalid. Try again. \");\n }\n\n }", "public void initTaskInsideDrug(DrugMtl drugMtl, String task, String type){\n\t\tTask taskO = (Task)taskCreator.setTask(task).setType(type).setTaskvar(\"\").build();\n\t\tlog.debug(taskO);\n\t\tTree innerTaskT = nodeCreator.setTagName(\"task\")\n\t\t.setTreeManager(drugMtl).setParentT(drugMtl.getDocT()).addChild();\n\t\tlog.debug(innerTaskT);\n\t\t\n//\t\tif(innerTask!=null)\n\t\t\tdrugMtl.addMObject(taskO, innerTaskT);\n\t\tfor(Tree t:drugMtl.getDocT().getChildTs())\n\t\t\tif(t.getTabName().equals(\"task\"))\n\t\t\t\tlog.debug(\"--------\"+t);\n\t\t\n\t\tlog.debug(innerTaskT);\n\t\tlog.debug(drugMtl.getIdt());\n\t}", "public void addTask(View v) {\n int taskId = Integer.parseInt(txtId.getText().toString());\n String tskName = txtTaskName.getText().toString();\n String taskDesc = txtTaskDescription.getText().toString();\n ContentValues values = new ContentValues();\n values.put(\"taskId\", taskId);\n values.put(\"taskName\", tskName);\n values.put(\"taskDescription\", taskDesc);\n try {\n taskManager.addTask(values);\n Toast.makeText(this, \"Data Inserted\", Toast.LENGTH_LONG).show();\n } catch (Exception e) {\n Toast.makeText(this, e.getMessage(), Toast.LENGTH_LONG).show();\n }\n }", "@RequestMapping(method = RequestMethod.POST, value = \"/add-task\",consumes = MediaType.APPLICATION_JSON_VALUE,headers = {\r\n \"content-type=application/json\" })\r\n\tpublic Task addTask(@RequestBody Task task) {\r\n\t\tinvokeNotification();\r\n\t\treturn task;\r\n\r\n\t}", "@Test(dependsOnMethods = { \"testCreateTaskWithMandatoryParameters\" },\n description = \"podio {createTask} integration test with optonal parameters.\")\n public void testCreateTaskWithOptionalParameters() throws IOException, JSONException {\n \n esbRequestHeadersMap.put(\"Action\", \"urn:createTask\");\n \n RestResponse<JSONObject> esbRestResponse =\n sendJsonRestRequest(proxyUrl, \"POST\", esbRequestHeadersMap, \"esb_createTask_optional.json\");\n String taskId = esbRestResponse.getBody().getString(\"task_id\");\n \n String apiEndPoint = apiUrl + \"/task/\" + taskId;\n \n RestResponse<JSONObject> apiRestResponse = sendJsonRestRequest(apiEndPoint, \"GET\", apiRequestHeadersMap);\n \n Assert.assertEquals(esbRestResponse.getBody().getJSONObject(\"created_by\").getString(\"name\"), apiRestResponse\n .getBody().getJSONObject(\"created_by\").getString(\"name\"));\n Assert.assertEquals(esbRestResponse.getBody().getString(\"text\"), apiRestResponse.getBody().getString(\"text\"));\n Assert.assertEquals(esbRestResponse.getBody().getString(\"external_id\"),\n apiRestResponse.getBody().getString(\"external_id\"));\n }", "public void addTask(String task, String... args) {\r\n\t\ttasks.add(new String[][]{new String[]{task}, args});\r\n\t}", "protected void setupTask(Task task) {\n }", "public static BucketbotTask createTaskCANCEL() {\r\n\t\tBucketbotTask t = new BucketbotTask();\r\n\t\tt.taskType = TaskType.CANCEL;\r\n\t\treturn t;\r\n\t}", "@Override\n\tpublic void addTask(Task task) {\n\t\t\n\t}", "public abstract SystemTask getTask(Project project);", "ProcessTaskFactory<T> runAsCommand();", "public TaskServiceImpl() {}", "public void addTask(Task task) {\n\t\tMessage msg=new Message(null, null, task);\n\t\ttry {\n\t\t\tchannel.send(msg);\n\t\t}\n\t\tcatch (Exception ex) {\n\t\t\t//Runtime exception with info for use in debugging\n\t\t\tthrow new RuntimeException(ex.getMessage());\n\t\t}\n\t}", "public void addTask(Task task){\n SQLiteDatabase db = this.getWritableDatabase();\n ContentValues values = new ContentValues();\n values.put(KEY_ID, task.getId());\n values.put(KEY_LABEL, task.getLabel());\n values.put(KEY_TIME, task.getTime());\n db.insert(TABLE_NAME, null, values);\n db.close();\n }", "@Override\n public <T> void onCreate(Task<T> task) {\n\n final String taskId = task.getTaskId();\n\n if (!StringUtils.isEmpty(taskId)) {\n if (inProgressQueue.containsKey(taskId)) {\n// task.setSkipExecution(true);\n } else {\n inProgressQueue.put(taskId, task);\n// task.setSkipExecution(false);\n }\n } else {\n logger.warn(\"Task Id can not be null for qnqueing task\");\n }\n }", "Component createComponent();", "Component createComponent();", "public String taskViewForm() throws ActivityNotFoundException, Exception{\n\t\tActivityInstanceUUID aiid=new ActivityInstanceUUID(uuid);\r\n\t\tActivityInstance ai=BPMModule.getInstance().getActivityInstance(aiid);\r\n\t\ttaskInstance=new SimpleActivity();\r\n\t\ttaskInstance.setRootProcessNameOrUrl(ai.getProcessDefinitionUUID().getValue());\r\n\t\tString url=BPMUtil.getUserXPTaskUrl(ai.getProcessDefinitionUUID().getValue(), ai.getActivityDefinitionUUID().getValue(),ai.getUUID().getValue(), null,null,true,true);\r\n\t\ttaskInstance.setTaskNameOrUrl(url);\r\n\t\treturn SUCCESS;\r\n\t}", "public Task createTask(final String description) {\n final Task t = new Task(taskid, description, this);\n taskid++;\n tasks.put(t.getId(), t);\n\n return t;\n }", "public void createActivity(Activity activity) {\n\t\t\n\t}", "public nl.amis.soa.workflow.tasks.entities.Task convert( nl.amis.soa.workflow.tasks.entities.Task fcTask\r\n , Task task) {\n SystemAttributesType systemAttributes = task.getSystemAttributes();\r\n fcTask.setTaskId(task.getSystemAttributes().getTaskId());\r\n fcTask.setAcquiredBy(task.getSystemAttributes().getAcquiredBy());\r\n fcTask.setAssignedTo( systemAttributes.getAssigneeUsers());\r\n fcTask.setPriority(task.getPriority());\r\n fcTask.setAssignedGroups(convertListToArrayList(getAssignedGroups(task)));\r\n fcTask.setExpirationDate(systemAttributes.getExpirationDate());\r\n fcTask.setTaskNumber(task.getSystemAttributes().getTaskNumber());\r\n fcTask.setProcessName(task.getProcessInfo().getProcessName());\r\n fcTask.setProcessVersion(task.getProcessInfo().getProcessVersion());\r\n fcTask.setTitle(task.getTitle());\r\n\r\n fcTask.setCreated(systemAttributes.getCreatedDate());\r\n fcTask.setState(task.getSystemAttributes().getState());\r\n fcTask.setOutcome( task.getSystemAttributes().getOutcome());\r\n\r\n if (task.getSystemAttributes().getUpdatedBy() != null ) {\r\n \r\n IdentityType iden = task.getSystemAttributes().getUpdatedBy(); \r\n if ( ! \"workflowsystem\".equalsIgnoreCase(iden.getId())) {\r\n fcTask.setLastChangeUser(iden.getId());\r\n }\r\n }\r\n fcTask.setLastChangeDate(task.getSystemAttributes().getUpdatedDate()); \r\n\r\n // payload\r\n XMLElement payload = (XMLElement)task.getPayloadAsElement();\r\n StringWriter writer = new StringWriter();\r\n try {\r\n payload.print(writer);\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n \r\n fcTask.setPayloadAsString(writer.toString());\r\n \r\n try {\r\n fcTask.setAssignedToStr(getAssigneeString(task));\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n \r\n return fcTask;\r\n }", "public void setupTask(TaskAttemptContext context) throws IOException {\n }", "@EventListener(condition = \"#event.domainObject.new\")\n\tpublic void onApplicationEventNew(DomainObjectStoreEvent<Task> event) {\n\t\tTask domainObject = event.getDomainObject();\n\t\tInteger count = domainObject.getProject().getTaskCounter() + 1;\n\t\tdomainObject.getProject().setTaskCounter(count);\n\t\tdomainObject.setNumberTaskInProject(domainObject.getProject().getCodeProject() + \"-\" + count);\n\t}", "public AbstractTask createTaskFromExistingId(TaskRepository repository, String id, IProgressMonitor monitor)\n \t\t\tthrows CoreException {\n \t\treturn createTaskFromExistingId(repository, id, true, monitor);\n \t}", "void addTask(Task person) throws UniqueTaskList.DuplicateTaskException;", "public void testNewTaskManager() throws Exception {\n System.out.println(\"newTaskManager\");\n \n TaskManagerFactory instance = TaskManagerFactory.getInstance();\n \n \n TaskManager result = instance.getTaskManager();\n assertNotNull(\"TaskManager should not be null\", result);\n \n }", "@PostMapping(\"/vehicle-tasks\")\n @Timed\n @Secured(AuthoritiesConstants.ADMIN)\n public ResponseEntity<VehicleTask> createVehicleTask(@Valid @RequestBody VehicleTask vehicleTask) throws URISyntaxException {\n log.debug(\"REST request to save VehicleTask : {}\", vehicleTask);\n if (vehicleTask.getId() != null) {\n throw new BadRequestAlertException(\"A new vehicleTask cannot already have an ID\", ENTITY_NAME, \"idexists\");\n }\n VehicleTask result = vehicleTaskService.save(vehicleTask);\n return ResponseEntity.created(new URI(\"/api/vehicle-tasks/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(ENTITY_NAME, result.getId().toString()))\n .body(result);\n }", "void registerTasks(Object taskClassObject);", "@SuppressWarnings(\"rawtypes\")\n @Override\n protected CommitteeTaskBase getNewCommitteeTaskInstanceHook(String taskName, CommitteeBase committee) {\n return new CommitteeTaskBase<IacucCommittee>(TaskGroupName.IACUC_COMMITTEE, taskName, (IacucCommittee) committee) {};\n }", "private ITaskCluster createTaskCluster(ITaskObject... taskObjects) {\n ITaskCluster taskCluster = getTaskManagerConfiguration().getTaskFactory().newTaskCluster();\n taskCluster = getTaskManagerConfiguration().getTaskManagerWriter().saveNewTaskCluster(taskCluster);\n\n return createTaskGraphForTaskCluster(taskCluster, taskObjects);\n }", "@Override\n\t\tprotected String doInBackground(Task... arg0) {\n\t\t\tString taskID = TfTaskRepository.addTask(arg0[0], \n\t\t\t getApplicationContext());\n\t\t\t\n\t\t\ttaskID = taskID + \"\\n\";\n\t\t\t\n\t\t\t//saving the ID local\n\t\t\tlt.saveTaskId(taskID, getApplicationContext());\n\t\t\t\n\t\t\treturn null;\n\t\t}", "public Task(String url) {\n this.url = url;\n logger.debug(\"Created task for \" + url);\n }", "protected Task<Void> createTask() {\n\n\t\t\treturn new Task<Void>() {\n\n\t\t\t\tprotected Void call() {\n\t\t\t\t\t_button.setDisable(true);\n\t\t\t\t\tTaskScheduler.executeAlgorithm(_digraph);\n\n\t\t\t\t\treturn null;\n\n\n\t\t\t\t}\n\t\t\t};\n\t\t}", "private CreateContainerTask(String containerName) {\n\t\t\tthis.containerName = containerName;\n\t\t}", "public Todo(String task) {\n super(task);\n }", "@POST\n @Consumes(MediaType.APPLICATION_JSON)\n public void newEmployee(String task) {\n Employee employee = new Employee(\"Bruno\");\n employeeService.updateTask(employee);\n }", "public Task build() {\n return new Task(moduleName, taskId, taskName, taskDeadline, isComplete);\n }" ]
[ "0.643907", "0.643907", "0.643907", "0.6399036", "0.6123013", "0.59858423", "0.59791017", "0.5815544", "0.57761246", "0.5756574", "0.5747747", "0.5714897", "0.56757414", "0.5641533", "0.56389976", "0.5581274", "0.5550181", "0.55185163", "0.5502693", "0.54765475", "0.54461217", "0.5441167", "0.5427655", "0.54140294", "0.5382939", "0.5370245", "0.5362201", "0.535314", "0.5348126", "0.53441066", "0.53406835", "0.53197217", "0.530642", "0.52960044", "0.5294297", "0.52861845", "0.5279155", "0.5263617", "0.526235", "0.52603436", "0.5260143", "0.5246955", "0.5246833", "0.5244404", "0.52334976", "0.52184206", "0.52088183", "0.5196877", "0.5195515", "0.51842123", "0.51828444", "0.51734257", "0.5169774", "0.51626265", "0.516186", "0.51617384", "0.51577175", "0.5157706", "0.51463485", "0.51268876", "0.51145446", "0.5106055", "0.5103297", "0.51027644", "0.50977147", "0.50892556", "0.5083512", "0.5080515", "0.5077112", "0.5074184", "0.50633436", "0.50631225", "0.503879", "0.50354743", "0.50347936", "0.50320065", "0.50304544", "0.50251514", "0.50247943", "0.50247943", "0.50233835", "0.502157", "0.50197977", "0.5012937", "0.50068414", "0.49886534", "0.49885547", "0.49877805", "0.4975137", "0.4969742", "0.4969597", "0.496083", "0.49591142", "0.4957916", "0.4955903", "0.49536222", "0.49533337", "0.4941214", "0.49317014", "0.49282515" ]
0.52224284
45
Method to get the information message
public java.lang.String getMessage() { return message; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@AutoEscape\n\tpublic String getMessageInfo();", "public String getInfoString();", "String getInfo();", "public InfoMessage createInfoMessage();", "public String getInformation() {\n return information;\n }", "Information getInfo();", "public String getInfo()\n {\n return info;\n }", "public String getInfo() {\n return this.info;\n }", "java.lang.String getMessageInfoID();", "public abstract String getInfo();", "public abstract String getInfo();", "public String getInformation() {\n\t\treturn \"\";\n\t}", "public String getInformation() {\n\t\treturn \"\";\n\t}", "public String getInfoText();", "@Override\n public String getInfo() {\n return this.info;\n }", "public String getInfo() {\n return info;\n }", "public String getInformation() {\n return mInformation;\n }", "public String getInfoString() {\n/* 140 */ return this.info;\n/* */ }", "@Override\n public String getInfo(){\n return info;\n }", "public String getInfo() {\n\t\treturn null;\r\n\t}", "public String getInfo() {\n Object ref = info_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n info_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }", "public String getInfo() {\n Object ref = info_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n info_ = s;\n return s;\n }\n }", "public String getInfo()\r\n\t{\r\n\t\treturn theItem.getNote();\r\n\t}", "public String getInfo() {\n return null;\n }", "public static String getInfo() {\n/* 327 */ return \"\";\n/* */ }", "public String getString_infos_metadata() { \n char carr[] = new char[Math.min(net.tinyos.message.Message.MAX_CONVERTED_STRING_LENGTH,2)];\n int i;\n for (i = 0; i < carr.length; i++) {\n if ((char)getElement_infos_metadata(i) == (char)0) break;\n carr[i] = (char)getElement_infos_metadata(i);\n }\n return new String(carr,0,i);\n }", "@Override\r\n\tpublic String getInfo() {\n\t\treturn null;\r\n\t}", "@Override\r\n\tpublic String getInfo() {\n\t\treturn null;\r\n\t}", "String getAdditionalInfo();", "public String info(){\r\n String info =\"\";\r\n info += \"id karyawan : \" + this.idkaryawan + \"\\n\";\r\n info += \"Nama karyawan : \" + this.namakaryawan + \"\\n\";\r\n return info;\r\n }", "java.lang.String getDetails();", "public String getMessage()\n {\n return String.format(\"MessageType=%s,TransactionId=%s,TerminalId=%s,MerchantId=%s,FingerData=%s,CustomerId=%s,IdData=%s, CustomerData=%s\", this.messageType, this.transactionId, this.terminalId, this.merchantId, this.fingerData, this.customerId, this.idData, this.customerData);\n }", "com.google.protobuf.ByteString\n getInfoBytes();", "@Override\n\tpublic String getInfo() {\n\t\treturn null;\n\t}", "java.lang.String getTheMessage();", "public void getInfo() {\n System.out.println(\"Content : \" + content);\n System.out.println(\"Name : \" + name);\n System.out.println(\"Location : (\" + locX + \",\" + locY + \")\");\n System.out.println(\"Weight : \" + String.format(\"%.5f\", weight) + \" kg/day\");\n System.out.println(\"Habitat : \" + habitat);\n System.out.println(\"Type : \" + type);\n System.out.println(\"Diet : \" + diet);\n System.out.println(\"Fodder : \" + String.format(\"%.5f\", getFodder()) + \" kg\");\n System.out.println(tamed ? \"Tame : Yes \" : \"Tame : No \");\n System.out.println(\"Number of Legs : \" + legs);\n }", "public void getInfo(){\n System.out.println(\"Name: \" + name + \"\\n\" + \"Address: \" + address);\n }", "public com.google.protobuf.ByteString\n getInfoBytes() {\n Object ref = info_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n info_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String getInfobarMessage(){\r\n\t\treturn driver.findElement(By.xpath(\"//div[contains(@class,'x-gadget')]//div[contains(@class,'infobar bg-success')]\")).getText();\r\n\r\n\t}", "public String getInformation() {\n \treturn \"This is a Maths Assessment\" +\n \t\t\t \"\\nNumber of questions: \" + Integer.toString(numQuestions) + \n \t\t\t \"\\nClosing Date: \" + closingDate;\n }", "public String toString() {\n\t\treturn getMessage();\n\t}", "public String getMessage(){\n return(message);\n }", "String getMessage();", "String getMessage();", "String getMessage();", "@Override\n public String toString() {\n return info();\n }", "public com.google.protobuf.ByteString\n getInfoBytes() {\n Object ref = info_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n info_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public Object getInfo() {\n // from AddEventHandler\n return new String();\n }", "public String getMessage() {\n\t\treturn this.nbt.getString(MESSAGE_KEY);\n\t}", "com.google.protobuf.ByteString getDetailsBytes();", "public String creerMessage(){\n return profile.getMessage();\n }", "Object getMessage();", "String returnInfo() {\n String info = \n this.toString() +\n \"\\n\\tOn: \" + this.getOnStatus() +\n \"\\n\\tSpeed: \" + this.getSpeed() +\n \"\\n\\tRadius: \" + this.getRadius() +\n \"\\n\\tColor: \" + this.getColor();\n return info;\n }", "public int getInfo()\r\n\t{\r\n\t\treturn info;\r\n\t}", "@GET\n\t@Produces(\"text/plain\")\n\tpublic String getMessage() {\n\t\treturn MessageConstants.GET_MESSAGE;\n\t}", "public String getMessage(){\r\n\t\treturn message;\r\n\t}", "public String getInfo(){\n return \" name: \" + this.name;\n }", "public String getMessage(){\n\t\treturn this.message;\n\t}", "public String getMessage() {\r\n\treturn messageSB.toString();\r\n }", "public byte[] getInfoString() {\n return Arrays.copyOf(this.infoString, this.infoString.length);\n }", "public final String getInfo() {\r\n\t\treturn name;\r\n\t}", "public String getInformation() {\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\tencodingTable.forEach((c, s) -> {\n\t\t\tsb.append(c);\n\t\t\tsb.append(\" -> \");\n\t\t\tsb.append(s);\n\t\t\tsb.append('\\n');\n\t\t});\n\n\t\treturn sb.toString();\n\t}", "java.lang.String getMsg();", "@Override\n\tpublic String info() {\n\t\treturn String.valueOf(super.getDonnee());\n\t}", "public int getInfo ()\n\t\t{\n\t\t\treturn info;\n\t\t}", "public String showInfoMedi(){\n\t\tString msg = \"\";\n\n\t\tmsg += \"NOMBRE DE LA MEDICINA: \"+name+\"\\n\";\n\t\tmsg += \"LA DOSIS: \"+dose+\"\\n\";\n\t\tmsg += \"COSTO POR DOSIS: \"+doseCost+\"\\n\";\n\t\tmsg += \"FRECUENCIA QUE ESTA DEBE SER APLICADA: \"+frecuency+\"\\n\";\n\n\t\treturn msg;\n\t}", "@Override\n\tpublic void info(Object message) {\n\n\t}", "public String getMessage() {\r\n return messageKind.getMessage();\r\n }", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "public String getMessage(){\r\n return message;\r\n }", "public String getMessage(){\r\n return message;\r\n }", "public String getMessageText();", "void getInfo() {\n\tSystem.out.println(\"My name is \"+name+\" and I am going to \"+school+\" and my grade is \"+grade);\n\t}", "public char[] info() {\n\t\treturn null;\r\n\t}", "public String getData() {\n return message;\n }", "public String getInfo(){\n return \"Name: \" + name + \"\\n\"\n + \"Min Range: \" + minRange + \"\\n\"\n + \"Max Range: \" + maxRange + \"\\n\"\n + \"Attack: \" + attack + \"\\n\"\n + \"Cost: \" + buildCost;\n }", "public String info() {\n return name();\n }", "public String info() {\n return name();\n }", "public Object getInfo() {\n return info;\n }", "public java.lang.String getMessageInfoID() {\n java.lang.Object ref = messageInfoID_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n messageInfoID_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getMessage() {\n \t\treturn message;\n \t}", "public String getMessage()\r\n\t{\r\n\t\treturn message;\r\n\t}", "public String getMessage(){\n return message;\n }", "public String getMessage(){\n return this.message;\n }", "public java.lang.String getMessageInfoID() {\n java.lang.Object ref = messageInfoID_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n messageInfoID_ = s;\n }\n return s;\n }\n }" ]
[ "0.7706329", "0.76433146", "0.76309234", "0.75729734", "0.74667704", "0.74435174", "0.7380074", "0.7338941", "0.7303786", "0.73000056", "0.73000056", "0.72992045", "0.72992045", "0.72967607", "0.72896177", "0.728781", "0.72855735", "0.72620237", "0.7235455", "0.7173332", "0.71697086", "0.7145244", "0.7094763", "0.7064541", "0.693703", "0.69243604", "0.6916517", "0.6916517", "0.6910747", "0.6908352", "0.68677384", "0.68478817", "0.6831257", "0.682992", "0.6816008", "0.68066496", "0.6790966", "0.67836297", "0.67397845", "0.6737669", "0.67367667", "0.6691476", "0.66805345", "0.66805345", "0.66805345", "0.6679507", "0.66791666", "0.6666025", "0.6663851", "0.66591", "0.6655738", "0.665491", "0.66485393", "0.66355616", "0.66335136", "0.6629381", "0.66239893", "0.6622507", "0.6601667", "0.65976626", "0.6588563", "0.6581496", "0.6571927", "0.6571387", "0.6566358", "0.6565783", "0.6560822", "0.6554095", "0.65464157", "0.65464157", "0.65464157", "0.65464157", "0.65464157", "0.65464157", "0.65464157", "0.65464157", "0.65464157", "0.65464157", "0.65464157", "0.65464157", "0.65464157", "0.65464157", "0.65464157", "0.65464157", "0.65464157", "0.6546162", "0.6546162", "0.6538222", "0.65279627", "0.6527169", "0.65244967", "0.65224683", "0.6514047", "0.6514047", "0.6511964", "0.65076995", "0.65064096", "0.650175", "0.64966005", "0.64962256", "0.6495802" ]
0.0
-1
Method to get the proxy Host Domain
public java.lang.String getProxyHost() { return proxyHost; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getHttpProxyHost();", "public String getHttpProxyHost();", "public final String getProxyHost() {\n return properties.get(PROXY_HOST_PROPERTY);\n }", "public final String getProxyHost() {\n return properties.get(PROXY_HOST_PROPERTY);\n }", "public String getProxyHost() {\n return cfg.getProxyHost();\n }", "public String getProxyHost() {\n return proxyHost;\n }", "@Nonnull\n public String getProxyHost() {\n return proxyHost;\n }", "public String getHost() {\r\n \t\treturn properties.getProperty(KEY_HOST);\r\n \t}", "String getDomain();", "public String getHost() {\n\t\treturn url.getHost();\n }", "java.lang.String getHost();", "java.lang.String getHost();", "private String getDomain(String host){\n StringBuffer sb = new StringBuffer(\"\");\r\n try{\r\n StringTokenizer stk = new StringTokenizer(host, \".\");\r\n sb.append(stk.nextToken());\r\n sb.append(\".\");\r\n sb.append(stk.nextToken());\r\n sb.append(\".\");\r\n sb.append(stk.nextToken());\r\n sb.append(\".\");\r\n sb.append(\"*\");\r\n }catch(Exception e){\r\n e.printStackTrace();\r\n }\r\n return sb.toString();\r\n }", "private String getDnsDomain() throws UnknownHostException\r\n {\r\n // get dns domain\r\n String lDnsDomain = null;\r\n\r\n if ( lDnsDomain == null ) {\r\n String lLocalhost = InetAddress.getLocalHost().getCanonicalHostName();\r\n String[] lParts = lLocalhost.split( \"[.]\" );\r\n if ( lParts.length > 1 )\r\n lDnsDomain = lParts[ lParts.length - 2 ] + \".\" + lParts[ lParts.length - 1 ];\r\n }\r\n\r\n return (lDnsDomain);\r\n }", "public String getDomain() {\n return getProperty(DOMAIN);\n }", "public String getHost();", "public String getHost();", "public static URL getHostUrl() {\n try {\n String protocol = getRequestsProtocol();\n return new URL(protocol + \"://\" + Controller.request().host());\n } catch (MalformedURLException e) {\n LOGGER.error(\".getHostUrl: couldn't get request's host URL\", e);\n }\n // Should never happen\n return null;\n }", "public void getDomain(){\n String requestDomain = IPAddressTextField.getText();\n Connection conn = new Connection();\n\n String ip = conn.getDomain(requestDomain);\n\n output.writeln(requestDomain + \" --> \" + ip);\n }", "String getHost();", "public String getHostURL() {\n return getHostURL(PAActiveObject.getActiveObjectNodeUrl(PAActiveObject.getStubOnThis()));\n }", "public String getHost( ) {\n\t\treturn host;\n\t}", "public String getHost() {\n\tLogWriter.logMessage(LogWriter.TRACE_DEBUG,\"getHost()\");\n Via via=(Via)sipHeader;\n return via.getHost();\n }", "public String getDomain() {\n return domain;\n }", "public String getDomain() {\n return domain;\n }", "public String getHost() {\r\n return host;\r\n }", "public InetAddress getHost();", "public String getApplicationDomain()\n {\n ASPManager mgr = getASPManager();\n String curr_host = mgr.getCurrentHost();\n if(mgr.isDifferentApplicationPath())\n {\n int host_no = mgr.getCurrentHostIndex()+1;\n String[] data =Str.split((String)configfile.hosts.get(host_no+\"\"),\",\");\n \n if(!\"NONE\".equals(data[1]))\n curr_host = data[1];\n }\n\n return curr_host;\n }", "public String getDomain() {\r\n return domain;\r\n }", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }", "public String getDomain() {\n\t\treturn domain;\n\t}", "public String getHost() {\n \t\treturn host;\n \t}", "public String getHost(){\n\t\treturn this.host;\n\t}", "String host();", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }", "Host getHost();", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }", "public String getHost() {\n\t\treturn host;\n\t}", "public String getHost() {\n\t\treturn host;\n\t}", "protected String getDomain() {\n return \"\";\n }", "public String getHost() { return host; }", "java.lang.String getRemoteHost();", "@Override\n\tpublic java.lang.String getRemoteHost() {\n\t\treturn _userTracker.getRemoteHost();\n\t}", "public synchronized String getProxyAddress() {\n \n return this.address;\n }", "public String getDomainName() {\n return domainName;\n }", "public String getHost() {\n return host.getText();\n }", "public String getHost( ) {\n return props.getProperty(HOST, \"localhost\");\n }", "public String host() {\n return host;\n }", "public String getHost() {\n\t\treturn this.sipStack.getHostAddress();\n\t}", "String getRemoteHostName();", "public String getHost()\n\t{\n\t\treturn m_strHostname;\n\t}", "public Object getDomain ();", "String getHost()\n {\n return host;\n }", "public String getHost() {\n return m_host;\n }", "public String getHostName();", "public java.lang.String getDomainName() {\r\n return domainName;\r\n }", "public String getHostname();", "public String getHost() {\n\t\ttry {\n\t\t\treturn InetAddress.getLocalHost().getHostName();\n\t\t} catch (UnknownHostException e) {\n\t\t\treturn \"unknown\";\n\t\t}\n\t}", "public String getHostName() {\n return hostName;\n }", "public String getHostName() {\n return hostName;\n }", "public String getHostProperty() {\n\n return unmaskProperty(EmailConnectionConstants.PROPERTY_HOST);\n }", "Object getMailhost();", "public String getHostAddress()\n {\n return (addr != null ? addr.getHostAddress() : \"\");\n }", "public java.lang.String getDomainName() {\n return domainName;\n }", "public String getHostName()\n\t{\n\t\treturn hostName;\n\t}", "private String getHostName()\n\t{\n\t\treturn hostName;\n\t}", "String getHostname();", "String getHostname();", "public String getHostName (){\n return hostName;\n }", "public String getFullHost() {\n return \"http://\" + get(HOSTNAME_KEY) + \":\" + get(PORT_KEY) + \"/\" + get(CONTEXT_ROOT_KEY) + \"/\";\n }", "public String hostname() {\n return this.hostname;\n }", "public String getHostName() {\n return FxSharedUtils.getHostName();\n }", "public String getHost() {\n return messageProcessor.getIpAddress().getHostAddress();\n }", "public String getHostAddress() {\n\t\treturn javaNetAddress.getHostAddress();\n\t}", "@Override\n\t\tpublic String getHost() {\n\t\t\treturn null;\n\t\t}", "default String getHost()\n {\n return getString( \"host\", \"localhost:80\");\n }", "public String getServiceDomain() {\r\n\t\treturn getTextValue(this.serviceDomainList);\r\n\t}", "public String getGatewayHost();", "String getHostName();", "String getHostName();", "public String getHostName() {\n\t\treturn hostName;\n\t}", "public String getHostName() {\n\t\treturn hostName;\n\t}", "public java.lang.String getRemoteHost() {\r\n return remoteHost;\r\n }", "public String getHost(Env env) {\n return client.getHost();\n }", "public String getUserHost() {\n return userHost;\n }", "public String getHostName() {\n return this.hostContext.getHostName();\n }", "public static String getBaseHost() {\r\n if (baseHost == null) {\r\n baseHost = PropertiesProvider.getInstance().getProperty(\"server.name\", \"localhost\");\r\n }\r\n return baseHost;\r\n }", "public String getBaseDomain(String url)\r\n\t{\r\n\t\tString host = getHost(url);\r\n\r\n\t\tint startIndex = 0;\r\n\t\tint nextIndex = host.indexOf('.');\r\n\t\tint lastIndex = host.lastIndexOf('.');\r\n\t\twhile (nextIndex < lastIndex)\r\n\t\t{\r\n\t\t\tstartIndex = nextIndex + 1;\r\n\t\t\tnextIndex = host.indexOf('.', startIndex);\r\n\t\t}\r\n\t\tif(startIndex > 0)\r\n\t\t{\r\n\t\t\treturn host.substring(startIndex);\r\n\t\t} else\r\n\t\t{\r\n\t\t\treturn host;\r\n\t\t}\r\n\t}", "public String getmChatbotDomain() {\n return mChatbotDomain;\n }", "String getSearchDomainName();", "public java.lang.String getHost() {\n java.lang.Object ref = host_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n host_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getDomainName(){\n return this.domainName;\n }", "public String getHostname () {\n return hostname;\n }" ]
[ "0.7759454", "0.7717159", "0.7613519", "0.7613519", "0.75590706", "0.74316216", "0.7304552", "0.71413577", "0.71164113", "0.71147716", "0.70756453", "0.70756453", "0.6989693", "0.68763137", "0.6832604", "0.68208104", "0.68208104", "0.6790646", "0.6765923", "0.6744082", "0.67408377", "0.65924346", "0.6575894", "0.6570829", "0.6570829", "0.6538067", "0.6523298", "0.6510337", "0.6507689", "0.6499504", "0.6499504", "0.6499504", "0.6499504", "0.6499504", "0.6499504", "0.64963496", "0.6494551", "0.64891815", "0.6465117", "0.6461144", "0.6461144", "0.6457324", "0.645634", "0.645634", "0.6441278", "0.6441278", "0.64387757", "0.64296365", "0.64180624", "0.6394186", "0.637675", "0.63535184", "0.63404125", "0.63285875", "0.6327276", "0.6320468", "0.63121593", "0.6309658", "0.6285863", "0.62847203", "0.6270277", "0.6247386", "0.6232883", "0.62307477", "0.6228606", "0.6223797", "0.6223797", "0.6221544", "0.61996806", "0.6198295", "0.6190936", "0.6183317", "0.61813706", "0.61803514", "0.61803514", "0.61785877", "0.6142281", "0.6140388", "0.6139565", "0.61334294", "0.6123036", "0.6110291", "0.6106976", "0.61055267", "0.60969293", "0.6087594", "0.6087594", "0.6072962", "0.6072962", "0.60726", "0.6070581", "0.6067629", "0.6064083", "0.6056225", "0.6053024", "0.6045053", "0.60390544", "0.60280216", "0.598303", "0.59448737" ]
0.7577427
4
Method to get the proxy User ID Name
public java.lang.String getProxyName() { return proxyName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getHttpProxyUsername();", "protected static String getProxyUsername() {\n if (\"?\".equals(proxyUsername)) {\n Console console = System.console();\n if (console != null) {\n proxyUsername = console.readLine(\"Proxy username:\");\n } else {\n throw new UnsupportedOperationException(\n \"Proxy username must be specified\");\n }\n }\n return proxyUsername;\n }", "java.lang.String getUserID();", "java.lang.String getUserID();", "java.lang.String getUserID();", "public String getProxyUsername() {\n return cfg.getProxyUsername();\n }", "java.lang.String getUserName();", "java.lang.String getUserName();", "java.lang.String getUserName();", "public String getProxyUsername() {\n return proxyUsername;\n }", "public static String getUserName(long requestorId)\n\t {\n\t String fullName = StringPool.BLANK;\n\t try\n\t {\n\t User user = UserLocalServiceUtil.getUserById(requestorId);\n\t fullName = user.getFirstName() + StringPool.SPACE + user.getLastName();\n\t } catch (PortalException e)\n\t {\n\t LOGGER.error(\"Failed to find user details...\" + e.getMessage());\n\t } catch (SystemException e)\n\t {\n\t LOGGER.error(\"User not exist....\" + e.getMessage());\n\t }\n\t return fullName;\n\t }", "String getUserID();", "String getUserName();", "String getUserName();", "public synchronized String getProxyID() {\n \n return this.id;\n }", "public Object getProxyUser() {\n return this.proxyUser;\n }", "public String getUserID();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "public String getUserRealName() {\r\n return userRealName;\r\n }", "public static String getUserDisplayName() {\r\n return getUsername();\r\n }", "private String getLoggedUser() {\n\t\torg.springframework.security.core.userdetails.User user2 = \n\t\t\t\t(org.springframework.security.core.userdetails.User) \n\t\t\t\tSecurityContextHolder.getContext().getAuthentication().getPrincipal();\n\t\tString name = user2.getUsername();\n\t\treturn name;\n\t}", "@Override\n public String getUserName() throws ResourceException {\n return session.getUserID();\n }", "public String getName() {\n return (String) getObject(\"username\");\n }", "@AutoEscape\n\tpublic String getUser_name();", "@Override\n public java.lang.String getUserName() {\n return _partido.getUserName();\n }", "public String getUserName();", "java.lang.String getUserId();", "java.lang.String getUserId();", "java.lang.String getUserId();", "String getUserUsername();", "String getUserId();", "String getUserId();", "@Override\n\tpublic String getUsername() {\n\t\treturn user.getUserName();\n\t}", "@Override\n\tpublic String getUserName() {\n\t\treturn model.getUserName();\n\t}", "@Override\n\tpublic String getUserName() {\n\t\treturn model.getUserName();\n\t}", "@Override\n\tpublic java.lang.String getUserName() {\n\t\treturn _second.getUserName();\n\t}", "@Override\n\tpublic String getUserName() {\n\t\t\n\t\ttry {\n\t\t\treturn UserLocalServiceUtil.getUser(_dataset.getUserId()).getScreenName();\n\t\t} catch (PortalException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (SystemException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\treturn \"ERROR\";\n\t\t}\n\t}", "String getUsername();", "String getUsername();", "String getUsername();", "String getUsername();", "String getUsername();", "String getUsername();", "public String getProxyId() {\n\t\t\treturn proxy_Id;\n\t\t}", "@Override\n\tpublic java.lang.String getUserName() {\n\t\treturn _paper.getUserName();\n\t}", "public String getName() {\n return user.getName();\n }", "public String getUserName(int userId);", "public static String getUserName() {\n\t\treturn readTestData.getkeyData(\"SignUpDetails\", \"Key\", \"Value\", \"userName\");\n\t}", "@Override\n public String getUserID() {\n return user_id;\n }", "public String getUserRealname() {\n return userRealname;\n }", "public String getUserName() {\n return sessionData.getUserName();\n }", "@Override\n public String getUserName() {\n return name;\n }", "java.lang.String getUser();", "public java.lang.String getUserID() {\r\n return localUserID;\r\n }", "@DISPID(8)\r\n\t// = 0x8. The runtime will prefer the VTID if present\r\n\t@VTID(14)\r\n\tjava.lang.String username();", "@Override\n\tpublic String getUserName() {\n\t\treturn super.getUserName();\n\t}", "@Override\n\tpublic String getUserName() {\n\t\treturn super.getUserName();\n\t}", "public String getName() {\n\t\treturn this.username;\n\t}", "public String getNick() {\n return this.session.sessionPersona().getUserName();\n }", "public String getUserId() {\r\n\t\treturn this.userid.getText();\r\n\t}", "public String getName() {\r\n\t\treturn username;\r\n\t}", "public String getName(){\n return username;\n\t}", "public String getUserIdLableText() {\n\t\treturn util.getWebelementText(this.loginPageLocators.getUserIdLabelElement());\n\t}", "@AutoEscape\n\t@Override\n\tpublic String getUserName();", "@AutoEscape\n\t@Override\n\tpublic String getUserName();", "String getUserName(String userId);", "public String getUser_name() {\n return user_name;\n }", "public String getIdUser() {\n\t\treturn idUser;\n\t }", "public final String getUsername() {\n return properties.get(USERNAME_PROPERTY);\n }", "@Override\r\n\t\t\tpublic String getUsername() {\n\t\t\t\treturn \"User1\";\r\n\t\t\t}", "public String getUserName() {\n\t\treturn phoneText.getText().toString();\n\t}", "public String getIdUser() {\n\t\treturn idUser;\n\t}", "public String returnUserName() {\n\t\treturn this.registration_username.getAttribute(\"value\");\r\n\t}", "public java.lang.String getUserID() {\n return userID;\n }", "@Override\r\n\tpublic String getUserId(String nickName) throws Exception {\n\t\treturn userDao.getUserId(nickName);\r\n\t}", "public final String getUser() {\n return username;\n }", "public String getUserName() {\n return order.getUser().getUsername();\n }", "public java.lang.String getUserID() {\r\n return userID;\r\n }", "public String getUserName() throws FrameException {\n try {\n byte data[] = (byte[])infoElements.get(new Integer(InfoElement.USERNAME));\n return new String(data);\n } catch (Exception e) {\n throw new FrameException(e);\n }\n }", "@Override\n\tpublic String getGivenName() {\n\t\treturn user.getUserInfo().getGivenName();\n\t}", "public String getName() {\r\n\t\treturn this.userName;\r\n\t}", "public String getUsername() {\n return username.get();\n }", "public int getUser1X_ID();", "public String getIduser() {\n\t\treturn iduser;\n\t}", "public String getUser() {\r\n\t\treturn _userName;\r\n\t}", "String getUser();", "String getUser();", "public java.lang.String getUserID() {\n return userID;\n }", "java.lang.String getNickname();", "public String getUserName() {\n\t\t\treturn name;\n\t\t}", "public String getUser() {\r\n \t\treturn properties.getProperty(KEY_USER);\r\n \t}", "@Override\n\tpublic java.lang.String getUserUuid() {\n\t\treturn _userTracker.getUserUuid();\n\t}" ]
[ "0.7539916", "0.7224824", "0.7216744", "0.7216744", "0.7216744", "0.72056043", "0.71179897", "0.71179897", "0.71179897", "0.7055391", "0.7014455", "0.6987952", "0.69757074", "0.69757074", "0.69735986", "0.6965049", "0.694503", "0.68895894", "0.68895894", "0.68895894", "0.68895894", "0.68895894", "0.68895894", "0.68895894", "0.68895894", "0.68895894", "0.6860376", "0.68537486", "0.68449914", "0.6838564", "0.6803313", "0.67987156", "0.6793021", "0.6777341", "0.676754", "0.676754", "0.676754", "0.67577505", "0.6756675", "0.6756675", "0.6739759", "0.6724313", "0.6724313", "0.6710069", "0.6702151", "0.66981995", "0.66981995", "0.66981995", "0.66981995", "0.66981995", "0.66981995", "0.66868085", "0.66762644", "0.6660351", "0.6656136", "0.6649835", "0.66496223", "0.66444665", "0.66440094", "0.66419363", "0.66321903", "0.6604672", "0.660173", "0.66001827", "0.66001827", "0.65861094", "0.65752614", "0.6574408", "0.6568355", "0.6543145", "0.6542278", "0.6538572", "0.6538572", "0.65371865", "0.65352684", "0.6534882", "0.653292", "0.65311456", "0.6522062", "0.6515259", "0.65141386", "0.65079874", "0.65070885", "0.64961845", "0.6489601", "0.6480322", "0.6469474", "0.6460843", "0.64580643", "0.64577425", "0.6455265", "0.6452238", "0.6451184", "0.64507836", "0.64507836", "0.64487773", "0.64484084", "0.64479345", "0.64473754", "0.64455724" ]
0.6529311
78
Method to get the proxy Port
public String getProxyPort() { return proxyPort; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getHttpProxyPort();", "public int getHttpProxyPort();", "public synchronized String getProxyPort() {\n \n return this.port;\n }", "public int getProxyPort() {\n return cfg.getProxyPort();\n }", "public final String getProxyPort() {\n return properties.get(PROXY_PORT_PROPERTY);\n }", "public int getProxyPort() {\n return proxyPort;\n }", "public int getProxyPort() {\n return proxyPort;\n }", "public String getProxyPort() {\n return proxyPort;\n }", "public String getProxyPort() {\n\t\treturn checkBoxProxyEnabled.isSelected() ? textFieldProxyPort.getText() : \"\";\n\t}", "public int getPort()\n {\n\t\treturn url.getPort();\n }", "default int getPort() {\n return getServer().getPort();\n }", "public int getSmtpSOCKSProxyPort() {\n return smtpSOCKSProxyPort;\n }", "public void setHttpProxyPort(int port);", "public static int getPort() {\n return port;\n }", "public int getPort() {\n if (state >= CONNECTED)\n return remotePort;\n else\n return 0;\n }", "default Object port() {\n return metadata().get(\"server-port\");\n }", "public int getPort() {\n return this.config.getPort();\n }", "default int getPort()\n {\n return getInt(\"port\", 80);\n }", "public int getPort() {\n return port_;\n }", "public int getPort() {\n return port_;\n }", "public int getPort() {\n return port_;\n }", "public int getPort() {\n return port_;\n }", "public int getPort() {\n return instance.getPort();\n }", "public int getPort() {\n return instance.getPort();\n }", "public int getPort () {\n return port;\n }", "public int getPort()\n {\n return port;\n }", "public int actualPort() {\n return this.port;\n }", "public int getPort();", "public int getPort();", "public int getPort();", "public int getPort() {\n return port_;\n }", "public int getPort() {\n return port_;\n }", "public int getPort() {\n return port_;\n }", "public int getPort() {\n return port_;\n }", "public int getPort() {\n return port_;\n }", "public int getPort() {\n return port_;\n }", "public int getPort() {\r\n return port;\r\n }", "public int getPort() {\r\n return port;\r\n }", "public int getPort() {\r\n return port;\r\n }", "public int getPort() {\n final int port = getPortIfSpecified();\n if (port == UNSPECIFIED_PORT) {\n String prot = getProtocol();\n if (HTTPConstants.PROTOCOL_HTTPS.equalsIgnoreCase(prot)) {\n return HTTPConstants.DEFAULT_HTTPS_PORT;\n }\n if (!HTTPConstants.PROTOCOL_HTTP.equalsIgnoreCase(prot)) {\n log.warn(\"Unexpected protocol: \"+prot);\n // TODO - should this return something else?\n }\n return HTTPConstants.DEFAULT_HTTP_PORT;\n }\n return port;\n }", "public void setProxyPort(int port) {\n proxyPort = port;\n }", "public int getPort() {\n return port;\n }", "public int getPort() {\n return port;\n }", "public int getPort() {\n return port;\n }", "public int getPort() {\n return port;\n }", "public int getPort() {\n return port;\n }", "public int getPort() {\n return port;\n }", "public int getPort() {\n return port;\n }", "public int getPort() {\n return port;\n }", "@Override\n public int getPort() {\n final ServiceTracker<HttpService, HttpService> serviceTracker = new ServiceTracker<>(context, HttpService.class, null);\n serviceTracker.open();\n final ServiceReference<HttpService> serviceReference = serviceTracker.getServiceReference();\n serviceTracker.close();\n return ofNullable(serviceReference)\n .map(it -> it.getProperty(\"org.osgi.service.http.port\"))\n .map(String::valueOf)\n .map(Integer::parseInt)\n .orElse(80);\n }", "public int getPort() {\n final int port = getPortIfSpecified();\n if (port == UNSPECIFIED_PORT) {\n String prot = getProtocol();\n if (HTTPConstants.PROTOCOL_HTTPS.equalsIgnoreCase(prot)) {\n return HTTPConstants.DEFAULT_HTTPS_PORT;\n }\n if (!HTTPConstants.PROTOCOL_HTTP.equalsIgnoreCase(prot)) {\n log.warn(\"Unexpected protocol: \" + prot);\n // TODO - should this return something else?\n }\n return HTTPConstants.DEFAULT_HTTP_PORT;\n }\n return port;\n }", "public int getPort() {\n return port;\n }", "public int getPort() {\n return port;\n }", "int getPort()\n {\n return port;\n }", "public static String getPort() {\n\t\treturn port;\r\n\t}", "@java.lang.Override\n public int getPort() {\n return port_;\n }", "@java.lang.Override\n public int getPort() {\n return port_;\n }", "public int getPort( ) {\n\t\treturn port;\n\t}", "public int getPort(Env env) {\n return client.getPort();\n }", "public int getPort() {\n return port;\n }", "public int getPort() {\n return port;\n }", "public int getPort() {\n return port;\n }", "public int getPort() {\n return port;\n }", "public int getPort() {\n return port;\n }", "int getPort() {\n return port;\n }", "public int getPort(){\r\n\t\ttry {\r\n\t\t\treturn this.workerobj.getInt(WorkerController.PORT);\r\n\t\t} catch (JSONException e) {\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t}", "public int getPort() {\n \t\treturn port;\n \t}", "public int getPort() {\n \t\treturn port;\n \t}", "public int getPort()\n\t{\n\t\treturn port;\n\t}", "public int getPort()\n\t{\n\t\treturn port;\n\t}", "public int getPort() { return port; }", "public Integer getPort() {\n return port;\n }", "public Integer getPort() {\n return port;\n }", "public int getPort()\n\t{\n\t\treturn m_iInetPort;\n\t}", "int getPort();", "int getPort();", "int getPort();", "int getPort();", "int getPort();", "int getPort();", "int getPort();", "int getPort();", "int getPort();", "int getPort();", "int getPort();", "int getPort();", "int getPort();", "public int getPort() {\r\n\t\treturn port;\r\n\t}", "public int getPort() {\r\n\t\treturn port;\r\n\t}", "@java.lang.Override\n public int getPort() {\n return port_;\n }", "@java.lang.Override\n public int getPort() {\n return port_;\n }", "public int getPort()\n {\n return port;\n }", "public int getHttpPort() {\n return httpServer.getPort();\n }", "public int getPort() {\n\t\treturn port;\n\t}", "public int getPort() {\n\t\treturn port;\n\t}", "public int getPort() {\n\t\treturn port;\n\t}", "public int getPort() {\n\t\treturn port;\n\t}", "public int getPort() {\n\t\treturn port;\n\t}", "public Integer getPort() {\n return port;\n }", "public static String getBasePort() {\r\n if (basePort == null) {\r\n basePort = PropertiesProvider.getInstance().getProperty(\"server.port\", \"8080\");\r\n }\r\n return basePort;\r\n }" ]
[ "0.88211524", "0.87530416", "0.8711637", "0.86141354", "0.8557486", "0.8469105", "0.8469105", "0.8398291", "0.8048814", "0.76106995", "0.71981674", "0.7187862", "0.7134046", "0.7123501", "0.71199435", "0.70643073", "0.7061731", "0.70411557", "0.70318234", "0.70318234", "0.70318234", "0.70318234", "0.70244974", "0.70244974", "0.7011008", "0.7001318", "0.69923383", "0.6990858", "0.6990858", "0.6990858", "0.6973459", "0.6973459", "0.6973459", "0.6973459", "0.6973459", "0.6973459", "0.6972601", "0.6972601", "0.6972601", "0.6955946", "0.69542253", "0.6951604", "0.6951604", "0.6951604", "0.6951604", "0.6951604", "0.6951604", "0.6951604", "0.6951604", "0.694769", "0.69334596", "0.6930646", "0.6930646", "0.6922781", "0.69174933", "0.69117004", "0.69117004", "0.69058454", "0.6898915", "0.6898636", "0.6898636", "0.6898636", "0.6898636", "0.6898636", "0.68926173", "0.688139", "0.6871156", "0.6871156", "0.68657076", "0.68657076", "0.6860057", "0.68476945", "0.68476945", "0.68409514", "0.682621", "0.682621", "0.682621", "0.682621", "0.682621", "0.682621", "0.682621", "0.682621", "0.682621", "0.682621", "0.682621", "0.682621", "0.682621", "0.6826042", "0.6826042", "0.68198", "0.6819797", "0.6817634", "0.6812536", "0.68086284", "0.68086284", "0.68086284", "0.68086284", "0.68086284", "0.6796571", "0.6793319" ]
0.851914
5
Method to get the proxy Password
public java.lang.String getProxyPswd() { return proxyPswd; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getHttpProxyPassword();", "public String getProxyPassword() {\n return cfg.getProxyPassword();\n }", "public String getProxyPassword() {\n return proxyPassword;\n }", "protected static String getProxyPassphrase() {\n if (\"?\".equals(proxyPassphrase)) {\n Console console = System.console();\n if (console != null) {\n proxyPassphrase = new String(console.readPassword(\"Proxy password:\"));\n } else {\n throw new UnsupportedOperationException(\n \"Proxy password must be specified\");\n }\n }\n return proxyPassphrase;\n }", "public String getPassword() {\n return getProperty(PASSWORD);\n }", "public String getPassword() {\r\n \t\treturn properties.getProperty(KEY_PASSWORD);\r\n \t}", "public java.lang.String getPassword();", "java.lang.String getPassword();", "java.lang.String getPassword();", "java.lang.String getPassword();", "java.lang.String getPassword();", "java.lang.String getPassword();", "java.lang.String getPassword();", "java.lang.String getPassword();", "public final String getPassword() {\n return properties.get(PASSWORD_PROPERTY);\n }", "public String getPassword() {\n return instance.getPassword();\n }", "public String getPassword() {\n return instance.getPassword();\n }", "public String getPassword();", "public String getPassword();", "public String getPassword() throws RemoteException;", "@Override\n\tpublic String getPass() {\n\t\treturn password;\n\t}", "String getPassword();", "String getPassword();", "String getPassword();", "String getPassword();", "String getPassword();", "String getPassword();", "String getPassword();", "String getPassword();", "String getPassword();", "@Override\n\tpublic String getPassword() {\n\t\treturn user.getUserPwd();\n\t}", "public String getPassword() {\n return (String) getObject(\"password\");\n }", "public String getPassword(){\r\n\t\ttry {\r\n\t\t\treturn this.workerobj.getString(WorkerController.PASSWORD);\r\n\t\t} catch (JSONException e) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "public PasswordCredential getPasswordCredential() {\n return passCred;\n }", "public String getPassword()\n {\n return _password;\n }", "public String get_password()\r\n\t{\r\n\t\treturn this.password;\r\n\t}", "public String getPassword() {\n\treturn strPasswd;\n }", "java.lang.String getPwd();", "@Override\n\tpublic String getPassword() {\n\t\treturn user.getPassword();\n\t}", "@Override\n\tpublic String getPassword() {\n\t\treturn getInnerObject().getPassword();\n\t}", "public String getPassword()\r\n {\r\n return password;\r\n }", "public String getPassword()\n {\n return password;\n }", "public String getPassword()\n {\n return password;\n }", "public String getPassword()\r\n {\r\n return password;\r\n }", "String getUserPassword();", "java.lang.String getPasswd();", "public String getPassword()\n \t{\n \t\treturn password;\n \t}", "public String getPassword()\n {\n return this.password;\n }", "public String getPassword()\r\n {\r\n return password;\r\n }", "public String getPassword()\n {\n return _password;\n }", "public String getPassword()\n {\n return password;\n }", "public String getPassword()\n {\n return password;\n }", "public String getPassword(){\n \treturn password;\n }", "@Override\n\tpublic String getPassword() {\n\t\treturn admin.getPassword();\n\t}", "@Override\n public String getPassword() {\n return password;\n }", "public String getPassword() {\n return password;\r\n }", "public String getPassword(){\n\t\treturn this.password;\n\t}", "public String getPassword() {return password;}", "public java.lang.String getPassword() {\r\n return password;\r\n }", "public java.lang.String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return this.password;\r\n }", "String getTemporaryPassword();", "public java.lang.String getPassword () {\r\n\t\treturn password;\r\n\t}", "@Override\n public String getPassword() {\n return password;\n }", "public String getPasspwd() {\n return passpwd;\n }", "private char[] getPass()\n {\n return password.getPassword();\n }", "@Override public String getPassword()\r\n {\r\n return password;\r\n }", "@Override\n public String getPassword() {\n return this.password;\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\n return this.password;\n }", "public String getPassword() {\n return this.password;\n }", "public String getPassword() {\n return this.password;\n }", "public String getPassword() {\n return this.password;\n }", "public String getPassword() {\n return this.password;\n }", "public String getPassword() {\n \t\treturn password;\n \t}", "public String getPassword() {\n return password;\n }", "public String getPassword() {\n return password;\n }", "@Override\n\tpublic String getPassword() {\n\t\treturn password;\n\t}", "@Override\n\tpublic String getPassword() {\n\t\treturn password;\n\t}", "@Override\n\tpublic String getPassword() {\n\t\treturn password;\n\t}", "@Override\n\tpublic String getPassword() {\n\t\treturn this.password;\n\t}", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\n return password;\n }", "public String getPassword() {\n return password;\n }", "public String getPassword() {\n return password;\n }", "public String getPassword() {\n return password;\n }", "public String getPassword() {\n return password;\n }", "public String getPassword() {\n return password;\n }", "public String getPassword() {\n return password;\n }", "public String getPassword() {\n return password;\n }", "public String getPassword() {\n return password;\n }" ]
[ "0.9173874", "0.86925596", "0.8521589", "0.75558937", "0.73885477", "0.73607236", "0.73039156", "0.72499466", "0.72499466", "0.72499466", "0.72499466", "0.72499466", "0.72499466", "0.72499466", "0.72111815", "0.7130207", "0.7130207", "0.71122205", "0.71122205", "0.70926464", "0.70670646", "0.70524985", "0.70524985", "0.70524985", "0.70524985", "0.70524985", "0.70524985", "0.70524985", "0.70524985", "0.70524985", "0.70180506", "0.7011276", "0.6986281", "0.6978006", "0.694722", "0.69016224", "0.6892564", "0.6878287", "0.68707854", "0.6852451", "0.68498784", "0.6839791", "0.6839791", "0.6838184", "0.68342483", "0.6832625", "0.6829463", "0.682422", "0.6823085", "0.6822581", "0.68201864", "0.68201864", "0.6814539", "0.6806365", "0.6794589", "0.67850995", "0.6782865", "0.67796755", "0.6776445", "0.6776445", "0.6772181", "0.67700946", "0.67692906", "0.6767762", "0.6764508", "0.6762505", "0.67581207", "0.6750231", "0.67447454", "0.67447454", "0.67447454", "0.67447454", "0.67447454", "0.67447454", "0.67447454", "0.67447454", "0.67447454", "0.67447454", "0.67447454", "0.6744425", "0.6744425", "0.6744425", "0.6744425", "0.6744425", "0.67443204", "0.67438304", "0.67438304", "0.6741159", "0.6741159", "0.6741159", "0.67380816", "0.67368895", "0.67360497", "0.67360497", "0.67360497", "0.67360497", "0.67360497", "0.67360497", "0.67360497", "0.67360497", "0.67360497" ]
0.0
-1
Method to get the proxy Realm
public java.lang.String getProxyRealm() { return proxyRealm; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Proxy getProxy();", "public String getProxyAuthenticationRealm() {\n return this.proxyRealm;\n }", "IRealm getRealm();", "public Object getProxy() {\n\t\t\r\n\t\treturn getProxy(this.advised.getTargetClass().getClassLoader());\r\n\t}", "public Proxy getProxy() {\n return proxy;\n }", "private HttpProxyCacheServer getProxy() {\n\n return proxy == null ? (proxy = newProxy()) : proxy;\n }", "private NodeMgrService.Proxy getProxy(int node) { \n Object obj = ServiceManager.proxyFor(node);\n if (! (obj instanceof NodeMgrService.Proxy)) {\n if (node == ServiceManager.LOCAL_NODE) {\n throw new InternalException(\"cannot fetch NodeManager Proxy\" +\n \" for local node\");\n } else {\n logger.warning(\"cannot retrieve proxy for node \" + node);\n }\n }\n return (NodeMgrService.Proxy) obj;\n }", "public Proxy getProxy(){\n mode = COMMAND_MODE;\n pack();\n show();\n return proxy;\n }", "public static Proxy getProxy() {\r\n\t\tif (_proxy == null) {//no need to synchronized\r\n\t\t\ttry {\r\n\t\t\t\tClasses.forNameByThread(\"org.zkoss.zk.ui.sys.PageRenderer\");\r\n\t\t\t\t_proxy = newProxy5();\r\n\t\t\t} catch (ClassNotFoundException ex) {\r\n\t\t\t\t_proxy = newProxy3();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn _proxy;\r\n\t}", "public String getRealm () {\n return realm;\n }", "@Override\n public Realm getRealm(String realmName) {\n return null;\n }", "public RealmConfig getRealm() {\n return realm;\n }", "public void setProxyRealm(java.lang.String newProxyRealm)\r\n {\r\n System.out.println(\"Realm: \" + newProxyRealm);\r\n proxyRealm = newProxyRealm;\r\n }", "public Proxy getProxy(Proxy p){\n if(p != null){\n doInit(p);\n }\n mode = COMMAND_MODE;\n pack();\n show();\n return proxy;\n }", "public java.lang.String getProxyScheme()\r\n {\r\n return proxyScheme;\r\n }", "private Object getProxy() throws ExportException{\n if (proxy == null){\n try {\n proxy = AccessController.doPrivileged(new PrivilegedExceptionAction<Object>(){\n\n @Override\n public Object run() throws ExportException {\n return exporter.export(RemoteListener.this);\n }\n\n }, context);\n } catch (PrivilegedActionException ex) {\n throw (ExportException) ex.getException();\n }\n }\n return proxy;\n }", "public ChallengeProxy getChallengeProxy(){\n return challengeProxy;\n }", "public Object getProxyUser() {\n return this.proxyUser;\n }", "public Long getProxyId() {\n return proxyId;\n }", "public JDispatcherService getClientProxy() {\n\t\t try {\r\n\t\t\t Bundle bundle = Platform.getBundle(\"au.edu.unimelb.plantcell.io.ws.multialign\");\r\n\t\t\t URL u = FileLocator.find(bundle, new Path(\"META-INF/wsdl/tcoffee.wsdl\"), null);\r\n\t\t\t \r\n\t\t\t // must not call default constructor for local WSDL... so...\r\n\t\t\t JDispatcherService_Service cli = new JDispatcherService_Service(u,\r\n\t\t\t\t\t new QName(\"http://soap.jdispatcher.ebi.ac.uk\", \"JDispatcherService\"));\r\n\t\t\t return cli.getJDispatcherServiceHttpPort();\r\n\t\t } catch (Exception e) {\r\n\t\t\t e.printStackTrace();\r\n\t\t\t Logger.getAnonymousLogger().warning(\"Unable to get TCoffee proxy: \"+e.getMessage());\r\n\t\t\t return null;\r\n\t\t }\r\n\t}", "public static RCProxy instance(){\n\t\treturn SingletonHolder.INSTANCE;\n\t}", "public WindowManagerProxy getWmProxy() {\n return this.mWindowManagerProxy;\n }", "@Nonnull\n public Proxy.Type getProxyType() {\n return proxyType;\n }", "@Override\r\n public GenericManager<LigneReponseDP, Long> getManager() {\r\n return manager;\r\n }", "public java.lang.String getProxyName()\r\n {\r\n return proxyName;\r\n }", "public String getProxyServer() {\n return proxyServer;\n }", "private ProxyBean getFactoryProxyBean(Object orig) {\n final Class<?> type = orig.getClass();\n if (isUnproxyable(type))\n return null;\n\n // we don't lock here; ok if two proxies get generated for same type\n ProxyBean proxy = (ProxyBean) _proxies.get(type);\n if (proxy == null) {\n ClassLoader l = GeneratedClasses.getMostDerivedLoader(type, ProxyBean.class);\n Class<?> pcls = loadBuildTimeProxy(type, l);\n if (pcls == null) {\n pcls = generateAndLoadProxyBean(type, true, l);\n }\n if (pcls != null)\n proxy = (ProxyBean) instantiateProxy(pcls, findCopyConstructor(type), new Object[] { orig });\n if (proxy == null) {\n _unproxyable.add(type.getName());\n } else {\n _proxies.put(type, proxy);\n }\n }\n return proxy;\n }", "protected IPhynixxConnectionProxy getObservableProxy() {\n\t\t\treturn null;\r\n\t\t}", "@Nullable\n public ProxyInfo getProxyInfo() {\n return mProxyInfo;\n }", "public interface UserRealm {\n\n /**\n * Get the AuthorizationReader of the system\n *\n * @return The AuthorizationReader the system\n * @throws UserStoreException\n */\n AuthorizationManager getAuthorizationManager() throws UserStoreException;\n\n /**\n * Get the UserStoreManager of the system\n *\n * @return The UserStoreManager of the system\n * @throws UserStoreException\n */\n UserStoreManager getUserStoreManager() throws UserStoreException;\n\n /**\n * Get the ClaimManager of the system\n *\n * @return The ClaimManager of the system\n * @throws UserStoreException\n */\n ClaimManager getClaimManager() throws UserStoreException;\n\n /**\n * Get the ProfileConfigurationManager of the system\n *\n * @return The ProfileConfigurationManager of the system\n * @throws UserStoreException\n */\n ProfileConfigurationManager getProfileConfigurationManager() throws UserStoreException;\n\n /**\n * Get the realm configuration\n *\n * @return\n * @throws UserStoreException\n */\n RealmConfiguration getRealmConfiguration() throws UserStoreException;\n\n}", "public ProxyableObject()\r\n {\r\n id = new command.GlobalObjectId();\r\n command.ObjectDB.getSingleton().store(id.getLocalObjectId(), this);\r\n \r\n //observable = new ObservabilityObject();\r\n }", "@HTTP(\n method = \"GET\",\n path = \"/apis/config.openshift.io/v1/proxies/{name}\"\n )\n @Headers({ \n \"Accept: */*\"\n })\n KubernetesCall<Proxy> readProxy(\n @Path(\"name\") String name);", "public T create()\n {\n IProxyFactory<T> proxyFactory = getProxyFactory(type);\n T result = proxyFactory.createProxy();\n return result;\n }", "public Object getDelegateSession() throws UMOException\n {\n return null;\n }", "public Object getProxy(ClassLoader classLoader) {\n\t\treturn Proxy.newProxyInstance(classLoader, this.advised.getTargetClass().getInterfaces(), this);\r\n\t}", "public String getHttpProxyHost();", "private ProxyCalendar getFactoryProxyCalendar(Class type) {\n // we don't lock here; ok if two proxies get generated for same type\n ProxyCalendar proxy = (ProxyCalendar) _proxies.get(type);\n if (proxy == null) {\n ClassLoader l = GeneratedClasses.getMostDerivedLoader(type,\n ProxyCalendar.class);\n Class pcls = loadBuildTimeProxy(type, l);\n if (pcls == null)\n pcls = generateAndLoadProxyCalendar(type, true, l);\n proxy = (ProxyCalendar) instantiateProxy(pcls, null, null);\n _proxies.put(type, proxy);\n }\n return proxy;\n }", "public synchronized String getProxyID() {\n \n return this.id;\n }", "public interface RealmInformationProvider {\n\n /**\n * Returns the display name of the realm which is visible in the tab list or in the realm overview\n * menu on the lobby. This method is not rate limited.\n *\n * @return the display name of the realm.\n */\n String realmDisplayName();\n\n /**\n * Returns the description of the realm which is visible in the realm overview\n * menu on the lobby. This method is not rate limited.\n *\n * @return the description of the realm.\n */\n String description();\n\n /**\n * @return true if the realm is private, false otherwise\n */\n boolean privateRealm();\n\n /**\n * @return the currently allowed maximum player count\n */\n int maxPlayers();\n\n /**\n * @return the amount of currently active boosts\n */\n int boostCount();\n\n /**\n * Limits are specified by the realm boost level.\n *\n * @return the current realm limits\n */\n Limits limits();\n\n /**\n * The promotion state of the realm. A promoted realm will always be shown first on the lobby's\n * realm overview menu and at the banner stand. Only VIPs and higher are privileged to mark a realm as promoted.\n *\n * <br><br> Since a realm doesn't know it's promotion state, it has to be requested at the Cytooxien Realms\n * Backend Management service. So this method returns an {@link Action} and is rate-limited.\n *\n * @return The action containing information about the promotion state of the realm.\n */\n Action<Boolean> promotedRealm();\n\n /**\n * A realm is able to have it's own address. Using this address, players can directly join onto the running realm\n * without joining on Cytooxien first.\n *\n * <br><br> Since a realm doesn't know it's subdomain, it has to be requested at the Cytooxien Realms\n * Backend Management service. So this method returns an {@link Action} and is rate-limited.\n *\n * @return The action containing the FQDN under which the realm can also be joined.\n */\n Action<String> subdomain();\n\n /**\n * This changes the display name of the realm. The new name of the realm must not exceed 32 characters and mustn't\n * be null or empty. Otherwise this action will fail.\n *\n * <br><br> Since this has to be requested at the Cytooxien Realms\n * Backend Management service, this method returns an {@link Action} and is rate-limited.\n * @param name The new name of the realm\n * @return the action containing the success state\n */\n Action<Void> changeName(String name);\n\n /**\n * This changes the description of the realm. The new description of the realm must not exceed 128 characters otherwise this action will fail.\n *\n * <br><br> Since this has to be requested at the Cytooxien Realms\n * Backend Management service, this method returns an {@link Action} and is rate-limited.\n * @param description The new realm description\n * @return the action containing the success state\n */\n Action<Void> changeDescription(String description);\n\n /**\n * This changes the maximum allowed player count of the realm. The new player count of the realm must\n * not exceed the maximum player count specified by the {@link Limits} object otherwise this action will fail.\n *\n * <br><br> Since this has to be requested at the Cytooxien Realms\n * Backend Management service, this method returns an {@link Action} and is rate-limited.\n *\n * @param maxPlayers The new maximum player count\n * @return the action containing the success state\n */\n Action<Void> updateMaximumPlayers(int maxPlayers);\n\n /**\n * This changes the privacy state of the realm.\n *\n * <br><br> Since this has to be requested at the Cytooxien Realms\n * Backend Management service, this method returns an {@link Action} and is rate-limited.\n *\n * @param privateRealm true if the realm is private false otherwise\n * @return the action containing the success state\n */\n Action<Void> updatePrivacyState(boolean privateRealm);\n\n}", "public java.lang.String getProxyHost()\r\n {\r\n return proxyHost;\r\n }", "@Override\n public <T> T getProxy(Key<T> key)\n {\n // We have no equivalent for this in our sessions, so just pass along directly to the decorated cache\n return queryCache.getProxy(key);\n }", "@UML(identifier=\"proxy\", obligation=MANDATORY, specification=ISO_19107)\n OrientableSurface[] getProxy();", "public ProxySelector proxySelector() {\n return proxySelector;\n }", "public AppInterface getAppProxy() {\n return (AppInterface) self;\n }", "private void getRemoteProxy() {\n String[] webIds = StringUtils.splitByWholeSeparator(this.webId, RPXY_WID_MARKER);\n\n // Remote proxy webid is same as live\n String liveWId = webIds[0];\n // Webid of section where live is published (section is parent of remote proxy)\n String sectionWId = webIds[1];\n\n // Get proxy(ies) with live webId\n DocumentModelList rProxies = ToutaticeEsQueryHelper.unrestrictedQuery(this.session, String.format(ToutaticeWebIdHelper.RPXY_WEB_ID_QUERY, liveWId), 1);\n\n // Published in one place only only\n if (rProxies.size() == 1) {\n // Proxy found\n DocumentModel rPxy = rProxies.get(0);\n // Check parent\n if (isParentWebId(rPxy, sectionWId)) {\n this.documents.add(rPxy);\n }\n } else if (rProxies.size() > 1) {\n // Published in many places.\n // Check all to see incoherences (this.documents.size() must be equals to one)\n for (DocumentModel rPxy : rProxies) {\n if (isParentWebId(rPxy, sectionWId)) {\n this.documents.add(rPxy);\n }\n }\n }\n }", "public java.lang.String getProxyPswd()\r\n {\r\n return proxyPswd;\r\n }", "public RealmConfiguration getRealmConfiguration(){\n try {\n if (this.realmConfiguration == null) {\n this.realmConfiguration = DatabaseUtilities\n .buildRealmConfig(context, null, null, null);\n }\n } catch (Exception e){\n e.printStackTrace();\n }\n\n return this.realmConfiguration;\n }", "public String getSocksProxy()\n {\n return socksProxy;\n }", "public String getAuthenticationRealm() {\n return this.realm;\n }", "private String getProxyClassName() {\n if (proxyClassName != null) {\n return proxyClassName;\n } else {\n assert proxyFormat != null;\n return proxyFormat.getClassName();\n }\n }", "public String getProxyId() {\n\t\t\treturn proxy_Id;\n\t\t}", "String getHttpProxyHost();", "protected final ActionProxy getProxy(String action,String [] params){\n \tsetUpRequestTestParams(params);\n\t\tActionProxy actionProxy = getActionProxy(action);\n\t\tassertNotNull(\"Action proxy shouldn't be null\", actionProxy);\n\t\tactionProxy.setExecuteResult(false);\n\t\treturn actionProxy;\t \t\n }", "@HTTP(\n method = \"GET\",\n path = \"/apis/config.openshift.io/v1/proxies\"\n )\n @Headers({ \n \"Accept: */*\"\n })\n KubernetesListCall<ProxyList, Proxy> listProxy();", "protected Class getProxyInterfaceClass() throws Exception\n {\n return IMappingFileLocalObj.class;\n }", "public Object getInstance(Person person) {\n this.person = person;\n Class aClass = person.getClass();\n System.out.println(\"the proxy class:\" + person.getClass());\n return MineProxy.newInstance(new MineClassLoader(), aClass.getInterfaces(), this);\n }", "@Override\n public @NotNull Optional<ProxyInformation> getProxyInformation() {\n return Optional.empty();\n }", "public Tunnel getTunnel();", "public ProxyConfig createProxyConfig();", "@Override\n public GenericManager<Societe, Long> getManager() {\n return manager;\n }", "public void initProxy() {\n\n System.setProperty(\"http.proxyHost\", \"199.101.97.159\"); // set proxy server\n System.setProperty(\"http.proxyPort\", \"60099\"); // set proxy port\n //System.setProperty(\"http.proxyUser\", authUser);\n //System.setProperty(\"http.proxyPassword\", authPassword);\n Authenticator.setDefault(\n new Authenticator() {\n @Override\n public PasswordAuthentication getPasswordAuthentication() {\n return new PasswordAuthentication(\n authUser, authPassword.toCharArray());\n }\n }\n );\n }", "protected abstract ProxyRenderer getProxyRendererImpl();", "public int calProxyService() {\n\t\treturn proxyDao.calProxyService();\n\t}", "@Override\n public T getObject() throws Exception {\n return (T) new JdkServiceProxy(logClz).getInstance();\n }", "Integer getRealmId();", "@Override\n\tpublic T proxy() {\n\t\tfinal ClassLoader loader = Thread.currentThread().getContextClassLoader();\n\n\t\t// extract the generic type's interfaces\n\t\tfinal Set<?> ifaceSet = typeToken.getTypes().interfaces().rawTypes();\n\t\tfinal boolean appendGT = !ifaceSet.contains(GenericTyped.class);\n\t\tfinal int ifaceCount = ifaceSet.size() + (appendGT ? 1 : 0);\n\t\tfinal Class<?>[] interfaces = new Class<?>[ifaceCount];\n\t\tifaceSet.toArray(interfaces);\n\t\tif (appendGT) interfaces[ifaceCount - 1] = GenericTyped.class;\n\n\t\t// NB: Technically, this cast is not safe, because T might not be\n\t\t// an interface, and thus might not be one of the proxy's types.\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tfinal T proxy = (T) Proxy.newProxyInstance(loader, interfaces, this);\n\t\treturn proxy;\n\t}", "public int getProxyPort() {\n return proxyPort;\n }", "public int getProxyPort() {\n return proxyPort;\n }", "public String getProxyHost() {\n return proxyHost;\n }", "private <T extends Object> Object newProxy(final Class<T> proxyInterface,\n final Class<? extends T> proxyImplementation) {\n return AdminModelFactory.newProxy(user, classLoader, proxyInterface,\n proxyImplementation);\n }", "public interface IWecorpAccountService extends IBaseService<WecorpAccount>, ProxySelf<IWecorpAccountService> {\n\n public WecorpAccount getWoaAccountByAppId(String appid);\n\n public WecorpAccount getWoaAccountByAccountNum(String accountNum);\n}", "@Override\n\tpublic TelefonoDAO getTelefonoDAO() {\n\t\treturn new JPATelefonoDAO();\n\t}", "@HTTP(\n method = \"GET\",\n path = \"/apis/config.openshift.io/v1/proxies/{name}\"\n )\n @Headers({ \n \"Accept: */*\"\n })\n KubernetesCall<Proxy> readProxy(\n @Path(\"name\") String name, \n @QueryMap ReadProxy queryParameters);", "public interface ProxyConnector {\n\n /**\n * Comprueba que se cumplan los requisitos para la conexi&oacute;n con el servicio proxy.\n * @throws IOException Cuando ocurre alg&uacute;n error en la comprobaci&oacute;n.\n */\n void init() throws IOException;\n\n /**\n * Comprueba si el servicio configurado pertenece a un proxy compatible.\n * @return {@code true} si el proxy configurado es compatible, {@code false} en caso contrario.\n * @throws IOException Cuando se produce un error al conectarse al proxy.\n */\n boolean isCompatibleService() throws IOException;\n\n /**\n * Indica si el servicio de Portafirmas correspondiente a este conector requiere un proceso\n * de login previo.\n * @return {@code true} si el servicio requiere login, {@code false} en caso contrario.\n */\n boolean needLogin();\n\n /**\n * Solicita el acceso para el usuario.\n * @return Respuesta a la petici&oacute;n con el token de acceso.\n * @throws Exception Cuando ocurre un error en la comunicaci&oacute;n.\n */\n RequestResult loginRequest() throws Exception;\n\n /**\n * Envia el token de acceso firmado al servidor para validar el acceso del usuario.\n * @param pkcs1 Firma PKCS#1 del token de acceso.\n * @param cert Certificado usado para firmar.\n * @return @code true} si el acceso se completo correctamente, {@code false} en caso contrario.\n * @throws Exception Cuando ocurre un error en la comunicaci&oacute;n.\n */\n boolean tokenValidation(byte[] pkcs1, String cert) throws Exception;\n\n /**\n * Env&aacute;a una solicitud de cierre de sesi&oacute;n.\n * @throws Exception Cuando se produce un error en la comunicaci&oacute;n.\n */\n void logoutRequest() throws Exception;\n\n /**\n * Obtiene la peticiones de firma. Las peticiones devueltas deben cumplir\n * las siguientes condiciones:\n * <ul>\n * <li>Estar en el estado se&ntilde;alado (unresolved, signed o rejected).</li>\n * <li>Que todos los documentos que contiene se tengan que firmar con los\n * formatos de firma indicados (s&oacute;lo si se indica alguno)</li>\n * <li>Que las solicitudes cumplan con los filtros establecidos. Estos\n * filtros tendran la forma: key=value</li>\n * </ul>\n * @param signRequestState Estado de las peticiones que se desean obtener.\n * @param filters\n * Listado de filtros que deben cumplir las peticiones\n * recuperadas. Los filtros soportados son:\n * <ul>\n * <li><b>orderAscDesc:</b> con valor \"asc\" para que sea orden\n * ascendente en la consulta, en cualquier otro caso ser&aacute;\n * descendente</li>\n * <li><b>initDateFilter:</b> fecha de inicio de las peticiones</li>\n * <li><b>endDateFilter:</b> fecha de fin de las peticiones</li>\n * <li><b>orderAttribute:</b> par&aacute;metro para ordenar por\n * una columna de la petici&oacute;n</li>\n * <li><b>searchFilter:</b> busca la cadena introducida en\n * cualquier texto de la petici&oacute;n (asunto, referencia,\n * etc)</li>\n * <li><b>labelFilter:</b> texto con el nombre de una etiqueta.\n * Filtra las peticiones en base a esa etiqueta, ej: \"IMPORTANTE\"\n * </li>\n * <li><b>applicationFilter:</b> texto con el identificador de\n * una aplicaci&oacute;n. Filtra las peticiones en base a la\n * aplicaci&oacute;n, ej: \"SANCIONES\"</li>\n * </ul>\n * @param numPage N&uacute;mero de p&aacute;gina del listado.\n * @param pageSize N&uacute;mero de peticiones por p&aacute;gina.\n * @return Lista de peticiones de firma\n * @throws SAXException\n * Si el XML obtenido del servidor no puede analizarse\n * @throws IOException\n * Si ocurre un error de entrada / salida\n */\n PartialSignRequestsList getSignRequests(\n String signRequestState, String[] filters, int numPage, int pageSize)\n throws SAXException, IOException;\n\n /** Inicia la pre-firma remota de las peticiones.\n * @param request Petici&oacute;n de firma.\n * @return Prefirmas de las peticiones enviadas.\n * @throws IOException Si ocurre algun error durante el tratamiento de datos.\n * @throws CertificateEncodingException Si no se puede obtener la codificaci&oacute;n del certificado.\n * @throws SAXException Si ocurren errores analizando el XML de respuesta. */\n TriphaseRequest[] preSignRequests(SignRequest request) throws IOException,\n CertificateException,\n SAXException;\n\n /**\n * Inicia la post-firma remota de las peticiones.\n *\n * @param requests\n * Peticiones a post-firmar\n * @return Listado con el resultado de la operaci&oacute;n de firma de cada\n * petici&oacute;n.\n * @throws IOException\n * Si ocurre algun error durante el proceso\n * @throws CertificateEncodingException\n * Cuando el certificado est&aacute; mal codificado.\n * @throws SAXException\n * Si ocurren errores analizando el XML de respuesta\n */\n RequestResult postSignRequests(TriphaseRequest[] requests) throws IOException,\n CertificateEncodingException, SAXException;\n\n /**\n * Obtiene los datos de un documento.\n *\n * @param requestId\n * Identificador de la petici&oacute;n.\n * @return Datos del documento.\n * @throws SAXException\n * Cuando se encuentra un XML mal formado.\n * @throws IOException\n * Cuando existe alg&uacute;n problema en la lectura/escritura\n * de XML o al recuperar la respuesta del servidor.\n */\n RequestDetail getRequestDetail(String requestId) throws SAXException, IOException;\n\n /**\n * Obtiene el listado de aplicaciones para las que hay peticiones de firma.\n * @return Configuracion de aplicaci&oacute;n.\n * @throws SAXException\n * Cuando se encuentra un XML mal formado.\n * @throws IOException\n * Cuando existe alg&uacute;n problema en la lectura/escritura\n * de XML o al recuperar la respuesta del servidor.\n */\n AppConfiguration getApplicationList()\n throws SAXException, IOException;\n\n /**\n * Rechaza las peticiones de firma indicadas.\n *\n * @param requestIds\n * Identificadores de las peticiones de firma que se quieren\n * rechazar.\n * @return Resultado de la operacion para cada una de las peticiones de\n * firma.\n * @throws SAXException\n * Si el XML obtenido del servidor no puede analizarse\n * @throws IOException\n * Si ocurre un error de entrada / salida\n */\n RequestResult[] rejectRequests(String[] requestIds,\n String reason) throws SAXException, IOException;\n\n /** Obtiene la previsualizaci&oacute;n de un documento.\n * @param documentId Identificador del documento.\n * @param filename Nombre del fichero.\n * @param mimetype MIME-Type del documento.\n * @return Datos del documento.\n * @throws IOException Cuando existe alg&uacute;n problema en la lectura/escritura\n * de XML o al recuperar la respuesta del servidor. */\n DocumentData getPreviewDocument(String documentId,\n String filename,\n String mimetype) throws IOException;\n\n /** Obtiene la previsualizaci&oacute;n de una firma.\n * @param documentId Identificador del documento.\n * @param filename Nombre del fichero.\n * @return Datos del documento.\n * @throws IOException Cuando existe alg&uacute;n problema en la lectura/escritura\n * de XML o al recuperar la respuesta del servidor. */\n DocumentData getPreviewSign(String documentId,\n String filename) throws IOException;\n\n /** Obtiene la previsualizaci&oacute;n de un informe de firma.\n * @param documentId Identificador del documento.\n * @param filename Nombre del fichero.\n * @param mimetype MIME-Type del documento.\n * @return Datos del documento.\n * @throws IOException Cuando existe alg&uacute;n problema en la lectura/escritura\n * de XML o al recuperar la respuesta del servidor. */\n DocumentData getPreviewReport(String documentId,\n String filename, String mimetype) throws IOException;\n\n /**\n * Aprueba peticiones de firma (les da el visto bueno).\n *\n * @param requestIds\n * Identificador de las peticiones.\n * @return Resultado de la operaci&oacute;n.\n * @throws SAXException\n * Cuando se encuentra un XML mal formado.\n * @throws IOException\n * Cuando existe alg&uacute;n problema en la lectura/escritura\n * de XML o al recuperar la respuesta del servidor.\n */\n RequestResult[] approveRequests(String[] requestIds) throws SAXException, IOException;\n\n /**\n * Indica si el conector soporta las funciones de notificaci&oacute;n.\n * @return {@code true} si se soportan las notificaciones, {@code false} en caso contrario.\n */\n boolean isNotificationsSupported();\n\n /**\n * Da de alta en el sistema de notificaciones.\n * @param token\n * \t\t\tToken de registro en GCM.\n * @param device\n * \t\t\tIdentificador de dispositivo.\n * @param certB64\n * \t\t\tCertificado en base 64 del usuario.\n * @return Resultado del proceso de alta en el sistema de notificaciones.\n * \t\t\tIndica\n * @throws SAXException\n * Cuando se encuentra un XML mal formado.\n * @throws IOException\n * Cuando existe alg&uacute;n problema en la lectura/escritura\n * de XML o al recuperar la respuesta del servidor.\n */\n NotificationState signOnNotificationService(\n String token, String device, String certB64)\n throws SAXException, IOException;\n\n\n}", "public RouteManager getRouteManager() {\n\t\tif (routeManager == null) {\n\t\t\tIRouteDAO routeDAO = new RouteDAOSqlite(dbHelper);\n\t\t\trouteManager = new RouteManager(routeDAO);\n\t\t\trouteManager.setManagerHolder(this);\n\t\t}\n\t\treturn routeManager;\n\t}", "public boolean isProxyEnabled() {\n return isProxyEnabled;\n }", "public RelationManager getRelationManager();", "public static ThreadedPmClientInstanceResolver get() {\n\t\t// synchronization :: rely on registry to return same impl\n\t\tif (instance == null) {\n\t\t\tinstance = Registry.impl(ThreadedPmClientInstanceResolver.class);\n\t\t}\n\t\treturn instance;\n\t}", "public final T getManager() {\n return this.manager;\n }", "public String getProxyPort()\r\n {\r\n return proxyPort;\r\n }", "public final String getProxyHost() {\n return properties.get(PROXY_HOST_PROPERTY);\n }", "public final String getProxyHost() {\n return properties.get(PROXY_HOST_PROPERTY);\n }", "@Override\n public GenericManager<TraitementCourrier, Long> getManager() {\n return manager;\n }", "@Test\n public void testProxy() {\n Dell dell = new Dell();\n Proxy proxy = new Proxy(dell);\n proxy.salePc();\n }", "public static Realm buildRealm(Context context) {\n RealmConfiguration config = DatabaseUtilities.buildRealmConfig(context);\n Realm realm = Realm.getInstance(config);\n return realm;\n }", "public ObjectManager getObjectManager() {\n\treturn this.objectManager;\n }", "public TranslatorManager getManager();", "VPlexApiDiscoveryManager getDiscoveryManager() {\n return _discoveryMgr;\n }", "public int getHttpProxyPort();", "private ProxyCollection getFactoryProxyCollection(Class type) {\n // we don't lock here; ok if two proxies get generated for same type\n ProxyCollection proxy = (ProxyCollection) _proxies.get(type);\n if (proxy == null) {\n ClassLoader l = GeneratedClasses.getMostDerivedLoader(type,\n ProxyCollection.class);\n Class pcls = loadBuildTimeProxy(type, l);\n if (pcls == null)\n pcls = generateAndLoadProxyCollection(type, true, l);\n proxy = (ProxyCollection) instantiateProxy(pcls, null, null);\n _proxies.put(type, proxy);\n }\n return proxy;\n }", "@Override\r\n public GenericManager<TraitSalaire, Long> getManager() {\r\n return manager;\r\n }", "public String getProxyHost() {\n return cfg.getProxyHost();\n }", "public\t ProxyAuthorization getProxyAuthorizationHeader()\n { return (ProxyAuthorization)\n this.getHeader(ProxyAuthorizationHeader.NAME); }", "public Object getObject() {\n return getObject(null);\n }", "public abstract AccountDAO getAccountDAO();", "public String getProxyPassword() {\n return proxyPassword;\n }", "private ProxyMap getFactoryProxyMap(Class type) {\n // we don't lock here; ok if two proxies get generated for same type\n ProxyMap proxy = (ProxyMap) _proxies.get(type);\n if (proxy == null) {\n ClassLoader l = GeneratedClasses.getMostDerivedLoader(type,\n ProxyMap.class);\n Class pcls = loadBuildTimeProxy(type, l);\n if (pcls == null)\n pcls = generateAndLoadProxyMap(type, true, l);\n proxy = (ProxyMap) instantiateProxy(pcls, null, null);\n _proxies.put(type, proxy);\n }\n return proxy;\n }", "public String getProxyPort() {\n return proxyPort;\n }", "public static FlightDAOImp getFlightDAO(){\n if(flightDataObject == null){\n flightDataObject = new FlightDAOImp();\n }\n return flightDataObject;\n }", "public LdDaoReadable getDaoReadable() {\r\n return getMyDao();\r\n }" ]
[ "0.730862", "0.72368693", "0.7179811", "0.7003843", "0.684115", "0.66642624", "0.6627815", "0.6448567", "0.63095415", "0.6207792", "0.6193424", "0.6121969", "0.59847087", "0.5905539", "0.5839414", "0.58206826", "0.5814084", "0.5781077", "0.5672646", "0.56652576", "0.5624518", "0.55599594", "0.553523", "0.5509385", "0.5502507", "0.54576427", "0.5455021", "0.5441392", "0.5438848", "0.5409866", "0.5396209", "0.5379972", "0.53611445", "0.5352148", "0.5343953", "0.5342739", "0.53368485", "0.53317857", "0.53313094", "0.5321098", "0.52937657", "0.5254743", "0.52544826", "0.52238", "0.52237153", "0.521922", "0.52086556", "0.52077556", "0.51919854", "0.5187377", "0.51829153", "0.51792604", "0.5177592", "0.5168692", "0.5156574", "0.5151919", "0.5143736", "0.5136357", "0.5135123", "0.5133782", "0.513051", "0.511906", "0.5115601", "0.5114926", "0.51094955", "0.5105104", "0.5101921", "0.5101921", "0.51003563", "0.50957197", "0.50935966", "0.5088657", "0.5081024", "0.5073126", "0.5068062", "0.5066248", "0.50639474", "0.505926", "0.5055342", "0.50523597", "0.5038539", "0.5038539", "0.5026429", "0.50229436", "0.50191545", "0.5017194", "0.5011733", "0.50107366", "0.50077724", "0.5005983", "0.5000651", "0.499747", "0.4990253", "0.49853048", "0.4983876", "0.4981986", "0.4979664", "0.49794313", "0.49724302", "0.49691814" ]
0.8217778
0
Method to get the proxy Scheme
public java.lang.String getProxyScheme() { return proxyScheme; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Proxy getProxy();", "public String getHttpProxyHost();", "String getHttpProxyHost();", "public Proxy getProxy() {\n return proxy;\n }", "public Protocol getProtocol() {\n Protocol result = null;\n \n if (getResourceRef() != null) {\n // Attempt to guess the protocol to use\n // from the target reference scheme\n result = getResourceRef().getSchemeProtocol();\n // Fallback: look at base reference scheme\n if (result == null) {\n result = (getResourceRef().getBaseRef() != null) ? getResourceRef()\n .getBaseRef().getSchemeProtocol()\n : null;\n }\n }\n\n return result;\n }", "public String getScheme( ) {\n\t\treturn scheme;\n\t}", "@Override\r\n public String getScheme() {\r\n return scheme;\r\n }", "public String getScheme() {\n return scheme;\n }", "public String getScheme() {\n return scheme;\n }", "public String getScheme() {\n return scheme;\n }", "@Override\n public String getScheme() {\n return this.scheme;\n }", "private HttpProxyCacheServer getProxy() {\n\n return proxy == null ? (proxy = newProxy()) : proxy;\n }", "String getScheme();", "public String getScheme() {\n return m_scheme;\n }", "public java.lang.String getProxyRealm()\r\n {\r\n return proxyRealm;\r\n }", "private Protocol getProtocol(String scheme) {\r\n Protocol protocol = Protocol.valueOf(scheme);\r\n if (protocol == null) {\r\n protocol = new Protocol(scheme);\r\n }\r\n return protocol;\r\n }", "public Object getProxy() {\n\t\t\r\n\t\treturn getProxy(this.advised.getTargetClass().getClassLoader());\r\n\t}", "public java.lang.String getProxyHost()\r\n {\r\n return proxyHost;\r\n }", "public Proxy getProxy(){\n mode = COMMAND_MODE;\n pack();\n show();\n return proxy;\n }", "public String getSocksProxy()\n {\n return socksProxy;\n }", "public int getHttpProxyPort();", "public void setProxyScheme(java.lang.String newProxyScheme)\r\n {\r\n System.out.println(\"Scheme: \" + newProxyScheme);\r\n proxyScheme = newProxyScheme;\r\n }", "@Nullable\n public String getScheme ()\n {\n return m_sScheme;\n }", "java.lang.String getScheme();", "int getHttpProxyPort();", "public Tunnel getTunnel();", "public ProxySelector proxySelector() {\n return proxySelector;\n }", "public JDispatcherService getClientProxy() {\n\t\t try {\r\n\t\t\t Bundle bundle = Platform.getBundle(\"au.edu.unimelb.plantcell.io.ws.multialign\");\r\n\t\t\t URL u = FileLocator.find(bundle, new Path(\"META-INF/wsdl/tcoffee.wsdl\"), null);\r\n\t\t\t \r\n\t\t\t // must not call default constructor for local WSDL... so...\r\n\t\t\t JDispatcherService_Service cli = new JDispatcherService_Service(u,\r\n\t\t\t\t\t new QName(\"http://soap.jdispatcher.ebi.ac.uk\", \"JDispatcherService\"));\r\n\t\t\t return cli.getJDispatcherServiceHttpPort();\r\n\t\t } catch (Exception e) {\r\n\t\t\t e.printStackTrace();\r\n\t\t\t Logger.getAnonymousLogger().warning(\"Unable to get TCoffee proxy: \"+e.getMessage());\r\n\t\t\t return null;\r\n\t\t }\r\n\t}", "@Nonnull\n public Proxy.Type getProxyType() {\n return proxyType;\n }", "@Override\n\t\tpublic String getScheme() {\n\t\t\treturn null;\n\t\t}", "public ProxyConfig createProxyConfig();", "public java.lang.Short getUriScheme() {\r\n return uriScheme;\r\n }", "public String getGatewayHost();", "public String getProxyHost() {\n return proxyHost;\n }", "public String getProxyHost() {\n return cfg.getProxyHost();\n }", "private String getProxyClassName() {\n if (proxyClassName != null) {\n return proxyClassName;\n } else {\n assert proxyFormat != null;\n return proxyFormat.getClassName();\n }\n }", "public java.lang.String getProxyPswd()\r\n {\r\n return proxyPswd;\r\n }", "public C7441g getScheme() {\n return new C7441g(null);\n }", "@java.lang.Override\n public com.google.protobuf.ByteString getSchemeBytes() {\n java.lang.Object ref = scheme_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);\n scheme_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "SchemeDBO getSchemeByName(String schemeName);", "String getProtocol();", "public Protocol getProtocol();", "public final String getProxyHost() {\n return properties.get(PROXY_HOST_PROPERTY);\n }", "public final String getProxyHost() {\n return properties.get(PROXY_HOST_PROPERTY);\n }", "public ProxyInfo getInitialProxyInfo() {\n if (mIpConfiguration != null) {\n return mIpConfiguration.getHttpProxy();\n } else {\n return null;\n }\n }", "public String getProxyAuthenticationRealm() {\n return this.proxyRealm;\n }", "@Override\n\tpublic String getScheme() {\n\t\treturn null;\n\t}", "@java.lang.Override\n public java.lang.String getScheme() {\n java.lang.Object ref = scheme_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n scheme_ = s;\n return s;\n }\n }", "com.google.protobuf.ByteString getSchemeBytes();", "@Override\n public @NotNull Optional<ProxyInformation> getProxyInformation() {\n return Optional.empty();\n }", "public java.lang.String getProxyName()\r\n {\r\n return proxyName;\r\n }", "public static Proxy getProxy() {\r\n\t\tif (_proxy == null) {//no need to synchronized\r\n\t\t\ttry {\r\n\t\t\t\tClasses.forNameByThread(\"org.zkoss.zk.ui.sys.PageRenderer\");\r\n\t\t\t\t_proxy = newProxy5();\r\n\t\t\t} catch (ClassNotFoundException ex) {\r\n\t\t\t\t_proxy = newProxy3();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn _proxy;\r\n\t}", "public java.lang.String getScheme() {\n java.lang.Object ref = scheme_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n scheme_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "@Nonnull\n public String getProxyHost() {\n return proxyHost;\n }", "public com.google.protobuf.ByteString getSchemeBytes() {\n java.lang.Object ref = scheme_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);\n scheme_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public NetInterface.NetHandler getNetProxy() {\n return (NetInterface.NetHandler) self;\n }", "public String getProxyServer() {\n return proxyServer;\n }", "public Proxy getProxy(Proxy p){\n if(p != null){\n doInit(p);\n }\n mode = COMMAND_MODE;\n pack();\n show();\n return proxy;\n }", "private NodeMgrService.Proxy getProxy(int node) { \n Object obj = ServiceManager.proxyFor(node);\n if (! (obj instanceof NodeMgrService.Proxy)) {\n if (node == ServiceManager.LOCAL_NODE) {\n throw new InternalException(\"cannot fetch NodeManager Proxy\" +\n \" for local node\");\n } else {\n logger.warning(\"cannot retrieve proxy for node \" + node);\n }\n }\n return (NodeMgrService.Proxy) obj;\n }", "ProxyConnectionState getProxyConnectionState() {\n return proxyConnectionState;\n }", "public String getProxyPort()\r\n {\r\n return proxyPort;\r\n }", "public String getProtocol() {\n String protocol = getPropertyAsString(PROTOCOL);\n if (protocol == null || protocol.length() == 0 ) {\n return DEFAULT_PROTOCOL;\n }\n return protocol;\n }", "@Generated\n @Selector(\"isProxyConnection\")\n public native boolean isProxyConnection();", "public String getProtocol() {\n String protocol = getPropertyAsString(PROTOCOL);\n if (protocol == null || protocol.length() == 0) {\n return DEFAULT_PROTOCOL;\n }\n return protocol;\n }", "@Nullable\n public ProxyInfo getProxyInfo() {\n return mProxyInfo;\n }", "public ProxyConfig[] getProxyConfigList();", "public String getProtocol() {\n return protocol;\n }", "public java.lang.String getProtocol () {\r\n return protocol;\r\n }", "Scheme getScheme(String id);", "public String getProtocol() {\n return m_Protocol;\n }", "public int getProxyPort() {\n return proxyPort;\n }", "public int getProxyPort() {\n return proxyPort;\n }", "public final String getProtocol() {\n return protocol;\n }", "public Protocol getProtocol()\n \t{\n \t\treturn protocol;\n \t}", "public String getScheme() {\n return NAMESPACE_SCHEME_WS;\n }", "protected abstract ProxyRenderer getProxyRendererImpl();", "public String getProxyPort() {\n return proxyPort;\n }", "public Map getProtocols();", "@Deprecated\n public HttpHandler getProxyHandler() {\n return createProxyHandler();\n }", "public String getProtocol() {\n return this.protocol;\n }", "public int getProxyPort() {\n return cfg.getProxyPort();\n }", "Host getHost();", "default String protocol() {\n return (String) metadata().get(\"x-server-protocol\");\n }", "public String getProtocol()\n {\n ASPManager mgr = getASPManager();\n String protocol = mgr.getAspRequest().getScheme();\n\n if(mgr.isDifferentApplicationPath())\n {\n int host_no = mgr.getCurrentHostIndex()+1;\n String[] data =Str.split((String)configfile.hosts.get(host_no+\"\"),\",\");\n \n if(!\"NONE\".equals(data[0]))\n protocol = data[0];\n }\n\n return protocol;\n }", "public synchronized String getProxyPort() {\n \n return this.port;\n }", "private ProxyBean getFactoryProxyBean(Object orig) {\n final Class<?> type = orig.getClass();\n if (isUnproxyable(type))\n return null;\n\n // we don't lock here; ok if two proxies get generated for same type\n ProxyBean proxy = (ProxyBean) _proxies.get(type);\n if (proxy == null) {\n ClassLoader l = GeneratedClasses.getMostDerivedLoader(type, ProxyBean.class);\n Class<?> pcls = loadBuildTimeProxy(type, l);\n if (pcls == null) {\n pcls = generateAndLoadProxyBean(type, true, l);\n }\n if (pcls != null)\n proxy = (ProxyBean) instantiateProxy(pcls, findCopyConstructor(type), new Object[] { orig });\n if (proxy == null) {\n _unproxyable.add(type.getName());\n } else {\n _proxies.put(type, proxy);\n }\n }\n return proxy;\n }", "public String protocol() {\n return this.protocol;\n }", "public interface ProxyConnector {\n\n /**\n * Comprueba que se cumplan los requisitos para la conexi&oacute;n con el servicio proxy.\n * @throws IOException Cuando ocurre alg&uacute;n error en la comprobaci&oacute;n.\n */\n void init() throws IOException;\n\n /**\n * Comprueba si el servicio configurado pertenece a un proxy compatible.\n * @return {@code true} si el proxy configurado es compatible, {@code false} en caso contrario.\n * @throws IOException Cuando se produce un error al conectarse al proxy.\n */\n boolean isCompatibleService() throws IOException;\n\n /**\n * Indica si el servicio de Portafirmas correspondiente a este conector requiere un proceso\n * de login previo.\n * @return {@code true} si el servicio requiere login, {@code false} en caso contrario.\n */\n boolean needLogin();\n\n /**\n * Solicita el acceso para el usuario.\n * @return Respuesta a la petici&oacute;n con el token de acceso.\n * @throws Exception Cuando ocurre un error en la comunicaci&oacute;n.\n */\n RequestResult loginRequest() throws Exception;\n\n /**\n * Envia el token de acceso firmado al servidor para validar el acceso del usuario.\n * @param pkcs1 Firma PKCS#1 del token de acceso.\n * @param cert Certificado usado para firmar.\n * @return @code true} si el acceso se completo correctamente, {@code false} en caso contrario.\n * @throws Exception Cuando ocurre un error en la comunicaci&oacute;n.\n */\n boolean tokenValidation(byte[] pkcs1, String cert) throws Exception;\n\n /**\n * Env&aacute;a una solicitud de cierre de sesi&oacute;n.\n * @throws Exception Cuando se produce un error en la comunicaci&oacute;n.\n */\n void logoutRequest() throws Exception;\n\n /**\n * Obtiene la peticiones de firma. Las peticiones devueltas deben cumplir\n * las siguientes condiciones:\n * <ul>\n * <li>Estar en el estado se&ntilde;alado (unresolved, signed o rejected).</li>\n * <li>Que todos los documentos que contiene se tengan que firmar con los\n * formatos de firma indicados (s&oacute;lo si se indica alguno)</li>\n * <li>Que las solicitudes cumplan con los filtros establecidos. Estos\n * filtros tendran la forma: key=value</li>\n * </ul>\n * @param signRequestState Estado de las peticiones que se desean obtener.\n * @param filters\n * Listado de filtros que deben cumplir las peticiones\n * recuperadas. Los filtros soportados son:\n * <ul>\n * <li><b>orderAscDesc:</b> con valor \"asc\" para que sea orden\n * ascendente en la consulta, en cualquier otro caso ser&aacute;\n * descendente</li>\n * <li><b>initDateFilter:</b> fecha de inicio de las peticiones</li>\n * <li><b>endDateFilter:</b> fecha de fin de las peticiones</li>\n * <li><b>orderAttribute:</b> par&aacute;metro para ordenar por\n * una columna de la petici&oacute;n</li>\n * <li><b>searchFilter:</b> busca la cadena introducida en\n * cualquier texto de la petici&oacute;n (asunto, referencia,\n * etc)</li>\n * <li><b>labelFilter:</b> texto con el nombre de una etiqueta.\n * Filtra las peticiones en base a esa etiqueta, ej: \"IMPORTANTE\"\n * </li>\n * <li><b>applicationFilter:</b> texto con el identificador de\n * una aplicaci&oacute;n. Filtra las peticiones en base a la\n * aplicaci&oacute;n, ej: \"SANCIONES\"</li>\n * </ul>\n * @param numPage N&uacute;mero de p&aacute;gina del listado.\n * @param pageSize N&uacute;mero de peticiones por p&aacute;gina.\n * @return Lista de peticiones de firma\n * @throws SAXException\n * Si el XML obtenido del servidor no puede analizarse\n * @throws IOException\n * Si ocurre un error de entrada / salida\n */\n PartialSignRequestsList getSignRequests(\n String signRequestState, String[] filters, int numPage, int pageSize)\n throws SAXException, IOException;\n\n /** Inicia la pre-firma remota de las peticiones.\n * @param request Petici&oacute;n de firma.\n * @return Prefirmas de las peticiones enviadas.\n * @throws IOException Si ocurre algun error durante el tratamiento de datos.\n * @throws CertificateEncodingException Si no se puede obtener la codificaci&oacute;n del certificado.\n * @throws SAXException Si ocurren errores analizando el XML de respuesta. */\n TriphaseRequest[] preSignRequests(SignRequest request) throws IOException,\n CertificateException,\n SAXException;\n\n /**\n * Inicia la post-firma remota de las peticiones.\n *\n * @param requests\n * Peticiones a post-firmar\n * @return Listado con el resultado de la operaci&oacute;n de firma de cada\n * petici&oacute;n.\n * @throws IOException\n * Si ocurre algun error durante el proceso\n * @throws CertificateEncodingException\n * Cuando el certificado est&aacute; mal codificado.\n * @throws SAXException\n * Si ocurren errores analizando el XML de respuesta\n */\n RequestResult postSignRequests(TriphaseRequest[] requests) throws IOException,\n CertificateEncodingException, SAXException;\n\n /**\n * Obtiene los datos de un documento.\n *\n * @param requestId\n * Identificador de la petici&oacute;n.\n * @return Datos del documento.\n * @throws SAXException\n * Cuando se encuentra un XML mal formado.\n * @throws IOException\n * Cuando existe alg&uacute;n problema en la lectura/escritura\n * de XML o al recuperar la respuesta del servidor.\n */\n RequestDetail getRequestDetail(String requestId) throws SAXException, IOException;\n\n /**\n * Obtiene el listado de aplicaciones para las que hay peticiones de firma.\n * @return Configuracion de aplicaci&oacute;n.\n * @throws SAXException\n * Cuando se encuentra un XML mal formado.\n * @throws IOException\n * Cuando existe alg&uacute;n problema en la lectura/escritura\n * de XML o al recuperar la respuesta del servidor.\n */\n AppConfiguration getApplicationList()\n throws SAXException, IOException;\n\n /**\n * Rechaza las peticiones de firma indicadas.\n *\n * @param requestIds\n * Identificadores de las peticiones de firma que se quieren\n * rechazar.\n * @return Resultado de la operacion para cada una de las peticiones de\n * firma.\n * @throws SAXException\n * Si el XML obtenido del servidor no puede analizarse\n * @throws IOException\n * Si ocurre un error de entrada / salida\n */\n RequestResult[] rejectRequests(String[] requestIds,\n String reason) throws SAXException, IOException;\n\n /** Obtiene la previsualizaci&oacute;n de un documento.\n * @param documentId Identificador del documento.\n * @param filename Nombre del fichero.\n * @param mimetype MIME-Type del documento.\n * @return Datos del documento.\n * @throws IOException Cuando existe alg&uacute;n problema en la lectura/escritura\n * de XML o al recuperar la respuesta del servidor. */\n DocumentData getPreviewDocument(String documentId,\n String filename,\n String mimetype) throws IOException;\n\n /** Obtiene la previsualizaci&oacute;n de una firma.\n * @param documentId Identificador del documento.\n * @param filename Nombre del fichero.\n * @return Datos del documento.\n * @throws IOException Cuando existe alg&uacute;n problema en la lectura/escritura\n * de XML o al recuperar la respuesta del servidor. */\n DocumentData getPreviewSign(String documentId,\n String filename) throws IOException;\n\n /** Obtiene la previsualizaci&oacute;n de un informe de firma.\n * @param documentId Identificador del documento.\n * @param filename Nombre del fichero.\n * @param mimetype MIME-Type del documento.\n * @return Datos del documento.\n * @throws IOException Cuando existe alg&uacute;n problema en la lectura/escritura\n * de XML o al recuperar la respuesta del servidor. */\n DocumentData getPreviewReport(String documentId,\n String filename, String mimetype) throws IOException;\n\n /**\n * Aprueba peticiones de firma (les da el visto bueno).\n *\n * @param requestIds\n * Identificador de las peticiones.\n * @return Resultado de la operaci&oacute;n.\n * @throws SAXException\n * Cuando se encuentra un XML mal formado.\n * @throws IOException\n * Cuando existe alg&uacute;n problema en la lectura/escritura\n * de XML o al recuperar la respuesta del servidor.\n */\n RequestResult[] approveRequests(String[] requestIds) throws SAXException, IOException;\n\n /**\n * Indica si el conector soporta las funciones de notificaci&oacute;n.\n * @return {@code true} si se soportan las notificaciones, {@code false} en caso contrario.\n */\n boolean isNotificationsSupported();\n\n /**\n * Da de alta en el sistema de notificaciones.\n * @param token\n * \t\t\tToken de registro en GCM.\n * @param device\n * \t\t\tIdentificador de dispositivo.\n * @param certB64\n * \t\t\tCertificado en base 64 del usuario.\n * @return Resultado del proceso de alta en el sistema de notificaciones.\n * \t\t\tIndica\n * @throws SAXException\n * Cuando se encuentra un XML mal formado.\n * @throws IOException\n * Cuando existe alg&uacute;n problema en la lectura/escritura\n * de XML o al recuperar la respuesta del servidor.\n */\n NotificationState signOnNotificationService(\n String token, String device, String certB64)\n throws SAXException, IOException;\n\n\n}", "public final String getProxyPort() {\n return properties.get(PROXY_PORT_PROPERTY);\n }", "public Scheme getSchemeById(int id) {\n\t\treturn strongMapper.getSchemeById(id);\n\t}", "@HTTP(\n method = \"GET\",\n path = \"/apis/config.openshift.io/v1/proxies/{name}\"\n )\n @Headers({ \n \"Accept: */*\"\n })\n KubernetesCall<Proxy> readProxy(\n @Path(\"name\") String name);", "public FrontDoorRedirectProtocol redirectProtocol() {\n return this.redirectProtocol;\n }", "public Long getProxyId() {\n return proxyId;\n }", "public ChallengeProxy getChallengeProxy(){\n return challengeProxy;\n }", "public NetworkProtocol getProtocol() {\n return _protocol;\n }", "Set<Scheme> getSchemes();", "public synchronized String getProxyAddress() {\n \n return this.address;\n }", "public ProtocolType getProtocol() {\n return protocol;\n }", "ShadowProtocol.Factory getShadowProtocolFactory();", "public String getSchemeSpecific() {\n return \"\";\n }" ]
[ "0.709378", "0.6588838", "0.64940274", "0.6370259", "0.6352209", "0.6326256", "0.6275877", "0.62383175", "0.62383175", "0.62383175", "0.618904", "0.6169671", "0.616447", "0.6147488", "0.6139369", "0.6116896", "0.6089543", "0.6087899", "0.60722077", "0.60557395", "0.60132015", "0.5991002", "0.5964617", "0.5928452", "0.59022677", "0.58887583", "0.58873963", "0.58811617", "0.5847051", "0.58307755", "0.58158207", "0.5811566", "0.5805299", "0.57977885", "0.5796596", "0.57947266", "0.57879174", "0.57684284", "0.57656807", "0.57587916", "0.5742586", "0.5742146", "0.57161486", "0.57161486", "0.5714151", "0.5709703", "0.56997454", "0.56988674", "0.5674842", "0.5634866", "0.56348103", "0.56030697", "0.5571024", "0.5567553", "0.5544195", "0.55373144", "0.55349046", "0.5516661", "0.55005044", "0.5457051", "0.5455019", "0.54427195", "0.542154", "0.5419112", "0.5403943", "0.5388907", "0.536563", "0.5365044", "0.53588915", "0.5336001", "0.5332674", "0.5332674", "0.5324289", "0.5316496", "0.53140473", "0.53055763", "0.5303482", "0.52960485", "0.52798307", "0.5272738", "0.5266358", "0.52657986", "0.52640826", "0.5254496", "0.52514356", "0.5249972", "0.52437997", "0.5242414", "0.5231224", "0.5222648", "0.5207901", "0.520741", "0.5198072", "0.51954275", "0.5194492", "0.51886886", "0.5186198", "0.5182682", "0.5180266", "0.5179575" ]
0.82050157
0
Method to Handle a response when authorization fails It calls back to the main appliction and provides the details required to populate correct info to pass a URL
public NVPair getUsernamePassword(AuthorizationInfo challenge, boolean forProxy) { if (forProxy && proxyName != null) { if (been_here) { System.err.println(); System.err.println("Proxy authorization failed"); this.setSuccess(false); return null; } been_here = true; return new NVPair(proxyName, proxyPswd); } if (been_here) { System.err.println(); System.err.println("Proxy authorization succeeded"); } // print out all challenge info System.err.println(); if (forProxy) { System.err.println("The proxy requires authorization"); } else { System.err.println("The server requires authorization for this resource"); } this.setSuccess(true); this.setProxyScheme(challenge.getScheme()); this.setProxyRealm(challenge.getRealm()); this.setProxyHost(challenge.getHost()); this.setProxyPort(challenge.getPort()); System.err.println(); System.err.println("Proxy scheme is " + challenge.getScheme()); System.err.println("Add the following line near the beginning of your application:"); System.err.println(); String solution = null; if (challenge.getScheme().equalsIgnoreCase("Basic")) { solution = " AuthorizationInfo.addBasicAuthorization(\"" + challenge.getHost() + "\", " + challenge.getPort() + ", \"" + challenge.getRealm() + "\", " + "<username>, <password>);"; } else if (challenge.getScheme().equalsIgnoreCase("Digest")) { solution = " AuthorizationInfo.addDigestAuthorization(\"" + challenge.getHost() + "\", " + challenge.getPort() + ", \"" + challenge.getRealm() + "\", " + "<username>, <password>);"; } else { solution = " AuthorizationInfo.addAuthorization(\"" + challenge.getHost() + "\", " + challenge.getPort() + ", \"" + challenge.getScheme() + "\", \"" + challenge.getRealm() + "\", " + "...);"; } this.setMessage(solution); System.err.println(solution); System.err.println(); return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void authenticationFailedHandler(HttpServletRequest request, HttpServletResponse response, AuthenticationException authException) {\n response.setHeader(HttpHeaders.WWW_AUTHENTICATE, \"Basic\");\n response.setStatus(HttpServletResponse.SC_UNAUTHORIZED);\n }", "@Override\n public void commence(HttpServletRequest request,\n HttpServletResponse response,\n AuthenticationException authException) throws IOException {\n\n String requestURI = request.getRequestURI();\n if(requestURI.startsWith(\"/api\")){\n response.setStatus(HttpServletResponse.SC_UNAUTHORIZED);\n response.setContentType(\"application/json;charset=utf-8\");\n PrintWriter out = response.getWriter();\n BaseResponse baseResponse = new BaseResponse();\n baseResponse.setMessage(authException.getMessage());\n baseResponse.setStatus(HttpServletResponse.SC_UNAUTHORIZED);\n out.write(new ObjectMapper().writeValueAsString(baseResponse));\n out.flush();\n out.close();\n\n// response.sendError(HttpServletResponse.SC_UNAUTHORIZED, authException.getMessage());\n }else {\n response.sendRedirect(\"/login?redirect=\"+requestURI);\n }\n }", "protected void onUnsuccessfulAuthentication(HttpServletRequest request, HttpServletResponse response, AuthenticationException authException) throws IOException {\n }", "private AuthenticationFailureHandler authenticationFailureHandler() {\r\n return (HttpServletRequest request, HttpServletResponse response, AuthenticationException exception) -> {\r\n prepareResponse(response, null, HttpStatus.UNAUTHORIZED,\r\n exception);\r\n };\r\n }", "void processFailure(HttpError errorResult) {\n\n if (errorResult.needsAuthentication()) {\n Intent intent = new Intent(this, LoginActivity.class);\n startActivityForResult(intent, LOGIN_RESULT_ID);\n } else {\n showErrorMessage(errorResult.getErrorMessage());\n\n }\n }", "@Override\n\tpublic void onAuthenticationFailure(HttpServletRequest request, HttpServletResponse response, AuthenticationException exeption)\n\t\t\tthrows IOException, ServletException {\n\t\t\n\t\tgetRedirectStrategy().sendRedirect(request, response, getDefaultTargetUrl() );\n\t}", "@Override\n\tpublic void commence(HttpServletRequest request, HttpServletResponse response,\n\t\t\tAuthenticationException authException) throws IOException, ServletException {\n\t\tApiResponse res = new ApiResponse(HttpServletResponse.SC_UNAUTHORIZED, \"Unauthorised\");\n\t\tres.setErrors(authException.getMessage());\n\t\tres.setStatus(false);\n OutputStream out = response.getOutputStream();\n ObjectMapper mapper = new ObjectMapper();\n mapper.writeValue(out, res);\n out.flush();\n\t}", "protected void onUnsuccessfulAuthentication(HttpServletRequest request,\n\t\t\tHttpServletResponse response, AuthenticationException failed) throws IOException {\n\t\t\n\t\tresponse.setStatus(401);\n response.setContentType(\"application/json\"); \n response.getWriter().append(json(failed));\n\t}", "@Override\n public void onAuthenticationFailure(HttpServletRequest request, HttpServletResponse response, AuthenticationException exception) throws IOException, ServletException {\n response.setStatus(HttpStatus.UNAUTHORIZED.value());\n response.setContentType(MediaType.APPLICATION_JSON_UTF8_VALUE);\n response.addHeader(AUTHENTICATE_HEADER_STRING, AUTHENTICATION_SCHEME + REALM_PREFIX + \"\\\"Access to the Sign-in api\\\"\" + \", charset=\\\"UTF-8\\\"\");\n\n try (PrintWriter out = response.getWriter()) {\n out.println(\"{\");\n if (exception instanceof BadCredentialsException) {\n out.println(\"\\t\\\"status\\\": \\\"\" + HttpStatus.UNAUTHORIZED.value() + \"\\\",\");\n out.println(\"\\t\\\"message\\\": \\\"\" + \"Invalid email address/password.\" + \"\\\"\");\n }\n out.println(\"}\");\n }\n }", "@Override\n public void commence(\n HttpServletRequest request,\n HttpServletResponse response,\n AuthenticationException authException)\n throws IOException {\n\n response.sendError(HttpServletResponse.SC_UNAUTHORIZED, \"Unauthorized\");\n }", "void onFailureRedirection(String errorMessage);", "@Override\n public void onAuthenticationFailed() {\n }", "@Override\n protected void handleErrorResponseCode(int code, String message) {\n }", "@Override\n public void onAuthenticationFailed() {\n }", "@Override\n public void commence(HttpServletRequest request, HttpServletResponse response, AuthenticationException\n authException)\n throws IOException, ServletException {\n\n response.sendError(HttpServletResponse.SC_UNAUTHORIZED, \"Unauthorized, must be logged in to process request.\");\n }", "@Override\n\t\t\tpublic void handleError(ClientHttpResponse response) throws IOException {\n\t\t\t\t\n\t\t\t}", "@Override\n public F.Promise<Result> onAuthFailure(Http.Context context, String content) {\n final Http.Context c = context;\n return F.Promise.promise(new F.Function0<Result>() {\n @Override\n public Result apply() throws Throwable {\n String path = c.request().path();\n String sessionId = context.session().get(\"sessionId\");\n try {\n SessionStoreAdapter.getInstance().getUserSession(sessionId);\n c.flash().put(\"error\", Messages.get(\"global.error.noauthorizationforthispage\"));\n return ok(index.render());\n } catch(Exception e) {\n return ok(login.render(path));\n }\n }\n });\n }", "public boolean onAuthErrorOccured(Request<E> request);", "@Override\n\tpublic void handle(HttpServletRequest request, HttpServletResponse response,\n\t\tAccessDeniedException accessDeniedException) \n throws IOException, ServletException {\n\t\tresponse.sendRedirect(errorPage);\n\n\t}", "public void onError(Context context,Response<T> response,String originSource){\n if (response.getException() instanceof SocketTimeoutException){\n Toast.makeText(context, originSource+\"连接超时\", Toast.LENGTH_SHORT).show();\n }\n String location = \"\";\n if (response.getRawResponse() != null){\n location = response.getRawResponse().header(\"Location\");\n }\n //Auto login\n if (response.code() == 302 && list.contains(location)){\n Toast.makeText(context, \"请登录!\", Toast.LENGTH_SHORT).show();\n context.startActivity(new Intent(context, LoginActivity.class));\n }else if (response.getException() instanceof ProtocolException || response.getException() instanceof IndexOutOfBoundsException){\n if (response.getRawResponse() == null || response.getRawResponse().request().url().toString().equals(\"http://sc.sit.edu.cn/private/menu/menu.action\")){\n Toast.makeText(context, \"请登录!\", Toast.LENGTH_SHORT).show();\n context.startActivity(new Intent(context, LoginActivity.class));\n }\n }\n\n //Throw netresult\n NetResult netResult = null;\n if (response.body() == null){\n netResult = new NetResult<String>(null,response.code());\n netResult.setMsg(\"请求返回空值\");\n }else {\n netResult = (NetResult) response.body();\n netResult.setCode(response.code());\n netResult.setMsg(response.message());\n }\n\n onError(netResult);\n }", "@Override\n public void onFailure(@NonNull Exception e) {\n\n Log.i(TAG,\"An error occurred\" +e.getMessage());\n String exception=e.getMessage();\n int index=exception.indexOf(\":\");\n String data=exception.substring(index+1).trim();\n showMessage(\"Error\",data,R.drawable.ic_error_dialog);\n Toast.makeText(getApplicationContext(), \"Authentication failed.\",\n Toast.LENGTH_SHORT).show();\n progressBar.setVisibility(View.GONE);\n\n }", "@Override\n public void onFailure(int statusCode, cz.msebera.android.httpclient.Header[] headers, byte[] bytes, Throwable throwable) {\n\n // Hide Progress Dialog\n prgDialog.hide();\n // When Http response code is '404'\n if (statusCode == 404) {\n Toast.makeText(getApplicationContext(),\n \"Requested resource not found\",\n Toast.LENGTH_LONG).show();\n }\n // When Http response code is '500'\n else if (statusCode == 500) {\n Toast.makeText(getApplicationContext(),\n \"Something went wrong at server end\",\n Toast.LENGTH_LONG).show();\n }\n // When Http response code other than 404, 500\n else {\n Toast.makeText(\n getApplicationContext(),\n \"Error Occured n Most Common Error: n1. Device not connected to Internetn2. Web App is not deployed in App servern3. App server is not runningn HTTP Status code : \"\n + statusCode, Toast.LENGTH_LONG)\n .show();\n }\n }", "@Override\n public void onFailure(int statusCode, Header[] headers, Throwable e, JSONArray errorResponse) {\n // Hide Progress Dialog\n prgDialog.hide();\n // When Http response code is '404'\n if(statusCode == 404){\n Toast.makeText(getApplicationContext(), \"Requested resource not found\", Toast.LENGTH_LONG).show();\n }\n // When Http response code is '500'\n else if(statusCode == 500){\n Toast.makeText(getApplicationContext(), \"Something went wrong at server end\", Toast.LENGTH_LONG).show();\n }\n // When Http response code other than 404, 500\n else{\n Toast.makeText(getApplicationContext(), \"Unexpected Error occcured! [Most common Error: Device might not be connected to Internet or remote server is not up and running]\", Toast.LENGTH_LONG).show();\n }\n }", "void onAuthenticationError(Throwable throwable);", "public final void handleError(Throwable th) {\r\n if (!(th instanceof HttpException)) {\r\n Snackbar.Companion.showMessage(this, \"죄송합니다.\\n서비스가 잠시 지연되고 있습니다.\\n잠시 후 다시 이용해주세요.\");\r\n } else if (((HttpException) th).code() == 401) {\r\n Intent intent = new Intent(this, IntroActivity.class);\r\n intent.addFlags(32768);\r\n intent.addFlags(268435456);\r\n startActivity(intent);\r\n }\r\n }", "@Override\n public void onFailure(int statusCode, Header[] headers, byte[] errorResponse, Throwable e) {\n // Hide Progress Dialog\n prgDialog.hide();\n // When Http response code is '400'\n if(statusCode == 400){\n Toast.makeText(getApplicationContext(), \"Error Creating Donation!!\", Toast.LENGTH_LONG).show();\n }\n // When Http response code is '500'\n else if(statusCode == 500){\n Toast.makeText(getApplicationContext(), \"Something went wrong at server end\", Toast.LENGTH_LONG).show();\n }\n // When Http response code other than 400, 500\n else{\n Toast.makeText(getApplicationContext(), \"Unexpected Error occcured! [Most common Error: Device might not be connected to Internet or remote server is not up and running]\", Toast.LENGTH_LONG).show();\n }\n }", "protected void performGenericAuthorizationEndpointErrorResponseValidation() {\n\t\tcallAndContinueOnFailure(CheckStateInAuthorizationResponse.class, ConditionResult.FAILURE);\n\t\t// as https://tools.ietf.org/html/draft-ietf-oauth-iss-auth-resp is still a draft we only warn if the value is wrong,\n\t\t// and do not require it to be present.\n\t\tcallAndContinueOnFailure(ValidateIssInAuthorizationResponse.class, ConditionResult.WARNING, \"OAuth2-iss-2\");\n\t\tcallAndContinueOnFailure(EnsureErrorFromAuthorizationEndpointResponse.class, ConditionResult.FAILURE, \"OIDCC-3.1.2.6\");\n\t\tcallAndContinueOnFailure(RejectAuthCodeInAuthorizationEndpointResponse.class, ConditionResult.FAILURE, \"OIDCC-3.1.2.6\");\n\t\tcallAndContinueOnFailure(CheckForUnexpectedParametersInErrorResponseFromAuthorizationEndpoint.class, ConditionResult.WARNING, \"OIDCC-3.1.2.6\");\n\t\tcallAndContinueOnFailure(CheckErrorDescriptionFromAuthorizationEndpointResponseErrorContainsCRLFTAB.class, ConditionResult.WARNING, \"RFC6749-4.1.2.1\");\n\t\tcallAndContinueOnFailure(ValidateErrorDescriptionFromAuthorizationEndpointResponseError.class, ConditionResult.FAILURE,\"RFC6749-4.1.2.1\");\n\t\tcallAndContinueOnFailure(ValidateErrorUriFromAuthorizationEndpointResponseError.class, ConditionResult.FAILURE,\"RFC6749-4.1.2.1\");\n\t}", "public void handleError(ClientHttpResponse response) throws IOException {\n }", "private void handleAuthenticationResponse(JsonResponse response) {\n // Check if there is an authentication token in the response\n if (response.getAuthToken() != null && response.getAuthToken().length() > 0) {\n // Get the username\n final String username = this.mUsernameInput.getText().toString();\n // Add the Account and associate the authentication token\n final Account account = new Account(username, Constants.ACCOUNT_TYPE);\n this.mAccountManager.addAccountExplicitly(account, null, null);\n this.mAccountManager.setAuthToken(account, Constants.AUTH_TOKEN_TYPE, response.getAuthToken());\n // Finish\n final Intent intent = new Intent();\n intent.putExtra(AccountManager.KEY_ACCOUNT_NAME, username);\n intent.putExtra(AccountManager.KEY_ACCOUNT_TYPE, Constants.ACCOUNT_TYPE);\n this.setAccountAuthenticatorResult(intent.getExtras());\n this.setResult(RESULT_OK);\n this.finish();\n } else {\n // There was no authentication token\n List<String> errors = new ArrayList<String>();\n errors.add(this.getString(R.string.error_missing_auth_token));\n this.setMessages(errors);\n }\n }", "@Override\n\tpublic void handle(HttpServletRequest arg0, HttpServletResponse arg1, AccessDeniedException arg2)\n\t throws IOException, ServletException {\n\t\targ1.sendRedirect(errorPage);\n\t}", "@Override\n\tpublic void handleResponse() {\n\t\t\n\t}", "public void onAuthenticationFailed(\n RetailscmUserContext userContext,\n LoginContext loginContext,\n LoginResult loginResult,\n IdentificationHandler idHandler,\n BusinessHandler bizHandler)\n throws Exception {\n }", "public void onAuthenticationFailed(\n RetailscmUserContext userContext,\n LoginContext loginContext,\n LoginResult loginResult,\n IdentificationHandler idHandler,\n BusinessHandler bizHandler)\n throws Exception {\n }", "public void onAuthenticationFailed(\n RetailscmUserContext userContext,\n LoginContext loginContext,\n LoginResult loginResult,\n IdentificationHandler idHandler,\n BusinessHandler bizHandler)\n throws Exception {\n }", "public void onAuthenticationFailed(HealthUserContext userContext, LoginContext loginContext,\n\t\t\tLoginResult loginResult, IdentificationHandler idHandler, BusinessHandler bizHandler)\n\t\t\tthrows Exception {\n\t}", "@Override\n public void onAuthenticationError(int errorCode, CharSequence errString) {\n }", "@Override\n public void onFailure(Auth0Exception error) {\n showNextActivity();\n }", "@Override\n public void onFailure(Auth0Exception error) {\n showNextActivity();\n }", "private void abortUnauthorised(HttpServletResponse httpResponse) throws IOException {\n httpResponse.setHeader(HttpHeaders.WWW_AUTHENTICATE, WWW_AUTHENTICATION_HEADER);\n httpResponse.sendError(HttpServletResponse.SC_UNAUTHORIZED, UNAUTHORISED_MESSAGE);\n }", "public AuthenticationEntryPoint unauthorizedEntryPoint() {\n\t\treturn (request, response, authException) -> {\n\t\t\tresponse.addHeader(\"WWW-Authenticate\", \"BasicCustom realm=\\\"MicroService\\\"\");\n\t\t\tresponse.sendError(HttpServletResponse.SC_UNAUTHORIZED, authException.getMessage());\n\t\t};\n\t}", "@Override\r\n\tprotected void unsuccessfulAuthentication(HttpServletRequest request, HttpServletResponse response,\r\n\t\t\tAuthenticationException failed) throws IOException, ServletException {\r\n\r\n\t\tString authString = String.format(\"{\\\"auth\\\": \\\"%s\\\"\", false);\r\n\r\n\t\tString tokenString = String.format(\",\\\"jwt_token\\\": \\\"%s\\\"\", null);\r\n\t\tString reason = String.format(\",\\\"reason\\\": \\\"%s\\\"}\", \"Username or Password incorrect\");\r\n\r\n\t\tresponse.setContentType(\"application/json\");\r\n\t\tresponse.setCharacterEncoding(\"UTF-8\");\r\n\t\t// response.setStatus(HttpServletResponse.SC_OK);\r\n\t\tresponse.getWriter().write(authString + tokenString + reason);\r\n\r\n\t\t// Add token to header\r\n\t\t// response.addHeader(jwtConfig.getHeader(), jwtConfig.getPrefix() + token);\r\n\t}", "@Override\n public void onFailure(int statusCode, Header[] headers, Throwable throwable, String rawJsonResponse, Object response){\n }", "@Override\n public void onFailure(int statusCode, Header[] headers, Throwable throwable, String rawJsonResponse, Object response){\n }", "@Override\n public void handle(\n AuthzTrans trans,\n HttpServletRequest req,\n HttpServletResponse resp) throws Exception {\n Result<Date> r = context.doesCredentialMatch(trans, req, resp);\n if (r.isOK()) {\n resp.setStatus(HttpStatus.OK_200);\n } else {\n // For Security, we don't give any info out on why failed, other than forbidden\n // Can't do \"401\", because that is on the call itself\n // 403 Implies you MAY NOT Ask.\n resp.setStatus(HttpStatus.NOT_ACCEPTABLE_406);\n }\n }", "public void failure(RetrofitError arg0) {\n\t\t\t\tdialog.cancel();\n\t\t\t\tLog.i(\"\",\"Hello Error Response Code: \"+arg0.getResponse().getStatus());\n\t\t\t}", "private void sendUnauthorizedResponse(HttpResponse response, String answerMessage,\n\t\t\tString logMessage) {\n\t\tresponse.clearContent();\n\t\tresponse.setContentType( \"text/plain\" );\n\t\tif ( answerMessage != null)\n\t\t\tresponse.println ( answerMessage );\n\t\tresponse.setStatus( HttpResponse.STATUS_UNAUTHORIZED );\n\t\tconnector.logMessage ( logMessage );\n\t}", "@Override\n\t\t\tpublic void onErrorResponse(VolleyError error) {\n\n\t\t\t\tLogger.e(LogTag.HTTP, Log.getStackTraceString(error));\n\t\t\t\terror.printStackTrace();\n\t\t\t\tIntent intent = null;\n\t\t\t\tif (error != null && error.networkResponse != null) {\n\t\t\t\t\tswitch (error.networkResponse.statusCode) {\n\t\t\t\t\tcase 401:\n\t\t\t\t\t\tAccountManager.logout(context);\n\t\t\t\t\t\tToast.makeText(context, context.getResources().getString(R.string.longin_info_outtime), Toast.LENGTH_LONG).show();\n\t\t\t\t\t\tintent = new Intent(context, RegisterPhoneActivity.class);\n\t\t\t\t\t\tcontext.startActivity(intent);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 403:\n\t\t\t\t\t\tAccountManager.logout(context);\n\t\t\t\t\t\tToast.makeText(context, context.getResources().getString(R.string.longin_info_outtime), Toast.LENGTH_LONG).show();\n\t\t\t\t\t\tintent = new Intent(context, RegisterPhoneActivity.class);\n\t\t\t\t\t\tcontext.startActivity(intent);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tToast.makeText(context, context.getResources().getString(R.string.please_check_netword), Toast.LENGTH_SHORT).show();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tToast.makeText(context, context.getResources().getString(R.string.please_check_netword), Toast.LENGTH_SHORT).show();\n\t\t\t\t}\n\t\t\t\tcallback.onFailed(requestCode, error, error.getMessage());\n\t\t\t}", "@Bean\n public SimpleUrlAuthenticationFailureHandler authenticationFailureHandler() {\n final SimpleUrlAuthenticationFailureHandler failureHandler = new SimpleUrlAuthenticationFailureHandler();\n failureHandler.setUseForward(true);\n failureHandler.setDefaultFailureUrl(\"/error\");\n return failureHandler;\n }", "@Override\n\t\t\t\t\tpublic void httpFail(String response) {\n\t\t\t\t\t}", "private String handleOAuthAuthorizationRequest(String clientId, HttpServletRequest req, SessionDataCacheEntry sessionDataCacheEntry)\r\n/* */ throws OAuthSystemException, OAuthProblemException\r\n/* */ {\r\n/* 410 */ OAuth2ClientValidationResponseDTO clientDTO = null;\r\n/* 411 */ String redirect_uri = EndpointUtil.getSafeText(req.getParameter(\"redirect_uri\"));\r\n/* 412 */ if ((clientId == null) || (clientId.equals(\"\"))) {\r\n/* 413 */ String msg = \"Client Id is not present in the authorization request\";\r\n/* 414 */ log.debug(msg);\r\n/* 415 */ return EndpointUtil.getErrorPageURL(\"invalid_request\", msg, null, null); }\r\n/* 416 */ if ((redirect_uri == null) || (redirect_uri.equals(\"\"))) {\r\n/* 417 */ String msg = \"Redirect URI is not present in the authorization request\";\r\n/* 418 */ log.debug(msg);\r\n/* 419 */ return EndpointUtil.getErrorPageURL(\"invalid_request\", msg, null, null);\r\n/* */ }\r\n/* 421 */ clientDTO = validateClient(clientId, redirect_uri);\r\n/* */ \r\n/* */ \r\n/* 424 */ if (!clientDTO.isValidClient()) {\r\n/* 425 */ return EndpointUtil.getErrorPageURL(clientDTO.getErrorCode(), clientDTO.getErrorMsg(), null, null);\r\n/* */ }\r\n/* */ \r\n/* */ \r\n/* 429 */ OAuthAuthzRequest oauthRequest = new OAuthAuthzRequest(req);\r\n/* */ \r\n/* 431 */ OAuth2Parameters params = new OAuth2Parameters();\r\n/* 432 */ params.setClientId(clientId);\r\n/* 433 */ params.setRedirectURI(clientDTO.getCallbackURL());\r\n/* 434 */ params.setResponseType(oauthRequest.getResponseType());\r\n/* 435 */ params.setScopes(oauthRequest.getScopes());\r\n/* 436 */ if (params.getScopes() == null) {\r\n/* 437 */ Set<String> scopeSet = new HashSet();\r\n/* 438 */ scopeSet.add(\"\");\r\n/* 439 */ params.setScopes(scopeSet);\r\n/* */ }\r\n/* 441 */ params.setState(oauthRequest.getState());\r\n/* 442 */ params.setApplicationName(clientDTO.getApplicationName());\r\n/* */ \r\n/* */ \r\n/* 445 */ params.setNonce(oauthRequest.getParam(\"nonce\"));\r\n/* 446 */ params.setDisplay(oauthRequest.getParam(\"display\"));\r\n/* 447 */ params.setIDTokenHint(oauthRequest.getParam(\"id_token_hint\"));\r\n/* 448 */ params.setLoginHint(oauthRequest.getParam(\"login_hint\"));\r\n/* 449 */ if ((oauthRequest.getParam(\"acr_values\") != null) && (!oauthRequest.getParam(\"acr_values\").equals(\"null\")) && (!oauthRequest.getParam(\"acr_values\").equals(\"\")))\r\n/* */ {\r\n/* 451 */ String[] acrValues = oauthRequest.getParam(\"acr_values\").split(\" \");\r\n/* 452 */ LinkedHashSet list = new LinkedHashSet();\r\n/* 453 */ for (String acrValue : acrValues) {\r\n/* 454 */ list.add(acrValue);\r\n/* */ }\r\n/* 456 */ params.setACRValues(list);\r\n/* */ }\r\n/* 458 */ String prompt = oauthRequest.getParam(\"prompt\");\r\n/* 459 */ if (prompt == null) {\r\n/* 460 */ prompt = \"consent\";\r\n/* */ }\r\n/* 462 */ params.setPrompt(prompt);\r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ \r\n/* 494 */ boolean forceAuthenticate = false;\r\n/* 495 */ boolean checkAuthentication = false;\r\n/* */ \r\n/* 497 */ if (prompt != null)\r\n/* */ {\r\n/* 499 */ String[] prompts = prompt.trim().split(\"\\\\s\");\r\n/* 500 */ boolean contains_none = prompt.contains(\"none\");\r\n/* 501 */ if ((prompts.length > 1) && (contains_none)) {\r\n/* 502 */ String error = \"Invalid prompt variable combination. The value 'none' cannot be used with others prompts.\";\r\n/* 503 */ log.debug(error + \" \" + \"Prompt: \" + prompt);\r\n/* 504 */ return OAuthASResponse.errorResponse(302).setError(\"invalid_request\").setErrorDescription(error).location(params.getRedirectURI()).setState(params.getState()).buildQueryMessage().getLocationUri();\r\n/* */ }\r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ \r\n/* 510 */ if (prompt.contains(\"login\")) {\r\n/* 511 */ checkAuthentication = false;\r\n/* 512 */ forceAuthenticate = true;\r\n/* */ }\r\n/* 514 */ else if ((contains_none) || (prompt.contains(\"consent\"))) {\r\n/* 515 */ checkAuthentication = false;\r\n/* 516 */ forceAuthenticate = false;\r\n/* */ }\r\n/* */ }\r\n/* */ \r\n/* 520 */ String sessionDataKey = UUIDGenerator.generateUUID();\r\n/* 521 */ CacheKey cacheKey = new SessionDataCacheKey(sessionDataKey);\r\n/* 522 */ sessionDataCacheEntry = new SessionDataCacheEntry();\r\n/* 523 */ sessionDataCacheEntry.setoAuth2Parameters(params);\r\n/* 524 */ sessionDataCacheEntry.setQueryString(req.getQueryString());\r\n/* */ \r\n/* 526 */ if (req.getParameterMap() != null) {\r\n/* 527 */ sessionDataCacheEntry.setParamMap(new ConcurrentHashMap(req.getParameterMap()));\r\n/* */ }\r\n/* 529 */ SessionDataCache.getInstance().addToCache(cacheKey, sessionDataCacheEntry);\r\n/* */ try\r\n/* */ {\r\n/* 532 */ return EndpointUtil.getLoginPageURL(clientId, sessionDataKey, forceAuthenticate, checkAuthentication, oauthRequest.getScopes(), req.getParameterMap());\r\n/* */ }\r\n/* */ catch (UnsupportedEncodingException e) {\r\n/* 535 */ log.debug(e.getMessage(), e);\r\n/* 536 */ throw new OAuthSystemException(\"Error when encoding login page URL\");\r\n/* */ }\r\n/* */ }", "public OAuth2AuthorizeRespDTO handleAuthenticationFailed(OAuth2Parameters oAuth2Parameters) {\n\n String nonce = oAuth2Parameters.getNonce();\n OAuth2AuthorizeRespDTO respDTO = new OAuth2AuthorizeRespDTO();\n try {\n CibaDAOFactory.getInstance().getCibaAuthMgtDAO()\n .persistStatus(nonce, AuthenticationStatus.FAILED.toString());\n respDTO.setErrorCode(ErrorCodes.SubErrorCodes.AUTHENTICATION_FAILED);\n respDTO.setErrorMsg(\"Authentication failed.\");\n return respDTO;\n } catch (CibaCoreException e) {\n if (log.isDebugEnabled()) {\n log.debug(\"Error occurred in updating the authentication_status for the ID : \" + nonce + \"with \" +\n \"responseType as (ciba). \");\n }\n }\n return null;\n }", "@Override\n public void onFailure(int statusCode, Throwable error,\n String content) {\n\n if(statusCode == 404){\n Toast.makeText(context, \"Requested resource not found\", Toast.LENGTH_LONG).show();\n }else if(statusCode == 500){\n Toast.makeText(context, \"Something went wrong at server end\", Toast.LENGTH_LONG).show();\n }else{\n // Toast.makeText(context, \"Unexpected Error occcured! [Most common Error: Device might not be connected to Internet]\", Toast.LENGTH_LONG).show();\n }\n }", "@Override\n public void commence(HttpServletRequest request, HttpServletResponse response, AuthenticationException e) throws IOException, ServletException {\n logger.info(\" ====================================================== \");\n logger.info(\"请求url:\" +request.getRequestURI());\n logger.info(\" ============ 身份认证失败..................... \");\n logger.info(e.getMessage());\n logger.info(e.getLocalizedMessage());\n HttpUtils.writerError(HttpResponse.baseResponse(HttpStatus.UNAUTHORIZED.value(),e.getMessage()),response);\n }", "@Override\n public void onResponse(String response) {\n if (response.equalsIgnoreCase(\"success\")) {\n //dismissing the progressbar\n //pDialog.dismiss();\n //Starting a new activity\n startActivity(new Intent(SignUpNewActivity.this, LoginActivity.class));\n\n } if (response.equalsIgnoreCase(\"failed\")){\n //Displaying a toast if the otp entered is wrong\n Toast.makeText(SignUpNewActivity.this, \"Wrong Code Please Try Again\", Toast.LENGTH_LONG).show();\n\n }\n }", "private void observeResponse(final JSONObject response) {\n if (response.length() > 0) {\n if (response.has(\"code\")) {\n try {\n binding.editEmail.setError(\n \"Error Authenticating: \" +\n response.getJSONObject(\"data\").getString(\"message\"));\n } catch (JSONException e) {\n Log.e(\"JSON Parse Error\", e.getMessage());\n }\n } else {\n try {\n navigateToSuccess(\n binding.editEmail.getText().toString(),\n response.getString(\"token\")\n );\n } catch (JSONException e) {\n Log.e(\"JSON Parse Error\", e.getMessage());\n }\n }\n } else {\n Log.d(\"JSON Response\", \"No Response\");\n }\n }", "private void observeResponse(final JSONObject response) {\n if (response.length() > 0) {\n if (response.has(\"code\")) {\n try {\n binding.registerEmail.setError(\"Error Authentication \" +\n response.getJSONObject(\"data\").getString(\"message\"));\n } catch (JSONException e) {\n Log.e(\"JSON Parse Erro\", e.getMessage());\n }\n\n } else {\n navigateToLogin();\n\n }\n } else {\n Log.d(\"JSON Response\", \"No Response\");\n }\n }", "@Override\n public void onError(AuthError ae) {\n System.out.println(\"Error \" + ae);\n // Inform the user of the error\n }", "@Override\n\t\t\tpublic void onBizFailure(String responseDescription, JSONObject data, String flag) {\n\n\t\t\t}", "@Override\n\t\t\t\t\tpublic void handle(HttpServletRequest request, HttpServletResponse response,\n\t\t\t\t\t\t\tAccessDeniedException accessDeniedException) throws IOException, ServletException {\n\t\t\t\t\t\tresponse.setCharacterEncoding(\"UTF-8\");\n\t\t\t\t\t\tresponse.setContentType(\"application/json\");\n\t\t\t\t\t\tresponse.getWriter()\n\t\t\t\t\t\t\t\t.println(new ObjectMapper().createObjectNode().put(\"msg\", \"没有权限访问呀!\").toString());\n\t\t\t\t\t\tresponse.getWriter().flush();\n\t\t\t\t\t\tresponse.getWriter().close();\n\n\t\t\t\t\t}", "@Override\n public void onErrorResponse(VolleyError error) {\n Log.i(\"TAG\", \"网络错误,response+登录失败!\"+error.toString());\n Log.i(\"TAG\", application.username+\" \"+application.password);\n handler.sendMessage(handler\n .obtainMessage(NETWORK_ERROR));\n }", "private void handle(HttpServletRequest request, HttpServletResponse response, Authentication authentication) throws IOException {\n\t\tString targetUrl = \"/\";\r\n\t\t\r\n\t\tif(response.isCommitted()){\r\n\t\t\t//Response has already been committed. Unable to redirect to \" + url\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tredirectStrategy.sendRedirect(request, response, targetUrl);\r\n\t}", "@Override\n public void onFailure(int statusCode, Header[] headers, String responseString, Throwable throwable) {\n }", "@Override\n protected void processAuthenticationResponse(HttpServletRequest request, HttpServletResponse response,\n AuthenticationContext context) throws AuthenticationFailedException {\n Map<String, String> authenticatorProperties = context.getAuthenticatorProperties();\n String apiKey = authenticatorProperties.get(Token2Constants.APIKEY);\n String userToken = request.getParameter(Token2Constants.CODE);\n String id = getUserId(context);\n String json = validateToken(Token2Constants.TOKEN2_VALIDATE_ENDPOINT, apiKey, id, Token2Constants.JSON_FORMAT,\n userToken);\n Map<String, Object> userClaims;\n userClaims = JSONUtils.parseJSON(json);\n if (userClaims != null) {\n String validation = String.valueOf(userClaims.get(Token2Constants.VALIDATION));\n if (validation.equals(\"true\")) {\n context.setSubject(AuthenticatedUser\n .createLocalAuthenticatedUserFromSubjectIdentifier(\"an authorised user\"));\n } else {\n throw new AuthenticationFailedException(\"Given hardware token has been expired or is not a valid token\");\n }\n } else {\n throw new AuthenticationFailedException(\"UserClaim object is null\");\n }\n }", "@Override\n public void onFailure(int statusCode, Headers headers, String response, Throwable throwable) {\n Log.i(\"doRequest\", \"doRequest failed\");\n\n }", "void onFailureRedirection(ErrorModel errorModel);", "@Override\n public void onFailure(int statusCode , Header[] headers , String responseString , Throwable throwable)\n {\n if (!TextUtils.isEmpty(responseString))\n {\n YARToast.showDefault(MainApplication.getInstance(), responseString);\n }\n }", "void faild_response();", "@Override\n public void onRequestError(BaseResponse baseResponse) {\n EventType eventType = baseResponse.getEventType();\n // Validate fragment visibility\n if (isOnStoppingProcess || eventType == null) {\n return;\n }\n // Generic error\n if (super.handleErrorEvent(baseResponse)) {\n return;\n }\n // Show container\n showFragmentContentContainer();\n // Validate type\n switch (eventType) {\n case GET_NEWSLETTER_PREFERENCES_FORM_EVENT:\n goBackWarningUser();\n break;\n case SUBMIT_FORM:\n getBaseActivity().showWarningMessage(WarningFactory.ERROR_MESSAGE, getString(R.string.error_please_try_again));\n break;\n default:\n break;\n }\n }", "private void observeResponse(final JSONObject theResponse) {\n if (theResponse.length() > 0) {\n if (theResponse.has(\"code\")) {\n try {\n myBinding.editResetEmail.setError(\n \"Error Authenticating: \" +\n theResponse.getJSONObject(\"data\").getString(\"message\"));\n } catch (JSONException e) {\n Log.e(\"JSON Parse Error\", e.getMessage());\n }\n } else {\n navigateToSuccess();\n }\n } else {\n Log.d(\"JSON Response\", \"No Response\");\n }\n\n\n }", "@Override\n public void onFailure(int statusCode, Header[] headers, String res, Throwable t) {\n\n Log.i(\"onFailure\", res);\n }", "@Override\n public void onFailure(int statusCode, Header[] headers, byte[] errorResponse, Throwable e) {\n pDialog.dismiss();\n Toast.makeText(getApplicationContext(), \"Error. \",\n Toast.LENGTH_SHORT).show();\n if(errorResponse!=null) {\n Toast.makeText(getApplicationContext(), \"Error. \" + new String(errorResponse),\n Toast.LENGTH_SHORT).show();\n Log.e(\"Failure\", new String(errorResponse));\n }\n e.printStackTrace();\n }", "@Override\r\n public void onFailure(int statusCode, Header[] headers, byte[] errorResponse, Throwable e) {\n progress.dismiss();\r\n e.printStackTrace();\r\n\r\n }", "protected void onSuccessfulAuthentication(HttpServletRequest request, HttpServletResponse response, Authentication authResult) throws IOException {\n }", "public void onAuthenticationFailed(SdsUserContext userContext, LoginContext loginContext,\n\t\t\tLoginResult loginResult, IdentificationHandler idHandler, BusinessHandler bizHandler)\n\t\t\tthrows Exception {\n\t}", "@Override\r\n public void onFailure(int statusCode, Header[] headers, byte[] errorResponse, Throwable e) {\n progress.dismiss();\r\n e.printStackTrace();\r\n\r\n }", "@Override\r\n public void onFailureRedirection(String errorMessage) {\r\n try {\r\n mUtility.stopLoader();\r\n mUtility.showSnackBarAlert(findViewById(R.id.container), errorMessage, false);\r\n\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n }", "@Override\r\n public void onFailure(int statusCode, Header[] headers, byte[] errorResponse, Throwable e) {\n progress.dismiss();\r\n }", "@Bean\n\tpublic SimpleUrlAuthenticationFailureHandler failureRedirectHandler() {\n\t\tSimpleUrlAuthenticationFailureHandler failureHandler = new SimpleUrlAuthenticationFailureHandler();\n\t\tfailureHandler.setUseForward(true);\n\t\tfailureHandler.setDefaultFailureUrl(\"/error.jsp\");\n\t\treturn failureHandler;\n\t}", "@Override\n\tprotected boolean onAccessDenied(ServletRequest arg0, ServletResponse arg1) throws Exception {\n\t\treturn false;\n\t}", "public void onFailure(int statusCode, Throwable error,\n\t\t\t\t\t\t\t\tString content) {\n\t\t\t\t\t\t\tprgDialog.hide();\n\t\t\t\t\t\t\tif (statusCode == 404) {\n\t\t\t\t\t\t\t\tToast.makeText(context,\n\t\t\t\t\t\t\t\t\t\t\"Requested resource not found\",\n\t\t\t\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t\t\t\t} else if (statusCode == 500) {\n\t\t\t\t\t\t\t\tToast.makeText(context,\n\t\t\t\t\t\t\t\t\t\t\"Something went wrong at server end \",\n\t\t\t\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tToast.makeText(\n\t\t\t\t\t\t\t\t\t\tcontext,\n\t\t\t\t\t\t\t\t\t\t\"Unexpected Error occcured! [Most common Error: Device might not be connected to Internet]\",\n\t\t\t\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}", "@Override\n public void onFailure(int statusCode, Header[] headers, String responseString, Throwable throwable)\n {\n super.onFailure(statusCode, headers, responseString, throwable);\n System.out.println(\"applyBook-->onFailure\" + statusCode);\n }", "@Override\n public void onFailure(Exception e) {\n int statusCode = ((ApiException) e).getStatusCode();\n switch (statusCode) {\n case LocationSettingsStatusCodes.RESOLUTION_REQUIRED:\n try {\n ResolvableApiException rae = (ResolvableApiException) e;\n Toast.makeText(MainActivity.this, \"Location Setting Incorrect\", LENGTH_SHORT).show();\n // Call startResolutionForResult to display a pop-up asking the user to enable related permission.\n rae.startResolutionForResult(MainActivity.this, 0);\n } catch (IntentSender.SendIntentException sie) {\n Toast.makeText(MainActivity.this, (CharSequence) sie, LENGTH_SHORT).show();\n }\n break;\n default:\n break;\n }\n }", "@Override\n public void onFailure(int statusCode, Header[] headers, String responseString, Throwable throwable) {\n Log.d(\"recon\", \"error \" + statusCode + \" \" + throwable);\n\n Toast.makeText(getApplicationContext(), \"Error: \" + statusCode + \" Verify your Internet Connection is stable or working.\", Toast.LENGTH_LONG).show();\n }", "@Override\n public void onFailure(int statusCode, Header[] headers, String content,\n Throwable e) {\n Log.d(\"statusCode\", \"4XX\");\n // Hide Progress Dialog\n //progress.hide();\n String resultErrorMsg = \"\";\n // When Http response code is '404'\n if (statusCode == 404) {\n resultErrorMsg = \"Requested resource not found\";\n }\n // When Http response code is '500'\n else if (statusCode == 500) {\n resultErrorMsg = \"Something went wrong at server end\";\n }\n // When Http response code other than 404, 500\n else {\n resultErrorMsg = \"Unexpected Error occcured! [Most common Error: Device might not be connected to Internet or remote server is not up and running]\";\n }\n bro.setResultStateCode(statusCode);\n bro.setResultMsg(resultErrorMsg);\n bro.setResultJSONArray(null);\n listener.onShowJobsFailure(bro);\n }", "private SimpleUrlAuthenticationFailureHandler getAuthenticationFailureHandler() {\n\t\tSimpleUrlAuthenticationFailureHandler failureHandler = new SimpleUrlAuthenticationFailureHandler();\n\t\tfailureHandler.setDefaultFailureUrl(getAppUrl());\n\t\treturn failureHandler;\n\t}", "@Override\n\t\t\t\tpublic void onFailure(int statusCode, Header[] headers,\n\t\t\t\t\t\tThrowable throwable, JSONObject errorResponse) {\n\t\t\t\t\tToast.makeText(getActivity().getApplicationContext(), \"获取订单超时\", Toast.LENGTH_SHORT).show();\n\t\t\t\t}", "public void onFailure(int statusCode, Throwable error,\n\t\t\t\t\t\t\t\tString content) {\n\t\t\t\t\t\t\tprgDialog.hide();\n\t\t\t\t\t\t\tif (statusCode == 404) {\n\t\t\t\t\t\t\t\tToast.makeText(context,\n\t\t\t\t\t\t\t\t\t\t\"Requested resource not found\",\n\t\t\t\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t\t\t\t} else if (statusCode == 500) {\n\t\t\t\t\t\t\t\tToast.makeText(context,\n\t\t\t\t\t\t\t\t\t\t\"Something went wrong at server end\",\n\t\t\t\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tToast.makeText(\n\t\t\t\t\t\t\t\t\t\tcontext,\n\t\t\t\t\t\t\t\t\t\t\"Unexpected Error occcured! [Most common Error: Device might not be connected to Internet]\",\n\t\t\t\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}", "public void onFailure(int statusCode, Throwable error,\n\t\t\t\t\t\t\t\tString content) {\n\t\t\t\t\t\t\tprgDialog.hide();\n\t\t\t\t\t\t\tif (statusCode == 404) {\n\t\t\t\t\t\t\t\tToast.makeText(context,\n\t\t\t\t\t\t\t\t\t\t\"Requested resource not found\",\n\t\t\t\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t\t\t\t} else if (statusCode == 500) {\n\t\t\t\t\t\t\t\tToast.makeText(context,\n\t\t\t\t\t\t\t\t\t\t\"Something went wrong at server end\",\n\t\t\t\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tToast.makeText(\n\t\t\t\t\t\t\t\t\t\tcontext,\n\t\t\t\t\t\t\t\t\t\t\"Unexpected Error occcured! [Most common Error: Device might not be connected to Internet]\",\n\t\t\t\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}", "public void onFailure(int statusCode, Throwable error,\n\t\t\t\t\t\t\t\tString content) {\n\t\t\t\t\t\t\tprgDialog.hide();\n\t\t\t\t\t\t\tif (statusCode == 404) {\n\t\t\t\t\t\t\t\tToast.makeText(context,\n\t\t\t\t\t\t\t\t\t\t\"Requested resource not found\",\n\t\t\t\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t\t\t\t} else if (statusCode == 500) {\n\t\t\t\t\t\t\t\tToast.makeText(context,\n\t\t\t\t\t\t\t\t\t\t\"Something went wrong at server end\",\n\t\t\t\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tToast.makeText(\n\t\t\t\t\t\t\t\t\t\tcontext,\n\t\t\t\t\t\t\t\t\t\t\"Unexpected Error occcured! [Most common Error: Device might not be connected to Internet]\",\n\t\t\t\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}", "public void onFailure(int statusCode, Throwable error,\n\t\t\t\t\t\t\t\tString content) {\n\t\t\t\t\t\t\tprgDialog.hide();\n\t\t\t\t\t\t\tif (statusCode == 404) {\n\t\t\t\t\t\t\t\tToast.makeText(context,\n\t\t\t\t\t\t\t\t\t\t\"Requested resource not found\",\n\t\t\t\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t\t\t\t} else if (statusCode == 500) {\n\t\t\t\t\t\t\t\tToast.makeText(context,\n\t\t\t\t\t\t\t\t\t\t\"Something went wrong at server end\",\n\t\t\t\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tToast.makeText(\n\t\t\t\t\t\t\t\t\t\tcontext,\n\t\t\t\t\t\t\t\t\t\t\"Unexpected Error occcured! [Most common Error: Device might not be connected to Internet]\",\n\t\t\t\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}", "public void onFailure(int statusCode, Throwable error,\n\t\t\t\t\t\t\t\tString content) {\n\t\t\t\t\t\t\tprgDialog.hide();\n\t\t\t\t\t\t\tif (statusCode == 404) {\n\t\t\t\t\t\t\t\tToast.makeText(context,\n\t\t\t\t\t\t\t\t\t\t\"Requested resource not found\",\n\t\t\t\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t\t\t\t} else if (statusCode == 500) {\n\t\t\t\t\t\t\t\tToast.makeText(context,\n\t\t\t\t\t\t\t\t\t\t\"Something went wrong at server end\",\n\t\t\t\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tToast.makeText(\n\t\t\t\t\t\t\t\t\t\tcontext,\n\t\t\t\t\t\t\t\t\t\t\"Unexpected Error occcured! [Most common Error: Device might not be connected to Internet]\",\n\t\t\t\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}", "@Override\n public Result onUnauthorized(Context ctx) {\n return redirect(routes.Admin.loginPage());\n }", "@Override\n public void onFailure(int statusCode, Header[] headers, byte[] errorResponse, Throwable e) {\n }", "@Override\n public void onFailure(int statusCode, Header[] headers, byte[] errorResponse, Throwable e) {\n }", "protected abstract void handleOk();", "@Override\n public PostAuthnHandlerFlowStatus handle(HttpServletRequest request, HttpServletResponse response,\n AuthenticationContext context) throws PostAuthenticationFailedException {\n\n log.info(\"====================CustomXACMLBasedAuthorizationHandler\");\n if (log.isDebugEnabled()) {\n log.debug(\"In policy authorization flow...\");\n }\n\n if (!isAuthorizationEnabled(context) || getAuthenticatedUser(context) == null) {\n return PostAuthnHandlerFlowStatus.SUCCESS_COMPLETED;\n }\n try {\n context.addParameter(IdentityConstants.USER_IP, IdentityUtil.getClientIpAddress(request));\n FrameworkUtils.addAuthenticationContextToCache(context.getContextIdentifier(), context);\n\n String requestString = createRequest(context);\n if (log.isDebugEnabled()) {\n log.debug(\"XACML Authorization request :\\n\" + requestString);\n }\n\n FrameworkUtils.startTenantFlow(context.getTenantDomain());\n String responseString =\n AppAuthzDataholder.getInstance().getEntitlementService().getDecision(requestString);\n if (log.isDebugEnabled()) {\n log.debug(\"XACML Authorization response :\\n\" + responseString);\n }\n\n String role = getRoleFromXACMLPolicy(responseString);\n if (log.isDebugEnabled()) {\n log.debug(\"User role is:\" + role);\n }\n\n if (StringUtils.isNotEmpty(role)) {\n // Add the claim from XACML policy as user attribute.\n setRoleAsUserAttributes(role, context);\n return PostAuthnHandlerFlowStatus.SUCCESS_COMPLETED;\n } else {\n if (log.isDebugEnabled()) {\n log.debug(\"No applicable role is found in the XACML policy.\");\n }\n\n }\n\n return PostAuthnHandlerFlowStatus.INCOMPLETE;\n\n } catch (EntitlementException | FrameworkException e) {\n throw new PostAuthenticationFailedException(\"Authorization Failed\", \"Error while trying to evaluate \" +\n \"authorization\", e);\n } finally {\n FrameworkUtils.endTenantFlow();\n }\n }", "private void authFailed() {\n Toast.makeText(LoginActivity.this, \"Authentication failed.\",\n Toast.LENGTH_SHORT).show();\n }", "public SimpleResponse NOT_AUTHORIZED() {\n this.state = NOT_AUTHORIZED;\n return ERROR_CUSTOM();\n }", "@Override\n\t\t\tpublic void onFailure(int arg0, Header[] arg1, byte[] arg2, Throwable arg3) {\n\t\t\t\t\n\t\t\t\tnew Handler().postDelayed(new Runnable() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t//\t\t\t\tIntent intent = new Intent(getApplicationContext(),MainActivity.class);\n\t\t\t\t\t\tIntent intent = new Intent(getApplicationContext(),LoginActivity.class);\n\t\t\t\t\t\tstartActivity(intent);\n\t\t\t\t\t\tdissmissDilog();\n\t\t\t\t\t\tfinish();\n\t\t\t\t\t}\n\t\t\t\t}, 3000);\n\t\t\t}", "private void _parseResponse(String response) {\n if (response != null && response.equals(\"OK\")) {\n String message = getString(R.string.authentication_success_message, _getChallenge().getIdentity().getDisplayName(), _getChallenge().getIdentityProvider().getDisplayName());\n _showAlertWithMessage(getString(R.string.authentication_success_title), message, true, false);\n } else {\n String message = getString(R.string.error_auth_unknown_error);\n boolean retry = false;\n if (response.equals(\"INVALID_CHALLENGE\")) {\n message = getString(R.string.error_auth_invalid_challenge);\n } else if (response.equals(\"INVALID_REQUEST\")) {\n message = getString(R.string.error_auth_invalid_request);\n } else if (response.equals(\"INVALID_RESPONSE\")) {\n message = getString(R.string.error_auth_invalid_response);\n retry = true;\n } else if (response.equals(\"INVALID_USERID\")) {\n message = getString(R.string.error_auth_invalid_userid);\n }\n _showAlertWithMessage(getString(R.string.authentication_failure_title), message, false, retry);\n }\n\n }", "@Override\n public void onResponse(String response) {\n System.out.println(\"Response is: \"+ response);\n\n try {\n JSONObject jsonObj = new JSONObject(response);\n String responseResult = jsonObj.getString(\"result\");\n String err = jsonObj.getString(\"err\");\n if (responseResult.equals(\"success\")) {\n continueAfterSuccessfulResponse(jsonObj, requestCode);\n }\n else\n {\n AlertDialog alertDialog = new AlertDialog.Builder(ViewInventoryActivity.this).create();\n alertDialog.setTitle(\"Error\");\n alertDialog.setMessage(err);\n alertDialog.setButton(AlertDialog.BUTTON_NEUTRAL, \"OK\",\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }\n });\n alertDialog.show();\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n\n }" ]
[ "0.70246774", "0.69516605", "0.682666", "0.6777449", "0.64062184", "0.6396332", "0.6284129", "0.62782305", "0.620355", "0.6179992", "0.61618704", "0.6147444", "0.614437", "0.6139361", "0.6104441", "0.60823613", "0.6064539", "0.60645145", "0.6054703", "0.6030689", "0.6029977", "0.6012897", "0.6005584", "0.59829825", "0.5934172", "0.59104675", "0.58986264", "0.5885748", "0.5869822", "0.58475304", "0.5842078", "0.5821832", "0.5821832", "0.5821832", "0.58112013", "0.57993317", "0.5797408", "0.57935804", "0.5764856", "0.5738018", "0.57126236", "0.5707717", "0.5707717", "0.5706244", "0.5681246", "0.5680976", "0.56796414", "0.5630263", "0.56236553", "0.5621072", "0.56204355", "0.56188375", "0.5607253", "0.55992806", "0.5598197", "0.55925363", "0.5575913", "0.55676", "0.5544804", "0.5541493", "0.55390555", "0.5536778", "0.55356425", "0.5529088", "0.5518266", "0.5513348", "0.55084395", "0.5506411", "0.55049187", "0.550117", "0.54996365", "0.54800653", "0.5479044", "0.54751945", "0.54744804", "0.5469852", "0.5469085", "0.54670334", "0.5466879", "0.54619044", "0.5460677", "0.5459559", "0.5458587", "0.5447628", "0.5447328", "0.54440737", "0.5440865", "0.5440865", "0.5440865", "0.5440865", "0.5440865", "0.5439701", "0.5431121", "0.5431121", "0.5427485", "0.54206914", "0.54179364", "0.54178727", "0.54150295", "0.5413995", "0.54131037" ]
0.0
-1
Method to ask if it was succeesful operation
public boolean isSuccess() { return success; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasIsSuccess();", "public boolean isSuccess();", "public boolean isSuccess();", "boolean isSuccessful();", "boolean isSuccess();", "boolean isSuccess();", "boolean isSuccess();", "boolean isSuccess();", "boolean isSuccess();", "boolean isSuccess();", "boolean isSuccess();", "public boolean wasOkay();", "public boolean performOk() {\r\n\t\treturn super.performOk();\r\n\t}", "boolean getIsOk();", "boolean getSuccess();", "boolean getSuccess();", "boolean getSuccess();", "boolean getSuccess();", "@Override\n\t\tpublic boolean isSuccess() {\n\t\t\treturn false;\n\t\t}", "public boolean isSuccess()\r\n/* 79: */ {\r\n/* 80:115 */ Object result = this.result;\r\n/* 81:116 */ if ((result == null) || (result == UNCANCELLABLE)) {\r\n/* 82:117 */ return false;\r\n/* 83: */ }\r\n/* 84:119 */ return !(result instanceof CauseHolder);\r\n/* 85: */ }", "public boolean isSuccessful() {\n return this.reason == Reason.NONE;\n }", "public boolean hasSucceeded() {\n return succeeded;\n }", "boolean hasResult();", "boolean hasResult();", "boolean hasResult();", "boolean hasResult();", "boolean hasResult();", "boolean hasResult();", "boolean hasResult();", "boolean hasResult();", "boolean hasResult();", "boolean hasResult();", "boolean hasResult();", "boolean hasResult();", "public boolean isSuccessful()\n\t{\n\t\tif (response.get(\"Result\").equals(\"APPROVED\") && !response.get(\"MESSAGE\").equals(\"DUPLICATE\")) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public static boolean isOK() {return isOK;}", "Boolean isInvokeSuccess();", "public boolean wasSuccessful() {\n return this.failureCount() == 0 && this.errorCount() == 0;\n }", "public boolean isSuccess() {\r\n return success;\r\n }", "public boolean isSuccess() {\r\n return success;\r\n }", "public boolean isOkay() {\n return okay;\n }", "public boolean repOk();", "public boolean isOk() {\n\t\treturn ok;\n\t}", "public boolean isSuccess() {\n return success;\n }", "public boolean isSuccess() {\n return success;\n }", "public boolean isSuccess() {\n return success;\n }", "private static boolean isDone0(Object result)\r\n/* 74: */ {\r\n/* 75:110 */ return (result != null) && (result != UNCANCELLABLE);\r\n/* 76: */ }", "public boolean isIsSuccess() {\r\n return isSuccess;\r\n }", "public final boolean\n isOutcomeSuccess() { return hasOutcome_ && outcome_ == true; }", "public final boolean isOk() {\n return ok;\n }", "public boolean isOk() {\n return this.state == null || this.state.code == 0;\n }", "public Boolean isSuccess()\n\t{\n\t\treturn isSuccess( getSession().getSessionContext() );\n\t}", "public boolean isSuccess() {\n\t\tif (Status.OK == status) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public boolean isIsSuccess() {\n return isSuccess;\n }", "public boolean okReveiced () {\n\t\t\treturn resultDetected[RESULT_INDEX_OK];\n\t\t}", "public abstract boolean repOk();", "public boolean lastOpSuccess()\r\n {\r\n \treturn this.stat == VirtualPointer.Serializer.STATUS_SUCCESS;\r\n }", "public boolean trySuccess(V result)\r\n/* 321: */ {\r\n/* 322:406 */ if (setSuccess0(result))\r\n/* 323: */ {\r\n/* 324:407 */ notifyListeners();\r\n/* 325:408 */ return true;\r\n/* 326: */ }\r\n/* 327:410 */ return false;\r\n/* 328: */ }", "public int succeeded() {\n return this.succeeded;\n }", "public boolean isSuccessful() {\n return code >= 200 && code < 300;\n }", "boolean hasResultCode();", "boolean hasResultCode();", "public boolean isOperationSuccess() {\n return operationSuccess;\n }", "@java.lang.Override\n public boolean getIsOk() {\n return isOk_;\n }", "@Override\n\tpublic boolean isInterestedInSuccess() {\n\t\treturn false;\n\t}", "public boolean isOK() {\n\t\treturn adaptee.isOK();\n\t}", "private boolean checkExecution() {\n if (!checkPhoneStatusOK()) {\n return false;\n }\n if (!checkBatteryLevelOK()) {\n return false;\n }\n return true;\n }", "public Integer getIsSuccess() {\n return isSuccess;\n }", "public boolean hasResult()\n/* */ {\n/* 119 */ return this.result != RESULT_NONE;\n/* */ }", "public boolean proceedOnErrors() {\n return false;\n }", "public boolean isSuccess() {\n return mSuccess;\n }", "@java.lang.Override\n public boolean getIsOk() {\n return isOk_;\n }", "public boolean getSuccess() {\n return instance.getSuccess();\n }", "public boolean getSuccess() {\n return instance.getSuccess();\n }", "public boolean getSuccess() {\n return instance.getSuccess();\n }", "public boolean patenteSuccess() {\n return this.success;\n }", "public boolean isOk() {\n return _type == Type.OK;\n }", "boolean isFailure();", "@XmlTransient\n\tpublic boolean isSuccess() {\n\t\treturn errorCode == ActionErrorCode.SUCCESS;\n\t}", "public Boolean isSuccess(final SessionContext ctx)\n\t{\n\t\treturn (Boolean)getProperty( ctx, SUCCESS);\n\t}", "public boolean getSuccess() {\n return (transactionFailure == null && amountConverted != null);\n }", "public Boolean isNextOk() {\n if (!isInputValid()) {\n return Boolean.FALSE;\n }\n createReservations();\n if (containsInputErrors()) {\n return Boolean.FALSE;\n } else {\n switch (extractFeatureSet()) {\n case FREE:\n createGuestProfile();\n if (containsInputErrors()) {\n return Boolean.FALSE;\n }\n break;\n case PREMIUM:\n break;\n default:\n throw Assert.createUnreachable(\"Unknown feature set {0}.\",\n extractFeatureSet());\n }\n }\n return Boolean.TRUE;\n }", "private boolean isSuccessful(SocketMessage response) {\r\n if (\"success\".equals(response.getValue(\"status\"))) {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }", "public boolean trySuccess()\r\n/* 52: */ {\r\n/* 53: 84 */ return trySuccess(null);\r\n/* 54: */ }", "private boolean setIsSuccessful() {\n\t\tisSuccessful = false;\n\t\tRandom rand = new Random();\n\t\tint val = rand.nextInt(50);\n\t\tif (val % 2 == 0) {\n\t\t\tisSuccessful = true;\n\t\t}\n\t\treturn isSuccessful;\n\t}", "public boolean getSuccess() {\n return success_;\n }", "private void checkResult() {\n if (parent != -1 && (numOfAck == (outgoingLinks.size() - 1))) {\n if (setOfAck.add(this.maxId)) {\n Message message = new Message(this.uid, this.maxId, \"ack\");\n sendTo(message, this.parent);\n }\n if (!termination) {\n marker.addNumOfTerminatedProc();\n termination = true;\n }\n } else if (parent == -1 && (numOfAck == outgoingLinks.size())) {\n System.out.println(this.uid + \" is the leader.\");\n marker.addNumOfTerminatedProc();\n }\n }", "@Override\n\tpublic boolean repOk() {\n\t\treturn true;\n\t}", "boolean isCompleted();", "boolean hasErr();", "public boolean isSuccessful() {\n return responseCode >= 200 && responseCode < 300;\n }", "boolean completed();", "public boolean isDone()\r\n/* 69: */ {\r\n/* 70:106 */ return isDone0(this.result);\r\n/* 71: */ }", "public boolean getSuccess() {\n return success_;\n }", "public boolean getSuccess() {\n return success_;\n }", "public boolean getSuccess() {\n return success_;\n }", "public boolean getSuccess() {\n return success_;\n }", "boolean isComplete();", "boolean isComplete();", "protected boolean isFinished() {\r\n if (state == STATE_SUCCESS) {\r\n // Success\r\n return true;\r\n }\r\n if (state == STATE_FAILURE) {\r\n // Failure\r\n return true;\r\n }\r\n return false;\r\n }" ]
[ "0.79314804", "0.78649616", "0.78649616", "0.78274053", "0.7702678", "0.7702678", "0.7702678", "0.7702678", "0.7702678", "0.7702678", "0.7702678", "0.76025116", "0.74240404", "0.7290905", "0.72704166", "0.72704166", "0.72704166", "0.72704166", "0.725876", "0.72157913", "0.7092197", "0.7056247", "0.7052409", "0.7052409", "0.7052409", "0.7052409", "0.7052409", "0.7052409", "0.7052409", "0.7052409", "0.7052409", "0.7052409", "0.7052409", "0.7052409", "0.70450574", "0.70037097", "0.6971256", "0.6938022", "0.68761516", "0.68761516", "0.68350714", "0.68342024", "0.68152106", "0.6797922", "0.6797922", "0.6797922", "0.6761749", "0.67606324", "0.6752395", "0.67465377", "0.67422366", "0.67192364", "0.6716218", "0.67134094", "0.6704248", "0.67036504", "0.6698786", "0.66786635", "0.6615166", "0.6598606", "0.65863806", "0.65863806", "0.65797496", "0.6575735", "0.6565943", "0.65478504", "0.6523788", "0.6513951", "0.65048796", "0.6502064", "0.6485948", "0.6459059", "0.64509064", "0.64509064", "0.64509064", "0.6443462", "0.64289916", "0.64278334", "0.6407219", "0.6372772", "0.63715035", "0.6360574", "0.63519377", "0.6351192", "0.63366073", "0.6325982", "0.631252", "0.6308466", "0.6302966", "0.6302645", "0.62982684", "0.62971824", "0.62941235", "0.6291924", "0.6291924", "0.6291924", "0.6291924", "0.6291003", "0.6291003", "0.6238666" ]
0.6985454
36
Method to set the information Message
protected void setMessage(java.lang.String newMessage) { if (message == null) { message = newMessage; } else { message += "\n" + newMessage; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setMessageInfo(String messageInfo);", "public void setInformation(String information);", "public String setInfo() {\n\t\treturn \"There is no parameter\";\r\n\t}", "public void setMessageInfo(String[] info, UUID messageID, UUID viewer){\n this.mailSender = UUID.fromString(info[0]);\n this.viewer = viewer;\n UserActivityController uac = (UserActivityController) builder.getControllers()[0];\n String displayed = \"\";\n\n int i = 0;\n for (String s : info){\n // sender\n if (i % 5 == 0){\n displayed += \"--------------------------------------------------\\n\";\n displayed += \"From: \" + uac.getDisplayedUsername(viewer, UUID.fromString(s)) + \"\\n\";\n }\n // receivers\n else if (i % 5 == 1){\n displayed += \"To: \" + processReceivers(s.split(\",\")) + \"\\n\";\n }\n // title\n else if (i % 5 == 2 ){\n displayed += \"Subject: \" + s + \"\\n\";\n }\n // content\n else if (i % 5 == 3 ){\n displayed += s + \"\\n\";\n }\n // attachments\n else {\n addAttachments(s);\n }\n i++;\n }\n this.messageID = messageID;\n messageArea.setText(displayed);\n }", "@Override\n\tpublic void info(Object message) {\n\n\t}", "public void setInformation(String information) {\n this.mInformation = information;\n }", "public void setInfoText(String infoText);", "void setMessage(String message);", "void setMessage(String message);", "public void writeMassege() {\n m = ChatClient.message;\n jtaChatHistory.setText(\"You : \" + m);\n //writeMassageServer();\n }", "@Override\n\tpublic void info(CharSequence message) {\n\n\t}", "private void showInfo(String message){ infoLabel.setText(message);}", "public void information(final String message) {\n\t\tSwingUtilities.invokeLater(new Runnable() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tinformations.setInformation(i18n.getMessage(message));\n\t\t\t}\n\t\t});\n\t}", "@Override\n\tpublic void info(Message msg) {\n\n\t}", "private void showInfo(String message)\r\n {\r\n infoLabel.setText(message);\r\n }", "public InfoMessage createInfoMessage();", "@Override\n public void setInfo(String s) {\n this.info = s;\n\n }", "public void setInfo(String i)\n {\n info = i;\n }", "private void displayMessage(String info) {\n \tif (message == null) {\n \t\tsetupMessage();\n \t}\n \tmessage.setLabel(info);\n\t\tadd(message, 6, 15);\n }", "public void setMessage(String message);", "public void setMessage(String message);", "public void setMessage(String message);", "@Override\n\tpublic void info(Marker marker, Message msg) {\n\n\t}", "private void infoMessage(String message) {\n JOptionPane.showMessageDialog(this, message,\n \"VSEGraf - user management\", JOptionPane.INFORMATION_MESSAGE);\n }", "public void info(String message);", "public void info(String message);", "private void displayInformation(String message) {\n informationTextArea.setText(EMPTY);\n informationTextArea.setText(message);\n }", "@Override\n\tpublic void info(Marker marker, Object message) {\n\n\t}", "public void setInfoText(String text) {\n/*Generated! Do not modify!*/ replyDTO.getVariablesToSet().add(\"overviewSmall_info_propertyText\");\n/*Generated! Do not modify!*/ if (text == null) {\n/*Generated! Do not modify!*/ replyDTO.getVariableValues().remove(\"overviewSmall_info_propertyText\");\n/*Generated! Do not modify!*/ } else {\n/*Generated! Do not modify!*/ replyDTO.getVariableValues().put(\"overviewSmall_info_propertyText\", text);\n/*Generated! Do not modify!*/ }\n/*Generated! Do not modify!*/ if (recordMode){\n/*Generated! Do not modify!*/ addRecordedAction(\"setInfoText(\" + escapeString(text) + \");\");\n/*Generated! Do not modify!*/ }\n/*Generated! Do not modify!*/ }", "boolean setInfo();", "public void infoMsg(String msg) {\n mensagens.add(new MensagemSistema(ConstantsControl.MSG_INFO, msg));\n }", "@Override\n\tpublic void info(String message, Object p0, Object p1, Object p2, Object p3, Object p4,\n\t\t\tObject p5, Object p6, Object p7, Object p8, Object p9) {\n\n\t}", "@Override\n\tpublic void info(String message, Object p0, Object p1, Object p2, Object p3, Object p4,\n\t\t\tObject p5, Object p6, Object p7) {\n\n\t}", "@Override\n\tpublic void info(Marker marker, String message, Object p0, Object p1, Object p2, Object p3,\n\t\t\tObject p4, Object p5, Object p6, Object p7) {\n\n\t}", "public void setInfo(String info) {\n this.info = info;\n }", "private void setupMessage() {\n \tmessage = new GLabel(\"\");\n \tmessage.setFont(\"SansSerif-12\");\n }", "@Override\n\tpublic void info(String message, Object p0, Object p1, Object p2, Object p3, Object p4,\n\t\t\tObject p5, Object p6, Object p7, Object p8) {\n\n\t}", "@Override\n\tpublic void info(String message, Object p0, Object p1) {\n\n\t}", "@Override\n\tpublic void info(Marker marker, String message, Object p0, Object p1, Object p2, Object p3,\n\t\t\tObject p4, Object p5, Object p6, Object p7, Object p8, Object p9) {\n\n\t}", "@Override\n\tpublic void info(String message, Object p0, Object p1, Object p2, Object p3, Object p4,\n\t\t\tObject p5, Object p6) {\n\n\t}", "private void setInfo(String newinfo){\n SFNode textField = (SFNode)getField(\"text\");\n Node textNode = (Node)textField.getValue();\n \n\n // Get the \"string\" exposed field of the Text node\n MFString stringField = (MFString)textNode.getExposedField(\"string\");\n\n // Get the name of the user. This is a privileged method call that\n // will throw an AccessControlException when we do not give this\n // script the right to read that property.\n //String username = System.getProperty(\"user.name\");\n\n // Write the user name into the \"string\" field of the Text node\n //stringField.set1Value(1, username);\n stringField.set1Value(0, newinfo);\n }", "private void setMessage(final String message) {\n }", "@Override\n\tpublic void info(Marker marker, CharSequence message) {\n\n\t}", "public void showInformationMessage(String msg) {\r\n JOptionPane.showMessageDialog(this,\r\n\t\t\t\t msg, TmplResourceSingleton.getString(\"info.dialog.header\"),\r\n\t\t\t\t JOptionPane.INFORMATION_MESSAGE);\r\n }", "@Override\n\tpublic void info(String message, Object p0, Object p1, Object p2, Object p3) {\n\n\t}", "@Override\n\tpublic void info(Marker marker, String message, Object p0, Object p1, Object p2, Object p3,\n\t\t\tObject p4, Object p5, Object p6) {\n\n\t}", "public void setMessage(String message) {\r\n\tthis.message = message;\r\n}", "@Override\n\tpublic void info(String message, Object p0, Object p1, Object p2, Object p3, Object p4) {\n\n\t}", "void info(String message);", "@Override\n\tpublic void info(Marker marker, String message, Object p0, Object p1, Object p2, Object p3,\n\t\t\tObject p4, Object p5, Object p6, Object p7, Object p8) {\n\n\t}", "@Override\n\tpublic void info(Marker marker, String message) {\n\n\t}", "public void setMessage(Message msg){\n message = msg;\n setChanged();\n notifyObservers();\n }", "public void setMsgInfo(int msgId, int replyId, String replier){\n Message msg = getmessage(msgId);\n msg.setReply(replyId);\n msg.setReplyer(replier);\n }", "@Override\r\n\tpublic void setInfo(Object datos) {\n\t\t\r\n\t}", "@Override\n\tpublic void info(Marker marker, String message, Object p0, Object p1) {\n\n\t}", "@Override\n\tpublic void info(Marker marker, String message, Object p0, Object p1, Object p2, Object p3,\n\t\t\tObject p4) {\n\n\t}", "protected void addMessage(String info) {\r\n\t\tadd(MESSAGE_SYMBOL + info + \"\\n\", styles.getInfo());\r\n\t}", "public final void setInfo(Info info)\n {\n this.info = info;\n }", "@Override\n\tpublic void info(Marker marker, String message, Object p0, Object p1, Object p2, Object p3) {\n\n\t}", "@Override\n\tpublic void info(Marker marker, String message, Object p0) {\n\n\t}", "@Override\n\tpublic void info(String message, Object p0, Object p1, Object p2) {\n\n\t}", "@Override\n\tpublic void info(String message, Object... params) {\n\n\t}", "@Override\n\tpublic void info(String message, Object p0) {\n\n\t}", "void setMessage(char msg[], char attribs[]) {\n copyString(msg, statusLine, 1, MESSAGE_LENGTH);\n notifyDisplay();\n }", "private void refreshInformation () {\n if (textInformation != null) {\n String messageInfo = \"\";\n\n while (!listMessageInfo.isEmpty()) {\n messageInfo = listMessageInfo.getLast() + \"\\n\" + messageInfo;\n listMessageInfo.removeLast();\n }\n\n if (textInformation.getText() != null) {\n textInformation.setText(messageInfo + textInformation.getText());\n } else {\n textInformation.setText(messageInfo);\n }\n }\n }", "private void setMessageText(String pMessage) {\n\n TextView tempText = (TextView) findViewById(R.id.tallyDeviceConnectionStatusMessageTextView);\n\n tempText.setText(pMessage);\n\n }", "protected abstract void info(String msg);", "private void setPlayerInformations() {\n\t\t\t\n\t\t\t\n\t\t}", "@Override\n\tpublic void info(Marker marker, String message, Object p0, Object p1, Object p2) {\n\n\t}", "public abstract void setMessage(int paramInt, String paramString);", "protected static synchronized void writeInfo(String information) {\n JOptionPane optionPane = new JOptionPane(information, JOptionPane.INFORMATION_MESSAGE);\n JDialog dialog = optionPane.createDialog(\"Information\");\n dialog.setAlwaysOnTop(true);\n dialog.setVisible(true);\n }", "public void setMsg(String msg){\n messageLabel.setText(msg);\n }", "public void showInformationMessage(final String message) {\r\n JOptionPane.showMessageDialog(window, message, getTitle(), JOptionPane.INFORMATION_MESSAGE);\r\n }", "public void displayInfo(String message){\n Alert alert = new Alert(Alert.AlertType.INFORMATION);\n alert.setContentText(message);\n //alert.initOwner(owner);\n alert.show();\n }", "static void giveInfo(String message){\n JOptionPane.showMessageDialog(null, message);\n }", "public MessageInfo() { }", "@Override\n\tpublic void info(Marker marker, String message, Object p0, Object p1, Object p2, Object p3,\n\t\t\tObject p4, Object p5) {\n\n\t}", "@AutoEscape\n\tpublic String getMessageInfo();", "@Override\n\tpublic void info(Marker marker, String message, Object... params) {\n\n\t}", "public Informations() {\n initComponents();\n \n Affichage();\n }", "public void getMessage() {\n\r\n\t}", "private void showInfo() {\n JOptionPane.showMessageDialog(\n this,\n \"Пока что никакой\\nинформации тут нет.\\nДа и вряд ли будет.\",\n \"^^(,oO,)^^\",\n JOptionPane.INFORMATION_MESSAGE);\n }", "private void setInfo(String info) {\n TextView textView = (TextView) findViewById(R.id.info);\n textView.setText(info);\n }", "ChildMessage(){\n\t\t\ttext = CLICK_TO_EDIT;\t\t\t\t\t\t\t\t// Set to Header default\n\t\t\tnamesText = CLICK_TO_ADD_NAMES;\t\t\t\t\t\t// Set to Header default\n\t\t\tnumbers = new HashMap<String,Integer>();\t\t\t// init numbers to none\n\t\t}", "protected void Info(String message) {\n logger.logMessage(message);\n }", "public void setHelloMsg(String NewMsg){\r\n\thelloMsg = NewMsg;\r\n }", "public void setInfo (int n)\n\t\t{\n\t\t\tinfo = n ;\n\t\t}", "public void setMessage(String message) { this.message = message; }", "@Override\n\tpublic void info(String message, Object p0, Object p1, Object p2, Object p3, Object p4,\n\t\t\tObject p5) {\n\n\t}", "@Override\r\n public void setIdentifierMessage( int identifier, IBandIdentifier message )\r\n {\r\n\t\tmIdentifierUpdate = message;\r\n }", "public void setMessage(String text) {\n this.text = text;\n }", "public void setInfo(InformationField i)\n\tthrows SdpException {\n\tif (i == null)\n\t throw new SdpException(\"The info is null\");\n\tthis.informationField = i;\n }", "public Builder setInfo(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n info_ = value;\n onChanged();\n return this;\n }", "void setMessage (String message, boolean warning) {\n String time = String.format(\"%1$TH:%1$TM:%1$TS\", System.currentTimeMillis());\n if (warning) {\n messageLabel.setStyle(\"-fx-text-fill: rgba(160, 0, 0, 0.8);\");\n messageLabel.setText(\"[\" + time + \"]\\n\" + \"WARNING: \" + message);\n }\n else {\n messageLabel.setStyle(\"-fx-text-fill: #777777\");\n messageLabel.setText(\"[\" + time + \"]\\n\" + message);\n }\n }", "public void setMessage(String setMessage)\n\t{\n\t\tif(this.status == 1) {\n\t\t\tthis.message = setMessage;\n\t\t}else{System.out.println(\"it's already in published state, cannnot change the message\");}\n\t}", "public void setMensaje(String mensaje)\r\n/* 638: */ {\r\n/* 639:714 */ this.mensaje = mensaje;\r\n/* 640: */ }", "public void info(String message) {\r\n\t\treport(INFO, message, null);\r\n\t}", "public void setMessage(CharSequence message) {\r\n\t\t//\tmMessage.setText(message);\r\n\t\t//\tmMessage.setMovementMethod(ScrollingMovementMethod.getInstance());\r\n\t\t}", "public MendInformation() {\r\n \tinitComponents();\r\n }", "public void setMessage(String message) {\n\t\tthis.message = message;\n\t\trepaint();\n\t}" ]
[ "0.7785584", "0.7241012", "0.679239", "0.6778693", "0.66957444", "0.66685605", "0.66214705", "0.66119444", "0.66119444", "0.6576461", "0.6546858", "0.6544844", "0.65138525", "0.6497757", "0.648536", "0.6480783", "0.64537823", "0.6430278", "0.641867", "0.6397349", "0.6397349", "0.6397349", "0.6381384", "0.6375944", "0.6373958", "0.6373958", "0.6342693", "0.63250065", "0.63219756", "0.63022876", "0.629102", "0.6285289", "0.6274681", "0.627112", "0.62215245", "0.6214997", "0.6214875", "0.62059253", "0.6204185", "0.6193253", "0.6188569", "0.6188113", "0.61859787", "0.61837834", "0.61789554", "0.6175787", "0.61544305", "0.6153914", "0.6144779", "0.6144685", "0.61445606", "0.6143469", "0.6130896", "0.61269134", "0.61205935", "0.611402", "0.6108081", "0.6101651", "0.6099421", "0.60916895", "0.60793275", "0.60779023", "0.6072784", "0.6055281", "0.60537416", "0.6053135", "0.6050511", "0.60278577", "0.6024782", "0.6006485", "0.59961057", "0.5996082", "0.5993906", "0.5991608", "0.5986384", "0.59777904", "0.59773177", "0.5976873", "0.59756124", "0.59651744", "0.5963974", "0.5961055", "0.59602004", "0.59572613", "0.59563863", "0.59551734", "0.5954157", "0.59531194", "0.59464544", "0.59417254", "0.59295094", "0.5922135", "0.5919219", "0.59190094", "0.590155", "0.5896856", "0.58933127", "0.5884817", "0.5884313", "0.58756584" ]
0.59909487
74
Method to set the proxy Host domain
public void setProxyHost(java.lang.String newProxyHost) { System.out.println("Host: " + newProxyHost); proxyHost = newProxyHost; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setHttpProxyHost(String host);", "public void setProxyHost(String hostname) {\n proxyHost = hostname;\n }", "public final GetHTTP setProxyHost(final String proxyHost) {\n properties.put(PROXY_HOST_PROPERTY, proxyHost);\n return this;\n }", "public void setHost(String host);", "public void setProxyHost(String proxyHost) {\n\t proxyHandler.setProxyHost(proxyHost);\n \n if ((proxyHost != null) && (proxyHost.length() > 1)) {\n isProxyActivated.set(true);\n } \n resetChain();\n\t}", "public void setProxyHost(String proxyHost) {\n this.proxyHost = proxyHost;\n }", "public void setSocksProxyHost(String host) {\n this.socksProxyHost = host;\n }", "public String getHttpProxyHost();", "public String getProxyHost() {\n return proxyHost;\n }", "public java.lang.String getProxyHost()\r\n {\r\n return proxyHost;\r\n }", "String getHttpProxyHost();", "final public void setHost(String host) {\n this.host = host;\n }", "@Nonnull\n public String getProxyHost() {\n return proxyHost;\n }", "public void setHost(String hostName)\n {\n this.hostName = hostName;\n }", "public final ListS3 setProxyHost(final String proxyHost) {\n properties.put(PROXY_HOST_PROPERTY, proxyHost);\n return this;\n }", "public final String getProxyHost() {\n return properties.get(PROXY_HOST_PROPERTY);\n }", "public final String getProxyHost() {\n return properties.get(PROXY_HOST_PROPERTY);\n }", "public void setHost(String host) {\n this.host = host;\n }", "public void setHost(String host) {\n this.host = host;\n }", "public void setHost(String host) {\n this.host = host;\n }", "public void setHost(String host) {\n this.host = host;\n }", "public void setHost(String host) {\n this.host = host;\n }", "@Override\r\n public String rewriteHost(final String host) {\r\n return this.rewriteHost(getPluginDomains(), host);\r\n }", "public void setHost(String host) {\n this.host = host;\n }", "public void setHost(HostAgent host){\n\tthis.host = host;\n }", "public String getProxyHost() {\n return cfg.getProxyHost();\n }", "T setHostName(String hostName);", "protected void setHostname(final String host) {\n this.host = host;\n }", "void setHostname(String hostname);", "public HttpClient setHost(Env env, StringValue host) {\n client.setHost(host.toString());\n return this;\n }", "public void setHost(String host) {\n this.host = host == null ? null : host.trim();\n }", "synchronized public void setHost(String host) {\n this.host = host;\n if (checkClient()) {\n prefs.put(\"AEUnicastOutput.host\", host);\n }\n }", "public String getHost() {\r\n \t\treturn properties.getProperty(KEY_HOST);\r\n \t}", "public String getHost(){\n\t\treturn this.host;\n\t}", "public void setHostName(String hostName) {\n this.hostName = hostName;\n }", "public String getHost() { return host; }", "public void setHost(final String remoteHost) {\n this.host = remoteHost;\n }", "public void setHost(final String remoteHost) {\n this.host = remoteHost;\n }", "public String getHost() {\r\n return host;\r\n }", "public void setDefaultHost() {\r\n\t\tsetHost(DEFAULT_HOST);\r\n\t}", "@Override\n public void setPluginHost(WhiteboxPluginHost host) {\n myHost = host;\n }", "@Override\n public void setPluginHost(WhiteboxPluginHost host) {\n myHost = host;\n }", "public void setHostName(String hostName) {\n this.hostName = hostName;\n }", "public String getHost() {\n \t\treturn host;\n \t}", "public void setDomain(String domain) {\n setProperty(DOMAIN, domain);\n }", "public Builder setHost(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n host_ = value;\n onChanged();\n return this;\n }", "protected void setDomain(String domain) {\n this.domain = domain;\n }", "public void setHost(String host) throws IllegalArgumentException,\n SipParseException {\n \n\t LogWriter.logMessage(LogWriter.TRACE_DEBUG,\"setHost() \" + host);\n Via via=(Via)sipHeader;\n if ( host==null )\n throw new IllegalArgumentException\n (\"JAIN-EXCEPTION: host argument is null\");\n else via.setHost(host); \n }", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }", "public void SetHost(GUI host) {\n\t\tm_Host = host;\n\t}", "public String getHost() {\n\t\treturn host;\n\t}", "public String getHost() {\n\t\treturn host;\n\t}", "public void setHost(String p_host) throws MalformedURIException {\n if (p_host == null || p_host.length() == 0) {\n if (p_host != null) {\n m_regAuthority = null;\n }\n m_host = p_host;\n m_userinfo = null;\n m_port = -1;\n return;\n }\n else if (!isWellFormedAddress(p_host)) {\n throw new MalformedURIException(\"Host is not a well formed address!\");\n }\n m_host = p_host;\n m_regAuthority = null;\n }", "public void setDomain(String domain) {\r\n this.domain = domain;\r\n }", "public String getHost( ) {\n\t\treturn host;\n\t}", "@Override\n\tpublic void setRemoteHost(java.lang.String remoteHost) {\n\t\t_userTracker.setRemoteHost(remoteHost);\n\t}", "java.lang.String getHost();", "java.lang.String getHost();", "@Override\n\t\tpublic String getHost() {\n\t\t\treturn null;\n\t\t}", "public final GetHTTP removeProxyHost() {\n properties.remove(PROXY_HOST_PROPERTY);\n return this;\n }", "public void setHostName(String hostName) {\n\t\tthis.hostName = hostName;\n\t}", "public String getHost() {\n\t\treturn url.getHost();\n }", "public String getHost() {\n return m_host;\n }", "String getHost()\n {\n return host;\n }", "public String getHostURL() {\n return getHostURL(PAActiveObject.getActiveObjectNodeUrl(PAActiveObject.getStubOnThis()));\n }", "public String getHostName (){\n return hostName;\n }", "protected String getDomain() {\n return \"\";\n }", "protected static void setProxyLocation(URI proxyLocation) {\n Program.proxyLocation = proxyLocation;\n Program.proxyLocationSet = true;\n }", "public String getDomain() {\r\n return domain;\r\n }", "public String getHost();", "public String getHost();", "public String getDomain() {\n return domain;\n }", "public String getDomain() {\n return domain;\n }", "public Proxy(){\n\t\tthis.useProxy = false;\n\t\tthis.host = null;\n\t\tthis.port = -1;\n\t}", "public final void setRemoteSocketAddress(String host){\r\n remoteSocketHost = host;\r\n }", "public void setDomain(String value) {\n\t\tapp.setSetting(\"domain\", value);\n\t}", "public void setDomain(Domain domain) {\n this.domain = domain;\n }", "public void setDomain(Domain domain) {\n this.domain = domain;\n }", "public void setHost(InetAddress host) throws IllegalArgumentException,\n SipParseException{\n\tLogWriter.logMessage(LogWriter.TRACE_DEBUG,\"setHost() \" + host);\n Via via=(Via)sipHeader;\n \n if (host==null)\n throw new IllegalArgumentException\n (\"JAIN-SIP EXCEPTION: host is null\");\n else {\n String hname = host.getHostAddress();\n gov.nist.sip.net.Host h = new gov.nist.sip.net.Host();\n h.setHostAddress(hname);\n via.setHost(h);\n }\n }", "public String host() {\n return host;\n }", "public String getHostName() {\n return hostName;\n }", "public String getHostName() {\n return hostName;\n }", "public void setHostname (String hostname) {\n this.hostname = hostname;\n }", "public DatabaseConfig setHost(String host) {\n this.host = host;\n return this;\n }", "private String getDomain(String host){\n StringBuffer sb = new StringBuffer(\"\");\r\n try{\r\n StringTokenizer stk = new StringTokenizer(host, \".\");\r\n sb.append(stk.nextToken());\r\n sb.append(\".\");\r\n sb.append(stk.nextToken());\r\n sb.append(\".\");\r\n sb.append(stk.nextToken());\r\n sb.append(\".\");\r\n sb.append(\"*\");\r\n }catch(Exception e){\r\n e.printStackTrace();\r\n }\r\n return sb.toString();\r\n }", "public void setHostname(String hostname) {\n this.hostname = hostname;\n }", "public void setRemoteHost(java.lang.String remoteHost) {\r\n this.remoteHost = remoteHost;\r\n }", "public Builder setRemoteHost(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n remoteHost_ = value;\n onChanged();\n return this;\n }", "private String getHostName()\n\t{\n\t\treturn hostName;\n\t}", "public String getDomain() {\n\t\treturn domain;\n\t}", "public HttpRequestHandler(final String host) {\n domain = host;\n }" ]
[ "0.77448004", "0.7675909", "0.71703774", "0.71179533", "0.7111178", "0.6903826", "0.6848139", "0.68144715", "0.6768695", "0.67393124", "0.6718952", "0.67052513", "0.6700211", "0.665387", "0.6648977", "0.6597344", "0.6597344", "0.65645725", "0.65645725", "0.65645725", "0.65645725", "0.65645725", "0.65623695", "0.65422916", "0.65118074", "0.64302635", "0.6398244", "0.6367613", "0.6288666", "0.62840825", "0.62792516", "0.624185", "0.62231886", "0.6189587", "0.614311", "0.613662", "0.61292166", "0.6126444", "0.610704", "0.60668707", "0.606644", "0.606644", "0.6054919", "0.60521805", "0.6045898", "0.603393", "0.60129076", "0.6005786", "0.60046154", "0.60046154", "0.60043037", "0.60043037", "0.5999271", "0.5999271", "0.5999271", "0.5999271", "0.5999271", "0.5999271", "0.5989667", "0.59807354", "0.59807354", "0.59515166", "0.593425", "0.59268224", "0.5909968", "0.59058553", "0.59058553", "0.5902585", "0.5902058", "0.5886988", "0.58730644", "0.5872675", "0.58595264", "0.58368385", "0.583127", "0.5811508", "0.58112526", "0.5794739", "0.5792688", "0.5792688", "0.57763726", "0.57763726", "0.57546014", "0.57481015", "0.57433814", "0.5726129", "0.5726129", "0.5713771", "0.5707444", "0.5702671", "0.5702671", "0.5696701", "0.56886554", "0.5687922", "0.56853276", "0.5666808", "0.56628704", "0.5659678", "0.5657481", "0.56560355" ]
0.72788215
2
Method to set the proxy User ID Name
public void setProxyName(java.lang.String newProxyName) { System.out.println("Name: " + newProxyName); proxyName = newProxyName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setName(String name){\r\n gotUserName = true;\r\n this.name = name;\r\n }", "public void setUser_name(String user_name);", "public void setUserName(String UserName){\n\t\tObjLogInPage.getUserName().sendKeys(UserName);\n\t}", "@Override\n\tpublic void setUserName(String userName);", "@Override\n\tpublic void setUserName(String userName);", "protected static void setProxyUsername(String username) {\n Program.proxyUsername = username;\n proxyUsernameSet = true;\n }", "public void setUserName( String value )\n {\n m_UserName = value;\n }", "public void setName ( String name ) throws InvalidUserIDException {\r\n if(name == \"\") throw new InvalidUserIDException();\r\n _name= name;\r\n }", "void setUserUsername(String username);", "public void setUserName(java.lang.String value) {\n\t\tsetValue(org.jooq.examples.oracle.sys.packages.dbms_xplan.DiffPlanOutline.USER_NAME, value);\n\t}", "public void setID(String username){\n this.clientID = username+\": \"+clientID;\n \n }", "public void setUserName(String userName) {\n infoElements.put(new Integer(InfoElement.USERNAME), userName.getBytes());\n }", "public void setProxyUser(String proxyUser) {\n this.proxyUser = proxyUser;\n }", "void setName( String username, String name ) throws UserNotFoundException;", "public void setUserName(String text) {\n txtUserName().setText(text);\n }", "void setUsername(String username);", "@Override\n\tpublic void setUserName(String userName) {\n\n\t}", "public void setUserName(String strUserName) {\r\n\t\tdriver.findElement(userID).sendKeys(strUserName);\r\n\t\t//userID.sendKeys(strUserName);\r\n\t\t//userID.sendKeys(strUserName);\r\n\t\t//return new LoginPage();\r\n\t}", "@Override\n public void setUserName(java.lang.String userName) {\n _partido.setUserName(userName);\n }", "public void setUsername(java.lang.String param) {\n localUsernameTracker = true;\n\n this.localUsername = param;\n }", "public static void setString(String usrname) {\n\t\tUserPanel.usrname = usrname;\r\n\t}", "public static void setFirstName(String name){\n setUserProperty(Constants.ZeTarget_keyForUserPropertyFName, name);\n }", "void setUserName(String newName) {\r\n\t\t\tusername = newName;\r\n\t\t}", "public void setProxyUser(String proxyUser) {\n\t proxyHandler.setProxyUser(proxyUser);\n\t}", "public void setUserName(String pUser)\n\t{\n \t tbUserName.clear();\n\t tbUserName.sendKeys(pUser);\n\t\t\n\t}", "public void setUserName(String name) {\r\n\t\tthis.userName = name;\r\n\t}", "public void setUserId(){\n AdGyde.setClientUserId(\"ADG1045984\");\n Toast.makeText(this, \"UserId = ADG1045984\", Toast.LENGTH_SHORT).show();\n }", "public void setUserName(String Strusername) {\n\t\tstepstatus = basepage.setText(Username, Strusername);\n\t\treportEvent(stepstatus, \"Able to enter username\", \"Unable to enter username\", driver, true);\n\t}", "public void setUserid(java.lang.String value) {\n this.userid = value;\n }", "public void setUserName(String strUserName){\n\t\tdriver.findElement(user99GuruName).sendKeys(strUserName);;\n\t}", "public void setUserName(String userName){\r\n this.userName = userName;\r\n }", "public void setName(String name) {\n\t\tSharedPreferences settings = parentContext.getSharedPreferences(PREFERENCE_FILE, 0);\n\t\tSharedPreferences.Editor editor = settings.edit();\n\t\teditor.putString(USERNAME_KEY, name);\n\t\teditor.commit();\n\t}", "public void setUsername(String name) {\r\n TextView username = (TextView) mView.findViewById(R.id.current_bid_username);\r\n username.setText(name);\r\n }", "public void setUserName(String name) throws RemoteException, InterruptedException {\n\t\tSystem.out.println(\"Server: Message > \" + \"setUserName() invoked\");\n\t\tlock.lock();\n\t\ttry {\n\t\t\twhile (sentinel != -1)\n\t\t\t\thasNotChanged.await();\n\t\t\t// System.out.println(\"....Enter setUserName critical section....\");\n\t\t\tuserName = name;\n\t\t\tif (!loggedIn.contains(name))\n\t\t\t\tloggedIn.add(name);\n\n\t\t\t++sentinel;\n\n\t\t\t//System.out.println(\"....Exit setUserName critical section....\");\n\t\t\thasChanged.signal();\n\t\t} finally {\n\t\t\tlock.unlock();\n\t\t}\n\t}", "protected static String getProxyUsername() {\n if (\"?\".equals(proxyUsername)) {\n Console console = System.console();\n if (console != null) {\n proxyUsername = console.readLine(\"Proxy username:\");\n } else {\n throw new UnsupportedOperationException(\n \"Proxy username must be specified\");\n }\n }\n return proxyUsername;\n }", "@Override\n\tpublic void setUserName(String userName) {\n\t\tsuper.setUserName(userName);\n\t}", "@Override\n\tpublic void setUserName(String userName) {\n\t\tsuper.setUserName(userName);\n\t}", "@Override\n\tpublic void setUserName(java.lang.String userName) {\n\t\t_second.setUserName(userName);\n\t}", "public void setUserName(String value) {\n setAttributeInternal(USERNAME, value);\n }", "private void setLabelUserName() {\n\t\tLabelUserName.setBounds(100, 100, 180, 30);\n\t}", "@Override\n public String getUserName() {\n return name;\n }", "public void setUserName(String strUserName){\n\t\tdriver.findElement(user99GuruName).sendKeys(strUserName);\n\t}", "public String getProxyUsername() {\n return proxyUsername;\n }", "public void setIdUser(String idUser) {\n\t\tthis.idUser = idUser;\n\t}", "String getHttpProxyUsername();", "public void setUserName(String userName){\n this.userName = userName;\n }", "public void setProxyUsername(String proxyUsername) {\n this.proxyUsername = proxyUsername;\n }", "@Override\r\n\t\t\tpublic String getUsername() {\n\t\t\t\treturn \"User1\";\r\n\t\t\t}", "public void setUserID(java.lang.String param) {\r\n localUserIDTracker = param != null;\r\n\r\n this.localUserID = param;\r\n }", "public void setUsername(String username)\r\n/* 16: */ {\r\n/* 17:34 */ this.username = username;\r\n/* 18: */ }", "@Override\n\tpublic void setUserName(String userName) {\n\t\t_changesetEntry.setUserName(userName);\n\t}", "public void setUser_name(String user_name) {\n this.user_name = user_name;\n }", "public void setUserName(String userName) {\r\n this.userName = userName;\r\n }", "public void setUsername(String name)\r\n {\r\n int index = -1;\r\n //Check if the new username is not already taken before setting the new username\r\n if(usernamesTaken.indexOf(name) == -1)\r\n {\r\n index = usernamesTaken.indexOf(this.username);\r\n usernamesTaken.set(index, name);\r\n this.username = name;\r\n }\r\n else\r\n {\r\n //Outouts a warning message\r\n System.out.println(\"WARNING: This username is already taken\");\r\n }//end if \r\n }", "public void setUserName(String userName) {\n this.userName = userName;\n }", "public void setUsername(String TakenUsername) {\n username = TakenUsername;\n }", "public void setUsernameFieldName(final String value) {\n setProperty(USERNAME_FIELD_NAME_KEY, value);\n }", "protected final void setUserName(final String userName) {\n this.userName = userName;\n }", "public void setUserName(String userName) { \n\t\t this.userName = userName; \n\t}", "public void setUserName(String userName) {\n sessionData.setUserName(userName);\n }", "public void setUserName(String username){\n this.userName = username;\n }", "public static void setLastName(String name){\n setUserProperty(Constants.ZeTarget_keyForUserPropertyLName,name);\n }", "@Override\n\tpublic String getUserName() {\n\t\treturn super.getUserName();\n\t}", "@Override\n\tpublic String getUserName() {\n\t\treturn super.getUserName();\n\t}", "@Override\n\tpublic void setUserName(java.lang.String userName) {\n\t\t_paper.setUserName(userName);\n\t}", "public String getProxyUsername() {\n return cfg.getProxyUsername();\n }", "@Override\n\tpublic void setUserName(java.lang.String userName) {\n\t\t_esfTournament.setUserName(userName);\n\t}", "public void setAD_User_ID (int AD_User_ID);", "public void setUserName(String userName) {\r\n this.userName = userName;\r\n }", "public void setUserName(String userName) {\r\n this.userName = userName;\r\n }", "public void setName(String username) {\n setObject(\"username\", (username != null) ? username : \"\");\n }", "public void setUser1X_ID (int User1X_ID);", "public void setUsername(String aUsername) {\n username = aUsername;\n }", "public void setUserName(final UTF8String userName) {\n this.userName = userName;\n }", "public void setNickname(java.lang.String param) {\n localNicknameTracker = true;\n\n this.localNickname = param;\n }", "public void SetUserName(User u) {\n\t\tthis.lblUserName.setBounds(525, 28, 46, 14);\n\t\tthis.lblUserName.setText(u.getNickname());\n\t\tthis.contentPane.add(this.lblUserName);\n\t}", "public void setUserId(java.lang.String param) {\n localUserIdTracker = true;\n\n this.localUserId = param;\n }", "public void setUserId(java.lang.String param) {\n localUserIdTracker = true;\n\n this.localUserId = param;\n }", "@Override\n\tpublic void setLoginId(String arg0) {\n\t\t\n\t}", "UserInfo setName(String name);", "@Override\n public String getUserID() {\n return user_id;\n }", "public void setUserName(java.lang.String userName) {\r\n this.userName = userName;\r\n }", "public void setUserRealname(String userRealname) {\n this.userRealname = userRealname;\n }", "public void setProxyId(Long proxyId) {\n this.proxyId = proxyId;\n }", "public void setUsername(String username) {this.username = username;}", "public final void setUsername(final String value) {\n username = value;\n }", "public void setUserID(java.lang.String value) {\n this.userID = value;\n }", "public Builder setUserName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n userName_ = value;\n onChanged();\n return this;\n }", "public void setUserName(String userName) {\n this.userName = userName;\n }", "public void setUserName(String userName) {\n this.userName = userName;\n }", "public void setUserName(String userName) {\n this.userName = userName;\n }", "public void setUserName(String userName) {\n this.userName = userName;\n }", "public void setUserName(String userName) {\n this.userName = userName;\n }", "public void setUserName(String userName) {\n this.userName = userName;\n }", "public void setUserName(String userName) {\n this.userName = userName;\n }", "public void setUserName(String userName) {\n this.userName = userName;\n }", "public void setUserName(String userName) {\n this.userName = userName;\n }", "public void setUserName(String userName) {\n this.userName = userName;\n }", "public void setUserName(String userName) {\n this.userName = userName;\n }", "public void setUserName(String userName) {\n this.userName = userName;\n }" ]
[ "0.6987361", "0.67826796", "0.67676216", "0.6739077", "0.6739077", "0.67284894", "0.6660096", "0.66498685", "0.6594812", "0.6590969", "0.6568942", "0.6563681", "0.6557383", "0.6532603", "0.6525044", "0.6502545", "0.64868516", "0.64419264", "0.64351237", "0.64316976", "0.642928", "0.6412583", "0.64096457", "0.63953376", "0.63684607", "0.6365869", "0.6362877", "0.63298815", "0.6318547", "0.63072413", "0.6299206", "0.62969947", "0.6291932", "0.62844765", "0.6282957", "0.62825584", "0.62825584", "0.6279066", "0.6277377", "0.62750787", "0.62728304", "0.62695324", "0.62549734", "0.6253802", "0.6235257", "0.6224735", "0.62116367", "0.62115556", "0.62019116", "0.61899406", "0.61864173", "0.6185304", "0.61822534", "0.6180223", "0.6178251", "0.61733055", "0.61661404", "0.6154439", "0.6148983", "0.6146469", "0.6139713", "0.6118345", "0.611185", "0.611185", "0.60971075", "0.6089196", "0.6084543", "0.6081701", "0.607465", "0.607465", "0.6063614", "0.6062386", "0.60500526", "0.60477465", "0.6036119", "0.6034756", "0.60125184", "0.60125184", "0.6010833", "0.6010602", "0.60075206", "0.5994972", "0.59938204", "0.5987996", "0.5984555", "0.59810627", "0.5975022", "0.59728914", "0.5959539", "0.5959539", "0.5959539", "0.5959539", "0.5959539", "0.5959539", "0.5959539", "0.5959539", "0.5959539", "0.5959539", "0.5959539", "0.5959539" ]
0.68264294
1
Method to set the proxy Port
public void setProxyPort(int newProxyPort) { System.out.println("Port: " + newProxyPort); proxyPort = "" + newProxyPort; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setHttpProxyPort(int port);", "public void setProxyPort(int port) {\n proxyPort = port;\n }", "public void setProxyPort(int proxyPort) {\n this.proxyPort = proxyPort;\n }", "public void setProxyPort(int proxyPort) {\n this.proxyPort = proxyPort;\n }", "public void setProxyPort(String newProxyPort)\r\n {\r\n proxyPort = newProxyPort;\r\n }", "public void setProxyPort(String proxyPort) {\n this.proxyPort = proxyPort;\n }", "public final GetHTTP setProxyPort(final String proxyPort) {\n properties.put(PROXY_PORT_PROPERTY, proxyPort);\n return this;\n }", "public int getHttpProxyPort();", "int getHttpProxyPort();", "public void setSocksProxyPort(int port) {\n this.socksProxyPort = port;\n }", "public String getProxyPort()\r\n {\r\n return proxyPort;\r\n }", "public HttpProxy(int port)\n {\n thisPort = port;\n }", "public int getProxyPort() {\n return proxyPort;\n }", "public int getProxyPort() {\n return proxyPort;\n }", "public void setSmtpSOCKSProxyPort(int value) {\n this.smtpSOCKSProxyPort = value;\n }", "public String getProxyPort() {\n return proxyPort;\n }", "public synchronized String getProxyPort() {\n \n return this.port;\n }", "public int getProxyPort() {\n return cfg.getProxyPort();\n }", "public final String getProxyPort() {\n return properties.get(PROXY_PORT_PROPERTY);\n }", "public Proxy(){\n\t\tthis.useProxy = false;\n\t\tthis.host = null;\n\t\tthis.port = -1;\n\t}", "public void setPort(int port);", "public void setPort(int port);", "public proxyt(int tpport) {\n\t\tproxyt.tpport = tpport;\n\t}", "public Proxy(String host, int port){\n\t\tthis.useProxy = true;\n\t\tthis.host = host;\n\t\tthis.port = port;\n\t}", "void setServicePort( int p );", "public void setPort(int port) {\n m_Port = port;\n }", "public void setPort(int port) {\r\n this.port = port;\r\n }", "public ProxyConfiguration(@NotNull String proxyName, int port) {\n this.host = new HttpHost(proxyName, port);\n }", "public void setPort (int port) {\n this.port = port;\n }", "public void port (int port) {\n this.port = port;\n }", "protected static void setProxyLocation(URI proxyLocation) {\n Program.proxyLocation = proxyLocation;\n Program.proxyLocationSet = true;\n }", "public void setPort(int port) {\n this.port = port;\n }", "public void setPort(int port) {\n this.port = port;\n }", "public void setPort(int port) {\n this.port = port;\n }", "public void setPort(int port) {\n this.port = port;\n }", "public void setPort(int port) {\n this.port = port;\n }", "public void setPort(int port) {\n this.port = port;\n }", "public String getProxyPort() {\n\t\treturn checkBoxProxyEnabled.isSelected() ? textFieldProxyPort.getText() : \"\";\n\t}", "final public void setPort(int port) {\n this.port = port;\n }", "public void setPort(int p) {\n\t\tport = p;\n\t}", "public void setPort(final int p) {\n this.port = p;\n }", "public void setPort(final int p) {\n this.port = p;\n }", "public void setPort(Integer port) {\n this.port = port;\n }", "public void setPort(int port) {\r\n\t\tthis.port = port;\r\n\t}", "public void setPort(int port) {\r\n\t\tthis.port = port;\r\n\t}", "Builder setPort(String port);", "public static void setPort(int port){\n catalogue.port = port;\n }", "public void setHttpProxyHost(String host);", "public HttpClient setPort(Env env, NumberValue port) {\n client.setPort(port.toInt());\n return this;\n }", "public void setPort(int value) {\n this.port = value;\n }", "public void setPort(Integer port) {\n this.port = port;\n }", "public void setPort(Integer port) {\n this.port = port;\n }", "public void setPort(Integer port) {\n this.port = port;\n }", "public void setPort(Integer port) {\n this.port = port;\n }", "public void setPort(Integer port) {\n this.port = port;\n }", "public Proxy(final String proxyHost, final int proxyPort) {\n this(proxyHost, proxyPort, DEFAULT_PROXY_SCHEME);\n }", "public void initProxy() {\n\n System.setProperty(\"http.proxyHost\", \"199.101.97.159\"); // set proxy server\n System.setProperty(\"http.proxyPort\", \"60099\"); // set proxy port\n //System.setProperty(\"http.proxyUser\", authUser);\n //System.setProperty(\"http.proxyPassword\", authPassword);\n Authenticator.setDefault(\n new Authenticator() {\n @Override\n public PasswordAuthentication getPasswordAuthentication() {\n return new PasswordAuthentication(\n authUser, authPassword.toCharArray());\n }\n }\n );\n }", "public void setPort(String port) {\r\n this.port = port;\r\n }", "public int getSmtpSOCKSProxyPort() {\n return smtpSOCKSProxyPort;\n }", "public ServerProxy(String host, int port) {\n\t\tthis.setHost(host);\n\t\tthis.setPort(port);\n\t\tthis.cookieManager = new java.net.CookieManager();\n\t}", "public void setPort(int port) {\n\t\tthis.port = port;\n\t}", "public void setPort(int port) {\n\t\tthis.port = port;\n\t}", "public final void setRemoteSocketPort(int port){\r\n remoteSocketPort = port;\r\n }", "@Override\n\tpublic void setPort(Integer port) {\n\t\tthis.port=port;\n\t}", "public void setHttpPort(Integer port) {\n\t\tif (myNode != null) {\n\t\t\tthrow new IllegalStateException(\"change of port only before startup!\");\n\t\t}\n\t\tif (port == null || port < 1) {\n\t\t\thttpPort = 0;\n\t\t} else {\n\t\t\thttpPort = port;\n\t\t}\n\t}", "public void setPort(final String port){\n this.port=port;\n }", "public void testSetPort() {\n }", "private void setPort(int value) {\n \n port_ = value;\n }", "private void setPort(int value) {\n \n port_ = value;\n }", "public void setPort(int portNo) {\n if(port != portNo) {\n port = portNo;\n init();\n }\n }", "public final GetHTTP removeProxyPort() {\n properties.remove(PROXY_PORT_PROPERTY);\n return this;\n }", "public void setProxyPassword(String proxyPassword) {\n this.proxyPassword = proxyPassword;\n }", "public void setProxyPassword(String proxyPassword) {\n this.proxyPassword = proxyPassword;\n }", "public void setProxyHost(java.lang.String newProxyHost)\r\n {\r\n System.out.println(\"Host: \" + newProxyHost);\r\n proxyHost = newProxyHost;\r\n }", "public void setProxyAddress(String proxyAddress) {\n this.proxyAddress = proxyAddress;\n }", "public ConfigProxy(String hostName, int port){\n \n try {\n benchSocket = new Socket(hostName, port);\n } catch (IOException ex) {\n }\n \n try {\n in = new ObjectInputStream (benchSocket.getInputStream());\n } catch (IOException ex) {\n }\n try {\n out = new ObjectOutputStream (benchSocket.getOutputStream());\n } catch (IOException ex) {\n }\n }", "@java.lang.Override\n public int getPort() {\n return port_;\n }", "@java.lang.Override\n public int getPort() {\n return port_;\n }", "public void setServerPort(int serverPort) {\n this.serverPort = serverPort;\n }", "public void setPort(int p_port) throws MalformedURIException {\n if (p_port >= 0 && p_port <= 65535) {\n if (m_host == null) {\n throw new MalformedURIException(\n \"Port cannot be set when host is null!\");\n }\n }\n else if (p_port != -1) {\n throw new MalformedURIException(\"Invalid port number!\");\n }\n m_port = p_port;\n }", "public void setSiteHttpServerPort(int pSiteHttpServerPort) {\n mSiteHttpServerPort = pSiteHttpServerPort;\n }", "public void setServerport(Integer serverport) {\n this.serverport = serverport;\n }", "private void httpProxyConnect(String host, int port) throws IOException {\n // connect to the proxy\n // _proxyPort validated in superconstrutor, no need to set default here\n if (_fetchHeaderTimeout > 0) {\n _proxy = new Socket();\n _proxy.setSoTimeout(_fetchHeaderTimeout);\n _proxy.connect(new InetSocketAddress(_proxyHost, _proxyPort), _fetchHeaderTimeout);\n } else {\n _proxy = new Socket(_proxyHost, _proxyPort);\n }\n httpProxyConnect(_proxy, host, port);\n }", "protected void setProxiedClient(URL paramURL, String paramString, int paramInt) throws IOException {\n/* 127 */ this.delegate.setProxiedClient(paramURL, paramString, paramInt);\n/* */ }", "@java.lang.Override\n public int getPort() {\n return port_;\n }", "@java.lang.Override\n public int getPort() {\n return port_;\n }", "public int getPort() { return port; }", "public void setProxy(Proxy proxy) {\n\t\tthis.proxy = proxy;\n\t}", "public void setProxyPassword(String proxyPassword) {\n\t proxyHandler.setProxyPassword(proxyPassword);\n\t}", "public void setPort(final String remoteHost) {\n host = remoteHost;\n }", "public com.example.DNSLog.Builder setPort(int value) {\n validate(fields()[6], value);\n this.port = value;\n fieldSetFlags()[6] = true;\n return this;\n }", "public void setPort(int a_port)\n\t{\n\t\tif (!isValidPort(a_port))\n\t\t{\n\t\t\tm_iInetPort = -1;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tm_iInetPort = a_port;\n\t\t}\n\t}", "public void setPort(final String remoteHost) {\n host = remoteHost;\n }", "public Proxy (String host, int port) {\n\t\t_currentHost = host;\n\t\t_currentPort = port;\n\t\t_inUse = 0;\n\t\t_id = proxyDB.insert(host, port);\r\n\t}", "public void setProxyServer(String proxyServer) {\n this.proxyServer = proxyServer;\n }", "public void setProxyBaseUrl(String baseURL) {\n this.proxyBaseUrl = baseURL;\n }", "public int getPort() {\n return port_;\n }", "public int getPort() {\n return port_;\n }", "public int getPort() {\n return port_;\n }", "public int getPort() {\n return port_;\n }" ]
[ "0.8828553", "0.85874075", "0.828518", "0.828518", "0.8235142", "0.8050402", "0.78218454", "0.7755733", "0.77232", "0.76711863", "0.7622305", "0.75930345", "0.75667995", "0.75667995", "0.75088567", "0.7435876", "0.7355881", "0.72766143", "0.717768", "0.71021473", "0.7055267", "0.7055267", "0.7051375", "0.7039807", "0.66650605", "0.6654394", "0.66381776", "0.66332245", "0.6622862", "0.65968686", "0.6571436", "0.65685856", "0.65685856", "0.65685856", "0.65685856", "0.65685856", "0.65685856", "0.65644693", "0.65457374", "0.65344715", "0.65152836", "0.65088046", "0.64877164", "0.6481355", "0.6481355", "0.64767134", "0.646788", "0.6464748", "0.6460766", "0.6421202", "0.641382", "0.641278", "0.641278", "0.641278", "0.641278", "0.6412036", "0.6401488", "0.64009553", "0.63865715", "0.63852316", "0.6366986", "0.6366986", "0.636066", "0.6358567", "0.63578427", "0.6335059", "0.6303372", "0.6269967", "0.6269967", "0.626784", "0.6252513", "0.6251099", "0.6251099", "0.62359786", "0.6194744", "0.61441886", "0.6140132", "0.613929", "0.6129934", "0.6116262", "0.61137503", "0.6104034", "0.6102881", "0.608413", "0.60747236", "0.60747236", "0.6070334", "0.6069865", "0.6064446", "0.6056604", "0.60495406", "0.6044958", "0.6035248", "0.60324293", "0.6031951", "0.60271436", "0.60002834", "0.60002834", "0.60002834", "0.60002834" ]
0.8190341
5
Method to set the proxy Port
public void setProxyPort(String newProxyPort) { proxyPort = newProxyPort; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setHttpProxyPort(int port);", "public void setProxyPort(int port) {\n proxyPort = port;\n }", "public void setProxyPort(int proxyPort) {\n this.proxyPort = proxyPort;\n }", "public void setProxyPort(int proxyPort) {\n this.proxyPort = proxyPort;\n }", "public void setProxyPort(int newProxyPort)\r\n {\r\n System.out.println(\"Port: \" + newProxyPort);\r\n proxyPort = \"\" + newProxyPort;\r\n }", "public void setProxyPort(String proxyPort) {\n this.proxyPort = proxyPort;\n }", "public final GetHTTP setProxyPort(final String proxyPort) {\n properties.put(PROXY_PORT_PROPERTY, proxyPort);\n return this;\n }", "public int getHttpProxyPort();", "int getHttpProxyPort();", "public void setSocksProxyPort(int port) {\n this.socksProxyPort = port;\n }", "public String getProxyPort()\r\n {\r\n return proxyPort;\r\n }", "public HttpProxy(int port)\n {\n thisPort = port;\n }", "public int getProxyPort() {\n return proxyPort;\n }", "public int getProxyPort() {\n return proxyPort;\n }", "public void setSmtpSOCKSProxyPort(int value) {\n this.smtpSOCKSProxyPort = value;\n }", "public String getProxyPort() {\n return proxyPort;\n }", "public synchronized String getProxyPort() {\n \n return this.port;\n }", "public int getProxyPort() {\n return cfg.getProxyPort();\n }", "public final String getProxyPort() {\n return properties.get(PROXY_PORT_PROPERTY);\n }", "public Proxy(){\n\t\tthis.useProxy = false;\n\t\tthis.host = null;\n\t\tthis.port = -1;\n\t}", "public void setPort(int port);", "public void setPort(int port);", "public proxyt(int tpport) {\n\t\tproxyt.tpport = tpport;\n\t}", "public Proxy(String host, int port){\n\t\tthis.useProxy = true;\n\t\tthis.host = host;\n\t\tthis.port = port;\n\t}", "void setServicePort( int p );", "public void setPort(int port) {\n m_Port = port;\n }", "public void setPort(int port) {\r\n this.port = port;\r\n }", "public ProxyConfiguration(@NotNull String proxyName, int port) {\n this.host = new HttpHost(proxyName, port);\n }", "public void setPort (int port) {\n this.port = port;\n }", "public void port (int port) {\n this.port = port;\n }", "protected static void setProxyLocation(URI proxyLocation) {\n Program.proxyLocation = proxyLocation;\n Program.proxyLocationSet = true;\n }", "public void setPort(int port) {\n this.port = port;\n }", "public void setPort(int port) {\n this.port = port;\n }", "public void setPort(int port) {\n this.port = port;\n }", "public void setPort(int port) {\n this.port = port;\n }", "public void setPort(int port) {\n this.port = port;\n }", "public void setPort(int port) {\n this.port = port;\n }", "public String getProxyPort() {\n\t\treturn checkBoxProxyEnabled.isSelected() ? textFieldProxyPort.getText() : \"\";\n\t}", "final public void setPort(int port) {\n this.port = port;\n }", "public void setPort(int p) {\n\t\tport = p;\n\t}", "public void setPort(final int p) {\n this.port = p;\n }", "public void setPort(final int p) {\n this.port = p;\n }", "public void setPort(Integer port) {\n this.port = port;\n }", "public void setPort(int port) {\r\n\t\tthis.port = port;\r\n\t}", "public void setPort(int port) {\r\n\t\tthis.port = port;\r\n\t}", "Builder setPort(String port);", "public static void setPort(int port){\n catalogue.port = port;\n }", "public void setHttpProxyHost(String host);", "public HttpClient setPort(Env env, NumberValue port) {\n client.setPort(port.toInt());\n return this;\n }", "public void setPort(int value) {\n this.port = value;\n }", "public void setPort(Integer port) {\n this.port = port;\n }", "public void setPort(Integer port) {\n this.port = port;\n }", "public void setPort(Integer port) {\n this.port = port;\n }", "public void setPort(Integer port) {\n this.port = port;\n }", "public void setPort(Integer port) {\n this.port = port;\n }", "public Proxy(final String proxyHost, final int proxyPort) {\n this(proxyHost, proxyPort, DEFAULT_PROXY_SCHEME);\n }", "public void initProxy() {\n\n System.setProperty(\"http.proxyHost\", \"199.101.97.159\"); // set proxy server\n System.setProperty(\"http.proxyPort\", \"60099\"); // set proxy port\n //System.setProperty(\"http.proxyUser\", authUser);\n //System.setProperty(\"http.proxyPassword\", authPassword);\n Authenticator.setDefault(\n new Authenticator() {\n @Override\n public PasswordAuthentication getPasswordAuthentication() {\n return new PasswordAuthentication(\n authUser, authPassword.toCharArray());\n }\n }\n );\n }", "public void setPort(String port) {\r\n this.port = port;\r\n }", "public int getSmtpSOCKSProxyPort() {\n return smtpSOCKSProxyPort;\n }", "public ServerProxy(String host, int port) {\n\t\tthis.setHost(host);\n\t\tthis.setPort(port);\n\t\tthis.cookieManager = new java.net.CookieManager();\n\t}", "public void setPort(int port) {\n\t\tthis.port = port;\n\t}", "public void setPort(int port) {\n\t\tthis.port = port;\n\t}", "public final void setRemoteSocketPort(int port){\r\n remoteSocketPort = port;\r\n }", "@Override\n\tpublic void setPort(Integer port) {\n\t\tthis.port=port;\n\t}", "public void setHttpPort(Integer port) {\n\t\tif (myNode != null) {\n\t\t\tthrow new IllegalStateException(\"change of port only before startup!\");\n\t\t}\n\t\tif (port == null || port < 1) {\n\t\t\thttpPort = 0;\n\t\t} else {\n\t\t\thttpPort = port;\n\t\t}\n\t}", "public void setPort(final String port){\n this.port=port;\n }", "public void testSetPort() {\n }", "private void setPort(int value) {\n \n port_ = value;\n }", "private void setPort(int value) {\n \n port_ = value;\n }", "public void setPort(int portNo) {\n if(port != portNo) {\n port = portNo;\n init();\n }\n }", "public final GetHTTP removeProxyPort() {\n properties.remove(PROXY_PORT_PROPERTY);\n return this;\n }", "public void setProxyPassword(String proxyPassword) {\n this.proxyPassword = proxyPassword;\n }", "public void setProxyPassword(String proxyPassword) {\n this.proxyPassword = proxyPassword;\n }", "public void setProxyHost(java.lang.String newProxyHost)\r\n {\r\n System.out.println(\"Host: \" + newProxyHost);\r\n proxyHost = newProxyHost;\r\n }", "public void setProxyAddress(String proxyAddress) {\n this.proxyAddress = proxyAddress;\n }", "public ConfigProxy(String hostName, int port){\n \n try {\n benchSocket = new Socket(hostName, port);\n } catch (IOException ex) {\n }\n \n try {\n in = new ObjectInputStream (benchSocket.getInputStream());\n } catch (IOException ex) {\n }\n try {\n out = new ObjectOutputStream (benchSocket.getOutputStream());\n } catch (IOException ex) {\n }\n }", "@java.lang.Override\n public int getPort() {\n return port_;\n }", "@java.lang.Override\n public int getPort() {\n return port_;\n }", "public void setServerPort(int serverPort) {\n this.serverPort = serverPort;\n }", "public void setPort(int p_port) throws MalformedURIException {\n if (p_port >= 0 && p_port <= 65535) {\n if (m_host == null) {\n throw new MalformedURIException(\n \"Port cannot be set when host is null!\");\n }\n }\n else if (p_port != -1) {\n throw new MalformedURIException(\"Invalid port number!\");\n }\n m_port = p_port;\n }", "public void setSiteHttpServerPort(int pSiteHttpServerPort) {\n mSiteHttpServerPort = pSiteHttpServerPort;\n }", "public void setServerport(Integer serverport) {\n this.serverport = serverport;\n }", "private void httpProxyConnect(String host, int port) throws IOException {\n // connect to the proxy\n // _proxyPort validated in superconstrutor, no need to set default here\n if (_fetchHeaderTimeout > 0) {\n _proxy = new Socket();\n _proxy.setSoTimeout(_fetchHeaderTimeout);\n _proxy.connect(new InetSocketAddress(_proxyHost, _proxyPort), _fetchHeaderTimeout);\n } else {\n _proxy = new Socket(_proxyHost, _proxyPort);\n }\n httpProxyConnect(_proxy, host, port);\n }", "protected void setProxiedClient(URL paramURL, String paramString, int paramInt) throws IOException {\n/* 127 */ this.delegate.setProxiedClient(paramURL, paramString, paramInt);\n/* */ }", "@java.lang.Override\n public int getPort() {\n return port_;\n }", "@java.lang.Override\n public int getPort() {\n return port_;\n }", "public int getPort() { return port; }", "public void setProxy(Proxy proxy) {\n\t\tthis.proxy = proxy;\n\t}", "public void setProxyPassword(String proxyPassword) {\n\t proxyHandler.setProxyPassword(proxyPassword);\n\t}", "public void setPort(final String remoteHost) {\n host = remoteHost;\n }", "public com.example.DNSLog.Builder setPort(int value) {\n validate(fields()[6], value);\n this.port = value;\n fieldSetFlags()[6] = true;\n return this;\n }", "public void setPort(int a_port)\n\t{\n\t\tif (!isValidPort(a_port))\n\t\t{\n\t\t\tm_iInetPort = -1;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tm_iInetPort = a_port;\n\t\t}\n\t}", "public void setPort(final String remoteHost) {\n host = remoteHost;\n }", "public Proxy (String host, int port) {\n\t\t_currentHost = host;\n\t\t_currentPort = port;\n\t\t_inUse = 0;\n\t\t_id = proxyDB.insert(host, port);\r\n\t}", "public void setProxyServer(String proxyServer) {\n this.proxyServer = proxyServer;\n }", "public void setProxyBaseUrl(String baseURL) {\n this.proxyBaseUrl = baseURL;\n }", "public int getPort() {\n return port_;\n }", "public int getPort() {\n return port_;\n }", "public int getPort() {\n return port_;\n }", "public int getPort() {\n return port_;\n }" ]
[ "0.8828553", "0.85874075", "0.828518", "0.828518", "0.8190341", "0.8050402", "0.78218454", "0.7755733", "0.77232", "0.76711863", "0.7622305", "0.75930345", "0.75667995", "0.75667995", "0.75088567", "0.7435876", "0.7355881", "0.72766143", "0.717768", "0.71021473", "0.7055267", "0.7055267", "0.7051375", "0.7039807", "0.66650605", "0.6654394", "0.66381776", "0.66332245", "0.6622862", "0.65968686", "0.6571436", "0.65685856", "0.65685856", "0.65685856", "0.65685856", "0.65685856", "0.65685856", "0.65644693", "0.65457374", "0.65344715", "0.65152836", "0.65088046", "0.64877164", "0.6481355", "0.6481355", "0.64767134", "0.646788", "0.6464748", "0.6460766", "0.6421202", "0.641382", "0.641278", "0.641278", "0.641278", "0.641278", "0.6412036", "0.6401488", "0.64009553", "0.63865715", "0.63852316", "0.6366986", "0.6366986", "0.636066", "0.6358567", "0.63578427", "0.6335059", "0.6303372", "0.6269967", "0.6269967", "0.626784", "0.6252513", "0.6251099", "0.6251099", "0.62359786", "0.6194744", "0.61441886", "0.6140132", "0.613929", "0.6129934", "0.6116262", "0.61137503", "0.6104034", "0.6102881", "0.608413", "0.60747236", "0.60747236", "0.6070334", "0.6069865", "0.6064446", "0.6056604", "0.60495406", "0.6044958", "0.6035248", "0.60324293", "0.6031951", "0.60271436", "0.60002834", "0.60002834", "0.60002834", "0.60002834" ]
0.8235142
4
Method to set the proxy Password
public void setProxyPswd(java.lang.String newProxyPswd) { proxyPswd = newProxyPswd; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setProxyPassword(String proxyPassword) {\n\t proxyHandler.setProxyPassword(proxyPassword);\n\t}", "public void setProxyPassword(String proxyPassword) {\n this.proxyPassword = proxyPassword;\n }", "public void setProxyPassword(String proxyPassword) {\n this.proxyPassword = proxyPassword;\n }", "String getHttpProxyPassword();", "public String getProxyPassword() {\n return proxyPassword;\n }", "public String getProxyPassword() {\n return cfg.getProxyPassword();\n }", "public void setPassword(String pass);", "public void setPassword(String pw)\n {\n this.password = pw;\n }", "void setPassword(String password);", "void setPassword(String password);", "void setPassword(String password);", "public void setPassword(String paramPasswd) {\n\tstrPasswd = paramPasswd;\n }", "public void setPassword(String password)\n {\n _password = password;\n }", "protected static void setProxyPassphrase(String passphrase) {\n Program.proxyPassphrase = passphrase;\n }", "public void setPassword(String pw) {\n password = pw.toCharArray();\n cleared = false;\n }", "public void setPassword(java.lang.String newPassword);", "@Override\n\tpublic void setPassword(String password) {\n\n\t}", "public final GetHTTP setPassword(final String password) {\n properties.put(PASSWORD_PROPERTY, password);\n return this;\n }", "protected static String getProxyPassphrase() {\n if (\"?\".equals(proxyPassphrase)) {\n Console console = System.console();\n if (console != null) {\n proxyPassphrase = new String(console.readPassword(\"Proxy password:\"));\n } else {\n throw new UnsupportedOperationException(\n \"Proxy password must be specified\");\n }\n }\n return proxyPassphrase;\n }", "public void set_pass(String password)\n {\n pass=password;\n }", "public void initProxy() {\n\n System.setProperty(\"http.proxyHost\", \"199.101.97.159\"); // set proxy server\n System.setProperty(\"http.proxyPort\", \"60099\"); // set proxy port\n //System.setProperty(\"http.proxyUser\", authUser);\n //System.setProperty(\"http.proxyPassword\", authPassword);\n Authenticator.setDefault(\n new Authenticator() {\n @Override\n public PasswordAuthentication getPasswordAuthentication() {\n return new PasswordAuthentication(\n authUser, authPassword.toCharArray());\n }\n }\n );\n }", "public void setPassword(String password)\r\n/* 26: */ {\r\n/* 27:42 */ this.password = password;\r\n/* 28: */ }", "public ProxySettings(Proxy proxy, final String username, final char[] password)\n {\n if (proxy == null)\n {\n throw new IllegalArgumentException(\"Proxy cannot be null\");\n }\n\n if (proxy.type() == Type.DIRECT)\n {\n throw new IllegalArgumentException(\"Proxy settings cannot be configured to be DIRECT\");\n }\n\n this.proxy = proxy;\n\n if (username != null && username.isEmpty())\n {\n throw new IllegalArgumentException(\"Username cannot be an empty string\");\n }\n\n if (password != null && password.length == 0)\n {\n throw new IllegalArgumentException(\"Password cannot be an empty string\");\n }\n\n this.username = username;\n this.password = password;\n }", "public void setPassword(String password)\n {\n _password = password;\n }", "void setPassword(String ps) {\n this.password = ps;\n }", "public void setPassword(String password){\r\n this.password = password;\r\n }", "public void setTraderPassword(String traderPassword) {\n this.traderPassword = traderPassword;\n }", "public void setPassword(final String password){\n mPassword = password;\n }", "public void setBackupServerPassword(String argPassword){\n\t backupServerPassword=argPassword;\n }", "public static void updateProxySettings(String host,String port,String username,String password){\n\t\tHttpPosterCommons.host\t\t\t= (!host.equals(\"\"))?host:HttpPosterCommons.host;\n\t\tHttpPosterCommons.port \t\t\t= (!port.equals(\"\"))?port:HttpPosterCommons.port;\n\t\tHttpPosterCommons.username\t\t= (!username.equals(\"\"))?username:HttpPosterCommons.username;\n\t\tHttpPosterCommons.password \t\t= (!password.equals(\"\"))?password:HttpPosterCommons.password;\t\t\n\t}", "public void setPassword( String password )\r\n {\r\n this.password = password;\r\n }", "public void setPassword(String p)\n\t{\n\t\tpassword = p;\n\t}", "public void setPassword(String password){\n this.password = encryptPassword(password);\n checkRep();\n }", "public void setPassword(String password)\n {\n this.password = password;\n }", "public void setPassword(String password)\n {\n this.password = password;\n }", "public void setPassword(String password) {\r\n this.password = password;\r\n }", "public void setPassword(String password) {\r\n this.password = password;\r\n }", "public void setPassword(String password) {\n this.password = password;\r\n }", "public void setPassword(String password) {\n this.password = password;\n }", "public void setPassword(String password) {\n this.password = password;\n }", "public void setPassword(String strPassword) {\r\n\t\t//driver.findElement(passWord).sendKeys(strPassword);\r\n\t\tdriver.findElement(passWord).sendKeys(strPassword);\r\n\t\t//return new LoginPage();\r\n\t}", "public void setPassword(String p) {\n\t\tpassword = p;\n\t}", "public void setPw(char[] password) {\n\t\t\r\n\t}", "public void setPassword(String password) {\n\tthis.password = password;\n}", "public void setPassword(String password) {\r\n this.password = password;\r\n }", "public void setPassword(String password) {\r\n this.password = password;\r\n }", "public void setPassword(String password) {\r\n this.password = password;\r\n }", "public void setPassword(String password) {\r\n this.password = password;\r\n }", "public void setPassword(String password) {\r\n this.password = password;\r\n }", "public void setPassword(String password) {\r\n this.password = password;\r\n }", "public void setPassword(String password)\n \t{\n \t\tthis.password = password;\n \t}", "public void setPassword(String password)\n {\n this.password = password;\n }", "public void setPassword(java.lang.String param) {\r\n localPasswordTracker = param != null;\r\n\r\n this.localPassword = param;\r\n }", "public void setTrustStorePassword(String trustStorePassword) {\n if (!complete) {\n this.trustStorePassword = trustStorePassword;\n } else {\n log.warn(\"Connection Descriptor setter used outside of factory.\");\n }\n }", "public void setPassword(java.lang.String param) {\n localPasswordTracker = true;\n\n this.localPassword = param;\n }", "public void setPasspwd(String passpwd) {\n this.passpwd = passpwd;\n }", "@Override\n\tpublic void setPassword(String password) {\n\t\tsuper.setPassword(password);\n\t}", "@Override\n\tpublic void setPassword(String password) {\n\t\tsuper.setPassword(password);\n\t}", "public void set_password(String password)\r\n\t{\r\n\t\tthis.password = password;\r\n\t}", "public void setHttpProxyPort(int port);", "public void setPassword(String password) {\n this.password = password;\n }", "public void setPassword(String password) {\n this.password = password;\n }", "public void setPassword(String password) {\n this.password = password;\n }", "public void setPassword(String password) {\n this.password = password;\n }", "public void setPassword(String password) {\n this.password = password;\n }", "public void setPassword(String password) {\n this.password = password;\n }", "public void setPassword(String password) {\n this.password = password;\n }", "public void setPassword(String password) {\n this.password = password;\n }", "public void setPassword(String password) {\n this.password = password;\n }", "public void setPassword(String password) {\n this.password = password;\n }", "public void setPassword(String password) {\n this.password = password;\n }", "public void setPassword(String password) {\n this.password = password;\n }", "public void setPassword(String password) {\n this.password = password;\n }", "public void setPassword(String password) {\n this.password = password;\n }", "public void setPassword(String password) {\n this.password = password;\n }", "public void setPassword(String password) {\n this.password = password;\n }", "public void setPassword(String password) {\n this.password = password;\n }", "public void setPassword(String password) {\n this.password = password;\n }", "public void setPassword(String password) {\n this.password = password;\n }", "public void setPassword(String password) {\n this.password = password;\n }", "public void setPassword(String password) {\n this.password = password;\n }", "public void setPassword(String password) {\n this.password = password;\n }", "public void setPassword(String password) {\n this.password = password;\n }", "public void setPassword(String password) {\n this.password = password;\n }", "public void setPassword(String password) {\n this.password = password;\n }", "public void setPassword(String password) {\n this.password = password;\n }", "public void setPassword(String password) {\n this.password = password;\n }", "public void setPassword(String password) {\n this.password = password;\n }", "public void setPassword(String password) {\n this.password = password;\n }", "public void setPassword(String password) {\n this.password = password;\n }", "public void setPassword(String password) {\n this.password = password;\n }", "@Override\n public String getPassword() {\n return password;\n }", "public void setPassword(String password) {\n this.password = password;\n }", "public void setPassword(int password) {\n this.password = password;\n }", "public MyProxyLogon() {\n super();\n host = System.getenv(\"MYPROXY_SERVER\");\n if (host == null) {\n host = \"myproxy.teragrid.org\";\n }\n String portString = System.getenv(\"MYPROXY_SERVER_PORT\");\n if (portString != null) {\n port = Integer.parseInt(portString);\n }\n username = System.getProperty(\"user.name\");\n }", "@Override\n\tpublic void setPlainPassword(String arg0) {\n\t\t\n\t}", "public void setPassword(java.lang.String password) {\r\n this.password = password;\r\n }", "public void setPassword(java.lang.String password) {\r\n this.password = password;\r\n }", "public void setPassword(String strPassword){\n\t\tdriver.findElement(password99Guru).sendKeys(strPassword);\n\t}", "public void setPassword(final String password) {\n this.password = password.toCharArray();\n }", "void setPassword(Password newPassword, String plainPassword) throws NoUserSelectedException;" ]
[ "0.8075587", "0.8030096", "0.8030096", "0.78866017", "0.78691626", "0.7459921", "0.70221865", "0.69648904", "0.69504213", "0.69504213", "0.69504213", "0.67913437", "0.67533684", "0.6704094", "0.67012644", "0.6689764", "0.66866684", "0.667562", "0.6668791", "0.66496813", "0.6604439", "0.65586233", "0.65262353", "0.65124613", "0.6511326", "0.6431265", "0.63696486", "0.6354588", "0.63402045", "0.6335567", "0.63333005", "0.63219166", "0.6316752", "0.63121736", "0.63121736", "0.63118184", "0.63118184", "0.6296192", "0.6272852", "0.6272852", "0.6271727", "0.62685156", "0.6266167", "0.6252792", "0.6252324", "0.6252324", "0.6252324", "0.6252324", "0.6252324", "0.6252324", "0.6236057", "0.6215528", "0.6212442", "0.6189402", "0.6187079", "0.61861634", "0.6162223", "0.6162223", "0.6157409", "0.6151788", "0.61484265", "0.61484265", "0.61484265", "0.61484265", "0.61484265", "0.61484265", "0.61484265", "0.61484265", "0.61484265", "0.61484265", "0.61484265", "0.61484265", "0.61484265", "0.61484265", "0.61484265", "0.61484265", "0.61484265", "0.61484265", "0.61484265", "0.61484265", "0.61484265", "0.61484265", "0.61484265", "0.61484265", "0.61484265", "0.61484265", "0.61484265", "0.61484265", "0.61484265", "0.61484265", "0.61484265", "0.6145634", "0.6132196", "0.6130811", "0.6127021", "0.61234695", "0.6123444", "0.6123444", "0.6114194", "0.6112474", "0.61026216" ]
0.0
-1
Method to set the proxy realm
public void setProxyRealm(java.lang.String newProxyRealm) { System.out.println("Realm: " + newProxyRealm); proxyRealm = newProxyRealm; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.lang.String getProxyRealm()\r\n {\r\n return proxyRealm;\r\n }", "void setRealm(String realm);", "public String getProxyAuthenticationRealm() {\n return this.proxyRealm;\n }", "public void initProxy() {\n\n System.setProperty(\"http.proxyHost\", \"199.101.97.159\"); // set proxy server\n System.setProperty(\"http.proxyPort\", \"60099\"); // set proxy port\n //System.setProperty(\"http.proxyUser\", authUser);\n //System.setProperty(\"http.proxyPassword\", authPassword);\n Authenticator.setDefault(\n new Authenticator() {\n @Override\n public PasswordAuthentication getPasswordAuthentication() {\n return new PasswordAuthentication(\n authUser, authPassword.toCharArray());\n }\n }\n );\n }", "public void setProxy(Proxy proxy) {\n\t\tthis.proxy = proxy;\n\t}", "@Override\n public void setServerProxy(IServerProxy theProxy) {\n assert theProxy != null;\n m_theProxy = theProxy;\n }", "protected static void setProxyLocation(URI proxyLocation) {\n Program.proxyLocation = proxyLocation;\n Program.proxyLocationSet = true;\n }", "public void setHttpProxyHost(String host);", "public void setProxyUser(String proxyUser) {\n this.proxyUser = proxyUser;\n }", "public void setProxyScheme(java.lang.String newProxyScheme)\r\n {\r\n System.out.println(\"Scheme: \" + newProxyScheme);\r\n proxyScheme = newProxyScheme;\r\n }", "public MyProxyLogon() {\n super();\n host = System.getenv(\"MYPROXY_SERVER\");\n if (host == null) {\n host = \"myproxy.teragrid.org\";\n }\n String portString = System.getenv(\"MYPROXY_SERVER_PORT\");\n if (portString != null) {\n port = Integer.parseInt(portString);\n }\n username = System.getProperty(\"user.name\");\n }", "Proxy getProxy();", "public void setHttpProxyPort(int port);", "public void setProxyHost(java.lang.String newProxyHost)\r\n {\r\n System.out.println(\"Host: \" + newProxyHost);\r\n proxyHost = newProxyHost;\r\n }", "public Proxy(){\n\t\tthis.useProxy = false;\n\t\tthis.host = null;\n\t\tthis.port = -1;\n\t}", "public void setProxyUser(String proxyUser) {\n\t proxyHandler.setProxyUser(proxyUser);\n\t}", "public void setSocksProxyHost(String host) {\n this.socksProxyHost = host;\n }", "@Reference(\n name = \"user.realmservice.default\",\n service = org.wso2.carbon.user.core.service.RealmService.class,\n cardinality = ReferenceCardinality.MANDATORY,\n policy = ReferencePolicy.DYNAMIC,\n unbind = \"unsetRealmService\")\n protected void setRealmService(RealmService realmService) {\n DataHolder.getInstance().setRealmService(realmService);\n }", "public void setProxyPassword(String proxyPassword) {\n\t proxyHandler.setProxyPassword(proxyPassword);\n\t}", "protected static void setProxyPassphrase(String passphrase) {\n Program.proxyPassphrase = passphrase;\n }", "@Test\r\n public void testSetProxy() {\r\n // Not required\r\n }", "public void setProxyHost(String proxyHost) {\n\t proxyHandler.setProxyHost(proxyHost);\n \n if ((proxyHost != null) && (proxyHost.length() > 1)) {\n isProxyActivated.set(true);\n } \n resetChain();\n\t}", "public Object setConstraints(Object proxy) {\n storedProxy = proxy;\n if (setConstraintsTrap != null) {\n throw setConstraintsTrap;\n }\n\treturn storedProxy = super.setConstraints(proxy);\n }", "public void setProxyPort(int proxyPort) {\n this.proxyPort = proxyPort;\n }", "public void setProxyPort(int proxyPort) {\n this.proxyPort = proxyPort;\n }", "public void setProxyPort(String newProxyPort)\r\n {\r\n proxyPort = newProxyPort;\r\n }", "public void grant(Object proxy) {\n storedProxy = proxy;\n if (grantTrap != null) {\n throw grantTrap;\n }\n\tsuper.grant(proxy);\n }", "public Proxy getProxy() {\n return proxy;\n }", "public void setProxyServer(String proxyServer) {\n this.proxyServer = proxyServer;\n }", "protected static void setProxyUsername(String username) {\n Program.proxyUsername = username;\n proxyUsernameSet = true;\n }", "public void setProxyPassword(String proxyPassword) {\n this.proxyPassword = proxyPassword;\n }", "public void setProxyPassword(String proxyPassword) {\n this.proxyPassword = proxyPassword;\n }", "public String getRealm () {\n return realm;\n }", "public void setProxyId(Long proxyId) {\n this.proxyId = proxyId;\n }", "public void setProxyPort(String proxyPort) {\n this.proxyPort = proxyPort;\n }", "public ProxySettings(Proxy proxy)\n {\n this(proxy, null, null);\n }", "public void setProxyPort(int port) {\n proxyPort = port;\n }", "public void setDefaultProxyConfig(ProxyConfig config);", "public java.lang.String getProxyScheme()\r\n {\r\n return proxyScheme;\r\n }", "public void setSSORealm(SSORealm ssoRealm)\n {\n _ssoRealm = ssoRealm;\n }", "public void setProxyAddress(String proxyAddress) {\n this.proxyAddress = proxyAddress;\n }", "protected boolean legacyResetProxySettingsCall(boolean setProxy) {\n System.getProperties().put(\"http.proxySet\", new Boolean(setProxy).toString());\n try {\n Class c = Class.forName(\"sun.net.www.http.HttpClient\");\n Method reset = c.getMethod(\"resetProperties\", null);\n reset.invoke(null, null);\n return true;\n }\n catch (ClassNotFoundException cnfe) {\n return false;\n }\n catch (NoSuchMethodException e) {\n return false;\n }\n catch (IllegalAccessException e) {\n return false;\n }\n catch (InvocationTargetException e) {\n return false;\n }\n }", "public void setProxyPort(int newProxyPort)\r\n {\r\n System.out.println(\"Port: \" + newProxyPort);\r\n proxyPort = \"\" + newProxyPort;\r\n }", "IRealm getRealm();", "public void setProxyHost(String proxyHost) {\n this.proxyHost = proxyHost;\n }", "public void applyWebProxySettings() {\n boolean settingsChanged = false;\n boolean enablingProxy = false;\n Properties sysprops = System.getProperties();\n if (proxyHost != null) {\n settingsChanged = true;\n if (proxyHost.length() != 0) {\n traceSettingInfo();\n enablingProxy = true;\n sysprops.put(\"http.proxyHost\", proxyHost);\n String portString = Integer.toString(proxyPort);\n sysprops.put(\"http.proxyPort\", portString);\n sysprops.put(\"https.proxyHost\", proxyHost);\n sysprops.put(\"https.proxyPort\", portString);\n sysprops.put(\"ftp.proxyHost\", proxyHost);\n sysprops.put(\"ftp.proxyPort\", portString);\n if (nonProxyHosts != null) {\n sysprops.put(\"http.nonProxyHosts\", nonProxyHosts);\n sysprops.put(\"https.nonProxyHosts\", nonProxyHosts);\n sysprops.put(\"ftp.nonProxyHosts\", nonProxyHosts);\n }\n if(proxyUser!=null) {\n sysprops.put(\"http.proxyUser\", proxyUser);\n sysprops.put(\"http.proxyPassword\", proxyPassword);\n }\n } else {\n log(\"resetting http proxy\", Project.MSG_VERBOSE);\n sysprops.remove(\"http.proxyHost\");\n sysprops.remove(\"http.proxyPort\");\n sysprops.remove(\"http.proxyUser\");\n sysprops.remove(\"http.proxyPassword\");\n sysprops.remove(\"https.proxyHost\");\n sysprops.remove(\"https.proxyPort\");\n sysprops.remove(\"ftp.proxyHost\");\n sysprops.remove(\"ftp.proxyPort\");\n }\n }\n\n //socks\n if (socksProxyHost != null) {\n settingsChanged = true;\n if (socksProxyHost.length() != 0) {\n enablingProxy = true;\n sysprops.put(\"socksProxyHost\", socksProxyHost);\n sysprops.put(\"socksProxyPort\", Integer.toString(socksProxyPort));\n if (proxyUser != null) {\n //this may be a java1.4 thingy only\n sysprops.put(\"java.net.socks.username\", proxyUser);\n sysprops.put(\"java.net.socks.password\", proxyPassword);\n }\n\n } else {\n log(\"resetting socks proxy\", Project.MSG_VERBOSE);\n sysprops.remove(\"socksProxyHost\");\n sysprops.remove(\"socksProxyPort\");\n sysprops.remove(\"java.net.socks.username\");\n sysprops.remove(\"java.net.socks.password\");\n }\n }\n\n\n //for Java1.1 we need to tell the system that the settings are new\n if (settingsChanged &&\n JavaEnvUtils.isJavaVersion(JavaEnvUtils.JAVA_1_1)) {\n legacyResetProxySettingsCall(enablingProxy);\n }\n }", "public void setProxyHost(String hostname) {\n proxyHost = hostname;\n }", "private ServerModelFacade(IServerProxy theProxy) {\n setServerProxy(theProxy);\n }", "private void setHttpclientProxy(DefaultHttpClient httpClient) {\r\n Proxy proxy = ProxyProvider.getProxy();\r\n String proxyUser = ProxyProvider.getProxyUserName();\r\n String proxyPwd = ProxyProvider.getProxyUserPassword();\r\n // set by other components like tSetProxy\r\n if (proxy != null) {\r\n\r\n final HttpHost httpHost = new HttpHost(((InetSocketAddress) proxy.address()).getHostName(),\r\n ((InetSocketAddress) proxy.address()).getPort());\r\n // Sets usage of HTTP proxy\r\n httpClient.getParams().setParameter(ConnRoutePNames.DEFAULT_PROXY, httpHost);\r\n\r\n // Sets proxy authentication, if credentials were provided\r\n // TODO Because the proxy of get accesToken can't support authentication. remove this ?\r\n if (proxyUser != null && proxyPwd != null) {\r\n httpClient.getCredentialsProvider().setCredentials(new AuthScope(httpHost),\r\n new UsernamePasswordCredentials(proxyUser, proxyPwd));\r\n }\r\n\r\n }\r\n\r\n }", "private static MBeanServerForwarder configureJmxAuthorization(Map<String, Object> env)\r\n {\n String authzProxyClass = System.getProperty(\"cassandra.jmx.authorizer\");\r\n if (authzProxyClass != null)\r\n {\r\n final InvocationHandler handler = FBUtilities.construct(authzProxyClass, \"JMX authz proxy\");\r\n final Class[] interfaces = { MBeanServerForwarder.class };\r\n\r\n Object proxy = Proxy.newProxyInstance(MBeanServerForwarder.class.getClassLoader(), interfaces, handler);\r\n return MBeanServerForwarder.class.cast(proxy);\r\n }\r\n else\r\n {\r\n String accessFile = System.getProperty(\"com.sun.management.jmxremote.access.file\");\r\n if (accessFile != null)\r\n {\r\n env.put(\"jmx.remote.x.access.file\", accessFile);\r\n }\r\n return null;\r\n }\r\n }", "public final GetHTTP setProxyPort(final String proxyPort) {\n properties.put(PROXY_PORT_PROPERTY, proxyPort);\n return this;\n }", "public void setSocksProxyPort(int port) {\n this.socksProxyPort = port;\n }", "public final GetHTTP setProxyHost(final String proxyHost) {\n properties.put(PROXY_HOST_PROPERTY, proxyHost);\n return this;\n }", "public HDInsightSparkActivity setProxyUser(Object proxyUser) {\n this.proxyUser = proxyUser;\n return this;\n }", "public void setProxyName(java.lang.String newProxyName)\r\n {\r\n System.out.println(\"Name: \" + newProxyName);\r\n proxyName = newProxyName;\r\n }", "public Proxy getProxy(){\n mode = COMMAND_MODE;\n pack();\n show();\n return proxy;\n }", "protected void setBasicAuthorization(String hostName, int hostPort, String realm, String userid, String pswd)\r\n {\r\n\r\n AuthorizationInfo.addBasicAuthorization(hostName, hostPort, realm, userid, pswd);\r\n // Inform the HTTPConnection that our Proxy Host,\r\n // Port is a proxyServer.\r\n HTTPConnection.setProxyServer(hostName, hostPort);\r\n }", "private void setInternalProxy(SimpleClientHttpRequestFactory requestFactory) {\n\t\tif (PAYASIA_MIND_PROXY_ENABLED_FOR_DEV) {\n\t\t\tProxy proxy = new Proxy(Type.HTTP, new InetSocketAddress(\n\t\t\t\t\tPAYASIA_MIND_PROXY_HOSTNAME, PAYASIA_MIND_PROXY_PORT));\n\t\t\trequestFactory.setProxy(proxy);\n\t\t}\n\t}", "@Override\n\tpublic Credential authenticateProxy(Proxy proxy, URL url,\n\t\t\tList<Challenge> challenges) throws IOException {\n\t\treturn null;\n\t}", "public interface ProxyConnector {\n\n /**\n * Comprueba que se cumplan los requisitos para la conexi&oacute;n con el servicio proxy.\n * @throws IOException Cuando ocurre alg&uacute;n error en la comprobaci&oacute;n.\n */\n void init() throws IOException;\n\n /**\n * Comprueba si el servicio configurado pertenece a un proxy compatible.\n * @return {@code true} si el proxy configurado es compatible, {@code false} en caso contrario.\n * @throws IOException Cuando se produce un error al conectarse al proxy.\n */\n boolean isCompatibleService() throws IOException;\n\n /**\n * Indica si el servicio de Portafirmas correspondiente a este conector requiere un proceso\n * de login previo.\n * @return {@code true} si el servicio requiere login, {@code false} en caso contrario.\n */\n boolean needLogin();\n\n /**\n * Solicita el acceso para el usuario.\n * @return Respuesta a la petici&oacute;n con el token de acceso.\n * @throws Exception Cuando ocurre un error en la comunicaci&oacute;n.\n */\n RequestResult loginRequest() throws Exception;\n\n /**\n * Envia el token de acceso firmado al servidor para validar el acceso del usuario.\n * @param pkcs1 Firma PKCS#1 del token de acceso.\n * @param cert Certificado usado para firmar.\n * @return @code true} si el acceso se completo correctamente, {@code false} en caso contrario.\n * @throws Exception Cuando ocurre un error en la comunicaci&oacute;n.\n */\n boolean tokenValidation(byte[] pkcs1, String cert) throws Exception;\n\n /**\n * Env&aacute;a una solicitud de cierre de sesi&oacute;n.\n * @throws Exception Cuando se produce un error en la comunicaci&oacute;n.\n */\n void logoutRequest() throws Exception;\n\n /**\n * Obtiene la peticiones de firma. Las peticiones devueltas deben cumplir\n * las siguientes condiciones:\n * <ul>\n * <li>Estar en el estado se&ntilde;alado (unresolved, signed o rejected).</li>\n * <li>Que todos los documentos que contiene se tengan que firmar con los\n * formatos de firma indicados (s&oacute;lo si se indica alguno)</li>\n * <li>Que las solicitudes cumplan con los filtros establecidos. Estos\n * filtros tendran la forma: key=value</li>\n * </ul>\n * @param signRequestState Estado de las peticiones que se desean obtener.\n * @param filters\n * Listado de filtros que deben cumplir las peticiones\n * recuperadas. Los filtros soportados son:\n * <ul>\n * <li><b>orderAscDesc:</b> con valor \"asc\" para que sea orden\n * ascendente en la consulta, en cualquier otro caso ser&aacute;\n * descendente</li>\n * <li><b>initDateFilter:</b> fecha de inicio de las peticiones</li>\n * <li><b>endDateFilter:</b> fecha de fin de las peticiones</li>\n * <li><b>orderAttribute:</b> par&aacute;metro para ordenar por\n * una columna de la petici&oacute;n</li>\n * <li><b>searchFilter:</b> busca la cadena introducida en\n * cualquier texto de la petici&oacute;n (asunto, referencia,\n * etc)</li>\n * <li><b>labelFilter:</b> texto con el nombre de una etiqueta.\n * Filtra las peticiones en base a esa etiqueta, ej: \"IMPORTANTE\"\n * </li>\n * <li><b>applicationFilter:</b> texto con el identificador de\n * una aplicaci&oacute;n. Filtra las peticiones en base a la\n * aplicaci&oacute;n, ej: \"SANCIONES\"</li>\n * </ul>\n * @param numPage N&uacute;mero de p&aacute;gina del listado.\n * @param pageSize N&uacute;mero de peticiones por p&aacute;gina.\n * @return Lista de peticiones de firma\n * @throws SAXException\n * Si el XML obtenido del servidor no puede analizarse\n * @throws IOException\n * Si ocurre un error de entrada / salida\n */\n PartialSignRequestsList getSignRequests(\n String signRequestState, String[] filters, int numPage, int pageSize)\n throws SAXException, IOException;\n\n /** Inicia la pre-firma remota de las peticiones.\n * @param request Petici&oacute;n de firma.\n * @return Prefirmas de las peticiones enviadas.\n * @throws IOException Si ocurre algun error durante el tratamiento de datos.\n * @throws CertificateEncodingException Si no se puede obtener la codificaci&oacute;n del certificado.\n * @throws SAXException Si ocurren errores analizando el XML de respuesta. */\n TriphaseRequest[] preSignRequests(SignRequest request) throws IOException,\n CertificateException,\n SAXException;\n\n /**\n * Inicia la post-firma remota de las peticiones.\n *\n * @param requests\n * Peticiones a post-firmar\n * @return Listado con el resultado de la operaci&oacute;n de firma de cada\n * petici&oacute;n.\n * @throws IOException\n * Si ocurre algun error durante el proceso\n * @throws CertificateEncodingException\n * Cuando el certificado est&aacute; mal codificado.\n * @throws SAXException\n * Si ocurren errores analizando el XML de respuesta\n */\n RequestResult postSignRequests(TriphaseRequest[] requests) throws IOException,\n CertificateEncodingException, SAXException;\n\n /**\n * Obtiene los datos de un documento.\n *\n * @param requestId\n * Identificador de la petici&oacute;n.\n * @return Datos del documento.\n * @throws SAXException\n * Cuando se encuentra un XML mal formado.\n * @throws IOException\n * Cuando existe alg&uacute;n problema en la lectura/escritura\n * de XML o al recuperar la respuesta del servidor.\n */\n RequestDetail getRequestDetail(String requestId) throws SAXException, IOException;\n\n /**\n * Obtiene el listado de aplicaciones para las que hay peticiones de firma.\n * @return Configuracion de aplicaci&oacute;n.\n * @throws SAXException\n * Cuando se encuentra un XML mal formado.\n * @throws IOException\n * Cuando existe alg&uacute;n problema en la lectura/escritura\n * de XML o al recuperar la respuesta del servidor.\n */\n AppConfiguration getApplicationList()\n throws SAXException, IOException;\n\n /**\n * Rechaza las peticiones de firma indicadas.\n *\n * @param requestIds\n * Identificadores de las peticiones de firma que se quieren\n * rechazar.\n * @return Resultado de la operacion para cada una de las peticiones de\n * firma.\n * @throws SAXException\n * Si el XML obtenido del servidor no puede analizarse\n * @throws IOException\n * Si ocurre un error de entrada / salida\n */\n RequestResult[] rejectRequests(String[] requestIds,\n String reason) throws SAXException, IOException;\n\n /** Obtiene la previsualizaci&oacute;n de un documento.\n * @param documentId Identificador del documento.\n * @param filename Nombre del fichero.\n * @param mimetype MIME-Type del documento.\n * @return Datos del documento.\n * @throws IOException Cuando existe alg&uacute;n problema en la lectura/escritura\n * de XML o al recuperar la respuesta del servidor. */\n DocumentData getPreviewDocument(String documentId,\n String filename,\n String mimetype) throws IOException;\n\n /** Obtiene la previsualizaci&oacute;n de una firma.\n * @param documentId Identificador del documento.\n * @param filename Nombre del fichero.\n * @return Datos del documento.\n * @throws IOException Cuando existe alg&uacute;n problema en la lectura/escritura\n * de XML o al recuperar la respuesta del servidor. */\n DocumentData getPreviewSign(String documentId,\n String filename) throws IOException;\n\n /** Obtiene la previsualizaci&oacute;n de un informe de firma.\n * @param documentId Identificador del documento.\n * @param filename Nombre del fichero.\n * @param mimetype MIME-Type del documento.\n * @return Datos del documento.\n * @throws IOException Cuando existe alg&uacute;n problema en la lectura/escritura\n * de XML o al recuperar la respuesta del servidor. */\n DocumentData getPreviewReport(String documentId,\n String filename, String mimetype) throws IOException;\n\n /**\n * Aprueba peticiones de firma (les da el visto bueno).\n *\n * @param requestIds\n * Identificador de las peticiones.\n * @return Resultado de la operaci&oacute;n.\n * @throws SAXException\n * Cuando se encuentra un XML mal formado.\n * @throws IOException\n * Cuando existe alg&uacute;n problema en la lectura/escritura\n * de XML o al recuperar la respuesta del servidor.\n */\n RequestResult[] approveRequests(String[] requestIds) throws SAXException, IOException;\n\n /**\n * Indica si el conector soporta las funciones de notificaci&oacute;n.\n * @return {@code true} si se soportan las notificaciones, {@code false} en caso contrario.\n */\n boolean isNotificationsSupported();\n\n /**\n * Da de alta en el sistema de notificaciones.\n * @param token\n * \t\t\tToken de registro en GCM.\n * @param device\n * \t\t\tIdentificador de dispositivo.\n * @param certB64\n * \t\t\tCertificado en base 64 del usuario.\n * @return Resultado del proceso de alta en el sistema de notificaciones.\n * \t\t\tIndica\n * @throws SAXException\n * Cuando se encuentra un XML mal formado.\n * @throws IOException\n * Cuando existe alg&uacute;n problema en la lectura/escritura\n * de XML o al recuperar la respuesta del servidor.\n */\n NotificationState signOnNotificationService(\n String token, String device, String certB64)\n throws SAXException, IOException;\n\n\n}", "public final ListS3 setProxyHost(final String proxyHost) {\n properties.put(PROXY_HOST_PROPERTY, proxyHost);\n return this;\n }", "public Object getProxyUser() {\n return this.proxyUser;\n }", "public static void setProxyServer(final String serverURI, final String proxyURI) {\n if (StringUtils.isEmpty(serverURI)) {\n return;\n }\n final String propertyName = getProxyPropertyName(serverURI);\n if (StringUtils.isEmpty(proxyURI)) {\n PluginServiceProvider.getInstance().getPropertyService().removeProperty(propertyName);\n } else {\n PluginServiceProvider.getInstance().getPropertyService().setProperty(propertyName, proxyURI);\n }\n }", "public ProxyableObject()\r\n {\r\n id = new command.GlobalObjectId();\r\n command.ObjectDB.getSingleton().store(id.getLocalObjectId(), this);\r\n \r\n //observable = new ObservabilityObject();\r\n }", "protected void setProxiedClient(URL paramURL, String paramString, int paramInt) throws IOException {\n/* 127 */ this.delegate.setProxiedClient(paramURL, paramString, paramInt);\n/* */ }", "public LoginConfigType<T> setRealmName(String realmName)\n {\n childNode.getOrCreate(\"realm-name\").text(realmName);\n return this;\n }", "@Override\n public Realm getRealm(String realmName) {\n return null;\n }", "private HttpProxyCacheServer getProxy() {\n\n return proxy == null ? (proxy = newProxy()) : proxy;\n }", "public void setProxyUsername(String proxyUsername) {\n this.proxyUsername = proxyUsername;\n }", "public ChallengeProxy getChallengeProxy(){\n return challengeProxy;\n }", "public void setRealmName(String realmName) {\n\t\tthis.realmName = realmName;\n\t}", "public LoginInfoClientProxy(URL proxyURL) {\n this.proxyURL = proxyURL;\n }", "protected void setProxiedClient(URL paramURL, String paramString, int paramInt, boolean paramBoolean) throws IOException {\n/* 143 */ this.delegate.setProxiedClient(paramURL, paramString, paramInt, paramBoolean);\n/* */ }", "public RealmConfig getRealm() {\n return realm;\n }", "public Long getProxyId() {\n return proxyId;\n }", "public void unsetProxy() {\n remote.setProxy(null);\n }", "public ClientBuilder proxy(@Nullable Proxy proxy) {\n this.proxy = proxy;\n return this;\n }", "void setProxyConnectionState(ProxyConnectionState proxyConnectionState) {\n this.proxyConnectionState = proxyConnectionState;\n }", "public Object getProxy() {\n\t\t\r\n\t\treturn getProxy(this.advised.getTargetClass().getClassLoader());\r\n\t}", "protected void setTarget(Command target) {\n\t\tproxy.setTarget(target);\n\t}", "public void setProxyEntities(boolean proxyEntities) {\n this.proxyEntities = proxyEntities;\n }", "public abstract void setRoleManager(OwRoleManager roleManager_p);", "public String getProxyPassword() {\n return proxyPassword;\n }", "public void addProxyCredentials(final String username, final String password, final String host, final int port) {\n final AuthScopeProxy scope = new AuthScopeProxy(host, port, AuthScope.ANY_REALM, AuthScope.ANY_SCHEME);\n final Credentials c = new UsernamePasswordCredentialsExt(username, password);\n proxyCredentials_.put(scope, c);\n clearAnswered(); // don't need to be precise, will cause in worst case one extra request\n }", "public void setSmtpSOCKSProxyPort(int value) {\n this.smtpSOCKSProxyPort = value;\n }", "public void setProxyBaseUrl(String baseURL) {\n this.proxyBaseUrl = baseURL;\n }", "void refreshRealmOnChange(CachingRealm realm);", "private NodeMgrService.Proxy getProxy(int node) { \n Object obj = ServiceManager.proxyFor(node);\n if (! (obj instanceof NodeMgrService.Proxy)) {\n if (node == ServiceManager.LOCAL_NODE) {\n throw new InternalException(\"cannot fetch NodeManager Proxy\" +\n \" for local node\");\n } else {\n logger.warning(\"cannot retrieve proxy for node \" + node);\n }\n }\n return (NodeMgrService.Proxy) obj;\n }", "@Override\r\n\tpublic Object invoke(Object proxy, Method method, Object[] args) throws Throwable {\n\t\tMethod realObjMethod = routerObj.getClass().getMethod(method.getName(), method.getParameterTypes());\r\n\t\tif (realObjMethod.getName().startsWith(RouterProxyFactory.METHOD_PREFIX_SET)){\r\n\t\t\tthrow new UnsupportedOperationException();\r\n\t\t}\r\n\t\t\r\n\t\treturn realObjMethod.invoke(routerObj, args);\r\n\t}", "public void setProxyInjectionMode(boolean proxyInjectionMode) {\n this.proxyInjectionMode = proxyInjectionMode;\n }", "public String getProxyServer() {\n return proxyServer;\n }", "public void setHonorSystemProxy(boolean honorSystemProxy) {\n this.honorSystemProxy = honorSystemProxy;\n }", "public String getAuthenticationRealm() {\n return this.realm;\n }", "public void setProxyPswd(java.lang.String newProxyPswd)\r\n {\r\n proxyPswd = newProxyPswd;\r\n }", "public void addProxyConfig(ProxyConfig config);", "public ProxyConfig createProxyConfig();", "@Override\n\tpublic boolean gcSetAutoBackupProxy(BluetoothDevice device, int port, byte security,\n\t\t\tString ssid, String proxy) {\n\t\treturn false;\n\t}", "@javax.annotation.Nullable\n @ApiModelProperty(value = \"Set the HTTP proxy server.\")\n @JsonProperty(JSON_PROPERTY_HTTP_PROXY)\n @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)\n\n public String getHttpProxy() {\n return httpProxy;\n }", "public interface IProxySettings\n{\n /**\n * @return The proxy type to be used. May not be <code>null</code>.\n */\n @Nonnull\n Proxy.Type getProxyType ();\n\n /**\n * @return The proxy host name of IP address. May be <code>null</code> if\n * proxy type is DIRECT.\n */\n @Nullable\n String getProxyHost ();\n\n /**\n * @return The proxy port for this HTTP proxy type. Should be &gt; 0. May be\n * &le; 0 if the proxy type is DIRECT.\n */\n int getProxyPort ();\n\n /**\n * @return The proxy user name. May be <code>null</code>.\n */\n @Nullable\n String getProxyUserName ();\n\n default boolean hasProxyUserName ()\n {\n return StringHelper.hasText (getProxyUserName ());\n }\n\n /**\n * @return The proxy password for the provided user. May be <code>null</code>.\n * Note: an empty password may be valid. Only <code>null</code>\n * indicates \"no password\".\n */\n @Nullable\n String getProxyPassword ();\n\n default boolean hasProxyPassword ()\n {\n return getProxyPassword () != null;\n }\n\n /**\n * Check if hostname and port match the ones from the provided\n * {@link InetSocketAddress}.\n *\n * @param aAddr\n * The address to compare with. May be <code>null</code>.\n * @return <code>true</code> if the unresolved hostname and the port match.\n */\n default boolean hasInetSocketAddress (@Nullable final InetSocketAddress aAddr)\n {\n return aAddr != null && EqualsHelper.equals (aAddr.getHostString (), getProxyHost ()) && getProxyPort () == aAddr.getPort ();\n }\n\n /**\n * Check if these settings have the provided socket address.\n *\n * @param aAddr\n * The socket address to compare to. May be <code>null</code>.\n * @return <code>true</code> if the proxy type is DIRECT and the address is\n * <code>null</code>, or if the object is of type\n * {@link InetSocketAddress} and the values match.\n * @see #hasInetSocketAddress(InetSocketAddress)\n */\n boolean hasSocketAddress (@Nullable SocketAddress aAddr);\n\n /**\n * @return A non-<code>null</code> {@link Proxy} instance. Only uses proxy\n * host and port.\n * @see #getProxyHost()\n * @see #getProxyPort()\n */\n @Nonnull\n default Proxy getAsProxy ()\n {\n return getAsProxy (true);\n }\n\n /**\n * @param bResolveHostname\n * <code>true</code> to resolve host names (needed in production) or\n * <code>false</code> to not resolve them (mainly for testing\n * purposes). This flag has no impact if the proxy type is DIRECT.\n * @return A non-<code>null</code> {@link Proxy} instance. Only uses proxy\n * host and port.\n * @see #getProxyHost()\n * @see #getProxyPort()\n */\n @Nonnull\n Proxy getAsProxy (boolean bResolveHostname);\n\n /**\n * @return The {@link PasswordAuthentication} instances matching the\n * credentials contained in this object or <code>null</code> if no\n * username is present.\n */\n @Nullable\n default PasswordAuthentication getAsPasswordAuthentication ()\n {\n // If no user name is set, no Authenticator needs to be created\n if (!hasProxyUserName ())\n return null;\n\n final String sProxyPassword = getProxyPassword ();\n // Constructor does not take null password!\n return new PasswordAuthentication (getProxyUserName (),\n sProxyPassword == null ? ArrayHelper.EMPTY_CHAR_ARRAY : sProxyPassword.toCharArray ());\n }\n}", "Stub.Proxy(IBinder ibinder)\n\t\t{\n\t\t\tmRemote = ibinder;\n\t\t// 2 4:aload_0 \n\t\t// 3 5:aload_1 \n\t\t// 4 6:putfield #19 <Field IBinder mRemote>\n\t\t// 5 9:return \n\t\t}" ]
[ "0.7316964", "0.69322246", "0.6760077", "0.66733783", "0.66198987", "0.6077304", "0.6036444", "0.60234904", "0.59137875", "0.58927524", "0.5876768", "0.5870317", "0.5850671", "0.57788306", "0.57332647", "0.5706414", "0.56884027", "0.56578964", "0.5652404", "0.56401217", "0.56379646", "0.56266284", "0.55849266", "0.55753696", "0.55753696", "0.5566822", "0.55491626", "0.55485535", "0.5547014", "0.5542674", "0.5542563", "0.5542563", "0.55414575", "0.55250984", "0.55243677", "0.55221653", "0.5494692", "0.54939175", "0.54229224", "0.5415306", "0.53912807", "0.538591", "0.53762853", "0.53672355", "0.536527", "0.53604984", "0.5354264", "0.53454876", "0.534511", "0.5302195", "0.5262876", "0.52595687", "0.52422196", "0.52407616", "0.5230703", "0.52286345", "0.52262866", "0.5214209", "0.52121544", "0.5192542", "0.51843244", "0.5181696", "0.51599926", "0.5148909", "0.5133442", "0.5128987", "0.5110007", "0.51068395", "0.5106579", "0.50920194", "0.50772566", "0.50599587", "0.505014", "0.50475705", "0.50455695", "0.50446594", "0.5034748", "0.50231695", "0.5013882", "0.49998346", "0.49960867", "0.49919322", "0.497763", "0.4971265", "0.49661583", "0.4965391", "0.49535164", "0.4917144", "0.49118716", "0.48925892", "0.48908955", "0.48905692", "0.48850447", "0.48718163", "0.48606527", "0.48606265", "0.48597223", "0.48416087", "0.48272052", "0.48270106" ]
0.77704704
0
Method to set the proxy Scheme
public void setProxyScheme(java.lang.String newProxyScheme) { System.out.println("Scheme: " + newProxyScheme); proxyScheme = newProxyScheme; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.lang.String getProxyScheme()\r\n {\r\n return proxyScheme;\r\n }", "public void setHttpProxyHost(String host);", "public void setProxy(Proxy proxy) {\n\t\tthis.proxy = proxy;\n\t}", "public void setHttpProxyPort(int port);", "protected static void setProxyLocation(URI proxyLocation) {\n Program.proxyLocation = proxyLocation;\n Program.proxyLocationSet = true;\n }", "public ProxySettings(Proxy proxy)\n {\n this(proxy, null, null);\n }", "public void setProxyHost(java.lang.String newProxyHost)\r\n {\r\n System.out.println(\"Host: \" + newProxyHost);\r\n proxyHost = newProxyHost;\r\n }", "public void initProxy() {\n\n System.setProperty(\"http.proxyHost\", \"199.101.97.159\"); // set proxy server\n System.setProperty(\"http.proxyPort\", \"60099\"); // set proxy port\n //System.setProperty(\"http.proxyUser\", authUser);\n //System.setProperty(\"http.proxyPassword\", authPassword);\n Authenticator.setDefault(\n new Authenticator() {\n @Override\n public PasswordAuthentication getPasswordAuthentication() {\n return new PasswordAuthentication(\n authUser, authPassword.toCharArray());\n }\n }\n );\n }", "public void setProxyRealm(java.lang.String newProxyRealm)\r\n {\r\n System.out.println(\"Realm: \" + newProxyRealm);\r\n proxyRealm = newProxyRealm;\r\n }", "Proxy getProxy();", "public void applyWebProxySettings() {\n boolean settingsChanged = false;\n boolean enablingProxy = false;\n Properties sysprops = System.getProperties();\n if (proxyHost != null) {\n settingsChanged = true;\n if (proxyHost.length() != 0) {\n traceSettingInfo();\n enablingProxy = true;\n sysprops.put(\"http.proxyHost\", proxyHost);\n String portString = Integer.toString(proxyPort);\n sysprops.put(\"http.proxyPort\", portString);\n sysprops.put(\"https.proxyHost\", proxyHost);\n sysprops.put(\"https.proxyPort\", portString);\n sysprops.put(\"ftp.proxyHost\", proxyHost);\n sysprops.put(\"ftp.proxyPort\", portString);\n if (nonProxyHosts != null) {\n sysprops.put(\"http.nonProxyHosts\", nonProxyHosts);\n sysprops.put(\"https.nonProxyHosts\", nonProxyHosts);\n sysprops.put(\"ftp.nonProxyHosts\", nonProxyHosts);\n }\n if(proxyUser!=null) {\n sysprops.put(\"http.proxyUser\", proxyUser);\n sysprops.put(\"http.proxyPassword\", proxyPassword);\n }\n } else {\n log(\"resetting http proxy\", Project.MSG_VERBOSE);\n sysprops.remove(\"http.proxyHost\");\n sysprops.remove(\"http.proxyPort\");\n sysprops.remove(\"http.proxyUser\");\n sysprops.remove(\"http.proxyPassword\");\n sysprops.remove(\"https.proxyHost\");\n sysprops.remove(\"https.proxyPort\");\n sysprops.remove(\"ftp.proxyHost\");\n sysprops.remove(\"ftp.proxyPort\");\n }\n }\n\n //socks\n if (socksProxyHost != null) {\n settingsChanged = true;\n if (socksProxyHost.length() != 0) {\n enablingProxy = true;\n sysprops.put(\"socksProxyHost\", socksProxyHost);\n sysprops.put(\"socksProxyPort\", Integer.toString(socksProxyPort));\n if (proxyUser != null) {\n //this may be a java1.4 thingy only\n sysprops.put(\"java.net.socks.username\", proxyUser);\n sysprops.put(\"java.net.socks.password\", proxyPassword);\n }\n\n } else {\n log(\"resetting socks proxy\", Project.MSG_VERBOSE);\n sysprops.remove(\"socksProxyHost\");\n sysprops.remove(\"socksProxyPort\");\n sysprops.remove(\"java.net.socks.username\");\n sysprops.remove(\"java.net.socks.password\");\n }\n }\n\n\n //for Java1.1 we need to tell the system that the settings are new\n if (settingsChanged &&\n JavaEnvUtils.isJavaVersion(JavaEnvUtils.JAVA_1_1)) {\n legacyResetProxySettingsCall(enablingProxy);\n }\n }", "public void setProxyPort(String newProxyPort)\r\n {\r\n proxyPort = newProxyPort;\r\n }", "public void setProxyHost(String proxyHost) {\n\t proxyHandler.setProxyHost(proxyHost);\n \n if ((proxyHost != null) && (proxyHost.length() > 1)) {\n isProxyActivated.set(true);\n } \n resetChain();\n\t}", "public Proxy(){\n\t\tthis.useProxy = false;\n\t\tthis.host = null;\n\t\tthis.port = -1;\n\t}", "protected void setProxiedClient(URL paramURL, String paramString, int paramInt, boolean paramBoolean) throws IOException {\n/* 143 */ this.delegate.setProxiedClient(paramURL, paramString, paramInt, paramBoolean);\n/* */ }", "protected boolean legacyResetProxySettingsCall(boolean setProxy) {\n System.getProperties().put(\"http.proxySet\", new Boolean(setProxy).toString());\n try {\n Class c = Class.forName(\"sun.net.www.http.HttpClient\");\n Method reset = c.getMethod(\"resetProperties\", null);\n reset.invoke(null, null);\n return true;\n }\n catch (ClassNotFoundException cnfe) {\n return false;\n }\n catch (NoSuchMethodException e) {\n return false;\n }\n catch (IllegalAccessException e) {\n return false;\n }\n catch (InvocationTargetException e) {\n return false;\n }\n }", "protected void setProxiedClient(URL paramURL, String paramString, int paramInt) throws IOException {\n/* 127 */ this.delegate.setProxiedClient(paramURL, paramString, paramInt);\n/* */ }", "public void setProxyHost(String hostname) {\n proxyHost = hostname;\n }", "public void setDefaultProxyConfig(ProxyConfig config);", "private void setInternalProxy(SimpleClientHttpRequestFactory requestFactory) {\n\t\tif (PAYASIA_MIND_PROXY_ENABLED_FOR_DEV) {\n\t\t\tProxy proxy = new Proxy(Type.HTTP, new InetSocketAddress(\n\t\t\t\t\tPAYASIA_MIND_PROXY_HOSTNAME, PAYASIA_MIND_PROXY_PORT));\n\t\t\trequestFactory.setProxy(proxy);\n\t\t}\n\t}", "public ProxyConfig createProxyConfig();", "public void setProxyPort(int newProxyPort)\r\n {\r\n System.out.println(\"Port: \" + newProxyPort);\r\n proxyPort = \"\" + newProxyPort;\r\n }", "private static void doSwitchScheme(SchemeType schemeType) {\n// Logger.debug(\"SCOPE -> doSwitchScheme\");\n\n // If ReverseProxy module is NOT enabled and https.port property is not configured...\n // Stop switching process between HTTP and HTTPS\n String httpsPort = Play.configuration.getProperty(\"https.port\");\n if (!reverseProxyEnabled && httpsPort == null) {\n Http.Request.current().secure = false;\n return;\n }\n\n // Continue switching process between HTTP and HTTPS\n switchScheme(schemeType);\n }", "void setProxyConnectionState(ProxyConnectionState proxyConnectionState) {\n this.proxyConnectionState = proxyConnectionState;\n }", "public void setSocksProxyHost(String host) {\n this.socksProxyHost = host;\n }", "public void setProxyUser(String proxyUser) {\n this.proxyUser = proxyUser;\n }", "@Test\r\n public void testSetProxy() {\r\n // Not required\r\n }", "@Override\n\tpublic boolean gcSetAutoBackupProxy(BluetoothDevice device, int port, byte security,\n\t\t\tString ssid, String proxy) {\n\t\treturn false;\n\t}", "@Override\r\n public String getScheme() {\r\n return scheme;\r\n }", "public void setProxyPswd(java.lang.String newProxyPswd)\r\n {\r\n proxyPswd = newProxyPswd;\r\n }", "public String getHttpProxyHost();", "public void setProxyHost(String proxyHost) {\n this.proxyHost = proxyHost;\n }", "public void setUriScheme(java.lang.Short uriScheme) {\r\n this.uriScheme = uriScheme;\r\n }", "public void setProxyPort(int proxyPort) {\n this.proxyPort = proxyPort;\n }", "public void setProxyPort(int proxyPort) {\n this.proxyPort = proxyPort;\n }", "@Override\n public String getScheme() {\n return this.scheme;\n }", "public void setScheme(String newValue);", "private boolean saveBoshProxySettings()\n {\n Object sType = spinnerType.getSelectedItem();\n String type = (sType == null) ? NONE : sType.toString();\n\n String boshUrl = ViewUtil.toString(boshURL);\n String host = ViewUtil.toString(proxyHost);\n String port = ViewUtil.toString(proxyPort);\n String userName = ViewUtil.toString(proxyUserName);\n String password = ViewUtil.toString(proxyPassword);\n\n String accPrefix = mAccountUuid + \".\";\n ConfigurationService configSrvc = ProtocolProviderActivator.getConfigurationService();\n configSrvc.setProperty(accPrefix + ProtocolProviderFactory.PROXY_TYPE, type);\n jbrReg.setProxyType(type);\n\n switch (type) {\n case BOSH:\n if (boshUrl == null) {\n aTalkApp.showToastMessage(R.string.plugin_proxy_BOSHURL_NULL);\n return false;\n }\n configSrvc.setProperty(accPrefix + ProtocolProviderFactory.BOSH_URL, boshUrl);\n jbrReg.setBoshUrl(boshUrl);\n\n boolean isHttpProxy = cbHttpProxy.isChecked();\n configSrvc.setProperty(accPrefix + ProtocolProviderFactory.BOSH_PROXY_HTTP_ENABLED, isHttpProxy);\n jbrReg.setBoshHttpProxyEnabled(isHttpProxy);\n\n // Continue with proxy settings checking if BOSH HTTP Proxy is enabled\n if (!isHttpProxy)\n break;\n case HTTP:\n case SOCKS4:\n case SOCKS5:\n if ((host == null) || (port == null)) {\n aTalkApp.showToastMessage(R.string.plugin_proxy_HOST_PORT_NULL);\n return false;\n }\n break;\n case NONE:\n default:\n break;\n }\n\n // value if null will remove the parameter from DB\n configSrvc.setProperty(accPrefix + ProtocolProviderFactory.PROXY_ADDRESS, host);\n jbrReg.setProxyAddress(host);\n\n configSrvc.setProperty(accPrefix + ProtocolProviderFactory.PROXY_PORT, port);\n jbrReg.setProxyPort(port);\n\n configSrvc.setProperty(accPrefix + ProtocolProviderFactory.PROXY_USERNAME, userName);\n jbrReg.setProxyUserName(userName);\n\n configSrvc.setProperty(accPrefix + ProtocolProviderFactory.PROXY_PASSWORD, password);\n jbrReg.setProxyPassword(password);\n\n // remove obsolete setting from DB - to be remove on later version (>2.0.4)\n configSrvc.setProperty(accPrefix + ProtocolProviderFactory.IS_USE_PROXY, null);\n\n AccountPreferenceFragment.setUncommittedChanges();\n return true;\n }", "public void setProxyPort(String proxyPort) {\n this.proxyPort = proxyPort;\n }", "@Override\n public void setServerProxy(IServerProxy theProxy) {\n assert theProxy != null;\n m_theProxy = theProxy;\n }", "private final static void setup() {\r\n\r\n supportedSchemes = new SchemeRegistry();\r\n\r\n // Register the \"http\" and \"https\" protocol schemes, they are\r\n // required by the default operator to look up socket factories.\r\n SocketFactory sf = PlainSocketFactory.getSocketFactory();\r\n supportedSchemes.register(new Scheme(\"http\", sf, 80));\r\n sf = SSLSocketFactory.getSocketFactory();\r\n supportedSchemes.register(new Scheme(\"https\", sf, 80));\r\n\r\n // prepare parameters\r\n HttpParams params = new BasicHttpParams();\r\n HttpProtocolParams.setVersion(params, HttpVersion.HTTP_1_1);\r\n HttpProtocolParams.setContentCharset(params, \"UTF-8\");\r\n HttpProtocolParams.setUseExpectContinue(params, true);\r\n HttpProtocolParams.setHttpElementCharset(params, \"UTF-8\");\r\n HttpProtocolParams.setUserAgent(params, \"Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-CN; rv:1.9) Gecko/2008052906 Firefox/3.0\");\r\n defaultParameters = params;\r\n }", "public final ListS3 setProxyHost(final String proxyHost) {\n properties.put(PROXY_HOST_PROPERTY, proxyHost);\n return this;\n }", "public interface IProxySettings\n{\n /**\n * @return The proxy type to be used. May not be <code>null</code>.\n */\n @Nonnull\n Proxy.Type getProxyType ();\n\n /**\n * @return The proxy host name of IP address. May be <code>null</code> if\n * proxy type is DIRECT.\n */\n @Nullable\n String getProxyHost ();\n\n /**\n * @return The proxy port for this HTTP proxy type. Should be &gt; 0. May be\n * &le; 0 if the proxy type is DIRECT.\n */\n int getProxyPort ();\n\n /**\n * @return The proxy user name. May be <code>null</code>.\n */\n @Nullable\n String getProxyUserName ();\n\n default boolean hasProxyUserName ()\n {\n return StringHelper.hasText (getProxyUserName ());\n }\n\n /**\n * @return The proxy password for the provided user. May be <code>null</code>.\n * Note: an empty password may be valid. Only <code>null</code>\n * indicates \"no password\".\n */\n @Nullable\n String getProxyPassword ();\n\n default boolean hasProxyPassword ()\n {\n return getProxyPassword () != null;\n }\n\n /**\n * Check if hostname and port match the ones from the provided\n * {@link InetSocketAddress}.\n *\n * @param aAddr\n * The address to compare with. May be <code>null</code>.\n * @return <code>true</code> if the unresolved hostname and the port match.\n */\n default boolean hasInetSocketAddress (@Nullable final InetSocketAddress aAddr)\n {\n return aAddr != null && EqualsHelper.equals (aAddr.getHostString (), getProxyHost ()) && getProxyPort () == aAddr.getPort ();\n }\n\n /**\n * Check if these settings have the provided socket address.\n *\n * @param aAddr\n * The socket address to compare to. May be <code>null</code>.\n * @return <code>true</code> if the proxy type is DIRECT and the address is\n * <code>null</code>, or if the object is of type\n * {@link InetSocketAddress} and the values match.\n * @see #hasInetSocketAddress(InetSocketAddress)\n */\n boolean hasSocketAddress (@Nullable SocketAddress aAddr);\n\n /**\n * @return A non-<code>null</code> {@link Proxy} instance. Only uses proxy\n * host and port.\n * @see #getProxyHost()\n * @see #getProxyPort()\n */\n @Nonnull\n default Proxy getAsProxy ()\n {\n return getAsProxy (true);\n }\n\n /**\n * @param bResolveHostname\n * <code>true</code> to resolve host names (needed in production) or\n * <code>false</code> to not resolve them (mainly for testing\n * purposes). This flag has no impact if the proxy type is DIRECT.\n * @return A non-<code>null</code> {@link Proxy} instance. Only uses proxy\n * host and port.\n * @see #getProxyHost()\n * @see #getProxyPort()\n */\n @Nonnull\n Proxy getAsProxy (boolean bResolveHostname);\n\n /**\n * @return The {@link PasswordAuthentication} instances matching the\n * credentials contained in this object or <code>null</code> if no\n * username is present.\n */\n @Nullable\n default PasswordAuthentication getAsPasswordAuthentication ()\n {\n // If no user name is set, no Authenticator needs to be created\n if (!hasProxyUserName ())\n return null;\n\n final String sProxyPassword = getProxyPassword ();\n // Constructor does not take null password!\n return new PasswordAuthentication (getProxyUserName (),\n sProxyPassword == null ? ArrayHelper.EMPTY_CHAR_ARRAY : sProxyPassword.toCharArray ());\n }\n}", "public void setProxyPort(int port) {\n proxyPort = port;\n }", "public void setProxyUser(String proxyUser) {\n\t proxyHandler.setProxyUser(proxyUser);\n\t}", "public void setProxyBaseUrl(String baseURL) {\n this.proxyBaseUrl = baseURL;\n }", "public java.lang.String getProxyRealm()\r\n {\r\n return proxyRealm;\r\n }", "public void setProxyPassword(String proxyPassword) {\n\t proxyHandler.setProxyPassword(proxyPassword);\n\t}", "public Proxy getProxy() {\n return proxy;\n }", "public void setProxyServer(String proxyServer) {\n this.proxyServer = proxyServer;\n }", "static void saveProxyConfig(final String proxyUrl) {\r\n\t\tAppPreferences.setUrlProxy(proxyUrl);\r\n\t}", "public void setProxyAddress(String proxyAddress) {\n this.proxyAddress = proxyAddress;\n }", "public int getHttpProxyPort();", "public MyProxyLogon() {\n super();\n host = System.getenv(\"MYPROXY_SERVER\");\n if (host == null) {\n host = \"myproxy.teragrid.org\";\n }\n String portString = System.getenv(\"MYPROXY_SERVER_PORT\");\n if (portString != null) {\n port = Integer.parseInt(portString);\n }\n username = System.getProperty(\"user.name\");\n }", "private void setResolverAsGoProxy(ArtifactoryManager artifactoryClient) throws Exception {\n String rtUrl = PackageManagerUtils.createArtifactoryUrlWithCredentials(artifactoryClient.getUrl(), resolverUsername, resolverPassword, ARTIFACTORY_GO_API + resolutionRepository);\n String proxyValue = rtUrl + \",\" + GOPROXY_VCS_FALLBACK;\n env.put(GOPROXY_ENV_VAR, proxyValue);\n }", "private void setHttpclientProxy(DefaultHttpClient httpClient) {\r\n Proxy proxy = ProxyProvider.getProxy();\r\n String proxyUser = ProxyProvider.getProxyUserName();\r\n String proxyPwd = ProxyProvider.getProxyUserPassword();\r\n // set by other components like tSetProxy\r\n if (proxy != null) {\r\n\r\n final HttpHost httpHost = new HttpHost(((InetSocketAddress) proxy.address()).getHostName(),\r\n ((InetSocketAddress) proxy.address()).getPort());\r\n // Sets usage of HTTP proxy\r\n httpClient.getParams().setParameter(ConnRoutePNames.DEFAULT_PROXY, httpHost);\r\n\r\n // Sets proxy authentication, if credentials were provided\r\n // TODO Because the proxy of get accesToken can't support authentication. remove this ?\r\n if (proxyUser != null && proxyPwd != null) {\r\n httpClient.getCredentialsProvider().setCredentials(new AuthScope(httpHost),\r\n new UsernamePasswordCredentials(proxyUser, proxyPwd));\r\n }\r\n\r\n }\r\n\r\n }", "String getHttpProxyHost();", "public interface ProxyConnector {\n\n /**\n * Comprueba que se cumplan los requisitos para la conexi&oacute;n con el servicio proxy.\n * @throws IOException Cuando ocurre alg&uacute;n error en la comprobaci&oacute;n.\n */\n void init() throws IOException;\n\n /**\n * Comprueba si el servicio configurado pertenece a un proxy compatible.\n * @return {@code true} si el proxy configurado es compatible, {@code false} en caso contrario.\n * @throws IOException Cuando se produce un error al conectarse al proxy.\n */\n boolean isCompatibleService() throws IOException;\n\n /**\n * Indica si el servicio de Portafirmas correspondiente a este conector requiere un proceso\n * de login previo.\n * @return {@code true} si el servicio requiere login, {@code false} en caso contrario.\n */\n boolean needLogin();\n\n /**\n * Solicita el acceso para el usuario.\n * @return Respuesta a la petici&oacute;n con el token de acceso.\n * @throws Exception Cuando ocurre un error en la comunicaci&oacute;n.\n */\n RequestResult loginRequest() throws Exception;\n\n /**\n * Envia el token de acceso firmado al servidor para validar el acceso del usuario.\n * @param pkcs1 Firma PKCS#1 del token de acceso.\n * @param cert Certificado usado para firmar.\n * @return @code true} si el acceso se completo correctamente, {@code false} en caso contrario.\n * @throws Exception Cuando ocurre un error en la comunicaci&oacute;n.\n */\n boolean tokenValidation(byte[] pkcs1, String cert) throws Exception;\n\n /**\n * Env&aacute;a una solicitud de cierre de sesi&oacute;n.\n * @throws Exception Cuando se produce un error en la comunicaci&oacute;n.\n */\n void logoutRequest() throws Exception;\n\n /**\n * Obtiene la peticiones de firma. Las peticiones devueltas deben cumplir\n * las siguientes condiciones:\n * <ul>\n * <li>Estar en el estado se&ntilde;alado (unresolved, signed o rejected).</li>\n * <li>Que todos los documentos que contiene se tengan que firmar con los\n * formatos de firma indicados (s&oacute;lo si se indica alguno)</li>\n * <li>Que las solicitudes cumplan con los filtros establecidos. Estos\n * filtros tendran la forma: key=value</li>\n * </ul>\n * @param signRequestState Estado de las peticiones que se desean obtener.\n * @param filters\n * Listado de filtros que deben cumplir las peticiones\n * recuperadas. Los filtros soportados son:\n * <ul>\n * <li><b>orderAscDesc:</b> con valor \"asc\" para que sea orden\n * ascendente en la consulta, en cualquier otro caso ser&aacute;\n * descendente</li>\n * <li><b>initDateFilter:</b> fecha de inicio de las peticiones</li>\n * <li><b>endDateFilter:</b> fecha de fin de las peticiones</li>\n * <li><b>orderAttribute:</b> par&aacute;metro para ordenar por\n * una columna de la petici&oacute;n</li>\n * <li><b>searchFilter:</b> busca la cadena introducida en\n * cualquier texto de la petici&oacute;n (asunto, referencia,\n * etc)</li>\n * <li><b>labelFilter:</b> texto con el nombre de una etiqueta.\n * Filtra las peticiones en base a esa etiqueta, ej: \"IMPORTANTE\"\n * </li>\n * <li><b>applicationFilter:</b> texto con el identificador de\n * una aplicaci&oacute;n. Filtra las peticiones en base a la\n * aplicaci&oacute;n, ej: \"SANCIONES\"</li>\n * </ul>\n * @param numPage N&uacute;mero de p&aacute;gina del listado.\n * @param pageSize N&uacute;mero de peticiones por p&aacute;gina.\n * @return Lista de peticiones de firma\n * @throws SAXException\n * Si el XML obtenido del servidor no puede analizarse\n * @throws IOException\n * Si ocurre un error de entrada / salida\n */\n PartialSignRequestsList getSignRequests(\n String signRequestState, String[] filters, int numPage, int pageSize)\n throws SAXException, IOException;\n\n /** Inicia la pre-firma remota de las peticiones.\n * @param request Petici&oacute;n de firma.\n * @return Prefirmas de las peticiones enviadas.\n * @throws IOException Si ocurre algun error durante el tratamiento de datos.\n * @throws CertificateEncodingException Si no se puede obtener la codificaci&oacute;n del certificado.\n * @throws SAXException Si ocurren errores analizando el XML de respuesta. */\n TriphaseRequest[] preSignRequests(SignRequest request) throws IOException,\n CertificateException,\n SAXException;\n\n /**\n * Inicia la post-firma remota de las peticiones.\n *\n * @param requests\n * Peticiones a post-firmar\n * @return Listado con el resultado de la operaci&oacute;n de firma de cada\n * petici&oacute;n.\n * @throws IOException\n * Si ocurre algun error durante el proceso\n * @throws CertificateEncodingException\n * Cuando el certificado est&aacute; mal codificado.\n * @throws SAXException\n * Si ocurren errores analizando el XML de respuesta\n */\n RequestResult postSignRequests(TriphaseRequest[] requests) throws IOException,\n CertificateEncodingException, SAXException;\n\n /**\n * Obtiene los datos de un documento.\n *\n * @param requestId\n * Identificador de la petici&oacute;n.\n * @return Datos del documento.\n * @throws SAXException\n * Cuando se encuentra un XML mal formado.\n * @throws IOException\n * Cuando existe alg&uacute;n problema en la lectura/escritura\n * de XML o al recuperar la respuesta del servidor.\n */\n RequestDetail getRequestDetail(String requestId) throws SAXException, IOException;\n\n /**\n * Obtiene el listado de aplicaciones para las que hay peticiones de firma.\n * @return Configuracion de aplicaci&oacute;n.\n * @throws SAXException\n * Cuando se encuentra un XML mal formado.\n * @throws IOException\n * Cuando existe alg&uacute;n problema en la lectura/escritura\n * de XML o al recuperar la respuesta del servidor.\n */\n AppConfiguration getApplicationList()\n throws SAXException, IOException;\n\n /**\n * Rechaza las peticiones de firma indicadas.\n *\n * @param requestIds\n * Identificadores de las peticiones de firma que se quieren\n * rechazar.\n * @return Resultado de la operacion para cada una de las peticiones de\n * firma.\n * @throws SAXException\n * Si el XML obtenido del servidor no puede analizarse\n * @throws IOException\n * Si ocurre un error de entrada / salida\n */\n RequestResult[] rejectRequests(String[] requestIds,\n String reason) throws SAXException, IOException;\n\n /** Obtiene la previsualizaci&oacute;n de un documento.\n * @param documentId Identificador del documento.\n * @param filename Nombre del fichero.\n * @param mimetype MIME-Type del documento.\n * @return Datos del documento.\n * @throws IOException Cuando existe alg&uacute;n problema en la lectura/escritura\n * de XML o al recuperar la respuesta del servidor. */\n DocumentData getPreviewDocument(String documentId,\n String filename,\n String mimetype) throws IOException;\n\n /** Obtiene la previsualizaci&oacute;n de una firma.\n * @param documentId Identificador del documento.\n * @param filename Nombre del fichero.\n * @return Datos del documento.\n * @throws IOException Cuando existe alg&uacute;n problema en la lectura/escritura\n * de XML o al recuperar la respuesta del servidor. */\n DocumentData getPreviewSign(String documentId,\n String filename) throws IOException;\n\n /** Obtiene la previsualizaci&oacute;n de un informe de firma.\n * @param documentId Identificador del documento.\n * @param filename Nombre del fichero.\n * @param mimetype MIME-Type del documento.\n * @return Datos del documento.\n * @throws IOException Cuando existe alg&uacute;n problema en la lectura/escritura\n * de XML o al recuperar la respuesta del servidor. */\n DocumentData getPreviewReport(String documentId,\n String filename, String mimetype) throws IOException;\n\n /**\n * Aprueba peticiones de firma (les da el visto bueno).\n *\n * @param requestIds\n * Identificador de las peticiones.\n * @return Resultado de la operaci&oacute;n.\n * @throws SAXException\n * Cuando se encuentra un XML mal formado.\n * @throws IOException\n * Cuando existe alg&uacute;n problema en la lectura/escritura\n * de XML o al recuperar la respuesta del servidor.\n */\n RequestResult[] approveRequests(String[] requestIds) throws SAXException, IOException;\n\n /**\n * Indica si el conector soporta las funciones de notificaci&oacute;n.\n * @return {@code true} si se soportan las notificaciones, {@code false} en caso contrario.\n */\n boolean isNotificationsSupported();\n\n /**\n * Da de alta en el sistema de notificaciones.\n * @param token\n * \t\t\tToken de registro en GCM.\n * @param device\n * \t\t\tIdentificador de dispositivo.\n * @param certB64\n * \t\t\tCertificado en base 64 del usuario.\n * @return Resultado del proceso de alta en el sistema de notificaciones.\n * \t\t\tIndica\n * @throws SAXException\n * Cuando se encuentra un XML mal formado.\n * @throws IOException\n * Cuando existe alg&uacute;n problema en la lectura/escritura\n * de XML o al recuperar la respuesta del servidor.\n */\n NotificationState signOnNotificationService(\n String token, String device, String certB64)\n throws SAXException, IOException;\n\n\n}", "public void setProxyPassword(String proxyPassword) {\n this.proxyPassword = proxyPassword;\n }", "public void setProxyPassword(String proxyPassword) {\n this.proxyPassword = proxyPassword;\n }", "public final GetHTTP setProxyHost(final String proxyHost) {\n properties.put(PROXY_HOST_PROPERTY, proxyHost);\n return this;\n }", "public java.lang.String getProxyHost()\r\n {\r\n return proxyHost;\r\n }", "public ClientBuilder proxy(@Nullable Proxy proxy) {\n this.proxy = proxy;\n return this;\n }", "public void setProxyName(java.lang.String newProxyName)\r\n {\r\n System.out.println(\"Name: \" + newProxyName);\r\n proxyName = newProxyName;\r\n }", "public String getScheme() {\n return scheme;\n }", "public String getScheme() {\n return scheme;\n }", "public String getScheme() {\n return scheme;\n }", "public final GetHTTP setProxyPort(final String proxyPort) {\n properties.put(PROXY_PORT_PROPERTY, proxyPort);\n return this;\n }", "public void unsetProxy() {\n remote.setProxy(null);\n }", "public String getProxyHost() {\n return proxyHost;\n }", "public String getSocksProxy()\n {\n return socksProxy;\n }", "int getHttpProxyPort();", "public void setProtocol(String protocol) {\n m_Protocol = protocol;\n }", "protected static void setProxyPassphrase(String passphrase) {\n Program.proxyPassphrase = passphrase;\n }", "public void setHost(String host);", "protected static void setProxyUsername(String username) {\n Program.proxyUsername = username;\n proxyUsernameSet = true;\n }", "public Builder scheme(String scheme) {\n this.scheme = scheme;\n return this;\n }", "@javax.annotation.Nullable\n @ApiModelProperty(value = \"Set the HTTP proxy server.\")\n @JsonProperty(JSON_PROPERTY_HTTP_PROXY)\n @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)\n\n public String getHttpProxy() {\n return httpProxy;\n }", "public Proxy getProxy(){\n mode = COMMAND_MODE;\n pack();\n show();\n return proxy;\n }", "public String getScheme( ) {\n\t\treturn scheme;\n\t}", "@Override\n\t\tpublic String getScheme() {\n\t\t\treturn null;\n\t\t}", "public Object setConstraints(Object proxy) {\n storedProxy = proxy;\n if (setConstraintsTrap != null) {\n throw setConstraintsTrap;\n }\n\treturn storedProxy = super.setConstraints(proxy);\n }", "void setSocketFactory(SocketFactory socketFactory);", "public HDInsightSparkActivity setProxyUser(Object proxyUser) {\n this.proxyUser = proxyUser;\n return this;\n }", "public void setTrustStore(String trustStoreLocation) {\n if (!complete) {\n this.trustStoreLocation = trustStoreLocation;\n } else {\n log.warn(\"Connection Descriptor setter used outside of factory.\");\n }\n }", "public String getScheme() {\n return m_scheme;\n }", "public Builder setScheme(java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n scheme_ = value;\n bitField0_ |= 0x00000001;\n onChanged();\n return this;\n }", "@Nonnull\n public String getProxyHost() {\n return proxyHost;\n }", "@Override\n protected URLConnection openConnection(URL url, Proxy proxy) throws IOException {\n\n final HttpsURLConnectionImpl httpsURLConnection = (HttpsURLConnectionImpl) super.openConnection(url, proxy);\n if (\"artisan.okta.com\".equals(url.getHost()) && \"/home/amazon_aws/0oad7khqw5gSO701p0x7/272\".equals(url.getPath())) {\n\n return new URLConnection(url) {\n @Override\n public void connect() throws IOException {\n httpsURLConnection.connect();\n }\n\n public InputStream getInputStream() throws IOException {\n byte[] content = IOUtils.toByteArray(httpsURLConnection.getInputStream());\n String contentAsString = new String(content, \"UTF-8\");\n\n //System.out.println(\"########################## got stream content ##############################\");\n //System.out.println(contentAsString);\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n //contentAsString = contentAsString.replaceAll(\",\\\"ENG_ENABLE_SCRIPT_INTEGRITY\\\"\", \"\"); // nested SRIs?\n baos.write(contentAsString.replaceAll(\"integrity ?=\", \"integrity.disabled=\").getBytes(\"UTF-8\"));\n return new ByteArrayInputStream(baos.toByteArray());\n }\n\n public OutputStream getOutputStream() throws IOException {\n return httpsURLConnection.getOutputStream();\n }\n\n };\n\n } else {\n return httpsURLConnection;\n }\n }", "public ProxySelector proxySelector() {\n return proxySelector;\n }", "public void setScheme(String p_scheme) throws MalformedURIException {\n if (p_scheme == null) {\n throw new MalformedURIException(\n \"Cannot set scheme from null string!\");\n }\n if (!isConformantSchemeName(p_scheme)) {\n throw new MalformedURIException(\"The scheme is not conformant.\");\n }\n \n m_scheme = p_scheme.toLowerCase();\n }", "public String getProxyAuthenticationRealm() {\n return this.proxyRealm;\n }", "@Override\n\tpublic String getScheme() {\n\t\treturn null;\n\t}", "public void addProxyConfig(ProxyConfig config);", "public static boolean initEdgeProxy() {\n /**\n * Configure default proxy based on environment, this can be programmatically overriden\n * for testing purposes\n */\n StringBuilder sb = new StringBuilder(\"restedge.default.proxy.\");\n if (Play.isDev()) {\n sb.append(\"dev\");\n } else if (Play.isTest()) {\n sb.append(\"stage\");\n } else if (Play.isProd()) {\n sb.append(\"prod\");\n }\n PROXIED_HOST = Play.application().configuration().getString(sb.toString());\n if (PROXIED_HOST.isEmpty()) {\n Logger.warn(\"DEFAULT PROXIED HOST IS EMPTY\");\n return false;\n }\n return true;\n }", "@HTTP(\n method = \"PUT\",\n path = \"/apis/config.openshift.io/v1/proxies/{name}\",\n hasBody = true\n )\n @Headers({ \n \"Content-Type: application/json\",\n \"Accept: */*\"\n })\n KubernetesCall<Proxy> replaceProxy(\n @Path(\"name\") String name, \n @Body Proxy body);", "public String getProxyPort()\r\n {\r\n return proxyPort;\r\n }", "public static void setProxyServer(final String serverURI, final String proxyURI) {\n if (StringUtils.isEmpty(serverURI)) {\n return;\n }\n final String propertyName = getProxyPropertyName(serverURI);\n if (StringUtils.isEmpty(proxyURI)) {\n PluginServiceProvider.getInstance().getPropertyService().removeProperty(propertyName);\n } else {\n PluginServiceProvider.getInstance().getPropertyService().setProperty(propertyName, proxyURI);\n }\n }", "public void setGateway(AGateway gateway)\r\n/* 21: */ {\r\n/* 22:41 */ this.gateway = gateway;\r\n/* 23: */ }", "@HTTP(\n method = \"PUT\",\n path = \"/apis/config.openshift.io/v1/proxies/{name}\",\n hasBody = true\n )\n @Headers({ \n \"Content-Type: application/json\",\n \"Accept: */*\"\n })\n KubernetesCall<Proxy> replaceProxy(\n @Path(\"name\") String name, \n @Body Proxy body, \n @QueryMap ReplaceProxy queryParameters);" ]
[ "0.7499494", "0.6539101", "0.65336597", "0.63364726", "0.63031936", "0.6203743", "0.6203457", "0.6167715", "0.6047571", "0.60266495", "0.60011464", "0.5996011", "0.5976235", "0.5975219", "0.5957993", "0.59172124", "0.58795714", "0.5877596", "0.5866885", "0.58256954", "0.5784039", "0.57677364", "0.57543916", "0.5736097", "0.5734877", "0.56996304", "0.5659937", "0.5646912", "0.5609501", "0.5601144", "0.55893636", "0.55569506", "0.55314153", "0.55216557", "0.55216557", "0.5506626", "0.5501778", "0.5481528", "0.5479364", "0.5477247", "0.54552764", "0.5445242", "0.5442825", "0.54310536", "0.5426003", "0.5412922", "0.5406921", "0.5397532", "0.5388975", "0.53857476", "0.53745306", "0.53595036", "0.53593", "0.5358505", "0.5356285", "0.535619", "0.53544337", "0.5345109", "0.53445834", "0.53445834", "0.5321884", "0.5301139", "0.52888626", "0.52666944", "0.5255164", "0.5255164", "0.5255164", "0.5249819", "0.5237613", "0.52187014", "0.5213008", "0.5207095", "0.52070946", "0.5198852", "0.5186099", "0.5161471", "0.5157937", "0.5148557", "0.51469517", "0.5140696", "0.513885", "0.5135155", "0.51330465", "0.51200306", "0.511767", "0.5117452", "0.51116717", "0.5110896", "0.51101077", "0.5084713", "0.50808257", "0.5077683", "0.50698185", "0.50663745", "0.5062431", "0.5032382", "0.5023666", "0.5011607", "0.50046015", "0.4999032" ]
0.77648824
0
Method to set the successfule operation
protected void setSuccess(boolean newSuccess) { success = newSuccess; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setSuccess(boolean success) {\n this.success = success;\n }", "public void setSuccess(boolean success) {\n this.success = success;\n }", "public void setSuccess(boolean success) {\n logger.info(Thread.currentThread().getStackTrace()[1].getMethodName());\n logger.debug(\"Setting success to -> \"+ success);\n this.success = success;\n }", "public void setOperationSuccess(boolean value) {\n this.operationSuccess = value;\n }", "public void setSuccess(boolean value) {\r\n this.success = value;\r\n }", "private void setSuccess(boolean value) {\n \n success_ = value;\n }", "private void setSuccess(boolean value) {\n \n success_ = value;\n }", "private void setSuccess(boolean value) {\n \n success_ = value;\n }", "public void setSuccess(boolean success);", "@Override\n public void markSuccess() {\n }", "@Override\n public void onSetSuccess() {\n }", "@Override\n public void onSetSuccess() {\n }", "public void setAsSuccessful_OK(){\n setStatus(200);\n }", "public void setSuccess(final boolean value)\n\t{\n\t\tsetSuccess( getSession().getSessionContext(), value );\n\t}", "public Builder setSuccess(boolean value) {\n \n success_ = value;\n onChanged();\n return this;\n }", "public void setSuccessProperty(String successProperty) {\n\t\tthis.successProperty = successProperty;\n\t\tthis.handleConfig(\"successProperty\", successProperty);\n\t}", "public void setSuccess(final Boolean value)\n\t{\n\t\tsetSuccess( getSession().getSessionContext(), value );\n\t}", "public void setActionSuccess(boolean actionSuccess)\n {\n m_actionSuccess = actionSuccess;\n }", "@Override\n\t\t\t\t\t\t\t\t\t\tpublic void onSuccess() {\n\n\t\t\t\t\t\t\t\t\t\t}", "public ChannelProgressivePromise setSuccess()\r\n/* 41: */ {\r\n/* 42: 73 */ return setSuccess(null);\r\n/* 43: */ }", "public void setIsSuccess(boolean value) {\n this.isSuccess = value;\n }", "public void setIsSuccess(boolean isSuccess) {\r\n this.isSuccess = isSuccess;\r\n }", "public Builder setSuccess(boolean value) {\n copyOnWrite();\n instance.setSuccess(value);\n return this;\n }", "public Builder setSuccess(boolean value) {\n copyOnWrite();\n instance.setSuccess(value);\n return this;\n }", "public Builder setSuccess(boolean value) {\n copyOnWrite();\n instance.setSuccess(value);\n return this;\n }", "public void setSuccess(final SessionContext ctx, final Boolean value)\n\t{\n\t\tsetProperty(ctx, SUCCESS,value);\n\t}", "boolean getSuccess();", "boolean getSuccess();", "boolean getSuccess();", "boolean getSuccess();", "public void setIsSuccess(Integer isSuccess) {\n this.isSuccess = isSuccess;\n }", "@Override\n public void onSuccess() {\n }", "@Override\n public void onSuccess() {\n }", "@Override\n public void onSuccess() {\n }", "@Override\n public void onSuccess() {\n }", "@Override\n public void onSuccess() {\n }", "private void clearSuccess() {\n \n success_ = false;\n }", "private void clearSuccess() {\n \n success_ = false;\n }", "private void clearSuccess() {\n \n success_ = false;\n }", "@Override\n public void onSuccess() {\n }", "@Override\n\tpublic void onSuccess() {\n\n\t}", "@Override\n public void onSuccess() {\n }", "@Override\n public void onSuccess() {\n }", "@Override\n\t\tpublic boolean isSuccess() {\n\t\t\treturn false;\n\t\t}", "public boolean patenteSuccess() {\n return this.success;\n }", "void setOk();", "public Boolean getSuccess() {\n\t\treturn success;\n\t}", "public ChannelProgressivePromise setSuccess(Void result)\r\n/* 46: */ {\r\n/* 47: 78 */ super.setSuccess(result);\r\n/* 48: 79 */ return this;\r\n/* 49: */ }", "public int getSuccess() {\n return success;\n }", "public void reportSuccess() {\n Crashlytics.logBreadcrumb(\"MuunLockOverlay: reportSuccess\");\n\n pinInput.setSuccess();\n }", "private boolean setSuccess0(V result)\r\n/* 407: */ {\r\n/* 408:494 */ if (isDone()) {\r\n/* 409:495 */ return false;\r\n/* 410: */ }\r\n/* 411:498 */ synchronized (this)\r\n/* 412: */ {\r\n/* 413:500 */ if (isDone()) {\r\n/* 414:501 */ return false;\r\n/* 415: */ }\r\n/* 416:503 */ if (result == null) {\r\n/* 417:504 */ this.result = SUCCESS;\r\n/* 418: */ } else {\r\n/* 419:506 */ this.result = result;\r\n/* 420: */ }\r\n/* 421:508 */ if (hasWaiters()) {\r\n/* 422:509 */ notifyAll();\r\n/* 423: */ }\r\n/* 424: */ }\r\n/* 425:512 */ return true;\r\n/* 426: */ }", "@Override\n public void onSucceed(Object valor) {\n }", "@Override\n public void onSuccess(Boolean result) {\n\n }", "protected void executionSuccess() {\n this.isUndoable = true;\n }", "public void setSuccess(final SessionContext ctx, final boolean value)\n\t{\n\t\tsetSuccess( ctx,Boolean.valueOf( value ) );\n\t}", "public void setResult() {\n }", "void setTransactionSuccessful();", "public void setOnSuccessEvent(SuccessEvent e) {\n successEvent = e;\n }", "public void setSuccessIndicator(boolean value) {\n this.successIndicator = value;\n }", "public boolean isSuccess() {\r\n return success;\r\n }", "public boolean isSuccess() {\r\n return success;\r\n }", "@Override\r\n\t\t\t\t\t\t\t\tpublic void onSuccess(\r\n\t\t\t\t\t\t\t\t\t\tResultadoActualizacionEntidad result) {\n\t\t\t\t\t\t\t\t\tvista.getBotonGuardar().setEnabled(false);\r\n\t\t\t\t\t\t\t\t\tvista.deshabilitarInputText();\r\n\t\t\t\t\t\t\t\t\tvista.getBotonCancelar().setText(\"Aceptar\");\r\n\t\t\t\t\t\t\t\t}", "public boolean isSuccess()\r\n {\r\n return success;\r\n }", "private void success() {\n showMessage(\"Congratulations!\", \"success\");\n }", "public boolean getSuccess() {\n return success_;\n }", "public boolean getSuccess() {\n return success_;\n }", "public boolean getSuccess() {\n return success_;\n }", "public boolean getSuccess() {\n return success_;\n }", "public boolean getSuccess() {\n return success_;\n }", "@Override\n\tpublic void finishSuccess() {\n\t\tSystem.err.println(\"finishSuccess\");\n\n\t}", "public boolean isSuccess() {\n return success;\n }", "public boolean isSuccess() {\n return success;\n }", "public boolean isSuccess() {\n return success;\n }", "public boolean getSuccess() {\n return instance.getSuccess();\n }", "public boolean getSuccess() {\n return instance.getSuccess();\n }", "public boolean getSuccess() {\n return instance.getSuccess();\n }", "@Override\n public void success(String data) {\n }", "void showSuccess();", "@Override\n\tpublic void endSuccess() {\n\t\t\n\t}", "public boolean isSuccess();", "public boolean isSuccess();", "public MissionGenericResponseSuccess() {\n super(null);\n }", "protected void undoSuccess() {\n this.isRedoable = true;\n this.isUndoable = false;\n }", "@Override\n public void onSuccess() {\n login_success = true;\n showInfoAndGoto();\n }", "public void onSuccess(Boolean arg0) {\n\t\t\t\t\t\tMessageBox.info(\"Hotovo\",\"plán v době svátků odebrán\",null);\n\t\t\t\t\t}", "@Override\n public void onSuccess(Void unused) {\n Snackbar.make(save, R.string.sucessfull_update, BaseTransientBottomBar.LENGTH_SHORT).show();\n }", "public void setIfsuccess(Integer ifsuccess) {\n this.ifsuccess = ifsuccess;\n }", "@Override\n\t\t\tpublic void onSuccess() {\n\t\t\t\tToast.makeText(MainActivity.this, \"submit success\", Toast.LENGTH_LONG).show();\n\t\t\t}", "@Override\n public int getStatus() {\n return this.SUCCESS;\n }", "public void onSuccess(Object result) {\n\t\t}", "public void onSuccess(Object result) {\n\t\t}", "public void onSuccess(Object result) {\n\t\t}", "@Override\n\t\t\tpublic void onSuccess(Void result) {\n\t\t\t}", "@Override\n\t\t\tpublic void onSuccess(Void result) {\n\t\t\t}", "@Override\n\t\t\tpublic void onSuccess(Void result) {\n\t\t\t}", "@Override\n\t\t\t\t\tpublic void onSuccess(Object t) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tJSONObject jsonObject = new JSONObject(t.toString());\n\t\t\t\t\t\t\tString code = JsonGetInfo.getJsonString(jsonObject,\n\t\t\t\t\t\t\t\t\t\"code\");\n\t\t\t\t\t\t\tString msg = JsonGetInfo.getJsonString(jsonObject,\n\t\t\t\t\t\t\t\t\t\"msg\");\n\t\t\t\t\t\t\tif (!\"\".equals(msg)) {\n\t\t\t\t\t\t\t\tToast.makeText(SaveReceipptActivity.this, msg,\n\t\t\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (\"1\".equals(code)) {\n\t\t\t\t\t\t\t\tsetResult(1);\n\t\t\t\t\t\t\t\tfinish();\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t} catch (JSONException e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tsuper.onSuccess(t);\n\t\t\t\t\t}", "@Override\n public void onSuccess(Boolean result)\n {\n if (result)\n {\n System.out.println(\"user info successfully updated!\");\n Window.alert(\"Successfully updated!\");\n }\n else\n {\n System.out.println(\"something is wrong on the server side!\");\n }\n }", "@Override\n public String execute() {\n return \"success\";\n }", "@Override\r\n public void onResult(boolean result)\r\n {\n if (result) {\r\n handler.sendMessage(handler.obtainMessage(SHOWTOAST, \"Set Successfully\"));\r\n } else {\r\n handler.sendMessage(handler.obtainMessage(SHOWTOAST, \"Set Fail\"));\r\n }\r\n }", "void success(T t);" ]
[ "0.783783", "0.783783", "0.78353775", "0.78307754", "0.7824747", "0.7821811", "0.7821811", "0.7821811", "0.7816848", "0.7683714", "0.7518789", "0.7518789", "0.72484547", "0.7198675", "0.71379024", "0.7104884", "0.7095194", "0.7084613", "0.7076164", "0.70723855", "0.7042585", "0.7012215", "0.69971657", "0.69971657", "0.69971657", "0.69728214", "0.6897072", "0.6897072", "0.6897072", "0.6897072", "0.68870044", "0.68681616", "0.68681616", "0.68681616", "0.68681616", "0.68396443", "0.68366563", "0.68366563", "0.68366563", "0.6807964", "0.6795939", "0.6788396", "0.6749991", "0.6699839", "0.6687906", "0.6677869", "0.6669799", "0.6663506", "0.66634", "0.66521543", "0.66327673", "0.6629877", "0.66149545", "0.6611021", "0.656228", "0.65553683", "0.65340215", "0.6507434", "0.6505035", "0.6479776", "0.6479776", "0.6454987", "0.6449672", "0.6436902", "0.6433144", "0.6433144", "0.6433144", "0.6433144", "0.64314455", "0.64210576", "0.6418764", "0.6418764", "0.6418764", "0.6404356", "0.6404356", "0.6404356", "0.6400388", "0.63971704", "0.6396492", "0.63855934", "0.63855934", "0.6368857", "0.63594276", "0.6331273", "0.6327745", "0.63270074", "0.6324778", "0.6296016", "0.6293679", "0.62844235", "0.62844235", "0.62844235", "0.627688", "0.627688", "0.627688", "0.6258015", "0.6246112", "0.6231778", "0.62303", "0.62211126" ]
0.7849598
0
This method will test the URL if it is success we will see the results in an output file. if it is a failure we will also see the results and what is required to pass through the proxy.
public void testURL() { BufferedReader in = null; PrintStream holdErr = System.err; String errMsg = ""; try { this.setSuccess(false); PrintStream fileout = new PrintStream(new FileOutputStream("testURLFile.html")); System.setErr(fileout); System.err.println("testURL() - entry"); System.getProperties().put("https.proxyHost", "" + this.getProxyHost()); System.getProperties().put("https.proxyPort", "" + this.getProxyPort()); System.getProperties().put("http.proxyHost", "" + this.getProxyHost()); System.getProperties().put("http.proxyPort", "" + this.getProxyPort()); // System.getProperties().put("java.protocol.handler.pkgs", "com.sun.net.ssl.internal.www.protocol"); URL url = new URL("http://www.msn.com"); CookieModule.setCookiePolicyHandler(null); // Accept all cookies // Set the Authorization Handler // This will let us know waht we are missing DefaultAuthHandler.setAuthorizationPrompter(this); HTTPConnection con = new HTTPConnection(url); con.setDefaultHeaders(new NVPair[] { new NVPair("User-Agent", "Mozilla/4.5")}); con.setDefaultAllowUserInteraction(false); HTTPResponse headRsp = con.Head(url.getFile()); HTTPResponse rsp = con.Get(url.getFile()); int sts = headRsp.getStatusCode(); if (sts < 300) { System.err.println("No authorization required to access " + url); this.setSuccess(true); } else if (sts >= 400 && sts != 401 && sts != 407) { System.err.println("Error trying to access " + url + ":\n" + headRsp); } else if (sts == 407) { System.err.println( "Error trying to access " + url + ":\n" + headRsp + "\n" + "<HTML><HEAD><TITLE>Proxy authorization required</TITLE></HEAD>"); this.setMessage("Error trying to access " + url + ":\n" + headRsp + "\n" + "Proxy authorization required"); } // Start reading input in = new BufferedReader(new InputStreamReader(rsp.getInputStream())); String inputLine; while ((inputLine = in.readLine()) != null) { System.err.println(inputLine); } // All Done - We were success in.close(); } catch (ModuleException exc) { errMsg = "ModuleException caught: " + exc; errMsg += "\nVerify Host Domain address and Port"; System.err.println(errMsg); } catch (ProtocolNotSuppException exc) { errMsg = "ProtocolNotSuppException caught: " + exc; errMsg += "\nVerify Host Domain address and Port"; System.err.println(errMsg); } catch (MalformedURLException exc) { errMsg = "MalformedURLException caught: " + exc; errMsg += "\nVerify Host Domain address and Port"; System.err.println(errMsg); } catch (FileNotFoundException exc) { errMsg = "FileNotFoundException caught: " + exc; errMsg += "\nVerify Host Domain address and Port"; System.err.println(errMsg); } catch (IOException exc) { errMsg = "IOException caught: " + exc; errMsg += "\nVerify Host Domain address and Port"; System.err.println(errMsg); } finally { System.err.println("testURL() - exit"); System.setErr(holdErr); if (in != null) { try { in.close(); // ENSURE we are CLOSED } catch (Exception exc) { // Do Nothing, It will be throwing an exception // if it cannot close the buffer } } this.setMessage(errMsg); System.gc(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean testConn(String URL)\n {\n\n if(TestHTTP.test(URL))\n \treturn true;\n else \n {\n \tlogfile.severe(URL+\" DOWN\");\n \treturn false;\n }\n }", "public static boolean saveToCache(String urlString) {\n\n try {\n int fileExtIndex = urlString.lastIndexOf(\".\");\n String fileExtTmp = urlString.substring(fileExtIndex);\n String fileName = urlString.substring(0, fileExtIndex);\n fileName = fileName.substring(fileName.indexOf('.') + 1);\n fileName = fileName.replace(\"/\", \"__\");\n fileName = fileName.replace('.', '_');\n\n if (fileExtTmp.contains(\"/\")) {\n fileExtTmp = fileExtTmp.replace(\"/\", \"__\");\n fileExtTmp = fileExtTmp.replace('.', '_');\n fileExtTmp += \".html\";\n }\n\n fileName = fileName + fileExtTmp;\n boolean cacheActive = true;\n File cacheFile = null;\n BufferedWriter cacheWriter = null;\n\n try {\n cacheFile = new File(\"cached/\" + fileName);\n cacheWriter = new BufferedWriter(new FileWriter(cacheFile));\n } catch (IOException e) {\n System.out.println(\"Couldn't cache: \" + fileName);\n cacheActive = false;\n } catch (NullPointerException e) { }\n\n URL remoteURL = new URL(urlString);\n\n HttpURLConnection proxyServerConnection = (HttpURLConnection) remoteURL.openConnection();\n proxyServerConnection.setRequestProperty(\"Content-Type\", \"application/x-www-form-urlencoded\");\n proxyServerConnection.setRequestProperty(\"Content-Language\", \"en-US\");\n proxyServerConnection.setUseCaches(false);\n proxyServerConnection.setDoOutput(true);\n\n BufferedReader proxyReader = new BufferedReader(new InputStreamReader(proxyServerConnection.getInputStream()));\n\n String line = \"HTTP/1.0 200 Ok\\n\" + \"Proxy-agent: ProxyServer/1.0\\n\" + \"\\r\\n\";\n Request.clientWriter.write(line);\n\n while ((line = proxyReader.readLine()) != null) {\n Request.clientWriter.write(line);\n if (cacheActive) {\n assert cacheWriter != null;\n cacheWriter.write(line);\n }\n }\n Request.clientWriter.flush();\n proxyReader.close();\n\n if (cacheActive) {\n assert cacheWriter != null;\n cacheWriter.flush();\n Proxy.addCachedPage(urlString, cacheFile);\n }\n\n if (cacheWriter != null) { cacheWriter.close(); }\n\n if (Request.clientWriter != null) { Request.clientWriter.close(); }\n\n } catch (Exception e) {\n return false;\n }\n return true;\n }", "private static String getHTTPResponse(URL url){\n\t\t\n\t\tStringBuilder response = new StringBuilder();\n\t\t\n\t\ttry{\n\t\t\tURLConnection connection = url.openConnection();\n\t\t\tBufferedReader res = new BufferedReader(new InputStreamReader(connection.getInputStream()));\n\t\t\tString responseLine;\n\t\t\t\n\t\t\twhile((responseLine = res.readLine()) != null)\n\t\t\t\tresponse.append(responseLine);\n\t\t\t\n\t\t\t\n\t\t}catch(Exception e){System.out.println(\"Error - wrong input or service down\");}\n\t\t\n\t\treturn response.toString();\n\t}", "private String verifyHttpProcess(String url) {\n synchronized (httpClient) {\n int statusCode = -1;\n try {\n GetMethod get = getCachedMethod(url);\n statusCode = httpClient.executeMethod(get);\n } catch (HttpException e1) {\n String msg = \"Unable to execute GET against the collaboration dataserver at \"\n + url;\n logger.error(msg, e1);\n setOffline(msg);\n } catch (IOException e2) {\n String msg = \"Unable to read the response from the collaboration dataserver at \"\n + url;\n logger.error(msg, e2);\n setOffline(msg);\n }\n\n if ((statusCode == HttpStatus.SC_OK) == false) {\n String msg = \"Dataserver not is not available - received status \"\n + statusCode;\n logger.error(msg);\n setOffline(msg);\n return null;\n } else {\n String urlConfig = \"sessionDataHttpURL : \" + url;\n setOnline(urlConfig);\n return urlConfig;\n }\n }\n }", "private String downloadURL(String url) {\n\t\ttry {\n\t\t\tHttpClient client = new DefaultHttpClient();\n\t\t\tHttpGet request = new HttpGet(url);\n\t\t\t// Get the response\n\t\t\tResponseHandler<String> responseHandler = new BasicResponseHandler();\n\t\t\tString response_str = client.execute(request, responseHandler);\n\t\t\treturn response_str;\n\n\t\t\t// Makes sure that the InputStream is closed after the app is\n\t\t\t// finished using it.\n\t\t} catch (IOException e) {\n\t\t\tLog.d(\"WL\", \"Error\");\n\t\t\te.printStackTrace();\n\t\t\treturn \"Error\";\n\t\t}\n\t}", "private static String getURL(String url) {\r\n\t\t//fixup the url\r\n\t\tURL address;\r\n\t\ttry {\r\n\t\t\taddress = new URL(url);\r\n\t\t}\r\n\t\tcatch (MalformedURLException e) {\r\n\t\t\tSystem.out.println(\"====>\" + e.getMessage());\r\n\t\t\treturn new String();\r\n\t\t}\r\n\t\t\r\n\t\t//make the hookup\r\n\t\tHttpURLConnection con;\r\n\t\ttry {\r\n\t\t\tcon = (HttpURLConnection) address.openConnection();\r\n\t\t}\r\n\t\tcatch(IOException e) {\r\n\t\t\tSystem.out.println(\"====>\" + e.getMessage());\r\n\t\t\treturn new String();\r\n\t\t}\r\n\r\n\t\t// optional default is GET\r\n\t\ttry {\r\n\t\t\tcon.setRequestMethod(\"GET\");\r\n\t\t}\r\n\t\tcatch (ProtocolException e) {\r\n\t\t\tSystem.out.println(\"====>\" + e.getMessage());\r\n\t\t\treturn new String();\r\n\t\t}\r\n\r\n\t\t//this executes the get? - maybe check with wireshark if ever important\r\n//\t\tint responseCode = 0; \r\n//\t\ttry {\r\n//\t\t\tresponseCode = con.getResponseCode();\r\n//\t\t}\r\n//\t\tcatch(IOException e) {\r\n//\t\t\tSystem.out.println(\"====>\" + e.getMessage());\r\n//\t\t\treturn new String();\r\n//\t\t}\r\n\t\t\r\n\t\t//TODO handle bad response codes\r\n\r\n\t\t//read the response\r\n\t\tStringBuffer response = new StringBuffer();\r\n\t\ttry {\r\n\t\t\tBufferedReader in = new BufferedReader(new InputStreamReader(con.getInputStream()));\r\n\t\t\tString inputLine = new String();\r\n\t\r\n\t\t\t//grab each line from the response\r\n\t\t\twhile ((inputLine = in.readLine()) != null) {\r\n\t\t\t\tresponse.append(inputLine);\r\n\t\t\t}\r\n\t\t\t//fix dangling\r\n\t\t\tin.close();\r\n\t\t}\r\n\t\tcatch(IOException e) {\r\n\t\t\tSystem.out.println(\"====>\" + e.getMessage());\r\n\t\t\treturn new String();\r\n\t\t}\r\n\t\t\r\n\t\t//convert to a string\r\n\t\treturn response.toString();\r\n\t}", "@Test\r\n public void incorrectUrlTest(){\r\n boolean noException = false;\r\n \r\n try {\r\n extractor = new HTMLExtractor(\"google.co.uk\");\r\n noException = true;\r\n } catch (IOException e) {\r\n // TODO Auto-generated catch block\r\n System.out.println(e.getMessage());\r\n }\r\n\r\n assertTrue(\"should not throw an exception\", noException);\r\n }", "private String downloadURL(String myurl) {\n\t\ttry {\n\t\t\tHttpClient client = new DefaultHttpClient();\n\t\t\tHttpGet request = new HttpGet(myurl);\n\t\t\t// Get the response\n\t\t\tResponseHandler<String> responseHandler = new BasicResponseHandler();\n\t\t\tString response_str = client.execute(request, responseHandler);\n\t\t\treturn response_str;\n\n\t\t\t// Makes sure that the InputStream is closed after the app is\n\t\t\t// finished using it.\n\t\t} catch (IOException e) {\n\t\t\tLog.d(\"WL\", \"Error\");\n\t\t\treturn \"Error\";\n\t\t}\n\t}", "@Test\r\n public void testInternetConnection(){\r\n CheckConnection checkConnection = new CheckConnection();\r\n checkConnection.checkURL();\r\n }", "@Test\r\n public void testInvalidURL() {\r\n String[] str = {\"curl\", \"http://www.ub.edu/gilcub/SIMPLE/simple.html\"};\r\n\r\n curl.run(str);\r\n assertTrue(ErrorHandler.checkIfErrorOccurred());\r\n assertEquals(\"invalid URL\\n\", Output.getLastPrinted());\r\n }", "public boolean downloadFile(String url)\n\t{\n\t\tString filepath=null;\n\t\t\n\t\tHttpClient httpClient=new HttpClient();\n\t\n\t\t//set overtime of request to http-5000ms\n\t\thttpClient.getHttpConnectionManager().getParams().setConnectionTimeout(5000);\n\t\t\n\t\tPostMethod postMethod=new PostMethod(url);\n\t\t//PostMethod postMethod=new PostMethod(\"http://weibo.com/\");\n\t\t//NameValuePair[] postData=new NameValuePair[2];\n\t\t//postData[0]=new NameValuePair(\"loginName\",\"379045776@qq.com\");\n\t\t//postData[1]=new NameValuePair(\"loginPswd\",\"iamyours\");\n\t\t//postMethod.addParameters(postData);\n\t\tint statusCode;\n\t\t/*try {\n\t\t\tstatusCode = httpClient.executeMethod(postMethod);\n\t\t} catch (HttpException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t} catch (IOException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}*/\n\t\t//build get method\n\t\t//GetMethod getMethod=new GetMethod(url);\n\t\t//set overtime of request to get-5000ms\n\t\t//getMethod.getParams().setParameter(HttpMethodParams.SO_TIMEOUT, 50000);\n\t\t//retry machine\n\t\t//getMethod.getParams().setParameter(HttpMethodParams.RETRY_HANDLER,new DefaultHttpMethodRetryHandler());\n\t\t//execute get request\n\t\tString[] li=null;\n\t\ttry\n\t\t{ \n\t\t statusCode=httpClient.executeMethod(postMethod);\n\t\t\t//judge status code\n\t\t\tif(statusCode!=HttpStatus.SC_OK)\n\t\t\t{\n\t\t\t\tSystem.err.println(\"Method failed:\"+postMethod.getStatusLine());\n\t\t\t\tfilepath=null;\n\t\t\t}\n\t\t //success, process the response froom http\n\t\t\tbyte[] responseBody=postMethod.getResponseBody();\n\t\t\tfilepath=\"test\\\\\"+getFileNameByUrl(url,postMethod.getResponseHeader(\"Content-Type\").getValue());\n\t\t\t\n\t\t\tString entity=new String(responseBody,\"UTF-8\");\n\t\t\tif(entity.indexOf(\"{\\\"pid\\\":\\\"pl_weibo_feedlist\\\"\")==-1)\n\t\t\t\treturn false;\n\t\t\tString feed_list=entity.substring(entity.indexOf(\"{\\\"pid\\\":\\\"pl_weibo_feedlist\\\"\"));\n\t\t \n feed_list=feed_list.substring(0,feed_list.indexOf(\")</script>\"));\n FeedList fl=JSON.parseObject(feed_list,FeedList.class);\n \n String aResult=fl.getHtml();\n /*\n String plun=fl.getHtml().toString();\n String[] l=plun.split(\"\\\" action-type=\\\"login\\\">评论\");\n li=new String[l.length-1];\n for(int i=0;i<l.length-1;i++)\n { \n \tli[i]=l[i].substring(l[i].lastIndexOf(\"<a href=\\\"\")+9);\n \tSystem.out.println(li[i]);\n }\n \n */\n \n \n\t\t\tsaveToLocal(aResult.getBytes(),filepath);\n\t\t}catch(HttpException e)\n\t\t{\n\t\t\t//proposal incorrect || content of response has erros\n\t\t\tSystem.out.println(\"Please check out your provided http address!\");\n\t\t\te.printStackTrace();\n\t\t}catch(IOException e)\n\t\t{\n\t\t\t//erros in your connection\n\t\t\te.printStackTrace();\n\t\t}finally\n\t\t{\n\t\t //release connection\n\t\t\t//getMethod.releaseConnection();\n\t\t\tpostMethod.releaseConnection();\n\t\t}\n\t\treturn true;\n\t}", "private static boolean testNotFound() {\r\n\t\t// use ExecutorService to manage threads\r\n\t\tExecutorService executor = Executors.newFixedThreadPool(1);\r\n\t\t\r\n\t\tlogger.finest(\"sending request\");\r\n\t\tURL url = urlList.get(0);\r\n\t\t\r\n\t\ttry {\r\n\t\t\tURL notFoundURL = new URL(url.getProtocol(), url.getHost(), url.getPort(), url.getFile() + \"random\");\r\n\t\t\tHttpClient client = new HttpClient(notFoundURL);\r\n\t\t\texecutor.execute(client);\r\n\t\t} catch (MalformedURLException e) {\r\n\t\t\tlogger.severe(\"problem formatting URL\");\r\n\t\t}\r\n\t\t\r\n\t\t// wait for test to finish\r\n\t\tlogger.finest(\"waiting for request to complete...\");\r\n\t\texecutor.shutdown(); \r\n\t\twhile (!executor.isTerminated())\r\n\t\t\tThread.yield(); // return the control to system\r\n\t\tlogger.finest(\"not found request completed\");\r\n\t\t\r\n\t\treturn true;\r\n\t}", "@Test\n public void oneRedirect() throws Exception {\n UrlPattern up1 = urlEqualTo(\"/\" + REDIRECT);\n stubFor(get(up1)\n .willReturn(aResponse()\n .withStatus(HttpServletResponse.SC_FOUND)\n .withHeader(\"Location\", wireMock.url(TEST_FILE_NAME))));\n\n UrlPattern up2 = urlEqualTo(\"/\" + TEST_FILE_NAME);\n stubFor(get(up2)\n .willReturn(aResponse()\n .withBody(CONTENTS)));\n\n Download t = makeProjectAndTask();\n t.src(wireMock.url(REDIRECT));\n File dst = newTempFile();\n t.dest(dst);\n execute(t);\n\n assertThat(dst).usingCharset(StandardCharsets.UTF_8).hasContent(CONTENTS);\n\n verify(1, getRequestedFor(up1));\n verify(1, getRequestedFor(up2));\n }", "public static void httpDownload(String url, FileOutputStream file) throws Exception {\r\n \t\tDefaultHttpClient client = new DefaultHttpClient();\r\n \t\tHttpResponse response = client.execute(new HttpGet(url));\r\n \t\tif(response.getStatusLine().getStatusCode() < 400){\r\n \t\t\tBufferedOutputStream writer = null;\r\n \t\t\tBufferedInputStream reader = null;\r\n \t\t\ttry {\r\n \t\t\t\twriter = new BufferedOutputStream(file);\r\n \t\t\t\treader = new BufferedInputStream(response.getEntity().getContent());\r\n \r\n \t\t\t\tbyte[] buffer = new byte[BUF_SIZE];\r\n \t\t\t\tint bytesRead = reader.read(buffer);\r\n \r\n \t\t\t\twhile (bytesRead > 0) {\r\n \t\t\t\t\twriter.write(buffer, 0, bytesRead);\r\n \t\t\t\t\tbytesRead = reader.read(buffer);\r\n \t\t\t\t}\r\n \t\t\t} finally {\r\n \t\t\t\tif (writer != null) {\r\n \t\t\t\t\twriter.close();\r\n \t\t\t\t}\r\n \t\t\t\tif (reader != null) {\r\n \t\t\t\t\treader.close();\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t}\r\n \t}", "public static boolean downloadFile(String url, String destination) throws Exception {\n BufferedInputStream bi = null;\n BufferedOutputStream bo = null;\n File destfile;\n byte BUFFER[] = new byte[100];\n java.net.URL fileurl;\n URLConnection conn;\n fileurl = new java.net.URL(url);\n conn = fileurl.openConnection();\n long fullsize = conn.getContentLength();\n long onepercent = fullsize / 100;\n MessageFrame.setTotalDownloadSize(fullsize);\n bi = new BufferedInputStream(conn.getInputStream());\n destfile = new File(destination);\n if (!destfile.createNewFile()) {\n destfile.delete();\n destfile.createNewFile();\n }\n bo = new BufferedOutputStream(new FileOutputStream(destfile));\n int read = 0;\n int sum = 0;\n long i = 0;\n while ((read = bi.read(BUFFER)) != -1) {\n bo.write(BUFFER, 0, read);\n sum += read;\n i += read;\n if (i > onepercent) {\n i = 0;\n MessageFrame.setDownloadProgress(sum);\n }\n }\n bi.close();\n bo.close();\n MessageFrame.setDownloadProgress(fullsize);\n return true;\n }", "private String downloadUrl(String myUrl) throws IOException {\n InputStream is = null;\n\n try {\n URL url = new URL(myUrl);\n HttpURLConnection conn = (HttpURLConnection) url.openConnection();\n conn.setReadTimeout(10000 /* milliseconds */);\n conn.setConnectTimeout(15000 /* milliseconds */);\n conn.setRequestMethod(\"GET\");\n conn.setDoInput(true);\n // Starts the QUERY\n conn.connect();\n //int response = conn.getResponseCode();\n //Log.d(\"JSON\", \"The response is: \" + response);\n is = conn.getInputStream();\n\n // Convert the InputStream into a string\n return readIt(is);\n\n // Makes sure that the InputStream is closed after the app is\n // finished using it.\n } finally {\n if (is != null) {\n is.close();\n }\n }\n }", "public void run() {\n\t\t\t\tHttpURLConnection connection = null;\r\n\t\t\t\tStringBuilder response = new StringBuilder();\r\n\t\t\t\ttry{\r\n\t\t\t\t\tURL url = new URL(address);\r\n\t\t\t\t\tconnection = (HttpURLConnection) url.openConnection();\r\n\t\t\t\t\tconnection.setRequestMethod(\"GET\");\r\n\t\t\t\t\tconnection.setConnectTimeout(8000);\r\n\t\t\t\t\tconnection.setReadTimeout(8000);\r\n\t\t\t\t\tconnection.setDoInput(true);\r\n\t\t\t\t\t//connection.setDoOutput(true);\r\n\t\t\t\t\tint responseCode = connection.getResponseCode();\r\n\t\t\t\t\tLog.d(\"HttpUtil\", String.valueOf(responseCode));\r\n\t\t\t\t\tif(responseCode != 200){\r\n\t\t\t\t\t\tLog.d(\"HttpUtil\", \"Get Fail\");\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tInputStream in = connection.getInputStream();\r\n\t\t\t\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(in));\r\n\t\t\t\t\t\tString line;\r\n\t\t\t\t\t\twhile((line = reader.readLine()) != null){\r\n\t\t\t\t\t\t\tresponse.append(line);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tLog.d(\"HttpUtil\", \"Get Success\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(listener != null){\r\n\t\t\t\t\t\tlistener.onFinish(response.toString());\r\n\t\t\t\t\t}\r\n\t\t\t\t}catch(Exception e){\r\n\t\t\t\t\tif(listener != null){\r\n\t\t\t\t\t\tlistener.onError(e);\r\n\t\t\t\t\t}\r\n\t\t\t\t}finally{\r\n\t\t\t\t\tif(connection != null){\r\n\t\t\t\t\t\tconnection.disconnect();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}", "@Override\n\t\tpublic void run() {\n\t\t\ttry {\n\t\t\t\tProxy proxy = new Proxy(Proxy.Type.HTTP, new InetSocketAddress(\n\t\t\t\t\t\t\"proxy.iiit.ac.in\", 8080));\n\t\t\t\tURL url = new URL(url1);\n\t\t\t\tHttpURLConnection conn = (HttpURLConnection) url\n\t\t\t\t\t\t.openConnection(proxy);\n\t\t\t\tconn.setRequestMethod(\"GET\");\n\t\t\t\tconn.setRequestProperty(\"Accept\", \"application/json\");\n\n\t\t//\t\tif (conn.getResponseCode() != 200) {\n\t\t\t//\t\tthrow new RuntimeException(\"Failed : HTTP error code : \"\n\t\t\t//\t\t\t\t+ conn.getResponseCode());\n\t\t\t//\t}\n\n\t\t\t\t/*\n\t\t\t\t * BufferedReader br = new BufferedReader(new InputStreamReader(\n\t\t\t\t * (conn.getInputStream())));\n\t\t\t\t * \n\t\t\t\t * String output;\n\t\t\t\t * System.out.println(\"Output from Server .... \\n\"); while\n\t\t\t\t * ((output = br.readLine()) != null) {\n\t\t\t\t * System.out.println(output); }\n\t\t\t\t */\n\t\t\t\tlong tID = Thread.currentThread().getId();\n\t\t\t\tlong time = ManagementFactory.getThreadMXBean()\n\t\t\t\t\t\t.getThreadCpuTime(tID);\n\t\t\t\tSystem.out.println(\"My thread \" + tID + \" execution time: \"\n\t\t\t\t\t\t+ time + \" ns.\");\n\t\t\t\tsumTimes=sumTimes+time;\n\t\t\t\tconn.disconnect();\n\n\t\t\t} catch (MalformedURLException e) {\n\n\t\t\t\te.printStackTrace();\n\n\t\t\t} catch (IOException e) {\n\n\t\t\t\te.printStackTrace();\n\n\t\t\t} catch (Exception e) {\n\n\t\t\t\te.printStackTrace();\n\n\t\t\t}\n\n\t\t\t// long end_time = System.currentTimeMillis();\n\n\t\t\t// long difference = end_time-start_time;\n\t\t\t// System.out.println(\"Complete in \"+difference+\" ms.\");\n\t\t}", "@Override\n public void run() {\n try {\n ServiceInfo serviceInfo = this.getServiceStatus(url);\n this.saveServiceStatusInfo(serviceInfo);\n if(serviceInfo.getResponseTimeInMillis() > 200)\n log.warn(\"The service is taking too long to respond\");\n\n if(serviceInfo.getStatusCode()!=200)\n log.warn(\"The service did not respond OK\");\n\n\n } catch (IOException e) {\n log.error(\"Error while accessing the service\" ,e);\n }\n }", "@Test\n public void testManualTest()\n {\n\t UrlValidator urlVal = new UrlValidator(null, null, UrlValidator.ALLOW_ALL_SCHEMES);\n\t //sanity check\n\t ResultPair sane = new ResultPair(\"http://www.amazon.com\", true);\n\t collector.checkThat(sane.item, sane.valid, equalTo(urlVal.isValid(sane.item)));\n\t //test manualUrls\n\t for(ResultPair res : this.m_fileUrls)\n\t {\n\t\t collector.checkThat(res.item, res.valid, equalTo(urlVal.isValid(res.item)));\n\t }\n }", "void download(SearchResult result, String downloadPath);", "@Override\r\n protected void onPostExecute(String file_url) {\r\n System.out.println(\"Downloaded\");\r\n }", "public void receiveResultcheck_Remote_URL(\n com.xteam.tourismpay.PFTMXStub.Check_Remote_URLResponse result) {\n }", "private String downloadUrl(String myurl) throws IOException {\n InputStream is = null;\n // Only display the first 500 characters of the retrieved\n // web page content.\n int len = 500;\n\n try {\n URL url = new URL(myurl);\n HttpURLConnection conn = (HttpURLConnection) url.openConnection();\n conn.setReadTimeout(10000); /* milliseconds */\n conn.setConnectTimeout(15000);/* milliseconds */\n conn.setRequestMethod(\"GET\");\n conn.setDoInput(true);\n // Starts the query\n conn.connect();\n int response = conn.getResponseCode();\n Log.d(\"network\", \"The response is: \" + response);\n is = conn.getInputStream();\n\n // Convert the InputStream into a string\n String contentAsString = convertStreamToString(is);\n return contentAsString;\n\n // Makes sure that the InputStream is closed after the app is\n // finished using it.\n } finally {\n if (is != null) {\n is.close();\n }\n }\n }", "public void getInfoPage(URL urlLocation) throws RuntimeException\r\n {\r\n BufferedReader in = null;\r\n\r\n try\r\n {\r\n URL url = urlLocation;\r\n\r\n HTTPConnection con = getConnectionToURL(url);\r\n\r\n HTTPResponse headRsp = con.Head(url.getFile());\r\n HTTPResponse rsp = con.Get(url.getFile());\r\n\r\n int status = headRsp.getStatusCode();\r\n\r\n if (status < 300 && DEBUG)\r\n {\r\n System.out.println(\"No authorization required to access \" + url);\r\n }\r\n else if (status >= 400 && status != 401 && status != 407)\r\n {\r\n String errorMsg = \"Error trying to access \" + url + \":\\n\" + headRsp;\r\n if (DEBUG)\r\n {\r\n System.out.println(errorMsg);\r\n }\r\n }\r\n else\r\n { // Everything else\r\n String errorMsg = \"Access to URL \" + url + \"returned status = \" + status + \":\\n\" + headRsp;\r\n if (DEBUG)\r\n {\r\n System.out.println(errorMsg);\r\n }\r\n }\r\n in = new BufferedReader(new InputStreamReader(rsp.getInputStream()));\r\n String inputLine;\r\n\r\n while ((inputLine = in.readLine()) != null)\r\n {\r\n processHTMLLine(inputLine);\r\n if (DEBUG)\r\n {\r\n System.out.println(inputLine);\r\n }\r\n }\r\n\r\n }\r\n catch (Exception exc)\r\n {\r\n String errorMsg = \"GetPageInfo::getInfoPage(URL) Caught: \\n[\" + exc + \"]\";\r\n if (DEBUG)\r\n {\r\n System.out.println(errorMsg);\r\n }\r\n throw new RuntimeException(errorMsg);\r\n }\r\n }", "private String getResultByUrl(String url) {\r\n\r\n\t\tRequestConfig.Builder requestBuilder = RequestConfig.custom();\r\n\t\trequestBuilder = requestBuilder.setConnectTimeout(75000);\r\n\t\trequestBuilder = requestBuilder.setConnectionRequestTimeout(75000);\r\n\t\trequestBuilder.setSocketTimeout(75000);\r\n\r\n\t\tHttpClientBuilder builder = HttpClientBuilder.create();\r\n\t\tbuilder.setDefaultRequestConfig(requestBuilder.build());\r\n\t\tclient = builder.build();\r\n\r\n\t\trequest = new HttpGet(url);\r\n\t\trequest.addHeader(\"Accept\", \"application/json\");\r\n\r\n\t\tHttpResponse response = null;\r\n\t\tString r = \"\";\r\n\r\n\t\ttry {\r\n\t\t\tfor (int i = 0; i < 7; i++) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tSystem.out.println(\"Sending request: \" + url);\r\n\t\t\t\t\tresponse = client.execute(request);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t} catch (ConnectionPoolTimeoutException e) {\r\n\t\t\t\t\tSystem.out.println(\"Connection timeout. Trying again...\");\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tTimeUnit.SECONDS.sleep(10);\r\n\t\t\t\t\t} catch (InterruptedException ex) {\r\n\t\t\t\t\t\tex.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tSystem.out.println(\"Response Code : \"\r\n\t\t\t\t\t+ response.getStatusLine().getStatusCode());\r\n\r\n\t\t\tbr = new BufferedReader(new InputStreamReader(response.getEntity()\r\n\t\t\t\t\t.getContent()));\r\n\r\n\t\t\tStringBuffer result = new StringBuffer();\r\n\t\t\tString line = \"\";\r\n\t\t\twhile ((line = br.readLine()) != null) {\r\n\t\t\t\tresult.append(line);\r\n\t\t\t}\r\n\t\t\tSystem.out.println(result + \"\\n\");\r\n\t\t\ttry {\r\n\t\t\t\tTimeUnit.SECONDS.sleep(1);\r\n\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\tr = result.toString();\r\n\t\t\tGson gson = new GsonBuilder().setPrettyPrinting().create();\r\n\r\n\t\t\tJsonObject jsonResult = gson.fromJson(result.toString(),\r\n\t\t\t\t\tJsonObject.class);\r\n\t\t\tif (jsonResult.get(\"backoff\") != null) {\r\n\t\t\t\tint backoff = (jsonResult.get(\"backoff\")).getAsInt();\r\n\t\t\t\ttry {\r\n\t\t\t\t\tSystem.out.println(\"Received backoff. Waiting for \"\r\n\t\t\t\t\t\t\t+ backoff + \"seconds...\");\r\n\t\t\t\t\tTimeUnit.SECONDS.sleep(backoff + 5);\r\n\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn r;\r\n\t}", "@Override\n public boolean execute() {\n String url = \"\";\n String name, content;\n try {\n this.checkNumArgs();\n url = arguments.get(0);\n this.checkRedirectionParam();\n content = fetcher.getURLContent(url);\n name = getFileName(url);\n if (fs.getCurrWorkDir().findChild(name)!=null) {\n StandardError.displayError(\"cannot create \" + name+\" because \"\n + \" there already \"\n + \"exist file with this name\");\n return false;\n }\n // create file with the string from the input method and \n // file name then attach it to cwd\n File<String> file = new File<String>(name, content, \n this.fs.getCurrWorkDir());\n // check if the file is actually added\n if (fs.getCurrWorkDir().findChild(name)==null) {\n StandardError.displayError(\"cannot create \" + name+\" because \"\n + \"of the illegal\"\n + \"characters\");\n return false;\n }\n \n } catch (MalformedURLException e) {\n StandardError.displayError(url + \" is not a valid url\");\n return false;\n } catch (IOException e) {\n StandardError.displayError(\"an error occured when reading this url\");\n return false;\n } catch (InvalidArgumentSizeException e) {\n StandardError.displayError(\"get needs only the url as argument\");\n return false;\n } catch (CanNotRedirectException e) {\n StandardError.displayError(\"redirection params are wrong:\" \n + e.getMessage());\n return false;\n }\n return true;\n }", "@Test\r\n public void testAPIConnection() throws IOException {\r\n CheckConnection connection = new CheckConnection();\r\n connection.findRedirects(\"soccer\");\r\n }", "private static String executeRequest(String url) throws IOException {\n\n\t\tLog.d(RiotJsonRequest.class.getSimpleName() , url);\n\t\t\n\t\tSocket s = new Socket(IP, PORT);\n\t\tPrintStream ps = new PrintStream(s.getOutputStream());\n\t\t//Log.d(RiotJsonRequest.class.getSimpleName() , \"PS OPENED\");\n\t\tBufferedReader r = new BufferedReader(new InputStreamReader(\n\t\t\t\ts.getInputStream()));\n\t\t//Log.d(RiotJsonRequest.class.getSimpleName() , \"BR OPENED\");\n\t\tps.println(url);\n\t\t//Log.d(RiotJsonRequest.class.getSimpleName() , \"URL PRNTED\");\n\t\tString response = r.readLine();\n\t\t//Log.d(RiotJsonRequest.class.getSimpleName() , \"RESPONSE: \" + response);\n\t\treturn response;\n\n\t\t// boolean unsuccessful = true;\n\t\t// int tries = 0;\n\t\t// String response = \"\";\n\t\t// while(unsuccessful && tries != 3){\n\t\t// unsuccessful = false;\n\t\t// URL requestUrl = new URL(url);\n\t\t// HttpsURLConnection connection = (HttpsURLConnection)\n\t\t// requestUrl.openConnection();\n\t\t// try{\n\t\t// Log.d(RiotJsonRequest.class.getSimpleName() , url);\n\t\t// connection.setRequestMethod(\"GET\");\n\t\t// connection.getResponseCode();\n\t\t//\n\t\t// //connection.\n\t\t//\n\t\t// connection.connect();\n\t\t//\n\t\t//\n\t\t//\n\t\t//\n\t\t// //Needs error checking on connection\n\t\t//\n\t\t// InputStream in = new\n\t\t// BufferedInputStream(connection.getInputStream());\n\t\t// BufferedReader reader = new BufferedReader(new\n\t\t// InputStreamReader(in));\n\t\t// StringBuffer buffer = new StringBuffer();\n\t\t// String line;\n\t\t//\n\t\t// //reads response in and appends it to buffer\n\t\t// do{\n\t\t// line = reader.readLine();\n\t\t// buffer.append(line);\n\t\t// }while (line != null);\n\t\t//\n\t\t// //disconnects the HttpURLConnection so other requests can be made\n\t\t// connection.disconnect();\n\t\t// //Log.d(RiotJsonRequest.class.getSimpleName() , \"RECEIVED: \" +\n\t\t// buffer.toString());\n\t\t// response = buffer.toString();\n\t\t// }catch(Exception e){\n\t\t// String code = Integer.toString(connection.getResponseCode());\n\t\t// Log.d(RiotJsonRequest.class.getSimpleName() , \"CODE: \" + code);\n\t\t// if(code.equals(\"404\")){\n\t\t// return code;\n\t\t// }\n\t\t// unsuccessful = true;\n\t\t// tries++;\n\t\t// connection.disconnect();\n\t\t// connection = null;\n\t\t// requestUrl = null;\n\t\t// try {\n\t\t// Thread.sleep(1000);\n\t\t// } catch (InterruptedException e1) {\n\t\t// e1.printStackTrace();\n\t\t// }\n\t\t// }\n\t\t// }\n\t\t// return response;\n\t}", "@Test\r\n public void testValidURLtxtFile() {\r\n String[] str = {\"curl\", \"http://www.cs.cmu.edu/~spok/grimmtmp/073.txt\"};\r\n\r\n curl.run(str);\r\n assertFalse(ErrorHandler.checkIfErrorOccurred());\r\n assertTrue(mockFileSystem.getCurrentNode().getFile(\"073txt\") != null);\r\n }", "private static boolean exists(String URLName) {\n\t\ttry {\n\t\t\tProperties systemSettings = System.getProperties();\n\t\t\tsystemSettings.put(\"proxySet\", \"true\");\n\t\t\tsystemSettings.put(\"http.proxyHost\", \"proxy.mycompany.local\");\n\t\t\tsystemSettings.put(\"http.proxyPort\", \"80\");\n\n\t\t\tURL u = new URL(URLName);\n\t\t\tHttpURLConnection con = (HttpURLConnection) u.openConnection();\n\t\t\tsun.misc.BASE64Encoder encoder = new sun.misc.BASE64Encoder();\n\t\t\tString encodedUserPwd = encoder.encode(\"domain\\\\username:password\"\n\t\t\t\t\t.getBytes());\n\t\t\tcon.setRequestProperty(\"Proxy-Authorization\", \"Basic \"\n\t\t\t\t\t+ encodedUserPwd);\n\t\t\tcon.setRequestMethod(\"HEAD\");\n\t\t\treturn (con.getResponseCode() == HttpURLConnection.HTTP_OK);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\treturn false;\n\t\t}\n\t}", "private List<String> openUrlViaProxy(Proxy proxy, String apiurl)\n throws Exception {\n\n List<String> response = new ArrayList<>();\n URL url = new URL(apiurl);\n HttpURLConnection uc = (HttpURLConnection) url.openConnection(proxy);\n uc.connect();\n\n BufferedReader in = new BufferedReader(new InputStreamReader(\n uc.getInputStream()));\n\n String inputLine;\n while ((inputLine = in.readLine()) != null) {\n response.add(inputLine);\n }\n in.close();\n return response;\n }", "boolean hasDownloadResponse();", "public void receiveResultrayTraceURL(\n RayTracerStub.RayTraceURLResponse result\n ) {\n }", "String wget(String url);", "private InputStream downloadUrl(String urlString) throws IOException {\n \tSystem.out.println(\"Inside downloadURL\");\n URL url = new URL(urlString);\n HttpURLConnection conn = (HttpURLConnection) url.openConnection();\n \n conn.setReadTimeout(10000 /* milliseconds */);\n conn.setConnectTimeout(15000 /* milliseconds */);\n conn.setRequestMethod(\"GET\");\n conn.setDoInput(true);\n // Starts the query\n conn.connect();\n InputStream stream = conn.getInputStream();\n return stream;\n }", "@Test\n public void tooManyRedirects() throws Exception {\n UrlPattern up1 = urlPathEqualTo(\"/\" + REDIRECT);\n redirectWireMock.stubFor(get(up1)\n .withQueryParam(\"r\", matching(\"[0-9]+\"))\n .willReturn(aResponse()\n .withStatus(HttpServletResponse.SC_FOUND)\n .withTransformer(\"redirect\", \"redirects\", 51)));\n\n Download t = makeProjectAndTask();\n t.src(redirectWireMock.url(REDIRECT) + \"?r=52\");\n File dst = newTempFile();\n t.dest(dst);\n assertThatThrownBy(() -> execute(t))\n .isInstanceOf(WorkerExecutionException.class)\n .rootCause()\n .isInstanceOf(RedirectException.class)\n .hasMessage(\"Maximum redirects (50) exceeded\");\n }", "@Test\n public void readUrl() throws IOException {\n\n }", "public YadisResult discover(String url)\n {\n HttpClient client = new HttpClient();\n client.getParams().setParameter(\"http.protocol.max-redirects\",\n new Integer(_maxRedirects));\n client.getParams().setParameter(\"http.protocol.allow-circular-redirects\",\n Boolean.TRUE);\n client.getParams().setParameter(\"http.protocol.cookie-policy\",\n CookiePolicy.IGNORE_COOKIES);\n \n\n client.getParams().setSoTimeout(_socketTimeout);\n client.getHttpConnectionManager()\n .getParams().setConnectionTimeout(_connTimeout);\n \n // initialize the result\n YadisResult result = new YadisResult();\n \n try\n {\n YadisUrl yadisUrl = new YadisUrl(url);\n result.setYadisUrl(yadisUrl);\n \n // try to retrieve the Yadis Descriptor URL with a HEAD call first\n headXrdsUrl(client, yadisUrl, result);\n \n // fallback to the Yadis URL\n //if (result.getXrdsLocation() == null)\n // result.setXrdsLocation(yadisUrl.getUrl().toString(),\n // YadisResult.HEAD_INVALID_RESPONSE);\n \n getXrds(client, result, false);\n result.setStatus(YadisResult.OK);\n \n \n } catch (YadisException e)\n {\n result.setStatus(e.getStatusCode());\n result.setStatusMessage(e.getMessage());\n if (e.getCause() != null) result.setFailureCause(e.getCause());\n }\n \n return result;\n }", "public Boolean downloadResults(Job job) {\n if (job.getUwsJob() == null || job.getUwsJob().getResults() == null) {\n return false;\n }\n File results = new File(getFileDir(job), \"results.zip\");\n Boolean result;\n try {\n result = Toolbox.downloadFile(job.getUwsJob().getResultUrl(), results);\n ZipUtil.unpack(results, results.getParentFile());\n logger.info(\"results for job \" + job.getId() + \" downloaded\");\n } catch (Exception ex) {\n result = false;\n logger.log(Level.SEVERE, null, ex);\n }\n return result;\n }", "private boolean DownloadFile(String s, String name) {\n boolean success;\n try {\n new File(data_path).mkdirs();\n URL url = new URL(s);\n HttpURLConnection con = (HttpURLConnection) url.openConnection();\n con.setConnectTimeout(5000);\n InputStream is = con.getInputStream();\n BufferedReader br = new BufferedReader(new InputStreamReader(is));\n FileWriter fw = new FileWriter(data_path + name);\n PrintWriter pw = new PrintWriter(fw);\n String line;\n while ((line = br.readLine()) != null) {\n pw.println(line);\n }\n fw.close();\n br.close();\n success = true;\n } catch (MalformedURLException e) {\n return false;\n } catch (SocketTimeoutException e) {\n return false;\n } catch (IOException e) {\n return false;\n }\n return success;\n }", "@SuppressWarnings(\"unused\")\n private static boolean isURLExists(String urlName) throws Exception {\n // SSLContext sslcontext = SSLContext.getInstance(\"TLSv1\");\n //\n // sslcontext.init(null,\n // null,\n // null);\n // SSLSocketFactory noSSLv3Factory = new NoSSLv3Factory(sslcontext.getSocketFactory());\n //\n // HttpsURLConnection.setDefaultSSLSocketFactory(noSSLv3Factory);\n //\n // HttpsURLConnection con = (HttpsURLConnection) new URL(urlName).openConnection();\n //\n // HttpsURLConnection.setFollowRedirects(false);\n // con.setConnectTimeout(1000);\n // con.setReadTimeout(1000);\n // con.setRequestMethod(\"HEAD\");\n //\n // return con.getResponseCode() == HttpsURLConnection.HTTP_OK;\n\n // Runtime runtime = Runtime.getRuntime();\n // Process proc = runtime.exec(\"ping \" + urlName); //<- Try ping -c 1 www.serverURL.com\n // int mPingResult = proc.waitFor();\n // if (mPingResult == 0) {\n // Log.e(\"thanh.dao\", \"isURLExists: \" + true);\n // return true;\n // } else {\n // Log.e(\"thanh.dao\", \"isURLExists: \" + false);\n // return false;\n // }\n\n Jsoup.connect(urlName).timeout(CONNECT_TIMEOUT).get();\n return true;\n }", "private static boolean pingURL(String url, int timeout) {\n try {\n HttpURLConnection connection = (HttpURLConnection) new URL(url).openConnection();\n connection.setConnectTimeout(timeout);\n connection.setReadTimeout(timeout);\n connection.setRequestMethod(\"HEAD\");\n int responseCode = connection.getResponseCode();\n return (200 <= responseCode && responseCode <= 399);\n } catch (IOException exception) {\n return false;\n }\n }", "@Override\n protected String doInBackground(String... urls) {\n OkHttpClient client = new OkHttpClient();\n Request request =\n new Request.Builder()\n .url(urls[0])\n .build();\n Response response = null;\n try {\n response = client.newCall(request).execute();\n if (response.isSuccessful()) {\n return response.body().string();\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n return \"Download failed\";\n }", "@Test\r\n public void testValidURLhtmlFile() {\r\n String[] str = {\"curl\", \"http://omarmateen.me/experience.html\"};\r\n\r\n curl.run(str);\r\n assertFalse(ErrorHandler.checkIfErrorOccurred());\r\n assertTrue(mockFileSystem.getCurrentNode().getFile(\"experiencehtml\") != null);\r\n }", "public static void test(URL url, boolean readFromServer) throws Exception {\n TrustManager[] trustAllCerts = new TrustManager[] { new X509TrustManager() {\n @Override\n public java.security.cert.X509Certificate[] getAcceptedIssuers() {\n return null;\n }\n @Override\n public void checkClientTrusted(X509Certificate[] certs, String authType) {\n }\n @Override\n public void checkServerTrusted(X509Certificate[] certs, String authType) {\n }\n } };\n // Install the all-trusting trust manager\n final SSLContext sc = SSLContext.getInstance(\"TLS\");\n sc.init(null, trustAllCerts, new java.security.SecureRandom());\n HttpsURLConnection.setDefaultSSLSocketFactory(sc.getSocketFactory());\n // Create all-trusting host name verifier\n HostnameVerifier allHostsValid = (hostname, session) -> true;\n\n // Install the all-trusting host verifier\n HttpsURLConnection.setDefaultHostnameVerifier(allHostsValid);\n\n //URL url = new URL(\"https://www.google.com\");\n URLConnection con = url.openConnection();\n System.out.println(\"Connection background: \"+con.getClass().getName()+\" \"+url.getHost());\n\n if (readFromServer) {\n final Reader reader = new InputStreamReader(con.getInputStream());\n final BufferedReader br = new BufferedReader(reader);\n String line = \"\";\n while ((line = br.readLine()) != null) {\n System.out.println(line);\n }\n br.close();\n } /**/\n }", "static String getResponseFromHttpUrl(URL url) throws IOException {\n HttpURLConnection urlConnection = (HttpURLConnection) url.openConnection();\n try {\n InputStream in = urlConnection.getInputStream();\n\n Scanner scanner = new Scanner(in);\n scanner.useDelimiter(\"\\\\A\");\n\n boolean hasInput = scanner.hasNext();\n String response = null;\n if (hasInput) {\n response = scanner.next();\n }\n scanner.close();\n return response;\n } finally {\n urlConnection.disconnect();\n }\n }", "public static void httpDownload(String url, String destFile) throws Exception {\r\n \t\tFileOutputStream out = null;\r\n \t\ttry {\r\n \t\t\tout = new FileOutputStream(destFile);\r\n \t\t\thttpDownload(url, out);\r\n \r\n \t\t} finally {\r\n \t\t\tif (out != null) {\r\n \t\t\t\tout.close();\r\n \t\t\t}\r\n \t\t}\r\n \t}", "@Test\n public void TestFetchWebsite()\n {\n try\n {\n String content = WebsiteFetcher.FetchContent(\"https://www.wikipedia.org/\");\n assert(content != null);\n }\n catch (IOException ex)\n {\n assert(false);\n }\n }", "public static void connection(URL theUrl)\n\t{\n\t\ttry\n\t\t{\n\t\t\tInputStream is = theUrl.openStream();\n\t\t\tInputStreamReader isr = new InputStreamReader(is);\n\t\t\tBufferedReader br = new BufferedReader(isr);\n\t\t\tString theLine;\n\t\t\twhile((theLine = br.readLine()) != null)\n\t\t\t{\n\t\t\t\tSystem.out.println(theLine);\n\t\t\t}\n\t\t}\n\t\tcatch(IOException ex)\n\t\t{\n\t\t\tSystem.err.println(ex);\n\t\t}\t\n\t}", "@Override\n protected String doInBackground(String... urls) {\n try {\n return downloadUrl(urls[0]);\n } catch (IOException e) {\n return \"Unable to retrieve web page. URL may be invalid.\";\n }\n }", "@Override\n protected String doInBackground(String... urls) {\n try {\n return downloadUrl(urls[0]);\n } catch (IOException e) {\n return \"Unable to retrieve web page. URL may be invalid.\";\n }\n }", "@Override\n protected String doInBackground(String... urls) {\n try {\n return downloadUrl(urls[0]);\n } catch (IOException e) {\n return \"Unable to retrieve web page. URL may be invalid.\";\n }\n }", "@Override\n protected String doInBackground(String... urls) {\n try {\n return downloadUrl(urls[0]);\n } catch (IOException e) {\n return \"Unable to retrieve web page. URL may be invalid.\";\n }\n }", "@Override\n protected String doInBackground(String... urls) {\n try {\n return downloadUrl(urls[0]);\n } catch (IOException e) {\n return \"Unable to retrieve web page. URL may be invalid.\";\n }\n }", "@Override\n protected String doInBackground(String... urls) {\n try {\n return downloadUrl(urls[0]);\n } catch (IOException e) {\n return \"Unable to retrieve web page. URL may be invalid.\";\n }\n }", "@Override\n protected String doInBackground(String... urls) {\n try {\n return downloadUrl(urls[0]);\n } catch (IOException e) {\n return \"Unable to retrieve web page. URL may be invalid.\";\n }\n }", "@Override\n protected String doInBackground(String... urls) {\n try {\n return downloadUrl(urls[0]);\n } catch (IOException e) {\n return \"Unable to retrieve web page. URL may be invalid.\";\n }\n }", "@Override\n protected String doInBackground(String... urls) {\n try {\n return downloadUrl(urls[0]);\n } catch (IOException e) {\n return \"Unable to retrieve web page. URL may be invalid.\";\n }\n }", "@Override\n protected String doInBackground(String... urls) {\n try {\n return downloadUrl(urls[0]);\n } catch (IOException e) {\n return \"Unable to retrieve web page. URL may be invalid.\";\n }\n }", "static String download(String fileURL, String destinationDirectory, String downloadedFileName) throws IOException {\n URL url = new URL(fileURL);\r\n InputStream is = url.openStream();\r\n // Stream to the destionation file\r\n FileOutputStream fos;\r\n if (destinationDirectory == null) {// save to working folder\r\n fos = new FileOutputStream(downloadedFileName);\r\n } else {\r\n fos = new FileOutputStream(destinationDirectory + \"/\" + downloadedFileName);\r\n }\r\n // Read bytes from URL to the local file\r\n byte[] buffer = new byte[4096];\r\n int bytesRead = 0;\r\n\r\n System.out.print(\"Downloading \" + downloadedFileName);\r\n while ((bytesRead = is.read(buffer)) != -1) {\r\n System.out.print(\".\"); // Progress bar :)\r\n fos.write(buffer, 0, bytesRead);\r\n }\r\n System.out.println(\"done!\");\r\n\r\n // Close destination stream\r\n fos.close();\r\n // Close URL stream\r\n is.close();\r\n return downloadedFileName;\r\n }", "@Path(\"{url}\")\r\n @GET\r\n @Produces(MediaType.TEXT_PLAIN)\r\n public String getIt(@PathParam(\"url\") String url) throws SQLException {\r\n \t//make connection\r\n\t\turl = \"https://\"+url;\r\n \t\t\tJsoupConnection job =new JsoupConnection(url);\r\n \t\t\tDocument jSoupDoc = job.getDoc();\r\n \t\t\t\r\n \t\t\t//Parse\r\n \t\t\tParser par = new Parser(jSoupDoc);\r\n \t\t\tWebDataStructure wb = par.filterData();\r\n \t\t\tMySqlDataIngestion mysqling =new MySqlDataIngestion();\r\n \t\t\tmysqling.ingestData(wb);\r\n \t\t\t\r\n \t\t\t//lets return output\r\n return \"Inserted into Mysql Succesfully!!\";\r\n }", "@Test\n public void testProxy() throws Exception {\n addHandler(new MyProxyHandler());\n URL proxyURL = new URL(url);\n\n runner.setProperty(InvokeHTTP.PROP_URL, \"http://nifi.apache.org/\"); // just a dummy URL no connection goes out\n runner.setProperty(InvokeHTTP.PROP_PROXY_HOST, proxyURL.getHost());\n\n try{\n runner.run();\n Assert.fail();\n } catch (AssertionError e){\n // Expect assertion error when proxy port isn't set but host is.\n }\n runner.setProperty(InvokeHTTP.PROP_PROXY_PORT, String.valueOf(proxyURL.getPort()));\n\n runner.setProperty(InvokeHTTP.PROP_PROXY_USER, \"username\");\n\n try{\n runner.run();\n Assert.fail();\n } catch (AssertionError e){\n // Expect assertion error when proxy password isn't set but host is.\n }\n runner.setProperty(InvokeHTTP.PROP_PROXY_PASSWORD, \"password\");\n\n createFlowFiles(runner);\n\n runner.run();\n\n runner.assertTransferCount(InvokeHTTP.REL_SUCCESS_REQ, 1);\n runner.assertTransferCount(InvokeHTTP.REL_RESPONSE, 1);\n runner.assertTransferCount(InvokeHTTP.REL_RETRY, 0);\n runner.assertTransferCount(InvokeHTTP.REL_NO_RETRY, 0);\n runner.assertTransferCount(InvokeHTTP.REL_FAILURE, 0);\n runner.assertPenalizeCount(0);\n\n //expected in request status.code and status.message\n //original flow file (+attributes)\n final MockFlowFile bundle = runner.getFlowFilesForRelationship(InvokeHTTP.REL_SUCCESS_REQ).get(0);\n bundle.assertContentEquals(\"Hello\".getBytes(\"UTF-8\"));\n bundle.assertAttributeEquals(InvokeHTTP.STATUS_CODE, \"200\");\n bundle.assertAttributeEquals(InvokeHTTP.STATUS_MESSAGE, \"OK\");\n bundle.assertAttributeEquals(\"Foo\", \"Bar\");\n\n //expected in response\n //status code, status message, all headers from server response --> ff attributes\n //server response message body into payload of ff\n final MockFlowFile bundle1 = runner.getFlowFilesForRelationship(InvokeHTTP.REL_RESPONSE).get(0);\n bundle1.assertContentEquals(\"http://nifi.apache.org/\".getBytes(\"UTF-8\"));\n bundle1.assertAttributeEquals(InvokeHTTP.STATUS_CODE, \"200\");\n bundle1.assertAttributeEquals(InvokeHTTP.STATUS_MESSAGE, \"OK\");\n bundle1.assertAttributeEquals(\"Foo\", \"Bar\");\n bundle1.assertAttributeEquals(\"Content-Type\", \"text/plain;charset=iso-8859-1\");\n }", "public static boolean wget(URL source, Path dest) {\r\n if (source == null) {\r\n throw new IllegalArgumentException(\"The source URL is null\");\r\n }\r\n if (dest == null) {\r\n throw new IllegalArgumentException(\"The destination file path is null\");\r\n }\r\n boolean successful = true;\r\n try (FileOutputStream out = new FileOutputStream(dest.toFile())) {\r\n try (InputStream in = source.openStream()) {\r\n int numread = 0;\r\n int bufSize = 1024;\r\n byte[] buffer = new byte[bufSize];\r\n while ((numread = in.read(buffer, 0, bufSize)) != -1) {\r\n out.write(buffer, 0, numread);\r\n }\r\n }\r\n } catch (IOException e) {\r\n logger.warn(\"Fail to download file from \\\"{}\\\" to \\\"{}\\\", {}\", source, dest.toFile().getAbsolutePath(),\r\n e.getMessage());\r\n successful = false;\r\n }\r\n return successful;\r\n }", "private HttpConnection open(String url) throws IOException {\n HttpConnection c;\n int status = -1;\n\n // Open the connection and check for redirects\n while (true) {\n c = (HttpConnection) Connector.open(url);\n\n // Get the status code,\n // causing the connection to be made\n status = c.getResponseCode();\n\n if ((status == HttpConnection.HTTP_TEMP_REDIRECT)\n || (status == HttpConnection.HTTP_MOVED_TEMP)\n || (status == HttpConnection.HTTP_MOVED_PERM)) {\n\n // Get the new location and close the connection\n url = c.getHeaderField(\"location\");\n c.close();\n } else {\n break;\n }\n }\n\n // Only HTTP_OK (200) means the content is returned.\n if (status != HttpConnection.HTTP_OK) {\n c.close();\n throw new IOException(\"Response status not OK\");\n }\n return c;\n }", "public void run(String pUrl) throws Exception\r\n {\r\n System.out.println(\"Running TryZero:\");\r\n\r\n new ClientResource(pUrl).get().write(System.out);\r\n }", "public boolean urlExists(String url) throws Exception {\n URL u = new URL ( url);\n HttpURLConnection huc = ( HttpURLConnection ) u.openConnection (); \n huc.setRequestMethod (\"GET\"); //OR huc.setRequestMethod (\"HEAD\"); \n huc.connect () ; \n int code = huc.getResponseCode() ;\n return code==200;\n }", "private String getContent(String url) throws BoilerpipeProcessingException, IOException {\n int code;\n HttpURLConnection connection = null;\n URL uri;\n do{\n uri = new URL(url);\n if(connection != null)\n connection.disconnect();\n connection = (HttpURLConnection)uri.openConnection();\n connection.setRequestMethod(\"GET\");\n connection.setConnectTimeout(5000);\n connection.setReadTimeout(5000);\n connection.connect();\n code = connection.getResponseCode();\n if(code == 301)\n url = connection.getHeaderField( \"Location\" );\n }while (code == 301);\n\n System.out.println(url + \" :: \" + code);\n String content = null;\n if(code < 400) {\n content = ArticleExtractor.INSTANCE.getText(uri);\n }\n connection.disconnect();\n return content;\n }", "public static Integer getResponseCode(String url) throws IOException {\n\n String chrome_user_agent = \"Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2228.0 Safari/537.36\";\n\n\n HttpClient client = HttpClientBuilder.create().build();\n HttpGet request = new HttpGet(url);\n request.addHeader(\"User-Agent\", chrome_user_agent);\n HttpResponse response = null;\n try {\n response = client.execute(request);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n /* System.out.println(\"Response Code : \"\n + response.getStatusLine().getStatusCode());\n*/\n /*BufferedReader rd = new BufferedReader(\n new InputStreamReader(response.getEntity().getContent()));\n\n StringBuffer result = new StringBuffer();\n String line = \"\";\n while ((line = rd.readLine()) != null) {\n result.append(line);\n }\n*/\n return response.getStatusLine().getStatusCode();\n }", "private boolean readWebpage()\n {\n String lines = SimpleRequest.readContent(requestUrl);\n if (lines == null) return false;\n\n //\n // updateStreamStatistics ('rtl','sd', 'zeus');\n // updateStreamStatistics ('dmax','sd', 'elmo');\n //\n\n String pm = \"updateStreamStatistics[^']*'\";\n\n String sender = Simple.getMatch(pm + \"([^']*)'\", lines);\n String sdtype = Simple.getMatch(pm + \"[^']*','([^']*)'\", lines);\n String server = Simple.getMatch(pm + \"[^']*','[^']*', '([^']*)'\", lines);\n\n if ((sender != null) && (sdtype != null) && (server != null))\n {\n //\n // Very special server update to get correct streams.\n //\n\n Log.d(LOGTAG, \"===============\" + sender);\n Log.d(LOGTAG, \"===============\" + sdtype);\n Log.d(LOGTAG, \"===============\" + server);\n\n //\n // http://elmo.ucount.in/stats/update/custom/lstv/kabel1/sd&callback=?\n // Referer: http://www.live-stream.tv/online/fernsehen/deutsch/kabel1.html\n //\n\n if (! server.equals(\"zeus\"))\n {\n elmoreferrer = requestUrl;\n elmostring = \"http://\" + server + \".ucount.in\"\n + \"/stats/update/custom/lstv/\"\n + sender + \"/\" + sdtype\n + \"&_=424242&callback=?\";\n\n SimpleRequest.doHTTPGet(elmostring, elmoreferrer);\n }\n }\n\n //\n // type:'html5', config: { file:'http://lstv3.hls1.stream-server.org/live/orf1@sd/index.m3u8' }\n //\n\n String stream = Simple.getMatch(\"type:'html5'.*?file:'([^']*)'\", lines);\n Log.d(LOGTAG,\"=========================================>stream=\" + stream);\n\n if (stream != null) requestUrl = stream;\n\n return (stream != null);\n }", "protected HTTPSampleResult followRedirects(HTTPSampleResult res, int frameDepth) {\n HTTPSampleResult totalRes = new HTTPSampleResult(res);\n totalRes.addRawSubResult(res);\n HTTPSampleResult lastRes = res;\n \n int redirect;\n for (redirect = 0; redirect < MAX_REDIRECTS; redirect++) {\n boolean invalidRedirectUrl = false;\n String location = lastRes.getRedirectLocation();\n if (log.isDebugEnabled()) {\n log.debug(\"Initial location: \" + location);\n }\n if (REMOVESLASHDOTDOT) {\n location = ConversionUtils.removeSlashDotDot(location);\n }\n // Browsers seem to tolerate Location headers with spaces,\n // replacing them automatically with %20. We want to emulate\n // this behaviour.\n location = encodeSpaces(location);\n if (log.isDebugEnabled()) {\n log.debug(\"Location after /. and space transforms: \" + location);\n }\n // Change all but HEAD into GET (Bug 55450)\n String method = lastRes.getHTTPMethod();\n method = computeMethodForRedirect(method, res.getResponseCode());\n \n try {\n URL url = ConversionUtils.makeRelativeURL(lastRes.getURL(), location);\n url = ConversionUtils.sanitizeUrl(url).toURL();\n if (log.isDebugEnabled()) {\n log.debug(\"Location as URL: \" + url.toString());\n }\n HTTPSampleResult tempRes = sample(url, method, true, frameDepth);\n if (tempRes != null) {\n lastRes = tempRes;\n } else {\n // Last url was in cache so tempRes is null\n break;\n }\n } catch (MalformedURLException | URISyntaxException e) {\n errorResult(e, lastRes);\n // The redirect URL we got was not a valid URL\n invalidRedirectUrl = true;\n }\n if (lastRes.getSubResults() != null && lastRes.getSubResults().length > 0) {\n SampleResult[] subs = lastRes.getSubResults();\n for (SampleResult sub : subs) {\n totalRes.addSubResult(sub);\n }\n } else {\n // Only add sample if it is a sample of valid url redirect, i.e. that\n // we have actually sampled the URL\n if (!invalidRedirectUrl) {\n totalRes.addSubResult(lastRes);\n }\n }\n \n if (!lastRes.isRedirect()) {\n break;\n }\n }\n if (redirect >= MAX_REDIRECTS) {\n lastRes = errorResult(new IOException(\"Exceeded maximum number of redirects: \" + MAX_REDIRECTS), new HTTPSampleResult(lastRes));\n totalRes.addSubResult(lastRes);\n }\n \n // Now populate the any totalRes fields that need to\n // come from lastRes:\n totalRes.setSampleLabel(totalRes.getSampleLabel() + \"->\" + lastRes.getSampleLabel());\n // The following three can be discussed: should they be from the\n // first request or from the final one? I chose to do it this way\n // because that's what browsers do: they show the final URL of the\n // redirect chain in the location field.\n totalRes.setURL(lastRes.getURL());\n totalRes.setHTTPMethod(lastRes.getHTTPMethod());\n totalRes.setQueryString(lastRes.getQueryString());\n totalRes.setRequestHeaders(lastRes.getRequestHeaders());\n \n totalRes.setResponseData(lastRes.getResponseData());\n totalRes.setResponseCode(lastRes.getResponseCode());\n totalRes.setSuccessful(lastRes.isSuccessful());\n totalRes.setResponseMessage(lastRes.getResponseMessage());\n totalRes.setDataType(lastRes.getDataType());\n totalRes.setResponseHeaders(lastRes.getResponseHeaders());\n totalRes.setContentType(lastRes.getContentType());\n totalRes.setDataEncoding(lastRes.getDataEncodingNoDefault());\n return totalRes;\n }", "@Test\n public void tenRedirect() throws Exception {\n UrlPattern up1 = urlPathEqualTo(\"/\" + REDIRECT);\n redirectWireMock.stubFor(get(up1)\n .withQueryParam(\"r\", matching(\"[0-9]+\"))\n .willReturn(aResponse()\n .withStatus(HttpServletResponse.SC_FOUND)\n .withTransformer(\"redirect\", \"redirects\", 10)));\n\n UrlPattern up2 = urlEqualTo(\"/\" + TEST_FILE_NAME);\n redirectWireMock.stubFor(get(up2)\n .willReturn(aResponse()\n .withBody(CONTENTS)));\n\n Download t = makeProjectAndTask();\n t.src(redirectWireMock.url(REDIRECT) + \"?r=10\");\n File dst = newTempFile();\n t.dest(dst);\n execute(t);\n\n assertThat(dst).usingCharset(StandardCharsets.UTF_8).hasContent(CONTENTS);\n\n redirectWireMock.verify(10, getRequestedFor(up1));\n redirectWireMock.verify(1, getRequestedFor(up2));\n }", "private synchronized void executeDownload(DownloadRequest request, String downloadUrl) {\n HttpURLConnection conn = null;\n URL url;\n InputStream inputStream = null;\n RandomAccessFile randomAccessFile;\n\n try {\n url = new URL(downloadUrl);\n long localFileLength = FileUtils.getLocalFileSize(getFullFileName());\n long remoteFileLength = fileTotalSize;\n\n // 远程文件不存在\n if (remoteFileLength == -1l) {\n // Log.log(\"下载文件不存在...\");\n updateDownloadFailed(request, DownloadManager.ERROR_UNHANDLED_HTTP_CODE, \"Remote file not found\");\n return;\n }\n\n request.setFileFullName(getFullFileName());\n randomAccessFile = new RandomAccessFile(getFullFileName(), \"rwd\");\n\n\n conn = (HttpURLConnection) url.openConnection();\n conn.setInstanceFollowRedirects(false);\n conn.setConnectTimeout(request.getRetryPolicy().getCurrentTimeout());\n conn.setReadTimeout(request.getRetryPolicy().getCurrentTimeout());\n conn.setRequestMethod(\"GET\");\n\n // 本地文件存在\n randomAccessFile.seek(localFileLength);\n conn.setRequestProperty(\"Range\", \"bytes=\"\n + localFileLength + \"-\" + remoteFileLength);\n\n inputStream = conn.getInputStream();\n\n\n HashMap<String, String> customHeaders = request.getCustomHeaders();\n if (customHeaders != null) {\n for (String headerName : customHeaders.keySet()) {\n conn.addRequestProperty(headerName, customHeaders.get(headerName));\n }\n }\n\n // Status Connecting is set here before\n // urlConnection is trying to connect to destination.\n updateDownloadState(request, DownloadManager.STATUS_CONNECTING);\n\n final int responseCode = conn.getResponseCode();\n\n DownLoadLog.v(\"Response code obtained for downloaded Id \"\n + request.getDownloadId()\n + \" : httpResponse Code \"\n + responseCode);\n\n switch (responseCode) {\n case HTTP_PARTIAL:\n case HTTP_OK:\n shouldAllowRedirects = false;\n if (fileTotalSize > 1) {\n transferData(request, inputStream, randomAccessFile);\n } else {\n updateDownloadFailed(request, DownloadManager.ERROR_DOWNLOAD_SIZE_UNKNOWN, \"Transfer-Encoding not found as well as can't know size of download, giving up\");\n }\n break;\n case HTTP_MOVED_PERM:\n case HTTP_MOVED_TEMP:\n case HTTP_SEE_OTHER:\n case HTTP_TEMP_REDIRECT:\n // Take redirect url and call executeDownload recursively until\n // MAX_REDIRECT is reached.\n while (mRedirectionCount < MAX_REDIRECTS && shouldAllowRedirects) {\n mRedirectionCount++;\n DownLoadLog.v(TAG, \"Redirect for downloaded Id \" + request.getDownloadId());\n final String location = conn.getHeaderField(\"Location\");\n executeDownload(request, location);\n }\n\n if (mRedirectionCount > MAX_REDIRECTS && shouldAllowRedirects) {\n updateDownloadFailed(request, DownloadManager.ERROR_TOO_MANY_REDIRECTS, \"Too many redirects, giving up\");\n return;\n }\n break;\n case HTTP_REQUESTED_RANGE_NOT_SATISFIABLE:\n updateDownloadFailed(request, HTTP_REQUESTED_RANGE_NOT_SATISFIABLE, conn.getResponseMessage());\n break;\n case HTTP_UNAVAILABLE:\n updateDownloadFailed(request, HTTP_UNAVAILABLE, conn.getResponseMessage());\n break;\n case HTTP_INTERNAL_ERROR:\n updateDownloadFailed(request, HTTP_INTERNAL_ERROR, conn.getResponseMessage());\n break;\n default:\n updateDownloadFailed(request, DownloadManager.ERROR_UNHANDLED_HTTP_CODE, \"Unhandled HTTP response:\" + responseCode + \" message:\" + conn.getResponseMessage());\n break;\n }\n } catch (SocketTimeoutException e) {\n e.printStackTrace();\n // Retry.\n attemptRetryOnTimeOutException(request);\n } catch (ConnectTimeoutException e) {\n e.printStackTrace();\n attemptRetryOnTimeOutException(request);\n } catch (IOException e) {\n e.printStackTrace();\n updateDownloadFailed(request, DownloadManager.ERROR_HTTP_DATA_ERROR, \"IOException \" + e.getMessage());\n } finally {\n if (conn != null) {\n conn.disconnect();\n }\n }\n }", "@Test\n\tpublic void checkProjectOutput() throws IOException {\n\t\tcheckServerOutput(8080, \"/reviewsearch\", \"\", \"GET\", HTTPConstants.OK_HEADER);\n\t\tcheckServerOutput(8080, \"/reviewsearch\", \"\", \"PULL\", HTTPConstants.NOT_ALLOWED);\n\t\tcheckServerOutput(8080, \"/reviewsearch\", \"query=the\", \"POST\", HTTPConstants.OK_HEADER);\n\t\tcheckServerOutput(8080, \"/reviewsearch\", \"query=computer%20science\", \"POST\", HTTPConstants.OK_HEADER);\n\t\tcheckServerOutput(8080, \"/reviewsearchcurl\", \"query=computer%20science\", \"POST\", HTTPConstants.NOT_FOUND);\n\t\tcheckServerOutput(8080, \"/reviewsearch\", \"query=computer%20science&query=computer%20science\", \"POST\", HTTPConstants.OK_HEADER);\n\t\tcheckServerOutput(8080, \"/find\", \"\", \"GET\", HTTPConstants.OK_HEADER);\n\t\tcheckServerOutput(8080, \"/find\", \"\", \"PULL\", HTTPConstants.NOT_ALLOWED);\n\t\tcheckServerOutput(8080, \"/find\", \"asin=the\", \"POST\", HTTPConstants.OK_HEADER);\n\t\tcheckServerOutput(8080, \"/find\", \"asin=B00002243X\", \"POST\", HTTPConstants.OK_HEADER);\n\t\tcheckServerOutput(8080, \"/findcurl\", \"asin=B00002243X\", \"POST\", HTTPConstants.NOT_FOUND);\n\t\tcheckServerOutput(8080, \"/find\", \"asin=B00002243X&asin=B00002243X\", \"POST\", HTTPConstants.OK_HEADER);\n\t\tcheckServerOutput(9090, \"/slackbot\", \"\", \"GET\", HTTPConstants.OK_HEADER);\n\t\tcheckServerOutput(9090, \"/slackbot\", \"\", \"PULL\", HTTPConstants.NOT_ALLOWED);\n\t\tcheckServerOutput(9090, \"/slackbot\", \"message=hello\", \"POST\", HTTPConstants.OK_HEADER);\n\t\tcheckServerOutput(9090, \"/slackbot\", \"message=bye\", \"POST\", HTTPConstants.OK_HEADER);\n\t\tcheckServerOutput(9090, \"/slackbotds\", \"message=bye\", \"POST\", HTTPConstants.NOT_FOUND);\n\t\tcheckServerOutput(9090, \"/slackbot\", \"message=bye&message=bye\", \"POST\", HTTPConstants.OK_HEADER);\n\t}", "public String sendGet(String url)\n\t{\n\t\t//Getting most relevant user-agent from robots.txt\n\t\tbest_match = findBestMatch();\n\t\t//Deicing whether or not to skip\n\t\tif (shouldSkip(url))\n\t\t{\n\t\t\treturn \"skipped\";\n\t\t}\n\t\tif (url.startsWith((\"https\")))\n\t\t{\n\t\t\treturn sendGetSecure(url);\n\t\t}\n\t\ttry \n\t\t{\n\t\t\t//Creating URL objects\n\t\t\tURL http_url = new URL(url);\n\t\t\t//Delaying visit if directed to by robots.txt\n\t\t\tcrawlDelay();\n\t\t\tHttpURLConnection secure_connection = (HttpURLConnection)http_url.openConnection();\n\t\t\t//Setting request method\n\t\t\tsecure_connection.setRequestMethod(\"GET\");\n\t\t\t//Sending all headers except for host (since URLConnection will take care of this)\n\t\t\tfor (String h: headers.keySet())\n\t\t\t{\n\t\t\t\tif (!h.equals(\"Host\"))\n\t\t\t\t{\n\t\t\t\t\tsecure_connection.setRequestProperty(h, headers.get(h));\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//Getting ResponseParser object to read in page content\n\t\t\tp = new ResponseParser(new BufferedReader(new InputStreamReader(secure_connection.getInputStream())));\n\t\t\t\n\t\t\t//Parsing all response headers from returned object\n\t\t\tMap<String,String> p_headers = p.getHeaders();\n\t\t\tMap<String, List<String>> response_headers = secure_connection.getHeaderFields();\n\t\t\tfor (Map.Entry<String, List<String>> entry : response_headers.entrySet()) \n\t\t\t{\n\t\t\t\tif (entry.getKey() == null)\n\t\t\t\t{\n\t\t\t\t\tp.setResponse(entry.getValue().get(0));\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tp_headers.put(entry.getKey(),entry.getValue().get(0));\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//If we didn't get any headers in the response, the URL was invalid\n\t\t\tif (p.getHeaders().size() == 0)\n\t\t\t{\n\t\t\t\treturn (\"invalid url\");\n\t\t\t}\n\t\t\t\n\t\t\t//Otherwise return the contents of the returned document\n\t\t\treturn p.getData();\n\t\t\t\n\t\t} \n\t\tcatch (IOException | IllegalArgumentException e) \n\t\t{\n\t\t\treturn \"invalid url\";\n\t\t}\t\t\n//\t\ttry\n//\t\t{\n//\t\t\t//Deals with secure request\n//\t\t\tif (url.startsWith((\"https\")))\n//\t\t\t{\n//\t\t\t\treturn sendGetSecure(url);\n//\t\t\t}\n//\t\t\t//Parsing host and port from URL\n//\t\t\tURLInfo url_info = new URLInfo(url);\n//\t\t\thost = url_info.getHostName();\n//\t\t\tport = url_info.getPortNo();\n//\t\t\t\n//\t\t\t//Changing Host header if necessary\n//\t\t\theaders.put(\"Host\", host + \":\" + port);\n//\t\t\t\n//\t\t\t//Getting file path of URL\n//\t\t\tString file_path = url_info.getFilePath();\n//\t\t\t\n//\t\t\t//If we weren't able to find a host, URL is invalid\n//\t\t\tif (host == null)\n//\t\t\t{\n//\t\t\t\treturn \"invalid url\";\n//\t\t\t}\n//\t\t\t\n//\t\t\t//Delaying visits based on robots.txt crawl delay\n//\t\t\tcrawlDelay();\n//\t\t\t\n//\t\t\t//Otherwise, opening up socket and sending request with all headers\n//\t\t\tsocket = new Socket(host, port);\n//\t\t\tout = new PrintWriter(socket.getOutputStream(), true);\n//\t\t\tString message = \"GET \" + file_path + \" HTTP/1.1\\r\\n\";\n//\t\t\tfor (String header: headers.keySet())\n//\t\t\t{\n//\t\t\t\tString head = header + \": \" + headers.get(header) + \"\\r\\n\";\n//\t\t\t\tmessage = message + head;\n//\t\t\t}\n//\t\t\tout.println(message);\n//\n//\t\t\t//Creating ResponseParser object to parse the Response\n//\t\t\tp = new ResponseParser(socket);\n//\t\t\t\n//\t\t\t//If we didn't get any headers in the response, the URL was invalid\n//\t\t\tif (p.getHeaders().size() == 0)\n//\t\t\t{\n//\t\t\t\treturn (\"invalid url\");\n//\t\t\t}\n//\t\t\t//Otherwise return the contents of the returned document\n//\t\t\treturn p.getData();\n//\t\t} \n//\t\tcatch (UnknownHostException e) \n//\t\t{\n//\t\t\tSystem.err.println(\"Unknown Host Exception\");\n//\t\t\tSystem.err.println(\"Problem url is: http://www.youtube.com/motherboardtv?feature=watch&trk_source=motherboard\");\n//\t\t} \n//\t\tcatch (IOException | IllegalArgumentException e) \n//\t\t{\n//\t\t\tSystem.err.println(\"IO Exception\");;\n//\t\t}\n//\t\t//Return null for all caught exceptions (Servlet will deal with this)\n//\t\treturn null;\n\t}", "@Override\n protected URLConnection openConnection(URL url, Proxy proxy) throws IOException {\n\n final HttpsURLConnectionImpl httpsURLConnection = (HttpsURLConnectionImpl) super.openConnection(url, proxy);\n if (\"artisan.okta.com\".equals(url.getHost()) && \"/home/amazon_aws/0oad7khqw5gSO701p0x7/272\".equals(url.getPath())) {\n\n return new URLConnection(url) {\n @Override\n public void connect() throws IOException {\n httpsURLConnection.connect();\n }\n\n public InputStream getInputStream() throws IOException {\n byte[] content = IOUtils.toByteArray(httpsURLConnection.getInputStream());\n String contentAsString = new String(content, \"UTF-8\");\n\n //System.out.println(\"########################## got stream content ##############################\");\n //System.out.println(contentAsString);\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n //contentAsString = contentAsString.replaceAll(\",\\\"ENG_ENABLE_SCRIPT_INTEGRITY\\\"\", \"\"); // nested SRIs?\n baos.write(contentAsString.replaceAll(\"integrity ?=\", \"integrity.disabled=\").getBytes(\"UTF-8\"));\n return new ByteArrayInputStream(baos.toByteArray());\n }\n\n public OutputStream getOutputStream() throws IOException {\n return httpsURLConnection.getOutputStream();\n }\n\n };\n\n } else {\n return httpsURLConnection;\n }\n }", "private String downloadUrl(String strUrl) throws IOException {\n\n String data = \"\";\n InputStream iStream = null;\n HttpURLConnection urlConnection = null;\n\n try{\n // Get URL\n URL url = new URL(strUrl);\n\n // Creating an http connection to communicate with url\n urlConnection = (HttpURLConnection) url.openConnection();\n\n // Connecting to url\n urlConnection.connect();\n\n // Reading data from url\n iStream = urlConnection.getInputStream();\n\n // Data to string\n BufferedReader br = new BufferedReader(new InputStreamReader(iStream));\n StringBuffer sb = new StringBuffer();\n String line = \"\";\n while( ( line = br.readLine()) != null){\n sb.append(line);\n }\n data = sb.toString();\n br.close();\n\n }catch(Exception e){\n Log.d(\"My Log Entry\", e.toString());\n }finally{\n iStream.close();\n urlConnection.disconnect();\n }\n\n // Return xml string of directions - start tag <DirectionsResponse>\n return data;\n }", "@Test\n public void printResponse(){\n when().get(\"http:://34.223.219.142:1212/ords/hr/countries\")\n .body().prettyPrint();\n\n }", "boolean parseResult(eggPlantAction action, String startDir, String url, String scriptName, String sut) {\n\n boolean passed = true;\n\n try {\n // RunHistory.csv contains the high level results and the filename of the \n // result lines\n CSVReader reader = new CSVReader(new FileReader(startDir + \"/RunHistory.csv\"));\n String[] line = reader.readNext();\n\n // Loop round reading each line\n while ((line = reader.readNext()) != null) {\n eggPlantResult result = new eggPlantResult();\n result.setRunDate(line[0]);\n result.setDuration(line[2]);\n result.setPassed(line[1].equals(\"Success\"));\n result.setErrors(line[3]);\n result.setWarnings(line[4]);\n result.setExceptions(line[5]);\n result.setScript(scriptName);\n result.setSut(sut);\n \n passed = passed & line[1].equals(\"Success\");\n\n getResultLines(result, startDir + \"/\" + line[6], url);\n\n action.getResultList().add(result);\n }\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n \n return passed;\n }", "private boolean exportResult(){\n System.out.println(\"Writing to \" + \"out_\" + inputFile);\n return true;\n }", "@Test\n public void test1 () throws Exception{\n URI uri = new URI(\"http://www.baidu.com\");\n\n URL url = uri.toURL();\n\n InputStream input = url.openStream();\n OutputStream output = new ByteArrayOutputStream();\n\n int i = 0;\n byte[] bytes = new byte[1024];\n int length = -1;\n while( (length = input.read(bytes)) != -1){\n output.write(bytes, 0, length);\n }\n\n System.out.println(new String(bytes));\n }", "public static String testConnection(String url) {\n LearnerInterface learner = new LearnerInterface(url);\n String jsonInfo = learner.getInfo();\n if (jsonInfo.equals(\"err\")) {\n System.out.println(\"Could not connect to server\");\n return null;\n }\n return jsonInfo;\n }", "private String downloadFile(String url) throws Exception {\n StringBuilder builder = new StringBuilder();\n \n URL u = new URL(url);\n URLConnection conn = u.openConnection();\n BufferedReader rd = new BufferedReader(new InputStreamReader(conn.getInputStream()));\n String line;\n while ((line = rd.readLine()) != null) {\n builder.append(line);\n }\n \n return builder.toString();\n }", "public void saveLink() {\n\t\t\t// check to see if the file exists locally\n\t\t\tString localFile = localUrl + \"/\" + filePath;\n\n\t\t\tboolean finished = false;\n\t\t\twhile (!finished) {\n\t\t\t\ttry {\n\n\t\t\t\t\tFile file = new File(localFile);\n\t\t\t\t\t// build remote path\n\t\t\t\t\tString finalRemoteUrl = remoteUrl;\n\t\t\t\t\tif (filePath.startsWith(\"/\")) {\n\t\t\t\t\t\tURL url = new URL(finalRemoteUrl);\n\t\t\t\t\t\tfinalRemoteUrl = url.getProtocol() + \"://\" + url.getHost();\n\t\t\t\t\t}\n\n\t\t\t\t\tString remoteFile = finalRemoteUrl + filePath;\n\t\t\t\t\tif (file.canRead() && !file.isDirectory()) {\n\t\t\t\t\t\tLong fileLength = file.length();\n\t\t\t\t\t\t// if it does, check to see if it is complete based on\n\t\t\t\t\t\t// length of file\n\t\t\t\t\t\tlogger.trace(\"file/dir already exists: {}\", localFile);\n\t\t\t\t\t\tURLConnection connection = buildConnection(remoteFile);\n\t\t\t\t\t\tMap<String, List<String>> map = connection.getHeaderFields();\n\t\t\t\t\t\tif (map.get(\"Content-Length\") == null) {\n\t\t\t\t\t\t\tlogger.debug(\"no header fields were returned when attempting to access: {}\", remoteFile);\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tLong remoteLength = Long.parseLong(map.get(\"Content-Length\").iterator().next());\n\n\t\t\t\t\t\t// if it is not complete, resume downloading\n\t\t\t\t\t\tif (remoteLength > fileLength || fileLength == 0) {\n\t\t\t\t\t\t\ttransferFromRemoteToLocal(remoteFile, localFile, fileLength, remoteLength);\n\t\t\t\t\t\t\tfinished = true;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tlogger.trace(\"file is already complete, moving on\");\n\t\t\t\t\t\t\tfinished = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// if it is does not exist, create the directory or file\n\t\t\t\t\t\tlogger.trace(\"file does not exist: {}\", localFile);\n\n\t\t\t\t\t\t// take care of the directory structure\n\t\t\t\t\t\tFiles.createParentDirs(new File(localFile));\n\n\t\t\t\t\t\t// save the file\n\t\t\t\t\t\tlogger.trace(\"preparing to write remote file {} to local file {}\", new Object[] { remoteFile,\n\t\t\t\t\t\t\t\tlocalFile });\n\n\t\t\t\t\t\ttransferFromRemoteToLocal(remoteFile, localFile);\n\t\t\t\t\t\tlogger.trace(\"file created: {}\", localFile);\n\t\t\t\t\t\tfinished = true;\n\t\t\t\t\t}\n\n\t\t\t\t\t// timeout took place. pause, then let the loop execute\n\t\t\t\t\t// again\n\t\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\t\tlogger.error(\"exception while processing a link\", e);\n\t\t\t\t\tfinished = true;\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tlogger.error(\"exception while processing a link\", e);\n\t\t\t\t\tlogger.debug(\"will try again in {} milliseconds\", TIMEOUT_TIME);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(TIMEOUT_TIME);\n\t\t\t\t\t} catch (InterruptedException e1) {\n\t\t\t\t\t\tlogger.error(\"failed while trying to wait {} milliseconds\", TIMEOUT_TIME);\n\t\t\t\t\t}\n\t\t\t\t\tlogger.debug(\"just woke up, trying again\");\n\t\t\t\t\tfinished = false;\n\t\t\t\t}\n\t\t\t}\n\t\t\tcounter.incrementAndGet();\n\t\t\tlogger.debug(\"successfully downloaded the file {} from {} to {} - {}\", new Object[] { filePath, remoteUrl,\n\t\t\t\t\tlocalUrl, completionMessage() });\n\n\t\t\tLinesToFileWriter lineWriter = new LinesToFileWriter(localUrl, COMPLETED_PATH_LIST, true);\n\t\t\t// write line to completed file list\n\t\t\tlineWriter.writeLine(filePath);\n\t\t\tlineWriter.close();\n\t\t}", "public void sendRequest() {\n\t\tURL obj;\n\t\ttry {\n\t\t\t// Instantiating HttpURLConnection object for making GET request.\n\t\t\tobj = new URL(REQUEST_URL);\n\t\t HttpURLConnection connection = (HttpURLConnection) obj.openConnection();\n\t\t connection.setRequestMethod(REQUEST_METHOD);\n\t\t connection.setRequestProperty(\"User-Agent\", USER_AGENT);\n\t\t connection.setInstanceFollowRedirects(FOLLOW_REDIRECTS);\n\t\t\tHttpURLConnection.setFollowRedirects(FOLLOW_REDIRECTS);\n\t\t\n\t\t\t// Checking response code for successful request.\n\t\t\t// If responseCode==200, read the response,\n\t\t\t// if responseCode==3xx, i.e., a redirect, then make the request to \n\t\t\t// new redirected link, specified by 'Location' field. \n\t\t\t// NOTE: Only one level of redirection is supported for now. \n\t\t\t// Can be modified to support multiple levels of Redirections.\n\t\t\tint responseCode = connection.getResponseCode();\n\t\t\tif(responseCode == HttpURLConnection.HTTP_MOVED_PERM ||\n\t\t\t\t\tresponseCode == HttpURLConnection.HTTP_MOVED_TEMP ||\n\t\t\t\t\tresponseCode == HttpURLConnection.HTTP_SEE_OTHER) {\n\t\t\t\tlogger.info(\"Redirect received in responseCode\");\n\t\t\t\tString newUrl = connection.getHeaderField(\"Location\");\n\t\t\t\tconnection = (HttpURLConnection) new URL(newUrl).openConnection();\n\t\t\t}\n\t\t\tresponseCode = connection.getResponseCode();\n\t\t\t\n\t\t\t// process response message if responseCode==200 i.e., success.\n\t\t\tif (responseCode == HttpURLConnection.HTTP_OK) {\n\t\t\t\tBufferedReader in = new BufferedReader(new InputStreamReader(\n\t\t\t\t\t\tconnection.getInputStream()));\n\t\t\t\tString inputLine;\n\t\t\t\tStringBuffer response = new StringBuffer();\n\t\t\t\twhile ((inputLine = in.readLine()) != null) {\n\t\t\t\t\tresponse.append(inputLine);\n\t\t\t\t}\n\t\t\t\tin.close();\n\t\t\t\t//Uncomment following line to log response data.\n\t\t\t\t//logger.info(response.toString());\n\t\t\t} else {\n\t\t\t\tlogger.warning(\"Http GET request was unsuccessful!\");\n\t\t\t}\n\t\t} catch (MalformedURLException e) {\n\t\t\tlogger.severe(\"MalformedURLException: \" + e.getMessage());\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\tlogger.severe(\"IOException: \" + e.getMessage());\n\t\t\te.printStackTrace();\n\t\t}\n }", "@Override\n\t\t\t\t\t\tpublic void failed() {\n\t\t\t\t\t\t\tSystem.out.println(\"下载失败\");\n\t\t\t\t\t\t}", "public abstract String getOutputUrl();", "@RequestMapping(\"/getResult\")\r\n @ResponseBody\r\n public String prob(@RequestParam String URL){\n \tHashSet<String> res= new CrawlerService().getPageLinks(URL); \t\r\n \tStringBuffer result =new StringBuffer(); \t\r\n \tfor (String item:res){\r\n \t\tresult.append(item+\"<br>\");\r\n \t} \t\r\n return result.toString();\r\n\r\n }", "private static String makeHTTPRequest(URL url) throws IOException {\n\n // Create an empty json string\n String jsonResponse = \"\";\n\n //IF url is null, return early\n if (url == null) {\n return jsonResponse;\n }\n\n // Create an Http url connection, and an input stream, making both null for now\n HttpURLConnection connection = null;\n InputStream inputStream = null;\n\n try {\n\n // Try to open a connection on the url, request that we GET info from the connection,\n // Set read and connect timeouts, and connect\n connection = (HttpURLConnection) url.openConnection();\n connection.setRequestMethod(\"GET\");\n connection.setReadTimeout(10000 /*Milliseconds*/);\n connection.setConnectTimeout(15000 /*Milliseconds*/);\n connection.connect();\n\n // If response code is 200 (aka, working), then get and read from the input stream\n if (connection.getResponseCode() == 200) {\n\n Log.v(LOG_TAG, \"Response code is 200: Aka, everything is working great\");\n inputStream = connection.getInputStream();\n jsonResponse = readFromStream(inputStream);\n\n } else {\n // if response code is not 200, Log error message\n Log.v(LOG_TAG, \"Error Response Code: \" + connection.getResponseCode());\n }\n\n } catch (IOException e) {\n e.printStackTrace();\n Log.v(LOG_TAG, \"Error making http request: \" + e);\n } finally {\n // If connection and inputStream are NOT null, close and disconnect them\n if (connection != null) {\n connection.disconnect();\n }\n\n if (inputStream != null) {\n // Closing the input stream could throw an IOException, which is why\n // the makeHttpRequest(URL url) method signature specifies that an IOException\n // could be thrown.\n inputStream.close();\n }\n }\n\n return jsonResponse;\n }", "public String getUrlPassStatus()\r\n\t{\r\n\t\t\r\n\t\tUrlPassLevel FinalResultForBaseUrl ;\r\n\t\tUrlPassLevel FinalResultForRedirectionUrl ;\r\n\t\tUrlPassLevel FinalResultForUrl ;\r\n\r\n\t\tif(Configuration.CheckUrlRedirection && this.isErrorPage)\r\n\t\t\treturn Configuration.getConstant(\"Display_Message_For_Failed_Url\");\r\n\t\t\r\n\t\tif(!Configuration.CheckUrlPattern)\r\n\t\t\treturn Configuration.getConstant(\"Display_Message_For_Passed_Url\");\r\n\t\t\t\t\r\n\r\n\t\tif(Configuration.CheckUrlRedirection && this.exceptionType.equals(UrlExceptionLevel.IgnorePatternMatching))\r\n\t\t{\r\n\t\t\tif(this.isErrorPage)\r\n\t\t\t\treturn Configuration.getConstant(\"Display_Message_For_Failed_Url\");\r\n\t\t\telse\r\n\t\t\t\treturn Configuration.getConstant(\"Display_Message_For_Passed_Url\");\r\n\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\tif(this.isBaseUrlLocalized)\r\n\t\t{\r\n\t\t\tif(this.followsExactConfigUrlPattern)\r\n\t\t\t\tFinalResultForBaseUrl = UrlPassLevel.Passed;\r\n\t\t\telse if(this.followsConfigUrlPattern)\r\n\t\t\t\tFinalResultForBaseUrl = UrlPassLevel.PassedWithException;\r\n\t\t\telse\r\n\t\t\t\tFinalResultForBaseUrl = UrlPassLevel.Failed;\r\n\t\t\t\r\n\t\t}else\r\n\t\t{\r\n\t\t\tif(this.getExceptionType().equals(UrlExceptionLevel.UnlocalizedBaseUrl))\r\n\t\t\t\tFinalResultForBaseUrl = UrlPassLevel.Passed;\r\n\t\t\telse if(this.configUrlPattern.equals(this.configEngUrl))\r\n\t\t\t\tFinalResultForBaseUrl = UrlPassLevel.PassedWithException;\r\n\t\t\telse\r\n\t\t\t\tFinalResultForBaseUrl = UrlPassLevel.Failed;\r\n\t\t}\r\n\t\t\r\n\t\tif(Configuration.CheckUrlRedirection)\r\n\t\t{\r\n\t\t\tif(this.isRedirectedUrlLocalized)\r\n\t\t\t{\r\n\t\t\t\tif(this.followsExactConfigRedirectedUrlPattern)\r\n\t\t\t\t\tFinalResultForRedirectionUrl = UrlPassLevel.Passed;\r\n\t\t\t\telse if(this.followsConfigRedirectedUrlPattern)\r\n\t\t\t\t\tFinalResultForRedirectionUrl = UrlPassLevel.PassedWithException;\r\n\t\t\t\telse\r\n\t\t\t\t\tFinalResultForRedirectionUrl = UrlPassLevel.Failed;\r\n\t\t\t\t\r\n\t\t\t}else\r\n\t\t\t{\r\n\t\t\t\tif((this.getExceptionType().equals(UrlExceptionLevel.UnlocalizedBaseUrl))\r\n\t\t\t\t\t\t||this.getExceptionType().equals(UrlExceptionLevel.UnlocalizedRedirectedUrl))\r\n\t\t\t\t\tFinalResultForRedirectionUrl = UrlPassLevel.Passed;\r\n\t\t\t\telse if(this.configRedirectedUrlPattern.equals(this.configEngRedirectedUrl))\r\n\t\t\t\t\tFinalResultForRedirectionUrl = UrlPassLevel.PassedWithException;\r\n\t\t\t\telse\r\n\t\t\t\t\tFinalResultForRedirectionUrl = UrlPassLevel.Failed;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse\r\n\t\t\tFinalResultForRedirectionUrl = UrlPassLevel.Passed;\r\n\t\t\r\n\t\t\t\r\n\t\tif(FinalResultForRedirectionUrl.equals(FinalResultForBaseUrl))\r\n\t\t\tFinalResultForUrl = FinalResultForBaseUrl;\r\n\t\t\r\n\t\telse if( FinalResultForBaseUrl.equals(UrlPassLevel.Failed) || FinalResultForRedirectionUrl.equals(UrlPassLevel.Failed) )\r\n\t\t\tFinalResultForUrl = UrlPassLevel.Failed;\r\n\r\n\t\telse if( FinalResultForBaseUrl.equals(UrlPassLevel.PassedWithException) || FinalResultForRedirectionUrl.equals(UrlPassLevel.PassedWithException) )\r\n\t\t\tFinalResultForUrl = UrlPassLevel.PassedWithException;\r\n\t\t\r\n\t\telse\r\n\t\t\tFinalResultForUrl = UrlPassLevel.Passed;\r\n\r\n\r\n\t\t\r\n\t\tif(FinalResultForUrl.equals(UrlPassLevel.Passed))\r\n\t\t\treturn Configuration.getConstant(\"Display_Message_For_Passed_Url\");\r\n\t\telse if(FinalResultForUrl.equals(UrlPassLevel.PassedWithException))\r\n\t\t\treturn Configuration.getConstant(\"Display_Message_For_PassedWithException_Url\");\r\n\t\telse\r\n\t\t\treturn Configuration.getConstant(\"Display_Message_For_Failed_Url\");\r\n\t}", "public static void main(String args[]) {\n int saveCerts = 0;\n boolean noVerify = false;\n String proxyHost = \"127.0.0.1\";\n int proxyPort = 0;\n ProxyType ptype = ProxyType.NONE;\n boolean error = false;\n Getopt g = new Getopt(\"ssleepget\", args, \"p:y:sz\");\n try {\n int c;\n while ((c = g.getopt()) != -1) {\n switch (c) {\n case 'p':\n String s = g.getOptarg();\n int colon = s.indexOf(':');\n if (colon >= 0) {\n // Todo IPv6 [a:b:c]:4444\n proxyHost = s.substring(0, colon);\n String port = s.substring(colon + 1);\n proxyPort = Integer.parseInt(port);\n } else {\n proxyHost = s;\n // proxyPort remains default\n }\n break;\n\n case 'y':\n String y = g.getOptarg().toUpperCase(Locale.US);\n if (y.equals(\"HTTP\") || y.equals(\"HTTPS\")) {\n ptype = ProxyType.HTTP;\n } else if (y.equals(\"SOCKS4\")) {\n ptype = ProxyType.SOCKS4;\n } else if (y.equals(\"SOCKS5\")) {\n ptype = ProxyType.SOCKS5;\n } else if (y.equals(\"I2P\")) {\n ptype = ProxyType.INTERNAL;\n proxyHost = \"localhost\";\n proxyPort = 4444;\n } else {\n error = true;\n }\n break;\n\n case 's':\n saveCerts++;\n break;\n\n case 'z':\n noVerify = true;\n break;\n\n case '?':\n case ':':\n default:\n error = true;\n break;\n } // switch\n } // while\n } catch (RuntimeException e) {\n e.printStackTrace();\n error = true;\n }\n\n if (error || args.length - g.getOptind() != 1) {\n usage();\n System.exit(1);\n }\n String url = args[g.getOptind()];\n\n String saveAs = suggestName(url);\n\n SSLEepGet get;\n if (proxyHost != null) {\n if (proxyPort == 0) {\n if (ptype == ProxyType.HTTP)\n proxyPort = 8080;\n else\n proxyPort = 1080;\n }\n get = new SSLEepGet(I2PAppContext.getGlobalContext(), ptype, proxyHost, proxyPort, saveAs, url);\n } else {\n get = new SSLEepGet(I2PAppContext.getGlobalContext(), saveAs, url);\n }\n if (saveCerts > 0)\n get._saveCerts = saveCerts;\n if (noVerify)\n get._bypassVerification = true;\n get._commandLine = true;\n get.addStatusListener(get.new CLIStatusListener(1024, 40));\n if(!get.fetch(45*1000, -1, 60*1000))\n System.exit(1);\n }", "private int DownloadFile(URL url) {\n try {\n //---simulate taking some time to download a file---\n thread.sleep(5000);\n } catch (InterruptedException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n return 100;\n }", "private static String sendGET(String getURL) throws IOException {\n\t\tURL obj = new URL(getURL);\n\t\tHttpURLConnection con = (HttpURLConnection) obj.openConnection();\n\t\tcon.setRequestMethod(\"GET\");\n\t\tString finalResponse = \"\";\n\n\t\t//This way we know if the request was processed successfully or there was any HTTP error message thrown.\n\t\tint responseCode = con.getResponseCode();\n\t\tSystem.out.println(\"GET Response Code : \" + responseCode);\n\t\tif (responseCode == HttpURLConnection.HTTP_OK) { // success\n\t\t\tBufferedReader in = new BufferedReader(new InputStreamReader(con.getInputStream()));\n\t\t\tString inputLine;\n\t\t\tStringBuffer buffer = new StringBuffer();\n\n\t\t\twhile ((inputLine = in.readLine()) != null) {\n\t\t\t\tbuffer.append(inputLine);\n\t\t\t}\n\t\t\tin.close();\n\n\t\t\t// print result\n\t\t\tfinalResponse = buffer.toString();\n\t\t} else {\n\t\t\tSystem.out.println(\"GET request not worked\");\n\t\t}\n\t\treturn finalResponse;\n\t}", "private static boolean readUrls() {\r\n\t\tString line = \"\";\r\n\t\ttry (BufferedReader br = new BufferedReader(new FileReader(urlFileName))) {\r\n\t\t\tline = br.readLine();\r\n\t\t\twhile ((line != null) && !line.isEmpty()) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\turlList.add(new URL(\"http\", serverName, serverPort, line));\r\n\t\t\t\t} catch (MalformedURLException e) {\r\n\t\t\t\t\tlogger.info(\"malforemd URL: \" + line);\r\n\t\t\t\t}\r\n\t\t\t\tline = br.readLine();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\treturn true;\r\n\t\t} catch (IOException e) {\r\n\t\t\tlogger.info(\"error reading URL file: \" + e.getMessage());\r\n\t\t}\r\n\t\t\r\n\t\treturn false;\r\n\t}", "public static void verifyLink(String urlLink) {\n //Sometimes we may face exception \"java.net.MalformedURLException\". Keep the code in try catch block to continue the broken link analysis\n try {\n //Use URL Class - Create object of the URL Class and pass the urlLink as parameter\n URL link = new URL(urlLink);\n // Create a connection using URL object (i.e., link)\n HttpURLConnection httpConn =(HttpURLConnection)link.openConnection();\n //Set the timeout for 2 seconds\n httpConn.setConnectTimeout(2000);\n //connect using connect method\n httpConn.connect();\n //use getResponseCode() to get the response code.\n if(httpConn.getResponseCode()== 200) {\n System.out.println(urlLink+\" - \"+httpConn.getResponseCode());\n }\n if(httpConn.getResponseCode()== 404) {\n System.out.println(urlLink+\" - \"+httpConn.getResponseCode());\n }\n }\n //getResponseCode method returns = IOException - if an error occurred connecting to the server.\n catch (Exception e) {\n //e.printStackTrace();\n }\n \n }", "@Test\r\n public void emptyUrlTest(){\r\n boolean noException = false;\r\n \r\n try {\r\n extractor = new HTMLExtractor(\"\");\r\n noException = true;\r\n } catch (IOException e) {\r\n // TODO Auto-generated catch block\r\n e.printStackTrace();\r\n }\r\n\r\n assertTrue(\"should be parsed with no errors\", noException);\r\n }", "@Override\n\tpublic void run() {\n\t\ttry{\n\t\t\tboolean redirected=false;\n\t\t\tint responseCode=0;\n\t\t\tint tries=0;\n\t\t\tString location=site.getUrl();\n\t\t\tHttpURLConnection urlConnection=null;\n\t\t\tdo{\n\t\t\t\tURL url = new URL(location);\n\t\t\t\turlConnection = (HttpURLConnection) url.openConnection();\n\t\t\t\turlConnection.setRequestProperty(\"User-Agent\", \"Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.95 Safari/537.11\");\n\t\t\t\turlConnection.setConnectTimeout(Constants.CONNECTION_TIMEOUT);\n\t\t\t\turlConnection.setReadTimeout(Constants.READ_TIMEOUT);\n\t\t\t\turlConnection.setRequestMethod(\"GET\");\n\t\t\t\turlConnection.setInstanceFollowRedirects(true);\n\t\t\t\turlConnection.setUseCaches(false);\n\t\t\t\turlConnection.setAllowUserInteraction(false);\n\t\t\t\turlConnection.setRequestProperty(\"Content-Type\", \"application/x-www-form-urlencoded\");\n\t\t\t\tresponseCode = urlConnection.getResponseCode();\n\t\t\t\t\n\t\t\t\tif(responseCode==HttpURLConnection.HTTP_MOVED_TEMP || responseCode==HttpURLConnection.HTTP_MOVED_PERM){ //handle 302 and 301 redirect. \n\t\t\t\t\tredirected=true;\n\t\t\t\t\tlocation = urlConnection.getHeaderField(\"Location\");\n\t\t\t\t\ttries++;\n\t\t\t\t}else\n\t\t\t\t\tredirected=false;\n\t\t\t}while(redirected && tries<3);\n\t\t\t\n\t\t\tif (responseCode == HttpURLConnection.HTTP_OK){\n\t\t\t\ttry (InputStream is = urlConnection.getInputStream();\n\t\t BufferedReader br = new BufferedReader(new InputStreamReader(is, StandardCharsets.UTF_8))) {\n\t\t String content = br.lines().collect(Collectors.joining(System.lineSeparator()));\n\t \tthis.callback.webContentCallBack(site, content);\n\t\t } \n\t\t\t}else this.callback.webContentCallBack(site, null); //any other case, null is returned as the content. \n\t\t}catch (Exception e) {\n\t\t\tLogger.getLogger(Fetcher.class.getName()).log(Level.WARNING, \"Site:\"+site.getUrl()+\" failed fetching.\", e);\n\t\t\ttry {\n\t\t\t\tthis.callback.webContentCallBack(site, null); //any exception, null is returned as the content. \n\t\t\t} catch (Exception e1) {\n\t\t\t} \n\t\t}\n\t}", "public void testContent() {\n TestWARCBatchJob job = new TestWARCBatchJob();\n job.processFile(WARC_FILE, new ByteArrayOutputStream());\n assertEquals(\"Should get the expected record last\",\n LAST_URL, lastSeenURL);\n }", "@Override\n\t\tpublic void run() {\n\t\t\ttry {\n\t\t\t\tProxy proxy = new Proxy(Proxy.Type.HTTP, new InetSocketAddress(\n\t\t\t\t\t\t\"proxy.iiit.ac.in\", 8080));\n\t\t\t\tURL url = new URL(url1);\n\t\t\t\tHttpURLConnection connection = (HttpURLConnection) url\n\t\t\t\t\t\t.openConnection(proxy);\n\t\t\t\tconnection.setRequestMethod(\"POST\");\n\t\t\t\t// connection.setRequestProperty(\"Content-Type\",\n\t\t\t\t// \"application/x-www-form-urlencoded\");\n\n\t\t\t\tconnection.setRequestProperty(\"Content-Length\",\n\t\t\t\t\t\t\"\" + Integer.toString(parameters.getBytes().length));\n\t\t\t\tconnection.setRequestProperty(\"Content-Language\", \"en-US\");\n\n\t\t\t\tconnection.setUseCaches(false);\n\t\t\t\tconnection.setDoInput(true);\n\t\t\t\tconnection.setDoOutput(true);\n\n\t\t\t\t// Send request\n\t\t\t\tDataOutputStream wr = new DataOutputStream(\n\t\t\t\t\t\tconnection.getOutputStream());\n\t\t\t\twr.writeBytes(parameters);\n\t\t\t\twr.flush();\n\t\t\t\twr.close();\n\n\t\t\t\t// Get Response\n\t\t\t\tInputStream is = connection.getInputStream();\n\t\t\t\tBufferedReader rd = new BufferedReader(\n\t\t\t\t\t\tnew InputStreamReader(is));\n\t\t\t\tString line;\n\t\t\t\tStringBuffer response = new StringBuffer();\n\t\t\t\twhile ((line = rd.readLine()) != null) {\n\t\t\t\t\tresponse.append(line);\n\t\t\t\t\tresponse.append('\\r');\n\t\t\t\t}\n\t\t\t\trd.close();\n\t\t\t\t// return response.toString();\n\t\t\t\tlong tID = Thread.currentThread().getId();\n\t\t\t\tlong time = ManagementFactory.getThreadMXBean()\n\t\t\t\t\t\t.getThreadCpuTime(tID);\n\t\t\t\tSystem.out.println(\"My thread \" + tID + \" execution time: \"\n\t\t\t\t\t\t+ time + \" ns.\");\n\t\t\t\tsumTimes=sumTimes+time;\n\t\t\t\tconnection.disconnect();\n\t\t\t} catch (Exception e) {\n\n\t\t\t\te.printStackTrace();\n\t\t\t\t// return null;\n\n\t\t\t} finally {\n\n\t\t\t}\n\t\t}", "@Test\n public void pacDownloadFromURLShouldNotUseProxy() throws Exception {\n ProxySelector oldOne = ProxySelector.getDefault();\n try {\n ProxySelector.setDefault(new ProxySelector() {\n @Override\n public List<Proxy> select(URI uri) {\n throw new UsedProxyException(\"Should not download via proxy\");\n }\n\n @Override\n public void connectFailed(URI uri, SocketAddress sa, IOException ioe) {\n // Not used\n }\n });\n PacProxySelector pacProxySelector = new PacProxySelector(\n new UrlPacScriptSource(\"http://www.test.invalid/wpad.pac\"));\n List<Proxy> ret = pacProxySelector.select(TestUtil.HTTPS_TEST_URI);\n assertEquals(\"Should return no proxy for invalid pac url\", Proxy.NO_PROXY, ret.get(0));\n } finally {\n ProxySelector.setDefault(oldOne);\n }\n }" ]
[ "0.62719744", "0.5856059", "0.5757538", "0.56749386", "0.56675345", "0.5624909", "0.5612268", "0.5575264", "0.55126673", "0.5450652", "0.54471594", "0.54408693", "0.5437166", "0.5418658", "0.5418267", "0.5417196", "0.5416806", "0.540995", "0.537119", "0.53632194", "0.53608054", "0.53510267", "0.53510064", "0.53406024", "0.53398037", "0.53392756", "0.5319989", "0.52766734", "0.5274832", "0.52723783", "0.5270931", "0.52670616", "0.52635306", "0.52455664", "0.5222787", "0.5221562", "0.5208894", "0.52071655", "0.52056694", "0.5204706", "0.5204565", "0.52014905", "0.5190042", "0.5182591", "0.51747227", "0.51666087", "0.5162352", "0.5146022", "0.51442975", "0.51382506", "0.51381606", "0.51381606", "0.51381606", "0.51381606", "0.51381606", "0.51381606", "0.51381606", "0.51381606", "0.51381606", "0.51381606", "0.51369673", "0.51346093", "0.5123069", "0.51221794", "0.5121748", "0.51172125", "0.51164025", "0.51055896", "0.5101758", "0.5099779", "0.50937074", "0.5089158", "0.50889915", "0.50888884", "0.5074575", "0.5069781", "0.50695515", "0.5068926", "0.5068897", "0.506826", "0.5066468", "0.50610864", "0.50607026", "0.5052912", "0.5051623", "0.5051494", "0.50491625", "0.50369006", "0.5035308", "0.50276107", "0.50272477", "0.50228244", "0.50218385", "0.5006377", "0.5002756", "0.5000514", "0.4991461", "0.4986566", "0.49841097", "0.49812254" ]
0.6902818
0
Method to clear the proxy data
protected void clearData() { System.getProperties().put("https.proxyHost", ""); System.getProperties().put("https.proxyPort", ""); System.getProperties().put("http.proxyHost", ""); System.getProperties().put("http.proxyPort", ""); proxyScheme = null; proxyName = null; proxyPswd = null; proxyRealm = null; proxyPort = null; proxyHost = null; been_here = false; success = false; message = null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void clearProxyConfig();", "private void clearData() {}", "@Override\n public void clearData() {\n }", "public void clearData()\r\n {\r\n \r\n }", "public void clearData() {\r\n\t\tdata = null;\r\n\t}", "public void clearLoci() {\n // Override in proxy if lazily loaded; otherwise does nothing\n }", "public void clear() {\r\n\t\tdata.clear();\r\n\r\n\t}", "public void clear() {\n this.data().clear();\n }", "public void clearData(){\n\r\n\t}", "private void reset() {\n\t\tdata.clear();\n\t}", "void clearData();", "public void unsetProxy() {\n remote.setProxy(null);\n }", "void clear() {\n data = new Data(this);\n }", "public void clearAllResponseData() {\n myExpData.clear();\n }", "public void clearGenus() {\n // Override in proxy if lazily loaded; otherwise does nothing\n }", "public void clear()\n {\n keys.clear();\n comments.clear();\n data.clear();\n }", "public void clear(){\r\n\t\tthis.countRead \t\t\t= 0;\r\n\t\tthis.countReadData \t\t= 0;\r\n\t\tthis.countRemoved \t\t= 0;\r\n\t\tthis.countRemovedData \t= 0;\r\n\t\tthis.countWrite \t\t= 0;\r\n\t\tthis.countWriteData \t= 0;\r\n\t\tthis.dataList.clear();\r\n\t\tthis.dataMap.clear();\r\n\t}", "@Override\n public void clear() {\n for (int i = 0; i < this.size; i++) {\n this.data[i] = null;\n }\n\n this.size = 0;\n }", "public void clearAllData() {\n atoms.clear();\n connections.clear();\n lines.clear();\n radical = null;\n }", "public void clear()\n\t{\n\t\tfor (int i = 0; i < data.length; i++)\n\t\t{\n\t\t\tdata[i] = 0;\n\t\t}\n\t}", "public void clearLociLocus() {\n // Override in proxy if lazily loaded; otherwise does nothing\n }", "public void clear() {\n\n\t\tdata = null;\n\t\tnumRows = 0;\n\t\tnumCols = 0;\n\t\tsize = 0L;\n\n\t}", "public void clearCommon() {\n // Override in proxy if lazily loaded; otherwise does nothing\n }", "protected void clearData() {\n any.type(any.type());\n }", "public void clear()\n {\n providerService = null;\n }", "@Override\n\t\t\tpublic void clear() {\n\t\t\t\t\n\t\t\t}", "public void clear()\n {\n }", "@Override\r\n\tpublic void clear() {\n\t\t\r\n\t}", "@Override\n public void clear() {\n for (int i = 0; i < size; i++) {\n data[i] = null;\n }\n size = 0;\n }", "@Override\n\t\tpublic void clear() {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void clear() {\n\t\t\t\n\t\t}", "public void clear() {\n\t\t\r\n\t}", "public void clear()\r\n/* 416: */ {\r\n/* 417:580 */ this.headers.clear();\r\n/* 418: */ }", "@Override\n public void clear() {\n \n }", "@Override\n public void clear()\n {\n }", "@Override\n public void clear()\n {\n\n }", "@Override\n public synchronized void clear() {\n }", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear () {\n\t\treset();\n\t}", "public synchronized void clear()\n {\n clear(false);\n }", "@Override public void clear() {\n }", "public void clear() {\n unbindPassive();\n transferControl.clear();\n passiveMode = false;\n remotePort = -1;\n localPort = -1;\n }", "public static void clearData() {\n cutPoints.clear();\n data.delete(0, data.length());\n }", "public final void clear() {\n for (int i = 0; i < _length; i++) {\n _data[i * SIZE + VALUE_OFFSET] = null;\n _algorithmData[i] = null;\n }\n _length = 0;\n }", "private void clear() {\n }", "public void clearLength() {\n // Override in proxy if lazily loaded; otherwise does nothing\n }", "public final void clear() {\n clear(true);\n }", "public void clear() {\n\t\tpointList.clear();\n\t\tySum = 0;\n\t}", "public void clear ()\n {\n\n while (head != null) {\n head.data = null;\n head = head.next;\n }\n size = 0;\n }", "@Override\r\n\tpublic void clear() {\n\r\n\t}", "public final void clear()\n {\n this.pointer = 0;\n }", "public void clear() {\n this.responseHeaders.clear();\n this.markupHeaders.clear();\n this.cookies.clear();\n }", "public void removeAllData() {\n\t\tList<T> allData = this.getAllData();\r\n\t\t// clean the map\r\n\t\tthis.dataMap.clear();\r\n\t\t\r\n\t\t// notify the subscribers\r\n\t\tthis.notifyDeleted(allData);\r\n\t}", "@Override\n protected void clear() {\n\n }", "public void clear() {\n\n\t}", "public void clear()\n\t{\n\t if (logger.isTraceEnabled())\n\t logger.trace(\"clear() called for browser \" + this);\n\n\t // clear all internal members\n\t clearInternal();\n\t \n\t // and increment change counter\n\t incrementChangeCounter();\n\t}", "@Override\n\tpublic void clear() {\n\t}", "public void clearLocusLocus() {\n // Override in proxy if lazily loaded; otherwise does nothing\n }", "public void clear() {\n doClear();\n }", "@Override\n\tpublic void clear() {\n\n\t}", "@Override\n public void clear() {\n size = 0;\n first = null;\n last = null;\n }", "@Override\r\n\tpublic void reset() {\n\t\tthis.dcn = null;\r\n\t\tthis.pairs.clear();\r\n\t\tthis.successfulCount = 0;\r\n\t\tthis.failedCount = 0;\r\n\t\tthis.metrics.clear();\r\n\t}", "public void clear() throws LRException\n\t{\n\t\tDataHRecordData myData=(DataHRecordData)getData();\n\t\tmyData.record=null;\n\t}", "public void clearEnd() {\n // Override in proxy if lazily loaded; otherwise does nothing\n }", "public void clear() {\n }", "@Override\n\tpublic void clear() {\n\t\t\n\t}", "@Override\n\tpublic void clear() {\n\t\t\n\t}" ]
[ "0.7791675", "0.7554394", "0.7536889", "0.74693406", "0.7420701", "0.7331394", "0.72984207", "0.7274648", "0.72252697", "0.7216558", "0.72145593", "0.70681274", "0.7066401", "0.69022924", "0.6872839", "0.6871795", "0.6851951", "0.6788073", "0.6779862", "0.67561775", "0.675438", "0.674326", "0.6738365", "0.67332083", "0.67086697", "0.6695825", "0.6695691", "0.66956705", "0.66949284", "0.66878945", "0.66878945", "0.6686334", "0.6684318", "0.668063", "0.6673457", "0.6672296", "0.6670303", "0.66649127", "0.66649127", "0.66649127", "0.66649127", "0.66649127", "0.66649127", "0.66649127", "0.66649127", "0.66649127", "0.66649127", "0.66649127", "0.66649127", "0.66649127", "0.66649127", "0.66649127", "0.66649127", "0.66649127", "0.66649127", "0.66649127", "0.66649127", "0.66649127", "0.66649127", "0.66649127", "0.66649127", "0.66649127", "0.66649127", "0.66649127", "0.66649127", "0.66649127", "0.66649127", "0.66649127", "0.66649127", "0.66649127", "0.66649127", "0.6654759", "0.66488785", "0.66474557", "0.66423345", "0.664001", "0.663952", "0.66283727", "0.6627693", "0.66253644", "0.66140425", "0.661373", "0.6606537", "0.6606038", "0.65915143", "0.6586698", "0.6582698", "0.65744513", "0.6563804", "0.65632474", "0.6553384", "0.65491456", "0.65421826", "0.65420413", "0.6537697", "0.6527977", "0.6527793", "0.6520894", "0.65173477", "0.65173477" ]
0.81540483
0
ArrayList out_tmp_tobias = new ArrayList();
private ObjectCounter<PathCalculatorDft.Manipulation> calculateWER(String s1, String s2) { // out_tmp_tobias.add(s2 + "^" + s1); ObjectCounter<PathCalculatorDft.Manipulation> counterWER = new ObjectCounter<>(); List<String> s1_split = new ArrayList<>(); List<String> list = Arrays.asList(s1.split("[ ]+")); for (String s : list) { s = s.trim(); if (!s.isEmpty() && !s.equals(" ")) { s1_split.add(s); } } List<String> s2_split = new ArrayList<>(); List<String> list2 = Arrays.asList(s2.split("[ ]+")); for (String s : list2) { s = s.trim(); if (!s.isEmpty() && !s.equals(" ")) { s2_split.add(s); } } errModule.calculate(s1, s2); return counterWER; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ArrayList<Integer> getTemp() { return temp; }", "public ArrayList<Double> getOutputs()\n {\n return outputs;\n }", "public Molt(){\n molt=new ArrayList<>();\n }", "public List<A> getOutValues() {\n return outValues;\n }", "public ArrayList<Integer> makeIndividual();", "public ArrayListBag() {\n\t\tlist = new ArrayList<T>();\n\t}", "public void setOutputs(ArrayList<Double> outputs)\n {\n this.outputs = outputs;\n }", "public ArrayList<Integer> getLuckyReward() {\n/* 40 */ return this.luckyReward;\n/* */ }", "a(ArrayList arrayList) {\n super(1);\n this.$result = arrayList;\n }", "ArrayList<Integer> getWhiteboards(){\n return whiteboards;\n }", "public List<T> dumpOut();", "public ArrayList<Double> calculateOutput(){\n for(int i = 0; i < inputSize; i++){\n network.get(0).get(i).setInput(inputs.get(i));\n }\n //Make it go through each node in the network and calculate output for each of them top down\n for(int i = 0; i < numOutputs; i++){\n output.set(i, network.get(layers-1).get(i).calculateOutput());\n }\n return output;\n }", "public L170TwoSum() {\n arrayList = new ArrayList<>();\n isSorted = false;\n }", "public static ArrayList<ArrayList<Double>> getUserInput() // Gets input from the user\r\n {\r\n int interlude = 1;\r\n int binCap;\r\n int numObj;\r\n int randVal= -1;\r\n ArrayList < ArrayList < Double >> solved = new ArrayList < ArrayList < Double >>();\r\n double[] allValues;\r\n do {\r\n binCap = getBinCap();\r\n JOptionPane.showMessageDialog(null, \"BIN CAPACITY set to: \" + binCap);\r\n numObj = getNumObj();\r\n JOptionPane.showMessageDialog(null, \"Working with: \" + numObj + \" OBJECTS \");\r\n randVal = askRand();\r\n if (randVal== 0){\r\n allValues = allObjValRand(binCap, numObj);\r\n }\r\n else{\r\n allValues = getAllObjVal(binCap, numObj);\r\n }\r\n \r\n interlude = interlude(binCap, numObj, allValues);\r\n }\r\n while (interlude == 1); \r\n solved = binPack(allValues, numObj, binCap); \r\n return solved;\r\n }", "static void q2(){\n\t\tArrayList<Integer>myList=new ArrayList<>();\n\t\t\n\t}", "public static void main(String[] args) {\n ArrayList<Integer> source = new ArrayList<Integer>();\n ArrayList<Integer> res = new ArrayList<Integer>();\n System.out.println(res);\n }", "public ArrayList<Integer> createList(){\r\n \tArrayList<Integer> test = new ArrayList<>();\r\n \tstarLabels = new ArrayList<>();\r\n \tconstLabels = new ArrayList<>();\r\n \tplanetLabels = new ArrayList<>();\r\n \tmesrLabels = new ArrayList<>();\r\n \tmoonLabel = new ArrayList<>();\r\n \t\r\n \tint a = 0;\r\n \tint b = 1;\r\n \tint c = 2;\r\n \tint d = 3;\r\n \t\r\n \tint size;\r\n \t\r\n \t//Go through the spaceobjectlist\r\n \tfor(int i = 0; i < AlexxWork2.spaceObjList.size(); i++) {\r\n \t\t\r\n \t\t//If object is visible and object has positive altitude continue\r\n \t\tif(AlexxWork2.spaceObjList.get(i).getMagnitude() != null \r\n \t\t\t\t&& (Double.valueOf(AlexxWork2.spaceObjList.get(i).getMagnitude()) <= 6.0) \r\n \t\t\t\t&& AlexxWork2.spaceObjList.get(i).getAltitude() > 0.5) {\r\n\t \t\t\r\n \t\t\t\r\n \t\t\t//Calculate X and Y\r\n \t\t\tint x = getX(2250, 2250, 1000, \r\n \t\t\t\t\t(int)AlexxWork2.spaceObjList.get(i).getAzimuth(), \r\n \t\t\t\t\t(int)AlexxWork2.spaceObjList.get(i).getAltitude());\r\n \t\t\t\r\n\t\t\t\tint y = getY(2250, 2250, 1000, \r\n\t\t\t\t\t\t(int)AlexxWork2.spaceObjList.get(i).getAzimuth(), \r\n\t\t\t\t\t\t(int)AlexxWork2.spaceObjList.get(i).getAltitude());\r\n\t\t\t\t\r\n\t\t\t\t//Load stars\r\n\t\t\t\tif(AlexxWork2.spaceObjList.get(i).getType() == \"STAR\" \r\n\t\t\t\t\t\t&& AlexxWork2.spaceObjList.get(i).getProperName() != null \r\n\t\t\t\t\t\t&& AlexxWork2.spaceObjList.get(i).getProperName() != \"\") {\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(AlexxWork2.starNamesCB \r\n\t\t\t\t\t\t\t&& Double.valueOf(AlexxWork2.spaceObjList.get(i).getMagnitude()) <= 6.0) {\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t//Filter out number only star names\r\n\t\t\t\t\t\t\tint testInt = Integer.parseInt(AlexxWork2.spaceObjList.get(i).getProperName());\r\n\t\t\t\t\t\t\t} catch (NumberFormatException | NullPointerException nfe) {\r\n\t\t\t\t\t\t\t\tstarLabels.add(AlexxWork2.spaceObjList.get(i).getProperName());\r\n\t\t\t\t\t\t\t\tstarLabels.add(String.valueOf(x));\r\n\t\t\t\t\t\t\t\tstarLabels.add(String.valueOf(y));\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t//Load constellation data\r\n\t\t\t\t\tif(herculesNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tString name = AlexxWork2.spaceObjList.get(i).getProperName();\r\n\t\t\t\t\t\tloadHerculesLocation(name, x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(ursaMinorNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tString name = AlexxWork2.spaceObjList.get(i).getProperName();\r\n\t\t\t\t\t\tloadUrsaMinorLocation(name, x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(ursaMajorNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tString name = AlexxWork2.spaceObjList.get(i).getProperName();\r\n\t\t\t\t\t\tloadUrsaMajorLocation(name, x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(libraNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tString name = AlexxWork2.spaceObjList.get(i).getProperName();\r\n\t\t\t\t\t\tloadLibraLocation(name, x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(andromedaNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadAndromedaLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(aquariusNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadAquariusLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(aquilaNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadAquilaLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(ariesNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadAriesLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(aurigaNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadAurigaLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(bootesNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadBootesLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(cancerNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadCancerLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(canisMajorNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadCanisMajorLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(canisMinorNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadCanisMinorLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(capricornusNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadCapricornusLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(cassiopeiaNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadCassiopeiaLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(centaurusNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadCentaurusLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(cepheusNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadCepheusLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(cruxNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadCruxLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(cygnusNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadCygnusLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(dracoNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadDracoLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(geminiNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadGeminiLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(hydraNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadHydraLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(leoNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadLeoLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(lyraNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadLyraLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(orionNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadOrionLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(pegasusNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadPegasusLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(perseusNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadPerseusLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(piscesNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadPiscesLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(sagittariusNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadSagittariusLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(scorpioNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadScorpioLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(taurusNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadTaurusLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//Add coordinates to list\r\n\t \t\ttest.add(a, x);\r\n\t \t\ttest.add(b, y);\r\n\t \t\t\r\n\t \t\t//Add moon information if visible\r\n\t \t\tif(AlexxWork2.spaceObjList.get(i).getProperName() == \"MOON\") {\r\n size = 22;\r\n String moonName = AlexxWork2.spaceObjList.get(i).getProperName() + \": \" + AlexxWork2.spaceObjList.get(i).getType();\r\n moonLabel.add(0, moonName);\r\n moonLabel.add(1, String.valueOf(x));\r\n moonLabel.add(2, String.valueOf(y));\r\n }\r\n\t \t\t\r\n\t \t\t//If object is planet, set the size\r\n\t \t\telse if(AlexxWork2.spaceObjList.get(i).getType() == \"PLAN\"){\r\n\t \t\t\tsize = 16;\r\n\t \t\t}\r\n\t \t\t\r\n\t \t\t//Else set size based on mag\r\n\t \t\telse{\r\n\t \t\t\tsize = getSize(Double.valueOf(AlexxWork2.spaceObjList.get(i).getMagnitude()));\r\n\t \t\t}\r\n\t \t\t\r\n\t \t\t//Add size to list\r\n\t \t\ttest.add(c, size);\r\n\t \t\ttest.add(d, size);\r\n\t \t\ta = d + 1;\r\n\t \t\tb = a + 1;\r\n\t \t\tc = b + 1;\r\n\t \t\td = c + 1;\r\n \t\t}\r\n \t\t\r\n \t\t//Load constellation labels\r\n \t\tif(AlexxWork2.constellationsCB) {\r\n\t\t\t\tif(AlexxWork2.spaceObjList.get(i).getType() == \"CONST\" \r\n\t\t\t\t\t\t&& AlexxWork2.spaceObjList.get(i).getConstName() != null \r\n\t\t\t\t\t\t&& AlexxWork2.spaceObjList.get(i).getConstName() != \"\"\r\n\t\t\t\t\t\t&& AlexxWork2.spaceObjList.get(i).getAltitude() > 1) {\r\n\t\t\t\t\tint x = getX(2250, 2250, 1000, (int)AlexxWork2.spaceObjList.get(i).getAzimuth(), (int)AlexxWork2.spaceObjList.get(i).getAltitude());\r\n\t\t\t\t\tint y = getY(2250, 2250, 1000, (int)AlexxWork2.spaceObjList.get(i).getAzimuth(), (int)AlexxWork2.spaceObjList.get(i).getAltitude());\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\tconstLabels.add(AlexxWork2.spaceObjList.get(i).getConstName());\r\n\t\t\t\t\tconstLabels.add(String.valueOf(x));\r\n\t\t\t\t\tconstLabels.add(String.valueOf(y));\r\n\t\t\t\t}\r\n\t\t\t}\r\n \t\t\r\n \t\t//Load planet labels\r\n \t\tif(AlexxWork2.planetsCB) {\r\n\t\t\t\tif(AlexxWork2.spaceObjList.get(i).getType() == \"PLAN\" \r\n\t\t\t\t\t\t&& AlexxWork2.spaceObjList.get(i).getProperName() != null \r\n\t\t\t\t\t\t&& AlexxWork2.spaceObjList.get(i).getProperName() != \"\"\r\n\t\t\t\t\t\t&& AlexxWork2.spaceObjList.get(i).getAltitude() > 1) {\r\n\t\t\t\t\tint x = getX(2250, 2250, 1000, (int)AlexxWork2.spaceObjList.get(i).getAzimuth(), (int)AlexxWork2.spaceObjList.get(i).getAltitude());\r\n\t\t\t\t\tint y = getY(2250, 2250, 1000, (int)AlexxWork2.spaceObjList.get(i).getAzimuth(), (int)AlexxWork2.spaceObjList.get(i).getAltitude());\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\tplanetLabels.add(AlexxWork2.spaceObjList.get(i).getProperName());\r\n\t\t\t\t\tplanetLabels.add(String.valueOf(x));\r\n\t\t\t\t\tplanetLabels.add(String.valueOf(y));\r\n\t\t\t\t}\r\n\t\t\t}\r\n \t\t\r\n \t\t//Load messier labels\r\n \t\tif(AlexxWork2.messierCB) {\r\n\t\t\t\tif(AlexxWork2.spaceObjList.get(i).getType() == \"MESR\" \r\n\t\t\t\t\t\t&& AlexxWork2.spaceObjList.get(i).getProperName() != null \r\n\t\t\t\t\t\t&& AlexxWork2.spaceObjList.get(i).getProperName() != \"\"\r\n\t\t\t\t\t\t&& AlexxWork2.spaceObjList.get(i).getAltitude() > 1) {\r\n\t\t\t\t\tint x = getX(2250, 2250, 1000, (int)AlexxWork2.spaceObjList.get(i).getAzimuth(), (int)AlexxWork2.spaceObjList.get(i).getAltitude());\r\n\t\t\t\t\tint y = getY(2250, 2250, 1000, (int)AlexxWork2.spaceObjList.get(i).getAzimuth(), (int)AlexxWork2.spaceObjList.get(i).getAltitude());\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\tmesrLabels.add(AlexxWork2.spaceObjList.get(i).getProperName());\r\n\t\t\t\t\tmesrLabels.add(String.valueOf(x));\r\n\t\t\t\t\tmesrLabels.add(String.valueOf(y));\r\n\t\t\t\t}\r\n\t\t\t}\r\n \t}\r\n \t\r\n \t//Return list \r\n \treturn test;\r\n }", "void outPut(ArrayList<SanPham> list);", "public TwoSum_TLE() {\n list = new ArrayList();\n set = new HashSet();\n }", "public List<MLocoStoreAuxilary> getauxilaryoutput()\n\t\t{System.out.println(\"loco_auxilaryoutput received\");\n\t\tList<MLocoStoreAuxilary> auxioutput = new ArrayList<>();\t\t\t\t\n\t\tobj_repoaxo.findall()\n\t\t\t\t.forEach(auxioutput::add);\n\t\t System.out.println(auxioutput);\n\t\t return auxioutput;\t\t\n\t\t}", "public ArrayList<Double> getInputs()\n {\n return inputs;\n }", "testarray() {\r\n \tarrayList = new Arraylist();\t\r\n\t}", "private static List forestIntoList() {\n List temp = new ArrayList<Integer>();\n for (int i = 0; i < SIZE; i++) {\n for (int j = 0; j < SIZE; j++) {\n temp.add(forest[i][j]);\n }\n }\n return temp;\n }", "public ArrayList<Integer> getBrown() {\n\t\treturn brown;\n\t}", "public TempList() {\n list = new ArrayList<T>();\n }", "public ArrayList<Integer> obtenerYi(){\n ArrayList<Integer> res = new ArrayList<Integer>();\n int cont;\n \n for (float p:probabilidades){\n cont=0;\n while (Math.pow(base, cont)<1/p)\n cont++;\n res.add(cont);\n }\n return res;\n }", "public ArrayList<Integer> getResults(){\n return results;\n }", "public ArrayList<Float> mathematicalFFT(ArrayList<Float> wave){\r\n ArrayList<Float> newWave = new ArrayList<>();\r\n //note the line above is here so i can run the program without any errors, it is not meant to help\r\n return newWave;\r\n }", "public void testingArrayList() {\r\n\t\tSystem.err\r\n\t\t\t\t.println(\"Class NewFeatures, method testingArrayList called!\");\r\n\t\t// we don't need to write data type two times\r\n\t\t// ArrayList<String> list = new ArrayList<String>();\r\n\t\tArrayList<String> list = new ArrayList<>();\r\n\t\tlist.add(\"hey\");\r\n\t\tlist.add(\"kello\");\r\n\t\tlist.add(\"labas\");\r\n\t\tSystem.out.println(\"\\nValue in list:\" + list.get(0));\r\n\t\tSystem.out.println(\"Printing out the ArrayList: \" + list);\r\n\t\tSystem.out.println(\"Class NewFeatures, method testingArrayList done!\");\r\n\t}", "protected java.util.ArrayList getTempWorkItems() {\n return tempWorkItems;\n }", "public List<Output<TInt32>> thresholdsList() {\n return thresholdsList;\n }", "public ArrayList<T> getAsList(){\r\n return arrayList;\r\n }", "public abstract NSMutableArray<I_WorkFlowItem> tachesObligatoires();", "public static ArrayList < ArrayList < Double >> binPack(double weight[], int n, double bin_cap) { \r\n int binCount = 0;\r\n int k = 0;\r\n double[] bin_space = new double[n];\r\n\r\n ArrayList < Integer > bin = new ArrayList < Integer > ();\r\n ArrayList < Double > val = new ArrayList < Double > ();\r\n ArrayList < ArrayList < Double >> binVal = new ArrayList < ArrayList < Double >> ();\r\n binVal.add(k, new ArrayList < Double > ());\r\n System.out.println(\".......Commencing Calculation...........\\n\");\r\n startTime = System.nanoTime();\r\n for (int i = 0; i < n; i++) {\r\n int j;\r\n for (j = 0; j < binCount; j++) {\r\n \r\n if (bin_space[j] >= weight[i]) {\r\n bin_space[j] = bin_space[j] - weight[i];\r\n //val.add(weight[i]);\r\n (binVal.get(j)).add((weight[i]));\r\n k=j+1;\r\n System.out.println(\"---Bin \" + j + \" took in weight \" + weight[i]);\r\n break;\r\n }\r\n \r\n }\r\n System.out.println(\"*Bad fit for next weight size \"+ weight[i]+ \r\n \"\\n\\n ***NEW BIN CREATED***\\n\");\r\n if (j == binCount) {\r\n \r\n bin_space[binCount] = bin_cap - weight[i];\r\n //val.add(weight[i]);\r\n binCount++;\r\n //k++;\r\n bin.add(j);\r\n binVal.add(j, new ArrayList < Double > ());\r\n (binVal.get(j)).add((weight[i]));\r\n k=j+1;\r\n System.out.println(\"---Bin \" + k + \" took in weight **\" + weight[i]);\r\n }\r\n } \r\n endTime = System.nanoTime();\r\n elapsedTime = (endTime- startTime);\r\n System.out.println(\"\\nBIN PACKING ALGORITHM COMPLETE\\n\");\r\n \r\n return binVal;\r\n }", "private PyObject[] listtoarray(ArrayList<PyObject> a)\n {\n PyObject[] results = new PyObject[a.size()];\n int iter = 0;\n for (PyObject pt : a) {\n results[iter] = pt;\n iter++;\n }\n return results;\n }", "public List<Value> getOutput() {\n if ( output == null ) output = new ArrayList<Value>();\n return output;\n }", "public ArrayList<Square> getSquares(){\n return bSquares;\n }", "public ArrayList<ArrayList<Double>> createModifiedMarkovModel(int focusedSquare){\n ArrayList<ArrayList<Double>> mm = new ArrayList<ArrayList<Double>>(3);\n for (int i =0; i<3; i++)\n mm.add(new ArrayList<Double>());\n for (int i =0; i<9; i++){\n if (focusedSquare ==-1){//for full square glitch.\n if (focusedSquare ==-1&&!bSquares.get(i).checkSquareFilled()){\n mm.get(0).add(markovSModel.get(0).get(i));\n mm.get(1).add(markovSModel.get(1).get(i));\n mm.get(2).add(markovSModel.get(2).get(i));\n }\n else{\n mm.get(0).add(0.0);//if the square is already full, then don't include the probability to choose that large square.\n mm.get(1).add(0.0);\n mm.get(2).add(0.0);\n }\n }\n else{\n if(bSquares.get(focusedSquare).getSmallSquare(i).getOwnership()==0){\n mm.get(0).add(markovSModel.get(0).get(i));\n mm.get(1).add(markovSModel.get(1).get(i));\n mm.get(2).add(markovSModel.get(2).get(i));\n }\n else{\n mm.get(0).add(0.0);\n mm.get(1).add(0.0);\n mm.get(2).add(0.0);\n }\n }\n }\n return mm;\n \n }", "public ArrayList<Ball> getBalls(){\n return balls;\n }", "public Bench(){\n this(new ArrayList<>());\n }", "ArrayList<Unit> extend(){\n return list;\n }", "public abstract ArrayList<Integer> getSudokuNumbersList();", "public ArrayList<String> getOutputs() {\r\n return outputs;\r\n }", "void mo9148a(int i, ArrayList<C0889x> arrayList);", "public ArrayList<ArrayList<Double>> getInput() {\n return input;\n }", "public ArrayList<User> getArrayList(){\n return userlist;\n }", "public ArrayList<Integer> getRankReward() {\n/* 46 */ return this.rankReward;\n/* */ }", "public ToDoList2AL()\n {\n\tcompleted = new ArrayList<Task>();\n\ttoDo = new ArrayList<Task>();\n }", "public ArrayList<Integer> getAccessibleBitRates();", "private static ArrayList<Integer> generateBinaryCodeList(ArrayList<ArrayList<Integer>> tMat){\r\n\t\tArrayList<Integer> bcList = new ArrayList<Integer>();\r\n\t\tfor (int i = 0; i < tMat.size(); i++){\r\n\t\t\tint code = getBinaryCode(tMat, i);\r\n\t\t\tbcList.add(code);\r\n\t\t}\r\n\t\treturn bcList;\r\n\t}", "public static ArrayList<Individuo> mutaHeuristica(ArrayList<Individuo> genAnt,int nB){\n ArrayList<Individuo> aux = genAnt;\n ArrayList<Integer> genesS = new ArrayList<>();\n int nM = (int) (genAnt.size()*0.2); //determina cuantos individuos van a ser mutados\n int iS,gS,i=0,n,c;\n byte gaux[],baux;\n Random r = new Random();\n while(i<nM){\n gS = r.nextInt(nB+1);//selecciona el numero de genes aleatoriamente\n iS = r.nextInt(genAnt.size());//selecciona un individuo aleatoriamente\n gaux = aux.get(iS).getGenotipo();//obtenemos genotipo de ind seleccionado\n c=0;\n System.out.println(gS);\n //seleccionamos genes a ser permutados\n while(c != gS){\n n = r.nextInt(nB);\n if(!genesS.contains(n)){\n genesS.add(n);\n System.out.print(genesS.get(c)+\" \");\n c++;\n }\n }\n System.out.println(\"\");\n //aux.remove(iS);//quitamos elemento\n //aux.add(iS, new Individuo(gaux,genAnt.get(0).getTipoRepre()));//añadimos elemento mutado\n i++;\n }\n return aux;\n }", "public abstract ArrayList< Double > getObjectiveCoefs();", "ArrayList<ArrayList<Double>> initrandomTerrainHeights() {\n ArrayList<ArrayList<Double>> result = new ArrayList<ArrayList<Double>>();\n for (int i = 0; i < ForbiddenIslandWorld.ISLAND_SIZE + 1; i = i + 1) {\n ArrayList<Double> result2 = new ArrayList<Double>();\n for (int j = 0; j < ForbiddenIslandWorld.ISLAND_SIZE + 1; j = j + 1) {\n result2.add(0.0);\n }\n result.add(result2);\n }\n result.get(0).set(ForbiddenIslandWorld.ISLAND_SIZE / 2, 1.0);\n result.get(ForbiddenIslandWorld.ISLAND_SIZE / 2).set(0, 1.0);\n result.get(ForbiddenIslandWorld.ISLAND_SIZE / 2).set(ForbiddenIslandWorld.ISLAND_SIZE / 2,\n (double) (ForbiddenIslandWorld.ISLAND_SIZE / 2));\n result.get(ForbiddenIslandWorld.ISLAND_SIZE / 2).set(ForbiddenIslandWorld.ISLAND_SIZE, 1.0);\n result.get(ForbiddenIslandWorld.ISLAND_SIZE).set(ForbiddenIslandWorld.ISLAND_SIZE / 2, 1.0);\n return result;\n }", "public abstract ArrayList<Object> calculateTransform(ArrayList<Integer> arr);", "ArrayList<Float> znajdzOstatecznaCeneCenaNaNajblizszeSloty()\n\t{\n\t\t//getInput(\"znajdzOstatecznaCeneCenaNaNajblizszeSloty -start\");\n\t\t\n\t\t\n\t\t//wez wszystkie ceny \n\t\t//moze byc brane od dowolnego prosumenta wiec 0 tez jest ok\n\t\tArrayList<Point> L1 = listaFunkcjiUzytecznosci.get(0);\n\t\t\n\t\tArrayList<Float> L2 = new ArrayList<Float>();\n\t\t\n\t\tint i=0;\n\t\twhile (i<L1.size())\n\t\t{\n\t\t\tfloat cena = L1.get(i).getPrice();\n\t\t\tL2.add(cena);\n\t\t\t//print(cena);\n\t\t\ti++;\n\t\t}\n\t\t\n\t\t//print (Arrays.toString(L2.toArray()));\n\t\t\n\t\t//getInput(\"znajdzOstatecznaCeneCenaNaNajblizszeSloty -end\");\n\t\t\n\t\treturn L2;\n\t}", "public List<Output<TFloat32>> gainsList() {\n return gainsList;\n }", "public ArrayList<Pair<Integer, Integer>> getCoins(ArrayList<Pair<Integer, Integer>> target) {\r\n \tIterator<Sprite> beanCounter = coins.iterator();\r\n \ttarget.clear();\r\n \twhile (beanCounter.hasNext()) {\r\n \t\tPair<Integer, Integer> pos = beanCounter.next().getPos();\r\n \t\ttarget.add(pos);\r\n \t}\r\n \treturn target;\r\n }", "public ArrayList<ViterbiUnit> getMuList(ArrayList<HashMap<String,ViterbiUnit>> viterbiMap){\n\t\tArrayList<ViterbiUnit> muList=new ArrayList<ViterbiUnit>();\n\t\tgetMuListHelper(muList,viterbiMap,padding_word,viterbiMap.size()-1);\n\t\treturn muList;\n\t}", "public List<Instance> getSamples(){\n\t\treturn arrIns;\n\t}", "public BubSortList() {\n\t\tray = new int[MAXSIZE];\n\t\tnowLength = 0;\n\t}", "public ArrayList makeStudentList() {\r\n ArrayList<String> studenter = new ArrayList();\r\n Student student = new Student();\r\n \r\n \r\n \r\n return studenter;\r\n}", "List<C1111j> mo5873b();", "private void CreateStudentList() {\r\n\t\tStudentList=new ArrayList<Student>();\t\r\n}", "public void genLists() {\n\t}", "public ArrayList<Integer> getGen() {\n\treturn _gen;\n }", "public ArrayList<BuffBean> getBuff() {\n/* 22 */ return this.buff;\n/* */ }", "Object getTolist();", "private List<Instance> flushResultBuffer() {\n\t\tList<Instance> resultBuffer = this.resultBuffer;\n\t\tthis.resultBuffer = new LinkedList<Instance>();\n\t\treturn resultBuffer;\n\t}", "public MyArrayList ()\r\n {\r\n \tlist = new Object[100];\r\n \tnumElements = 0;\r\n }", "@SuppressWarnings(\"unchecked\") // <.>\n static void wordList(){\n ArrayList wordList = new ArrayList<>(); // <.>\n wordList.add(\"cat\");\n wordList.add(\"dog\");\n\n System.out.println(\"Word list => \" + wordList);\n }", "@Override\n\tpublic ArrayList<T> toArrayList() {\n\t\tArrayList<T> out = new ArrayList<T>();\n\t\ttoArrayListRecursive(out,root);\n\t\treturn out;\n\t}", "private static ArrayList<Integer> makeListOfInts() {\n ArrayList<Integer> listOfInts = new ArrayList<>(Arrays.asList(7096, 3, 3924, 2404, 4502,\n 4800, 74, 91, 9, 7, 9, 6790, 5, 59, 9, 48, 6345, 88, 73, 88, 956, 94, 665, 7,\n 797, 3978, 1, 3922, 511, 344, 6, 10, 743, 36, 9289, 7117, 1446, 10, 7466, 9,\n 223, 2, 6, 528, 37, 33, 1616, 619, 494, 48, 9, 5106, 144, 12, 12, 2, 759, 813,\n 5156, 9779, 969, 3, 257, 3, 4910, 65, 1, 907, 4464, 15, 8685, 54, 48, 762, 7952,\n 639, 3, 4, 8239, 4, 21, 306, 667, 1, 2, 90, 42, 6, 1, 3337, 6, 803, 3912, 85,\n 31, 30, 502, 876, 8686, 813, 880, 5309, 20, 27, 2523, 266, 101, 8, 3058, 7,\n 56, 6961, 46, 199, 866, 4, 184, 4, 9675, 92));\n\n return listOfInts;\n }", "private void createRuleList()\n {\n\n ArrayList<String> tempList0 = new ArrayList<String>();\n ArrayList<String> tempList1 = new ArrayList<String>();\n ArrayList<String> tempList2 = new ArrayList<String>();\n ArrayList<String> tempList3 = new ArrayList<String>();\n ArrayList<String> tempList4 = new ArrayList<String>();\n ArrayList<String> tempList5 = new ArrayList<String>();\n ArrayList<String> tempList6 = new ArrayList<String>();\n ArrayList<String> tempList7 = new ArrayList<String>();\n ArrayList<String> tempList8 = new ArrayList<String>();\n ArrayList<String> tempList9 = new ArrayList<String>();\n ArrayList<String> tempList10 = new ArrayList<String>();\n ArrayList<String> tempList11 = new ArrayList<String>();\n ArrayList<String> tempList12 = new ArrayList<String>();\n ArrayList<String> tempList13 = new ArrayList<String>();\n ArrayList<String> tempList14 = new ArrayList<String>();\n ArrayList<String> tempList15 = new ArrayList<String>();\n ArrayList<String> tempList16 = new ArrayList<String>();\n ArrayList<String> tempList17 = new ArrayList<String>();\n ArrayList<String> tempList18 = new ArrayList<String>();\n ArrayList<String> tempList19 = new ArrayList<String>();\n ArrayList<String> tempList20 = new ArrayList<String>();\n ArrayList<String> tempList21 = new ArrayList<String>();\n ArrayList<String> tempList22 = new ArrayList<String>();\n ArrayList<String> tempList23 = new ArrayList<String>();\n ArrayList<String> tempList24 = new ArrayList<String>();\n ArrayList<String> tempList25 = new ArrayList<String>();\n ArrayList<String> tempList26 = new ArrayList<String>();\n ArrayList<String> tempList27 = new ArrayList<String>();\n ArrayList<String> tempList28 = new ArrayList<String>();\n ArrayList<String> tempList29 = new ArrayList<String>();\n ArrayList<String> tempList30 = new ArrayList<String>();\n ArrayList<String> tempList31 = new ArrayList<String>();\n ArrayList<String> tempList32 = new ArrayList<String>();\n ArrayList<String> tempList33 = new ArrayList<String>();\n ArrayList<String> tempList34 = new ArrayList<String>();\n ArrayList<String> tempList35 = new ArrayList<String>();\n ArrayList<String> tempList36 = new ArrayList<String>();\n ArrayList<String> tempList37 = new ArrayList<String>();\n ArrayList<String> tempList38 = new ArrayList<String>();\n ArrayList<String> tempList39 = new ArrayList<String>();\n ArrayList<String> tempList40 = new ArrayList<String>();\n ArrayList<String> tempList41 = new ArrayList<String>();\n ArrayList<String> tempList42 = new ArrayList<String>();\n ArrayList<String> tempList43 = new ArrayList<String>();\n ArrayList<String> tempList44 = new ArrayList<String>();\n ArrayList<String> tempList45 = new ArrayList<String>();\n ArrayList<String> tempList46 = new ArrayList<String>();\n ArrayList<String> tempList47 = new ArrayList<String>();\n ArrayList<String> tempList48 = new ArrayList<String>();\n\n //There is no rule 0, so index 0 is left blank\n tempList0.add(\"\");\n ruleList.add(tempList0);\n //Create a list for each index position, then add it on to the overall list of lists\n tempList1.add(\"make-<PROGRAM>\");\n tempList1.add(\"DEFINITIONS\");\n ruleList.add(tempList1);\n tempList2.add(\"NULL\");\n ruleList.add(tempList2);\n tempList3.add(\"DEFINITIONS\");\n tempList3.add(\"DEF\");\n ruleList.add(tempList3);\n tempList4.add(\"make-<DEF>\");\n tempList4.add(\"BODY\");\n tempList4.add(\"TYPE\");\n tempList4.add(\"colon\");\n tempList4.add(\"rightParen\");\n tempList4.add(\"FORMALS\");\n tempList4.add(\"leftParen\");\n tempList4.add(\"make-<IDENTIFIER>\");\n tempList4.add(\"IDENTIFIER\");\n tempList4.add(\"function\");\n ruleList.add(tempList4);\n tempList5.add(\"make-<FORMALS>\");\n ruleList.add(tempList5);\n tempList6.add(\"NONEMPTYFORMALS\");\n ruleList.add(tempList6);\n tempList7.add(\"NEFREST\");\n tempList7.add(\"FORMAL\");\n ruleList.add(tempList7);\n tempList8.add(\"NONEMPTYFORMALS\");\n tempList8.add(\"comma\");\n ruleList.add(tempList8);\n tempList9.add(\"make-<FORMALS>\");\n ruleList.add(tempList9);\n tempList10.add(\"make-<FORMAL>\");\n tempList10.add(\"TYPE\");\n tempList10.add(\"colon\");\n tempList10.add(\"make-<IDENTIFIER>\");\n tempList10.add(\"IDENTIFIER\");\n ruleList.add(tempList10);\n tempList11.add(\"PRINTBODY\");\n ruleList.add(tempList11);\n tempList12.add(\"make-<BODY>\");\n tempList12.add(\"EXPR\");\n ruleList.add(tempList12);\n tempList13.add(\"BODY\");\n tempList13.add(\"PRINTSTATEMENT\");\n ruleList.add(tempList13);\n tempList14.add(\"make-integer\");\n tempList14.add(\"integer\");\n ruleList.add(tempList14);\n tempList15.add(\"make-boolean\");\n tempList15.add(\"boolean\");\n ruleList.add(tempList15);\n tempList16.add(\"EXPRREST\");\n tempList16.add(\"SIMPLEEXPR\");\n ruleList.add(tempList16);\n tempList17.add(\"EXPRREST\");\n tempList17.add(\"make-<BINARY>\");\n tempList17.add(\"EXPR\");\n tempList17.add(\"lessThan\");\n ruleList.add(tempList17);\n tempList18.add(\"EXPRREST\");\n tempList18.add(\"make-<BINARY>\");\n tempList18.add(\"EXPR\");\n tempList18.add(\"equals\");\n ruleList.add(tempList18);\n tempList19.add(\"make-<EXPR>\");\n ruleList.add(tempList19);\n tempList20.add(\"SIMPLEEXPRREST\");\n tempList20.add(\"TERM\");\n ruleList.add(tempList20);\n tempList21.add(\"SIMPLEEXPRREST\");\n tempList21.add(\"make-<BINARY>\");\n tempList21.add(\"SIMPLEEXPR\");\n tempList21.add(\"or\");\n ruleList.add(tempList21);\n tempList22.add(\"SIMPLEEXPRREST\");\n tempList22.add(\"make-<BINARY>\");\n tempList22.add(\"SIMPLEEXPR\");\n tempList22.add(\"plus\");\n ruleList.add(tempList22);\n tempList23.add(\"SIMPLEEXPRREST\");\n tempList23.add(\"make-<BINARY>\");\n tempList23.add(\"SIMPLEEXPR\");\n tempList23.add(\"minus\");\n ruleList.add(tempList23);\n tempList24.add(\"NULL\");\n ruleList.add(tempList24);\n tempList25.add(\"TERMREST\");\n tempList25.add(\"FACTOR\");\n ruleList.add(tempList25);\n tempList26.add(\"TERMREST\");\n tempList26.add(\"make-<BINARY>\");\n tempList26.add(\"TERM\");\n tempList26.add(\"and\");\n ruleList.add(tempList26);\n tempList27.add(\"TERMREST\");\n tempList27.add(\"make-<BINARY>\");\n tempList27.add(\"TERM\");\n tempList27.add(\"multiply\");\n ruleList.add(tempList27);\n tempList28.add(\"TERMREST\");\n tempList28.add(\"make-<BINARY>\");\n tempList28.add(\"TERM\");\n tempList28.add(\"divide\");\n ruleList.add(tempList28);\n tempList29.add(\"NULL\");\n ruleList.add(tempList29);\n tempList30.add(\"make-<if-EXPR>\");\n tempList30.add(\"EXPR\");\n tempList30.add(\"else\");\n tempList30.add(\"EXPR\");\n tempList30.add(\"then\");\n tempList30.add(\"EXPR\");\n tempList30.add(\"if\");\n ruleList.add(tempList30);\n tempList31.add(\"NOTFACTOR\");\n ruleList.add(tempList31);\n tempList32.add(\"IDENTIFIERMAIN\");\n ruleList.add(tempList32);\n tempList33.add(\"LITERAL\");\n ruleList.add(tempList33);\n tempList34.add(\"NEGFACTOR\");\n ruleList.add(tempList34);\n tempList35.add(\"rightParen\");\n tempList35.add(\"EXPR\");\n tempList35.add(\"leftParen\");\n ruleList.add(tempList35);\n tempList36.add(\"make-<UNARY>\");\n tempList36.add(\"FACTOR\");\n tempList36.add(\"not\");\n ruleList.add(tempList36);\n tempList37.add(\"make-<UNARY>\");\n tempList37.add(\"FACTOR\");\n tempList37.add(\"minus\");\n ruleList.add(tempList37);\n tempList38.add(\"IDENTIFIERREST\");\n tempList38.add(\"make-<IDENTIFIER>\");\n tempList38.add(\"IDENTIFIER\");\n ruleList.add(tempList38);\n tempList39.add(\"rightParen\");\n tempList39.add(\"ACTUALS\");\n tempList39.add(\"leftParen\");\n ruleList.add(tempList39);\n tempList40.add(\"NULL\");\n ruleList.add(tempList40);\n tempList41.add(\"NULL\");\n ruleList.add(tempList41);\n tempList42.add(\"NONEMPTYACTUALS\");\n ruleList.add(tempList42);\n tempList43.add(\"NEAREST\");\n tempList43.add(\"EXPR\");\n ruleList.add(tempList43);\n tempList44.add(\"NONEMPTYACTUALS\");\n tempList44.add(\"comma\");\n ruleList.add(tempList44);\n tempList45.add(\"make-Function-Call\");\n tempList45.add(\"make-<ACTUALS>\");\n ruleList.add(tempList45);\n tempList46.add(\"make-<NUMBER>\");\n tempList46.add(\"NUMBER\");\n ruleList.add(tempList46);\n tempList47.add(\"make-<BOOLEAN>\");\n tempList47.add(\"BOOLEAN\");\n ruleList.add(tempList47);\n tempList48.add(\"make-Function-Call\");\n tempList48.add(\"rightParen\");\n tempList48.add(\"EXPR\");\n tempList48.add(\"leftParen\");\n tempList48.add(\"make-<IDENTIFIER>\");\n tempList48.add(\"print\");\n ruleList.add(tempList48);\n }", "private synchronized void addResultToMultiList() {\n\t addObjectToMultiList(resultArrayList);\r\n\t }", "public static void main(String[] args) {\n\t\t\n\t\tList<String> al=new ArrayList<>();\t\t\n\t\tSystem.out.println(al.get(0));\n\t\tSystem.out.println(al.indexOf(1));\n\t\tCollections.sort(al);\n\t\tSystem.out.println(\"sort : \"+al);\n\t\tCollections.shuffle(al);\n\t\tSystem.out.println(\"shuffeled : \"+al);\n\t\tCollections.reverse(al);\n\t\t//ArrayList<Integer> ll=(ArrayList<Integer>)al.clone();\n\t\t\n\t\t\n\t\t\n \n\t\t\n \n\t}", "public List<List<Float>>getWingRecords(){\n List<List<Float>> tempList = new ArrayList<>();\n tempList.add(this.getRightMainWingInclinationLog());\n tempList.add(this.getAngleOfAttackRightMainWingLog());\n tempList.add(this.getLeftMainWingInclinationLog());\n tempList.add(this.getAngleOfAttackLeftMainWingLog());\n tempList.add(this.getHorStabWingInclinationLog());\n tempList.add(this.getAngleOfAttackHorStabWingLog());\n tempList.add(this.getVerStabWingInclinationLog());\n tempList.add(this.getAngleOfAttackVerStabWingLog());\n\n return tempList;\n }", "public ArrayList<Question> getBank(){\n return quesCollec;\n }", "private ArrayList<String> convertToStringArrayList() {\r\n\t\tArrayList<String> strList = new ArrayList<String>();\r\n\t\tStringBuilder strBuilder = new StringBuilder();\r\n\t\tfor (int i = 0; i < gameBoard.getmBoard().length; i++) {\r\n\t\t\tfor (int j = 0; j < gameBoard.getmBoard()[0].length; j++) {\r\n\t\t\t\tstrBuilder.append(gameBoard.getIdValue(gameBoard.genId(i, j)));\r\n\t\t\t}\r\n\t\t\tstrList.add(strBuilder.toString());\r\n\t\t\tstrBuilder.setLength(0);\r\n\t\t}\r\n\r\n\t\tif (gameBoard.isPlayerBlackTurn()) {\r\n\t\t\tstrList.add(\"t\");\r\n\t\t} else {\r\n\t\t\tstrList.add(\"f\");\r\n\t\t}\r\n\r\n\t\tstrList.add(((Integer) gameBoard.getBlackScore()).toString());\r\n\t\tstrList.add(((Integer) gameBoard.getRedScore()).toString());\r\n\t\treturn strList;\r\n\t}", "public ArrayList<TradeRequest> getTradeRequests(){return tradeRequests;}", "private ArrayList<String> postOrder()\n\t{\n\t\tArrayList<String> rlist = new ArrayList<String>();\n\t\tpostOrder(this,rlist);\n\t\treturn rlist;\n\t}", "public ArrayList getBricks() {\r\n return totalBricks;\r\n }", "private void helper(List<Integer> tempList,ArrayList<Integer> list) {\n //stopping condition\n if(list.size()==0) {\n ans.add(new ArrayList<>(tempList)); // add a copy of tempList\n }\n else {\n for(int i=0;i<list.size();i++) {\n if(i==0 || list.get(i-1) != list.get(i)) // avoid duplication\n {\n ArrayList<Integer> newlist = new ArrayList<>(list);\n tempList.add(list.get(i));\n newlist.remove(i);\n helper(tempList,newlist);\n tempList.remove(tempList.size()-1);\n }\n\n }\n }\n }", "public static void toBinFile(ArrayList<Loan> l){\r\n for(int i = 0; i < l.size(); i++){\r\n try{\r\n FileOutputStream fileOut = new FileOutputStream(\"loans.bin\");\r\n ObjectOutputStream objectOut = new ObjectOutputStream(fileOut);\r\n objectOut.write(i);\r\n \r\n }catch(IOException e){\r\n System.out.println(e);\r\n }\r\n }\r\n System.out.println(\"All loans stored to file\\n\");\r\n }", "public static void main(String[] args) {\n\t\tArrayList ar=new ArrayList();\n\t\tar.add(100);\n\t\tar.add(200);\n\t\t\n\t\t ArrayList<Integer> arr=new ArrayList<Integer>();\n\t\t arr.add(10);\n\t\t arr.add(200);\n\t\t arr.add(400);\n\t\t \n\t\t \n\t\t System.out.println(arr.size());//length of arraylist\n\t\t \n\t\t //iteration\n\t\t for(int i=0;i<arr.size();i++) {\n\t\t\t System.out.println(i);\n\t\t }\n\t\t \n\t\t for(Integer e:arr) {\n\t\t\t System.out.println(e);\n\t\t }\n\t\t \n\t\t arr.stream().forEach(e->System.out.println(e));\n\t\t \n\t\t Iterator<Integer>it=arr.iterator();\n\t\t while(it.hasNext()) {\n\t\t\t System.out.println(it.next());\n\t\t }\n\t\tSystem.out.println(\"******************************************\");\n\n\t\t//create one arraylist with another\n\t\t\n\t\tArrayList<Integer> list= new ArrayList<Integer>(Arrays.asList(10,20,30,40,50));\n\t\t\n\t\t//arraylist methods\n\t\t//1.Add\n\t\tlist.add(90);\n\t\tSystem.out.println(list);\n\t\t\n\t\t//2.AddAll\n\t\tArrayList<String> ar1=new ArrayList<String>(Arrays.asList(\"Ruby\",\"Python\",\"Java\",\"C#\"));\n\t\t\n\t\tArrayList<String> ar2=new ArrayList<String>(Arrays.asList(\"Testing\",\"Devops\"));\n\n\t\tar1.addAll(ar2);\n\t\tar2.addAll(ar1);\n\t\tSystem.out.println(ar1);\n\t\tSystem.out.println(ar2);\n\t\t\n\t\t//3.clear\n\t\t//ar1.clear();\n\t\tSystem.out.println(ar1);\n\t\t\n\t\t//4.clone\n\t\tArrayList<String> clonelist=( ArrayList<String>)ar2.clone();\n\t\tSystem.out.println(clonelist);\n\n\t\t//5.contains\n\t\tSystem.out.println(ar2.contains(\"python\"));\n\t\t\n\t\t//6.index of\n\t\tSystem.out.println(ar1);\n\t\tSystem.out.println(ar1.indexOf(\"java\")>0);\n\t\t\n\t\t//7.last index of-returns inetegre\n\t\t\n\t\tArrayList<String> list1=new ArrayList<String>(Arrays.asList(\"Anu\",\"Naveen\",\"Tom\"));\n\t\tint i=list1.lastIndexOf(\"test\");\n\t\tSystem.out.println(i);\n\t\t\n\t\t//8.remove\n\t\tlist1.remove(1);\n\t\tlist1.remove(\"Anu\");\n\t\t\n\t\t//9.removeif\n\t\tArrayList<Integer> numbers=new ArrayList<Integer>(Arrays.asList(1,2,3,4,5,6,7,8,9,10));\n\t\tnumbers.removeIf(num->num%2==0);//printing all odd numbers /elimnating even numbers\n\t\tSystem.out.println(numbers);\n\t\t\n\t\t//10.retain All\n\t\tArrayList<String> al=new ArrayList<String>(Arrays.asList(\"ANu\",\"Robin\",\"Sky\",\"Red\"));\n\t\tal.retainAll(Collections.singleton(\"ANu\"));\n\t\tSystem.out.println(al);\n\t\t\n\t\t//11.How to create a substring from arraylist\n\t\tArrayList<Integer> no=new ArrayList<Integer>(Arrays.asList(1,2,3,4,5,6,7,8,9,12,13,14));\n\t\t\n\t\tArrayList<Integer> substring=new ArrayList<Integer>(no.subList(3, 9));\n\t\tSystem.out.println(substring);\n\t\t\n\t\t//How to convert an arraylist to array\n\t\tObject arr1[]=no.toArray();\n\t\tSystem.out.println(Arrays.toString(arr1));\n\t\t\n\t\tfor(Object e:arr1) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\t\t\n\t\t/*How to synchronise arraylist\n\t\t * 1.collections.synchronisedlist()->returns a synchronised list\n\t\t * 2.CopyOnWriteArraylist-synchronised variant of arraylist\n\t\t*/\n\t\t\n\t\tList<String> namelist=(List<String>) Collections.synchronizedCollection(new ArrayList<String>());\n\t\t\n\t\t\n\t\t//How to remove duplicate elements using linkedhashset and streams\n\t\t\n\t\t//how to compare 2 arraylist\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\n\t}", "public void setInputs(ArrayList<Double> inputs)\n {\n this.inputs = inputs;\n }", "public ArrayList() {\n\t\tthis.elements = new Object[5];\n\t\tthis.last = -1;\n\t}", "static public ArrayList<Long> Share(int t) throws IOException {\n ArrayList<Long> ret = new ArrayList();\n\n \n for(int i=0 ; i<t ;i++){\n Long a = randomval(); \n if (a < 0){\n a=a+p;\n }\n if (i>0)\n System.out.print(\"S = \");\n else \n System.out.print(\"M = \");\n System.out.println(a);\n \n equation.add(a);\n }\n byte[] content= equation.get(0).toString().getBytes();\n FileReader.savefile(\"secret.txt\", content);\n\n for (int i = 1; i <= t; i++) {\n Long y = new Long(0);\n for (int j = 0; j < equation.size(); j++) {\n y = y + ((equation.get(j) * pow(i, j)));\n y=y % p ;\n }\n ret.add(y);\n }\n return ret;\n }", "public ArrayList<RewardBean> getReward() {\n/* 34 */ return this.reward;\n/* */ }", "List<C1111j> mo5868a();", "private static ArrayList<String> getOptimizedList(ArrayList<String> objList){\n\t\tArrayList<String> optimizedList = new ArrayList<String>();\r\n\t\tint limit = 1; // quantidade de objs escolhida da lista original (por exemplo, 2 objetos serao escolhidos aleatoriamente)\r\n\t\t\r\n\t\tRandom generator = new Random();\r\n\t\t\r\n\t\tfor(int i=0; i<limit; i++){\r\n\t\t\toptimizedList.add(objList.get(generator.nextInt(objList.size())));\r\n\t\t}\r\n\t\t\r\n\t\treturn optimizedList;\r\n\t}", "public ArrayList getList() {\n \t\treturn list;\n \t}", "@SuppressWarnings(\"unchecked\")\n private void initAdjList()\n {\n adjList = new ArrayList[v];\n\n for(int i = 0; i < v; i++)\n {\n adjList[i] = new ArrayList<>();\n }\n }", "public TwoSum() {\n list = new ArrayList();\n map = new HashMap();\n }", "protected abstract ArrayList<Element> _toXml_();", "public ArrayList61B() {\n\t\tthis.size = 1;\n\t\tthis.arrayList = (E[]) new Object[this.size];\n\t}", "public List<Integer> Result()\n\t{\n\t\treturn result;\n\t}", "private ArrayList<Record> test() {\n\t\t\t\tfor (int i = 0; i < numberOfIterations; i++) {\n\t\t\t\t\t// for each training record\n\t\t\t\t\tfor (int j = 0; j < numberOfRecords; j++) {\n\t\t\t\t\t\t// calculate inputs and outputs\n\t\t\t\t\t\tforwardCalculation(records.get(j).input);\n\t\t\t\t\t}\n\t\t\t\t}\n//\t\t\t\tpostprocessOutputs();\n\t\t// forward pass\n\t\t// back pass\n\t\treturn records;\n\t}", "public Sample(ArrayList<Double> inputs, ArrayList<Double> outputs)\n {\n this.inputs = inputs;\n this.outputs = outputs;\n numberOfInputs = 0;\n numberOfOutputs = 0;\n comment = \"\";\n }", "public TaskList (ArrayList<Task> tasks){ this.tasks = tasks;}", "@Override\r\n\tprotected void createExpected() \r\n\t{\r\n\t\texpected = new ArrayList<IIndividual>();\r\n\t\texpected.add(new BinArrayIndividual(new byte [] {1, 0, 0, 0, 1, 1}));\t\t\r\n\t}", "public ArrayList<Book> getBookList()\r\n {\r\n ArrayList<Book> bookCopy = new ArrayList<Book>();\r\n //Add code here to copy the bookList ArrayList elements into the local variable bookCopy and return bookCopy\r\n //Hint: You will use the 2-arg Book constructor and the getters or you can add a copy constructor to the Book\r\n //Class\r\n for(Book book: bookList){\r\n Book bk = new Book(book.getTitle(), book.getPrice());\r\n bookCopy.add(bk);\r\n }\r\n return bookCopy;\r\n }" ]
[ "0.6260575", "0.59824705", "0.5672107", "0.56274575", "0.56236154", "0.54958695", "0.54799706", "0.5476845", "0.54758966", "0.5451914", "0.54515743", "0.54341924", "0.54292613", "0.5428685", "0.5418149", "0.5379152", "0.5363267", "0.53591913", "0.5347935", "0.5346396", "0.5339951", "0.53239137", "0.5322418", "0.5322414", "0.5303808", "0.5283906", "0.526987", "0.52536994", "0.5246865", "0.5229777", "0.5214365", "0.5195197", "0.5188572", "0.5184376", "0.51822567", "0.5169304", "0.514937", "0.51471025", "0.51459694", "0.5139781", "0.513471", "0.5130829", "0.51243365", "0.5124044", "0.51198775", "0.5113613", "0.5108229", "0.51060116", "0.5105543", "0.5084475", "0.5079236", "0.507231", "0.5072303", "0.50715953", "0.5069266", "0.5066525", "0.5064584", "0.5057086", "0.5056159", "0.50559294", "0.5047316", "0.504491", "0.5026125", "0.502381", "0.50196236", "0.50176865", "0.50140136", "0.49998385", "0.4997991", "0.49978775", "0.4995643", "0.4971221", "0.49691433", "0.49607328", "0.49579608", "0.4951799", "0.4948003", "0.49454167", "0.4933073", "0.4921657", "0.4920967", "0.4917729", "0.49102655", "0.4906991", "0.48987517", "0.48973665", "0.48958987", "0.4893093", "0.48912257", "0.48857272", "0.48855075", "0.48827884", "0.48750755", "0.4867232", "0.48638868", "0.48584744", "0.48568732", "0.4849662", "0.48495948", "0.48495552", "0.48493528" ]
0.0
-1
Model tests for ProcessWebhook
@Test public void testProcessWebhook() { // TODO: test ProcessWebhook }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\n public void updateWebHook() {\n }", "@Test\n public void zulipOutgoingWebhooksTest() throws Exception {\n\n // TODO: delete this line and uncomment the next\n // InlineResponse200 response = api.zulipOutgoingWebhooks();\n // TODO: complete test assertions\n }", "@Test\n\tpublic void testCreatePostLive() throws Exception\n\t{\n\t}", "@Counted(name = \"webhooks\", description = \"How many webhooks were received\")\n public List<Event> handle(Webhook webhook) {\n logger.infov(\"Handling webhook\");\n return captainHook.webhooks().stream()\n .filter(mapping -> mapping.matches(webhook))\n .map(WebhookMapping::event)\n .map(eventMapping -> {\n Map<String, String> eventLabels = new HashMap<>();\n\n eventMapping.labels().values()\n .forEach((key, value) -> eventLabels.put(key, templateEngine.evaluate(value, webhook.payload())));\n\n return new Event(LabelSet.of(eventLabels),\n templateEngine.evaluate(eventMapping.name(), webhook.payload()),\n templateEngine.evaluate(eventMapping.message(), webhook.payload()),\n templateEngine.evaluate(eventMapping.title().orElse(\"\"), webhook.payload()),\n templateEngine.evaluate(eventMapping.url().orElse(\"\"), webhook.payload()));\n })\n .peek(this::handle)\n .collect(Collectors.toList());\n }", "@Test\n\tpublic void storeLogDataTest() {\n\n\t\tStatisticsRequest request = new StatisticsRequest(\"testingid\", \"testing\", 200, 3);\n\t\twebTestClient.post().uri(\"/logginResponseTime\").contentType(MediaType.APPLICATION_JSON)\n\t\t\t\t.accept(MediaType.APPLICATION_JSON).body(Mono.just(request), StatisticsRequest.class).exchange()\n\t\t\t\t.expectStatus().isOk().expectBody(String.class).consumeWith(res -> {\n\t\t\t\t\tassertTrue(res.getResponseBody().equalsIgnoreCase(\"saved\"));\n\t\t\t\t});\n\n\t}", "@Test\n\tpublic void testMessageToSlack() {\n\t\tConfigurationManager config = new ConfigurationManager();\n\t\tHashMap<String, String> parameters = new HashMap<String, String>();\n\t\tRequestObject request = new RequestObject(\"GET\", \"/slack\", parameters);\n\t\tcheckMessageToSlack(config.getConfig(), request, \"\");\n\t\tparameters.put(\"message\", \"HELLO!\");\n\t\tcheckMessageToSlack(config.getConfig(), request, \"\");\n\t\trequest.setMethod(\"POST\");\n\t\tcheckMessageToSlack(config.getConfig(), request, \"HELLO!\");\n\t\tparameters.remove(\"message\");\n\t\tparameters.put(\"asin\", \"ABC123\");\n\t\tcheckMessageToSlack(config.getConfig(), request, \"\");\n\t\tparameters.put(\"message\", \"BYE!\");\n\t\tcheckMessageToSlack(config.getConfig(), request, \"BYE!\");\n\t}", "@Test\n public void testAPIReqIdUpload() {\n // TODO: test APIReqIdUpload\n }", "public interface WebhookParserService {\n boolean parse(String payload);\n}", "void send(WebhookMessage msg);", "@Test\n public void test1() throws JsonProcessingException {\n JSONObject payload = getJsonObject(PAYLOAD_BASEPATH + \"saveEmployee.json\");\n\n payload.put(\"email\", RandomUtils.generateRandomString(5).concat(\"@gmail.com\"));\n payload.put(\"status\", fetchDataFromDataFile(\"service1Data\", \"createUser\", \"Value2\"));\n payload.put(\"name\", fetchDataFromDataFile(\"service1Data\", \"createUser\", \"Value3\"));\n payload.put(\"gender\", fetchDataFromDataFile(\"service1Data\", \"createUser\", \"Value4\"));\n\n log.info(\"api request is {} \", payload);\n Response response = given().headers(\"Authorization\", \"Bearer e85170d9b952bb8a12603f87d6c8f525946b4906c311b83eeec703bd0c1cbea0\").filter(new ErrorLoggingFilter(errorCapture)).contentType(ContentType.JSON).body(payload.toString()).log().everything().when().post(Constants.BASEPATH.concat(Constants.CREATE_USER));\n verifyStatusCode(response);\n verifyResponseBody(response, \"201\");\n// dbAssist.responseValidation(response);\n log.error(\"hey {} \", errorWriter.toString().toUpperCase());\n log.info(\"response is {}\", response.prettyPrint());\n }", "@Test\n\tpublic void test_04() {\n\n\t\t//Json data configuration\n\t\tcomplexobjectinformationclass childdataobject = new complexobjectinformationclass();\n\t\tcomplexobjectclass dataobject = new complexobjectclass();\n\n\t\tchilddataobject.setEmail(\"complex@complex.com\");\n\t\tchilddataobject.setPhone(\"12300000\");\n\t\tchilddataobject.setAddress(\"Bangladesh\");\n\n\t\tdataobject.setId(\"2\");\n\t\tdataobject.setAuthor(\"ataure\");\n\t\tdataobject.setTitle(\"This is title\");\n\t\tdataobject.setinformation(childdataobject);\n\n\n\t\t//Request body\n\t\tResponse reponse = given().\n\t\t\t\twhen().\n\t\t\t\tcontentType(ContentType.JSON).\n\t\t\t\tbody(dataobject).\n\t\t\t\tpost(\"http://localhost:3000/posts\");\n\n\t\tSystem.out.println(\"updated response data \"+ reponse.asString());\t\t\n\t}", "@Test\n public void testProcessPushMessageReceiptEventWithSDK() throws Exception {\n testExtension.iterableService = Mockito.mock(IterableService.class);\n\n EventProcessingRequest eventProcessingRequest = createEventProcessingRequest();\n Map<String, String> integrationAttributes = new HashMap<>();\n integrationAttributes.put(\"Iterable.sdkVersion\", \"3.2.1\");\n eventProcessingRequest.setIntegrationAttributes(integrationAttributes);\n List<UserIdentity> userIdentities = new LinkedList<>();\n userIdentities.add(new UserIdentity(UserIdentity.Type.EMAIL, Identity.Encoding.RAW, \"mptest@mparticle.com\"));\n userIdentities.add(new UserIdentity(UserIdentity.Type.CUSTOMER, Identity.Encoding.RAW, \"123456\"));\n eventProcessingRequest.setUserIdentities(userIdentities);\n eventProcessingRequest.setRuntimeEnvironment(new AndroidRuntimeEnvironment());\n PushMessageReceiptEvent event = new PushMessageReceiptEvent();\n event.setRequest(eventProcessingRequest);\n event.setPayload(\"{\\\"google.sent_time\\\":1507657706679,\\\"body\\\":\\\"example\\\",\\\"from\\\":\\\"674988899928\\\",\\\"itbl\\\":\\\"{\\\\\\\"campaignId\\\\\\\":12345,\\\\\\\"isGhostPush\\\\\\\":false,\\\\\\\"messageId\\\\\\\":\\\\\\\"1dce4e505b11111ca1111d6fdd774fbd\\\\\\\",\\\\\\\"templateId\\\\\\\":54321}\\\",\\\"google.message_id\\\":\\\"0:1507657706689231%62399b94f9fd7ecd\\\"}\");\n\n long timeStamp = System.currentTimeMillis();\n event.setTimestamp(timeStamp);\n\n testExtension.processPushMessageReceiptEvent(event);\n\n Mockito.verify(testExtension.iterableService, never()).trackPushOpen(Mockito.any(), Mockito.any());\n }", "@Test\n public void sendBatchTest() {\n Batch batch = null;\n // List<BatchReturn> response = api.sendBatch(batch);\n\n // TODO: test validations\n }", "@Test\n public void test() {\n XssPayload payload = XssPayload.genDoubleQuoteAttributePayload(\"input\", true);\n helper.requireLoginAdmin();\n orderId = helper.createDummyOrder(payload.toString(), \"dummy\");\n helper.get(ProcedureHelper.ORDERS_EDIT_URL(orderId));\n assertPayloadNextTo(payload, \"clientName\");\n }", "@Test\n public void testAddPrizeNotification() throws Exception {\n }", "@Test\n public void whatsappFeeTest() {\n // TODO: test whatsappFee\n }", "@Test\n public void makeAndRetrievePbaPaymentsByProbateForSuccessLiberataValidation() {\n String accountNumber = testProps.existingAccountNumber;\n CreditAccountPaymentRequest accountPaymentRequest = PaymentFixture\n .aPbaPaymentRequestForProbateForSuccessLiberataValidation(\"215.00\", \"PROBATE\");\n accountPaymentRequest.setAccountNumber(accountNumber);\n PaymentDto paymentDto = paymentTestService.postPbaPayment(USER_TOKEN, SERVICE_TOKEN, accountPaymentRequest).then()\n .statusCode(CREATED.value()).body(\"status\", equalTo(\"Success\")).extract().as(PaymentDto.class);\n\n // Get pba payment by reference\n PaymentDto paymentsResponse =\n paymentTestService.getPbaPayment(USER_TOKEN, SERVICE_TOKEN, paymentDto.getReference()).then()\n .statusCode(OK.value()).extract().as(PaymentDto.class);\n\n assertThat(paymentsResponse.getAccountNumber()).isEqualTo(accountNumber);\n\n // Get pba payments by ccdCaseNumber\n PaymentsResponse liberataResponse = paymentTestService\n .getPbaPaymentsByCCDCaseNumber(SERVICE_TOKEN, accountPaymentRequest.getCcdCaseNumber()).then()\n .statusCode(OK.value()).extract().as(PaymentsResponse.class);\n assertThat(liberataResponse.getPayments().size()).isGreaterThanOrEqualTo(1);\n PaymentDto retrievedPaymentDto = liberataResponse.getPayments().stream()\n .filter(o -> o.getPaymentReference().equals(paymentDto.getReference())).findFirst().get();\n assertThat(retrievedPaymentDto.getAccountNumber()).isEqualTo(accountNumber);\n assertThat(retrievedPaymentDto.getFees().get(0).getApportionedPayment()).isEqualTo(\"215.00\");\n assertThat(retrievedPaymentDto.getFees().get(0).getCalculatedAmount()).isEqualTo(\"215.00\");\n assertThat(retrievedPaymentDto.getFees().get(0).getMemoLine())\n .isEqualTo(\"Personal Application for grant of Probate\");\n assertThat(retrievedPaymentDto.getFees().get(0).getNaturalAccountCode())\n .isEqualTo(\"4481102158\");\n assertThat(retrievedPaymentDto.getFees().get(0).getJurisdiction1()).isEqualTo(\"family\");\n assertThat(retrievedPaymentDto.getFees().get(0).getJurisdiction2())\n .isEqualTo(\"probate registry\");\n\n // delete payment record\n paymentTestService.deletePayment(USER_TOKEN, SERVICE_TOKEN, paymentDto.getReference()).then().statusCode(NO_CONTENT.value());\n\n }", "public void testService() {\n\n\t\ttry {\n\t\t\tString nextAction = \"next action\";\n\t\t\trequest.setAttribute(\"NEXT_ACTION\", nextAction);\n\t\t\tString nextPublisher = \"next publisher\";\n\t\t\trequest.setAttribute(\"NEXT_PUBLISHER\", nextPublisher);\n\t\t\tString expertQueryDisplayed = \"expert query displayed\";\n\t\t\trequest.setAttribute(\"expertDisplayedForUpdate\", expertQueryDisplayed);\n\t\t\tupdateFieldsForResumeAction.service(request, response);\n\t\t\tassertEquals(nextAction, response.getAttribute(\"NEXT_ACTION\"));\t\t\n\t\t\tassertEquals(nextPublisher, response.getAttribute(\"NEXT_PUBLISHER\"));\n\t\t\tassertEquals(expertQueryDisplayed, singleDataMartWizardObj.getExpertQueryDisplayed());\n\t\t\t\n\t\t} catch (SourceBeanException e) {\n\t\t\te.printStackTrace();\n\t\t\tfail(\"Unaspected exception occurred!\");\n\t\t}\n\t\t\n\t}", "@Test\n public void updateWorkflow_200() throws Exception {\n\n // PREPARE THE DATABASE\n // Fill in the workflow db\n addMOToDb(1);\n Integer id = addMOToDb(2).getId();\n addMOToDb(3);\n\n // PREPARE THE TEST\n Workflow mo = new Workflow();\n mo.setName(\"New My_Workflow\");\n mo.setDescription(\"New Description of my new workflow\");\n mo.setRaw(\"New Workflow new content\");\n\n // DO THE TEST\n Response response = callAPI(VERB.PUT, \"/mo/\" + id.toString(), mo);\n\n // CHECK RESULTS\n int status = response.getStatus();\n assertEquals(200, status);\n\n String body = response.readEntity(String.class);\n assertEquals(\"\", body);\n }", "@Test\n public void canCreateWithPayload() {\n // Act\n final EventData eventData = new EventData(PAYLOAD_BYTES);\n\n // Assert\n Assertions.assertNotNull(eventData.getBody());\n Assertions.assertEquals(PAYLOAD, new String(eventData.getBody(), UTF_8));\n }", "@Test\n public void create_405() throws Exception {\n\n // PREPARE THE DATABASE\n // Fill in the workflow db\n addMOToDb(1);\n addMOToDb(2);\n Integer id = addMOToDb(3).getId();\n\n // PREPARE THE TEST\n // Change the name\n Workflow mo = new Workflow();\n mo.setName(\"Different name\");\n mo.setDescription(\"Different description\");\n mo.setRaw(\"Different raw\");\n\n\n // DO THE TEST\n Response response = callAPI(VERB.POST, \"/mo/\" + id.toString(), mo);\n\n // CHECK RESULTS\n int status = response.getStatus();\n assertEquals(405, status);\n\n String body = response.readEntity(String.class);\n assertEquals(\"HTTP 405 Method Not Allowed\", body);\n }", "@Test\r\n public void test_performLogic_Accuracy4() throws Exception {\r\n UploadedDocument doc = new UploadedDocument();\r\n doc.setDocumentId(500);\r\n doc.setContestId(1);\r\n doc.setFileName(\"test.txt\");\r\n doc.setPath(\"test_files\");\r\n doc.setMimeTypeId(new MimeTypeRetriever().getMimeTypeIdFromFileName(\"test_files/test.txt\"));\r\n List<UploadedDocument> docUploads = new ArrayList<UploadedDocument>();\r\n docUploads.add(doc);\r\n\r\n instance.performLogic(docUploads);\r\n }", "@Test\n\t@Override\n\tpublic void testSaveURLJson() throws Exception {\n\t}", "@Override\n public MockResponse handleCreate(RecordedRequest request) {\n return process(request, postHandler);\n }", "@Test\n public void shouldProcessData() throws Exception {\n }", "protected void setUp() throws Exception {\n JbpmConfiguration jbpmConfiguration = JbpmConfiguration.getInstance(\"org/jbpm/bpel/graph/exe/test.jbpm.cfg.xml\");\n jbpmContext = jbpmConfiguration.createJbpmContext();\n\n // process and global scope\n BpelProcessDefinition processDefinition = new BpelProcessDefinition(\"pd\",\n BpelConstants.NS_EXAMPLES);\n Scope scope = processDefinition.getGlobalScope();\n // primary activity\n Activity primary = new Assign();\n scope.setActivity(primary);\n // wsdl description\n Definition def = WsdlUtil.readText(WSDL_TEXT);\n ImportDefinition importDefinition = processDefinition.getImportDefinition();\n importDefinition.addImport(WsdlUtil.createImport(def));\n new BpelReader().registerPropertyAliases(importDefinition);\n // namespace declarations\n namespaces = new HashSet();\n namespaces.add(new Namespace(\"tns\", BpelConstants.NS_EXAMPLES));\n // the bpel 1.1 namespace is required to access variables through the\n // function getVariableData\n namespaces.add(new Namespace(\"bpws11\", BpelConstants.NS_BPEL_1_1));\n // variable definition\n VariableDefinition messageDefinition = new VariableDefinition();\n messageDefinition.setName(\"msg\");\n messageDefinition.setType(importDefinition.getMessageType(new QName(BpelConstants.NS_EXAMPLES,\n \"request\")));\n scope.addVariable(messageDefinition);\n // instantiate process\n token = new ProcessInstance(processDefinition).getRootToken();\n token.setNode(primary);\n // variable instance\n messageDefinition.createInstance(token);\n messageValue = (MessageValue) messageDefinition.getValueForAssign(token);\n // initialize the element part\n partValue = XmlUtil.parseText(ELEM_PART_TEXT);\n messageValue.setPart(\"elementPart\", partValue);\n }", "@SuppressWarnings(\"unchecked\")\r\n\t@Test\r\n\tpublic void testDoProcess_success() throws SerializationException, ProcessingException, ServiceException,\r\n\t\t\tJsonProcessingException, DeserializationException {\r\n\t\tEvent event = Event.createInstance(\"OMS-ESCT-002\", \"OMS-ESCT-002\", \"OFS\", \"OMS\", null, null);\r\n\t\tevent.setOriginatedByTenantId(tenantToken);\r\n\t\tViewOrderRequest evnt = new ViewOrderRequest();\r\n\t\tevnt.setInstrumentId(\"CR-832754827\");\r\n\t\tevent.getRequestMsg().getPayload().setContent(evnt);\r\n\t\tEscortInstrument escortInstrument = helper.getEscortInstrumentDetail();\r\n\t\tString escortString = mapper.writeValueAsString(escortInstrument);\r\n\t\twhen(polyglotStubService.find(any(PolyglotQueryInstance.class))).thenReturn(escortString);\r\n\t\twhen(polyglotStubService.getResultObject(anyString(), any(TypeReference.class), any(Class.class), any()))\r\n\t\t\t\t.thenCallRealMethod();\r\n\t\tprocessor.doProcess(event);\r\n\t\tViewOrderResponse response = event.getAckMsg().getPayload().getContent(ViewOrderResponse.class);\r\n\t\tassertNotNull(response);\r\n\t\tassertTrue(response.getMessageCode().contains(MessageConstant.SUCCESS_REQUESTED_DATA_EXIST));\r\n\r\n\t}", "@Test\n public void createObject() {\n\n for (int i = 1; i < 20; i++) {\n\n /**\n * Get the current array\n */\n RequestSpecification request = RestAssured.given();\n BankTransacctionPojo pojoEndpoint = new BankTransacctionPojo();\n\n /**\n * Change the json to pojo\n */\n Response responseGet = getEndPoint(Endpoint.URL);\n List<BankTransacctionPojo> bankTransacctionPojoList = new Gson().fromJson(responseGet.asString(), new TypeToken<List<BankTransacctionPojo>>() {\n }.getType());\n\n\n /**\n * validate the email with current data\n */\n for (BankTransacctionPojo bankTransacctionPojo : bankTransacctionPojoList) {\n Assert.assertFalse(bankTransacctionPojo.getEmail().equals(pojoEndpoint.getEmail()));\n\n }\n\n request.body(new Gson().toJson(pojoEndpoint));\n /**\n * result\n */\n Response responsePost = request.post(Endpoint.URL);\n responsePost.then()\n .assertThat()\n .statusCode(HttpStatus.SC_CREATED);\n\n }\n\n }", "@Test\n public void postTest(){\n Post post = new Post(\"Title 1\",\"Body 1\");\n\n given().accept(ContentType.JSON)\n .and().contentType(ContentType.JSON)\n .body(post)\n .when().post(\"/posts\")\n .then().statusCode(201)\n .body(\"title\",is(\"Title 1\"),\n \"body\",is(\"Body 1\"),\n \"id\",is(101));\n }", "private DemoProcessStartEmailForWebservice() {\n\n }", "public void postRequest() {\n apiUtil = new APIUtil();\n // As this is an API call , we are not setting up any base url but defining the individual calls\n apiUtil.setBaseURI(configurationReader.get(\"BaseURL\"));\n //This is used to validate the get call protected with basic authentication mechanism\n basicAuthValidation();\n scenario.write(\"Request body parameters are :-\");\n SamplePOJO samplePOJO = new SamplePOJO();\n samplePOJO.setFirstName(scenarioContext.getContext(\"firstName\"));\n samplePOJO.setLastName(scenarioContext.getContext(\"lastName\"));\n\n ObjectMapper objectMapper = new ObjectMapper();\n try {\n apiUtil.setRequestBody(objectMapper.writeValueAsString(samplePOJO));\n } catch (JsonProcessingException e) {\n e.printStackTrace();\n }\n }", "@Test\n\tvoid testOnAddToOrder() {\n\t}", "public WebhookDecoderSample() {\n\n }", "@Test\n\tpublic void runSend(){\n\t\tstandard();\n\t}", "public void testReceiveFeedback() {\n\n\t}", "@Test\n void executeMoneyTransfer() throws ParseException, JsonProcessingException {\n\n String idAccount = \"14537780\";\n String receiverName = \"Receiver Name\";\n String description = \"description text\";\n String currency = \"EUR\";\n String amount = \"100\";\n String executionDate = \"2020-12-12\";\n MoneyTransfer moneyTransfer = Utils.fillMoneyTransfer(idAccount, receiverName, description, currency, amount, executionDate);\n\n Response response = greetingWebClient.executeMoneyTransfer(moneyTransfer, idAccount);\n assertTrue(response.getStatus().equals(\"KO\"));\n\n\n }", "@Test\n public void saveActivity() {\n }", "@Test\n public void test_whenCreateRequestForNotExisting_entityIsCreated() {\n CreateEntityRequestV1 command = prepareCreateEntityRequest();\n\n commandProcessor.process(ENTITY_ID_IN_SUBDOMAIN, command);\n\n // Let's verify that expected key and entity were stored in store.\n ArgumentCaptor<String> argumentKey = ArgumentCaptor.forClass(String.class);\n ArgumentCaptor<GenericRecord> argumentValue = ArgumentCaptor.forClass(GenericRecord.class);\n verify(entityKVStateStoreMock).put(argumentKey.capture(), argumentValue.capture());\n GenericRecord resultEntity = argumentValue.getValue();\n //\n // Verify key.\n assertEquals(ENTITY_ID_IN_SUBDOMAIN, argumentKey.getValue());\n //\n // Verify entity content.\n assertEquals(command.getEntityTypeName(), resultEntity.get(EntityV1FieldNames.ENTITY_TYPE_NAME) );\n assertEquals(command.getEntitySubdomainName(), resultEntity.get(EntityV1FieldNames.ENTITY_SUBDOMAIN_NAME) );\n assertEquals(command.getEntityIdInSubdomain(), resultEntity.get(EntityV1FieldNames.ENTITY_ID_IN_SUBDOMAIN));\n assertAttributesAreEqual(command.getEntityAttributes(),\n (GenericRecord) resultEntity.get(EntityV1FieldNames.ATTRIBUTES));\n\n // And verify that the same key and entity were forwarded.\n ArgumentCaptor<GenericRecord> argumentForwarded = ArgumentCaptor.forClass(GenericRecord.class);\n verify(processorContextMock).forward(argumentKey.capture(), argumentForwarded.capture());\n GenericRecord forwardedEntity = argumentForwarded.getValue();\n assertEquals(ENTITY_ID_IN_SUBDOMAIN, argumentKey.getValue());\n assertSame(resultEntity, forwardedEntity);\n }", "@Test\n public void shouldThrow422ExceptionWhenPreviewNotEligibleForPublishing() {\n UUID randomUuid = UUID.randomUUID();\n when(eomFile.getUuid()).thenReturn(randomUuid.toString());\n when(eomFileProcessor.process(\n eq(eomFile), eq(TransformationMode.PREVIEW), eq(TRANSACTION_ID), any()))\n .thenThrow(new UnsupportedEomTypeException(randomUuid, INVALID_TYPE));\n try {\n postContentToTransformResource.map(eomFile, IS_PREVIEW_TRUE, null);\n fail(\"No exception was thrown, but expected one.\");\n } catch (WebApplicationClientException wace) {\n assertThat(\n ((ErrorEntity) wace.getResponse().getEntity()).getMessage(),\n equalTo(String.format(\"[%s] not an EOM::CompoundStory.\", INVALID_TYPE)));\n assertThat(wace.getResponse().getStatus(), equalTo(HttpStatus.SC_UNPROCESSABLE_ENTITY));\n }\n }", "@Test\n public void testProcessiOSPushMessageReceiptWithoutCampaignId() throws IOException {\n testExtension.iterableService = iterableServiceMock;\n EventProcessingRequest eventProcessingRequest = createEventProcessingRequest();\n eventProcessingRequest.setUserIdentities(userIdentitiesWithEmailAndCustomerId);\n eventProcessingRequest.setRuntimeEnvironment(new IosRuntimeEnvironment());\n PushMessageReceiptEvent event = new PushMessageReceiptEvent();\n event.setRequest(eventProcessingRequest);\n event.setPayload(\"{\\\"aps\\\":{\\\"content-available\\\":1 }, \\\"data\\\":{\\\"route\\\":\\\"example\\\", \\\"tag\\\":\\\"example\\\", \\\"body\\\":\\\"example\\\"}, \\\"route\\\":\\\"example\\\", \\\"type\\\":\\\"marketing\\\", \\\"itbl\\\":{\\\"messageId\\\":\\\"1dce4e505b11111ca1111d6fdd774fbd\\\", \\\"templateId\\\":54321, \\\"isGhostPush\\\":false } }\");\n event.setTimestamp(System.currentTimeMillis());\n\n testExtension.processPushMessageReceiptEvent(event);\n Mockito.verify(iterableServiceMock, never()).trackPushOpen(Mockito.any(), Mockito.any());\n }", "@Test\n void postTest() {\n URI uri = URI.create(endBody + \"/post\");\n\n // create a dummy body for easy JSON conversion\n QuestionText newQuestion = new QuestionText(\"Test\");\n\n // convert to json and send / store the response\n HttpResponse<String> response = HttpMethods.post(uri, gson.toJson(newQuestion));\n\n assertEquals(200, response.statusCode());\n }", "@Before\n public void setUpAcceptedRequest() {\n // create a mock book\n Book book = new Book(\"test owner\", \"test owner id\");\n book.setTitle(\"test title\");\n book.setAuthor(\"test author\");\n book.setIsbn(\"11223344556677889900\");\n\n // upload the mock accepted request for the mock book\n String email = FirebaseAuth.getInstance().getCurrentUser().getEmail();\n Database.getUserFromEmail(email)\n .addOnSuccessListener(queryDocumentSnapshots -> {\n DocumentSnapshot doc = queryDocumentSnapshots.getDocuments().get(0);\n Request request = new Request(book, doc.toObject(User.class), \"available\");\n request.getCreator().setUsername(doc.getId());\n Database.createRequest(request)\n .addOnSuccessListener(e -> {\n setUpHelper(doc.getId());\n })\n .addOnFailureListener(e -> {\n fail(\"failed creating request\");\n });\n });\n\n // Initialize the solo instance on BorrowerMainActivity\n solo = new Solo(InstrumentationRegistry.getInstrumentation(), rule.getActivity());\n solo.sleep(3000);\n }", "private boolean postKnowledgeElement(KnowledgeElement changedElement, String event) {\n\t\tWebhookContentProviderForSlack provider = new WebhookContentProviderForSlack(projectKey, changedElement, type);\n\t\tPostMethod postMethod = provider.createPostMethod(event);\n\t\treturn executePostMethod(postMethod);\n\t}", "@Test\n public void updateWorkflow_400() throws Exception {\n\n // PREPARE THE DATABASE\n // Fill in the workflow db\n addMOToDb(1);\n addMOToDb(2);\n addMOToDb(3);\n\n // PREPARE THE TEST\n String badId = \"bad_id\";\n Workflow mo = new Workflow();\n mo.setName(\"New My_Workflow\");\n mo.setDescription(\"New Description of my new workflow\");\n mo.setRaw(\"New Workflow new content\");\n\n // DO THE TEST\n Response response = callAPI(VERB.PUT, \"/mo/\" + badId, mo);\n\n // CHECK RESULTS\n int status = response.getStatus();\n assertEquals(400, status);\n\n String body = response.readEntity(String.class);\n assertEquals(\"\", body);\n }", "@Test\n public void messageTypeTest() {\n // TODO: test messageType\n }", "@Test(enabled=false)\n\tpublic void createPostCheckBodyContents() {\n\t\tPosts posts = new Posts(\"4\", \"Packers\", \"Favre\");\n\t\t\n\t\tgiven().\n\t\twhen().contentType(ContentType.JSON).\n\t\tbody(posts).\n\t\tpost(\"http://localhost:3000/posts/\").\n\t\tthen().\n\t\tstatusCode(201).\n\t\tbody(\"id\", is(posts.getId())).\n\t\tbody(\"title\",is(posts.getTitle())).\n\t\tbody(\"author\",is(posts.getAuthor()));\n\t}", "@Test\r\n public void testProcessProperties() \r\n {\r\n System.out.println(\"processProperties\");\r\n List<CPTADataProperty> properties = null;\r\n CPTAYahooEODMessage instance = new CPTAYahooEODMessage();\r\n instance.processProperties(properties);\r\n // TODO review the generated test code and remove the default call to fail.\r\n // fail(\"The test case is a prototype.\");\r\n }", "@Test\r\n public void testValidate() throws MessageValidationException {\r\n ProductRequestMsg instance = new ProductRequestMsg();\r\n instance.setMessage(\"The request message\");\r\n instance.setQuantity(1.0f);\r\n instance.setPickingDate(new Date());\r\n PartialUserMsg user = new PartialUserMsg();\r\n user.setId(167892L);\r\n instance.setRequester(user);\r\n ProductMsg product = new ProductMsg();\r\n product.setId(12L);\r\n instance.setProduct(product);\r\n instance.validate();\r\n }", "@Override\n\tpublic void validatePopulateAndSendNotification(NotificationModel verificationStatusModel) throws ServiceException {\n\t\t\n\t}", "@Test\n public void testSlip() {\n // Setup\n\n // Run the test\n modelUnderTest.slip();\n\n // Verify the results\n }", "@Test\n public void testProcessUserAttributeChangeEvent() throws Exception {\n testExtension.iterableService = Mockito.mock(IterableService.class);\n testExtension.processUserAttributeChangeEvent(new UserAttributeChangeEvent());\n Mockito.verify(testExtension.iterableService, never()).userUpdate(Mockito.any(), Mockito.any());\n }", "@Test\n\tpublic void madeOfferHasPendingStatus() {\n\t}", "@ApiModelProperty(example = \"b2f574ff-7efe-4579-9f16-fcb9097e5ab6\", required = true, value = \"The ID of the webhook that was used to send out this callback\")\n public UUID getWebhook() {\n return webhook;\n }", "@Test(priority = 4)\n\tpublic void inValideFileType() throws JsonProcessingException {\n\n\t\ttest.log(LogStatus.INFO, \"My test is starting.....\");\n\t\tResponse resp=given()\n\t .contentType(\"multipart/form-data\")\n\t .multiPart(\"product_line\",\"testing\")\n\t .multiPart(\"file\", new File(\"./src/test/resources/statuscode.txt\"))\n\t .post(APIPath.apiPath.POST_VALID_PATH);\n\n\t\tresp.then().body(\"message\",equalTo(\"Invalide File Type.\"));\n\t\ttest.log(LogStatus.PASS, \"Invalide File Type\");\n\t\tAssert.assertEquals(resp.getStatusCode(),400);\n\t\ttest.log(LogStatus.PASS, \"Successfully validated status code expected 400 and Actual status code is :: \" + resp.getStatusCode());\n\n\t\ttest.log(LogStatus.INFO, \"My Test Has been ended \");\n\n\t}", "@SuppressWarnings(\"unchecked\")\n @Test\n public void testBackenStatusUpdateError() throws Exception {\n RequestBodyEntity bodyEntityRegister = mock(RequestBodyEntity.class);\n \n HttpResponse<String> stringResponseRegister = (HttpResponse<String>) mock(HttpResponse.class);\n when(stringResponseRegister.getStatus())\n .thenReturn(400); \n when(bodyEntityRegister.asString())\n .thenReturn(stringResponseRegister); \n\n HttpRequestWithBody registerBodyMock = mock(HttpRequestWithBody.class);\n \n when(registerBodyMock.routeParam(anyString(), anyString()))\n .thenReturn(registerBodyMock);\n when(registerBodyMock.header(anyString(), anyString()))\n .thenReturn(registerBodyMock);\n when(registerBodyMock.body(anyString()))\n .thenReturn(bodyEntityRegister);\n\n // PUT mock\n when(Unirest.put(contains(\"/event/status\")))\n .thenReturn(registerBodyMock); \n \n TestWorker testWorker = new TestWorker();\n worker = getWrappedWorker(testWorker);\n worker.run();\n \n // let worker throw CommunicationException\n Envelope envelope = new Envelope(new Long(34343), false, \"graviton\", \"documents.core.app.update\");\n URL jsonFile = this.getClass().getClassLoader().getResource(\"json/queueEvent.json\");\n String message = FileUtils.readFileToString(new File(jsonFile.getFile()));\n workerConsumer.handleDelivery(\"documents.core.app.update\", envelope, new AMQP.BasicProperties(), message.getBytes()); \n }", "@Test\n public void shouldReceivePaymentNotification() {\n stubFinder.trigger(\"paymentReceived\");\n\n // when\n Payment actualPayment = paymentsQueuelistener.lastPayment;\n\n // then\n Payment expectedPayment = new Payment(\"abc\", \"Paid\");\n assertThat(actualPayment).isEqualTo(expectedPayment);\n }", "@Test\n public void testActorInputBean() {\n // TODO: test ActorInputBean\n }", "@Test\n public void checkCreateCampaignTest() {\n ObjectIdentityData buyer = ObjectIdentityData.getAnyObjectFromList(buyers);\n // create request data with campaign test data\n RequestData requestData = new CampaignRequestData(buyer);\n // check create post request\n GrantsVerification.checkCreateRequest(requestData, isAdmin());\n }", "@Test\n public void testProcessAndroidPushMessageReceiptWithoutCampaignId() throws IOException {\n testExtension.iterableService = iterableServiceMock;\n EventProcessingRequest eventProcessingRequest = createEventProcessingRequest();\n eventProcessingRequest.setUserIdentities(userIdentitiesWithEmailAndCustomerId);\n eventProcessingRequest.setRuntimeEnvironment(new AndroidRuntimeEnvironment());\n PushMessageReceiptEvent event = new PushMessageReceiptEvent();\n event.setRequest(eventProcessingRequest);\n event.setPayload(\"{\\\"google.sent_time\\\":1507657706679,\\\"body\\\":\\\"example\\\",\\\"from\\\":\\\"674988899928\\\",\\\"itbl\\\":\\\"{\\\\\\\"isGhostPush\\\\\\\":false,\\\\\\\"messageId\\\\\\\":\\\\\\\"1dce4e505b11111ca1111d6fdd774fbd\\\\\\\",\\\\\\\"templateId\\\\\\\":54321}\\\",\\\"google.message_id\\\":\\\"0:1507657706689231%62399b94f9fd7ecd\\\"}\");\n event.setTimestamp(System.currentTimeMillis());\n\n testExtension.processPushMessageReceiptEvent(event);\n Mockito.verify(iterableServiceMock, never()).trackPushOpen(Mockito.any(), Mockito.any());\n }", "@Test\n void createEPGModel() throws JsonProcessingException {\n\n ObjectMapper mapper = new ObjectMapper();\n APIUtility apiUtility = new APIUtility();\n\n\n // convert JSON string to `JsonNode` to match input received Spring\n JsonNode node = mapper.readTree(jsonInput);\n\n Map<String, Object> result = mapper.convertValue(node, new TypeReference<Map<String, Object>>(){});\n\n EPGModel epgModel = apiUtility.createEPGModel(result);\n\n // The amount of weekdays present in the data model should be 5, since no program begins airing on friday and tuesday\n assertEquals(5, epgModel.getDays().size());\n assertFalse(epgModel.getDays().containsKey(\"tuesday\"));\n assertFalse(epgModel.getDays().containsKey(\"friday\"));\n\n // Assert each remaining weekday has the correct amount of airing program\n assertEquals(2, epgModel.getDays().get(\"monday\").size());\n assertEquals(3, epgModel.getDays().get(\"wednesday\").size());\n assertEquals(2, epgModel.getDays().get(\"thursday\").size());\n assertEquals(2, epgModel.getDays().get(\"saturday\").size());\n assertEquals(1, epgModel.getDays().get(\"sunday\").size());\n\n }", "@Test\n public void updateAll_501() throws Exception {\n\n // PREPARE THE DATABASE\n // Fill in the workflow db\n addMOToDb(1);\n addMOToDb(2);\n addMOToDb(3);\n\n Workflow mo = new Workflow();\n\n // PREPARE THE TEST\n // Nothing to do\n\n // DO THE TEST\n Response response = callAPI(VERB.PUT, \"/mo/\", mo);\n\n // CHECK RESULTS\n int status = response.getStatus();\n assertEquals(501, status);\n\n String body = response.readEntity(String.class);\n assertEquals(\"\", body);\n\n }", "public void test_01() {\n\t\tpostobject jsonobjectdata = new postobject();\n\n\t\tjsonobjectdata.setID(\"5\");\n\t\tjsonobjectdata.settitle(\"updated Mr\");\n\t\tjsonobjectdata.setfirst_name(\"updated Rahaman\");\n\t\tjsonobjectdata.setauthor(\"updated Ata\");\n\n\t\tResponse reponse = given().\n\t\t\t\tbody(jsonobjectdata).\n\t\t\t\twhen().\n\t\t\t\tcontentType(ContentType.JSON).\n\t\t\t\tput(\"http://localhost:3000/posts/05\");\n\n\t\tSystem.out.println(\"updated response data \"+ reponse.asString());\t\t\n\t}", "@Test\r\n\tpublic void testCRUDOperations() {\r\n\t\t\r\n\t\tfinal String DESCRIPTION = \"Test Backlog Task\";\r\n\t\tfinal int STATUS_ID = 1;\r\n\t\t\r\n\t\tRestTemplate restTemplate = new RestTemplate();\r\n\t\t//TODO Externalize URL??\r\n\t\tString postURL = \"http://localhost:8080/api/v1/backlog-tasks\";\r\n\t\t\r\n\t\tBacklogTask backlogTask = new BacklogTask();\r\n\t\tbacklogTask.setId(0);\r\n\t\tbacklogTask.setDescription(DESCRIPTION);\r\n\t\tbacklogTask.setStatusId(STATUS_ID);\r\n\t\t\r\n\t\tResponseEntity<BacklogTask> response = restTemplate.postForEntity(postURL, backlogTask, BacklogTask.class);\r\n\t\tBacklogTask postTask = response.getBody();\r\n\t\tassertThat(postTask.getId(), greaterThan(0));\r\n\t\t\r\n\t\tString getURL = String.format(\"http://localhost:8080/api/v1/backlog-tasks\", postTask.getId());\r\n\t\tResponseEntity<List<BacklogTask>> getResponse = restTemplate.exchange(\r\n\t\t\t\tgetURL,\r\n\t\t\t\tHttpMethod.GET,\r\n\t\t\t\tnull,\r\n\t\t\t\tnew ParameterizedTypeReference<List<BacklogTask>>() {});\r\n\t\tList<BacklogTask> getTasks = getResponse.getBody();\r\n\t\t\r\n\t\tassertThat(getTasks, hasItem(hasProperty(\"description\", equalTo(DESCRIPTION))));\r\n\t\tassertThat(getTasks, hasItem(hasProperty(\"id\", equalTo(postTask.getId()))));\r\n\t\t\r\n\t\tString deleteURL = String.format(\"http://localhost:8080/api/v1/backlog-task/%s\", postTask.getId());\r\n\t\trestTemplate.delete(deleteURL);\r\n\r\n\r\n\t\t\r\n\t}", "@Test\n public void testCreateProductShouldCorrect() throws Exception {\n when(productRepository.existsByName(productRequest.getName())).thenReturn(false);\n when(productRepository.save(any(Product.class))).thenReturn(product);\n\n testResponseData(RequestInfo.builder()\n .request(post(PRODUCT_ENDPOINT))\n .token(adminToken)\n .body(productRequest)\n .httpStatus(HttpStatus.OK)\n .build());\n }", "@Test\n public void createUser() {\n Response response = regressionClient.createUser();\n dbAssist.responseValidation(response);\n }", "public interface HermeseRequestProcessorInterface {\n\n List<VerificationResult> processVerificationRequest(ProcessingMessage processingMessage) throws RequestProcessorException;\n}", "protected void postEvent(String wfId, String type,String ticketNo, String activity, String payLoad,IntegrationLogDetail logDetail) {\n\t\tlogger.debug(\"---involking postEvent, JaxBMarshalling...\");\n\t\tJAXBContext jaxbContext;\n\t\tUnmarshaller jaxbUnmarshaller = null;\n\t\tExternalComplaint complaint = null;\n\t\tExternalLineItem lineItem = null;\n\t\tExternalStatus status = null;\n\t\tEventContext eventContext = null;\n\t\t\n\t\ttry {\n\t\t\tEventType et = EventType.getEventType(type);\n\t\t\tif(et != null) {\n\t\t\t\tint orgId = Integer.parseInt(getOrgId());\n\t\t\t\tint workflowId = (wfId != null && wfId.length() > 0) ? Integer.parseInt(wfId) : 0;\n\t\t\t\tswitch (et) {\n\t\t\t\tcase INTERNAL_CREATE_TICKET:\n\t\t\t\t\tjaxbContext = JAXBContext.newInstance(ExternalComplaint.class);\n\t\t\t\t\tjaxbUnmarshaller = jaxbContext.createUnmarshaller();\n\t\t\t\t\tcomplaint = (ExternalComplaint) jaxbUnmarshaller.unmarshal(new StringReader(payLoad));\n\t\t\t\t\teventContext = new EventContext(orgId, workflowId,type,ticketNo,activity,complaint, logDetail);\n\t\t\t\t\tpostCreateComplaint(eventContext);\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase EXTERNAL_CREATE_TICKET:\n\t\t\t\t\tjaxbContext = JAXBContext.newInstance(ExternalComplaint.class);\n\t\t\t\t\tjaxbUnmarshaller = jaxbContext.createUnmarshaller();\n\t\t\t\t\tcomplaint = (ExternalComplaint) jaxbUnmarshaller.unmarshal(new StringReader(payLoad));\n\t\t\t\t\teventContext = new EventContext(orgId, workflowId,type,ticketNo,activity,complaint, logDetail);\n\t\t\t\t\tpostCreateComplaint(eventContext);\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase EXTERNAL_UPDATE_TICKET:\n\t\t\t\t\tjaxbContext = JAXBContext.newInstance(ExternalComplaint.class);\n\t\t\t\t\tjaxbUnmarshaller = jaxbContext.createUnmarshaller();\n\t\t\t\t\tcomplaint = (ExternalComplaint) jaxbUnmarshaller.unmarshal(new StringReader(payLoad));\n\t\t\t\t\teventContext = new EventContext(orgId, workflowId,type,ticketNo,activity,complaint, logDetail);\n\t\t\t\t\tpostUpdateComplaint(eventContext);\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase INTERNAL_UPDATE_TICKET:\n\t\t\t\t\tjaxbContext = JAXBContext.newInstance(ExternalComplaint.class);\n\t\t\t\t\tjaxbUnmarshaller = jaxbContext.createUnmarshaller();\n\t\t\t\t\tcomplaint = (ExternalComplaint) jaxbUnmarshaller.unmarshal(new StringReader(payLoad));\n\t\t\t\t\teventContext = new EventContext(orgId, workflowId,type,ticketNo,activity,complaint, logDetail);\t\t\t\t\t\n\t\t\t\t\tpostUpdateComplaint(eventContext);\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase INTERNAL_STATUS_UPDATE:\n\t\t\t\t\tjaxbContext = JAXBContext.newInstance(ExternalStatus.class);\n\t\t\t\t\tjaxbUnmarshaller = jaxbContext.createUnmarshaller();\n\t\t\t\t\tstatus = (ExternalStatus) jaxbUnmarshaller.unmarshal(new StringReader(payLoad));\t\n\t\t\t\t\teventContext = new EventContext(orgId, workflowId,type,ticketNo,activity,status, logDetail);\n\t\t\t\t\tpostStatusUpdate(eventContext);\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase EXTERNAL_STATUS_UPDATE:\n\t\t\t\t\tjaxbContext = JAXBContext.newInstance(ExternalStatus.class);\n\t\t\t\t\tjaxbUnmarshaller = jaxbContext.createUnmarshaller();\n\t\t\t\t\tstatus = (ExternalStatus) jaxbUnmarshaller.unmarshal(new StringReader(payLoad));\t\n\t\t\t\t\teventContext = new EventContext(orgId, workflowId,type,ticketNo,activity,status, logDetail);\n\t\t\t\t\tpostStatusUpdate(eventContext);\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase EXTERNAL_CREATE_ITEM:\n\t\t\t\t\tjaxbContext = JAXBContext.newInstance(ExternalLineItem.class);\n\t\t\t\t\tjaxbUnmarshaller = jaxbContext.createUnmarshaller();\n\t\t\t\t\tlineItem = (ExternalLineItem) jaxbUnmarshaller.unmarshal(new StringReader(payLoad));\t\n\t\t\t\t\teventContext = new EventContext(orgId, workflowId,type,ticketNo,activity,lineItem, logDetail);\n\t\t\t\t\tpostCreateLineItem(eventContext);\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase INTERNAL_CREATE_ITEM:\n\t\t\t\t\tjaxbContext = JAXBContext.newInstance(ExternalLineItem.class);\n\t\t\t\t\tjaxbUnmarshaller = jaxbContext.createUnmarshaller();\n\t\t\t\t\tlineItem = (ExternalLineItem) jaxbUnmarshaller.unmarshal(new StringReader(payLoad));\t\n\t\t\t\t\teventContext = new EventContext(orgId, workflowId,type,ticketNo,activity,lineItem, logDetail);\n\t\t\t\t\tpostCreateLineItem(eventContext);\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase EXTERNAL_UPDATE_ITEM:\n\t\t\t\t\tjaxbContext = JAXBContext.newInstance(ExternalLineItem.class);\n\t\t\t\t\tjaxbUnmarshaller = jaxbContext.createUnmarshaller();\n\t\t\t\t\tlineItem = (ExternalLineItem) jaxbUnmarshaller.unmarshal(new StringReader(payLoad));\t\n\t\t\t\t\teventContext = new EventContext(orgId, workflowId,type,ticketNo,activity,lineItem, logDetail);\n\t\t\t\t\tpostUpdateLineItem(eventContext);\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase INTERNAL_UPDATE_ITEM:\n\t\t\t\t\tjaxbContext = JAXBContext.newInstance(ExternalLineItem.class);\n\t\t\t\t\tjaxbUnmarshaller = jaxbContext.createUnmarshaller();\n\t\t\t\t\tlineItem = (ExternalLineItem) jaxbUnmarshaller.unmarshal(new StringReader(payLoad));\t\n\t\t\t\t\teventContext = new EventContext(orgId, workflowId,type,ticketNo,activity,lineItem, logDetail);\n\t\t\t\t\tpostUpdateLineItem(eventContext);\n\t\t\t\t\tbreak;\n\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t// update response here\n\t\t\t\tlogger.debug(\"---involking update response...\");\n\t\t\t\tdesRepository.updateResponse(eventContext);\n\t\t\t}\n\t\t} catch (JAXBException e1) {\n\t\t\te1.printStackTrace();\n\t\t}\n\t}", "@Test\n @DisplayName(\"Should return 200 when adding multiple existing users not part of Bill in Invite Registered Person to Bill\")\n void shouldReturn200ForNormalCaseInviteRegisteredGivenPost() throws Exception {\n final var inviteRegisteredResource = InviteRegisteredResourceFixture.getDefault();\n final var user = UserFixture.getDefaultWithEmailAndPassword(\"test@email.com\", \"notEncrypted\");\n final var accountNotInBill = \"nobills@inthisemail.com\";\n final var secondAccountNotInBill = \"user@withABill.com\";\n final var existentBillId = 1000L;\n inviteRegisteredResource.setAccounts(List.of(accountNotInBill, secondAccountNotInBill));\n final var path = String.format(BILL_BILLID_ACCOUNTS_ENDPOINT, existentBillId);\n final var authorities = new ArrayList<GrantedAuthority>();\n authorities.add(new SimpleGrantedAuthority(\"RESPONSIBLE_\" + existentBillId));\n\n //When\n final var mvcResult = performMvcPostRequestWithoutBearer(path, inviteRegisteredResource, 200, user.getUsername(), authorities);\n final String content = mvcResult.getResponse().getContentAsString();\n final BillSplitResource response = mapper.readValue(content, BillSplitResource.class);\n\n //Then\n assertThat((int) response.getInformationPerAccount().stream().map(ItemAssociationSplitResource::getAccount).map(AccountResource::getEmail)\n .filter(acc -> acc.equals(accountNotInBill) || acc.equals(secondAccountNotInBill)).count())\n .isEqualTo(2);\n }", "@Test(groups = { \"Owner:Sunil\", \"Priority:1\"})\n public void NotificationsUserEventsReadSingleTest() throws Exception\n {\n JSONObject course1 = new JSONObject();\n JSONObject course2 = new JSONObject();\n JSONObject gradeMetadata = new JSONObject() ;\n\n course1.put(\"courseName\",\"english101\");\n course1.put(\"courseId\",\"101\");\n course2.put(\"courseName\",\"science101\");\n course2.put(\"courseId\",\"101\");\n\n JSONArray courses = new JSONArray();\n courses.add(course1);\n courses.add(course2);\n\n gradeMetadata.put(\"pointsReceived\",\"100\");\n\n JSONObject eventModelObject = new JSONObject();\n eventModelObject.put(\"courses\",courses);\n eventModelObject.put(\"gradeMetaData\",gradeMetadata);\n\n // Setting appType, productType, eventType, notificationsRecieved, Author.\n notificationUserEventsCollection = new NotificationUserEventsCollection();\n notificationUserEventsCollection.setAppType(DataGenerator.generateRandomString(10, 20, RANDOM));\n notificationUserEventsCollection.setProductType(DataGenerator.generateRandomString(10, 20, RANDOM));\n notificationUserEventsCollection.setEventType(notificationUserEventsCollection.getAppType() + DataGenerator.generateRandomString(10, 20, RANDOM));\n notificationUserEventsCollection.setAuthorId(DataGenerator.generateRandomString(10, 20, RANDOM));\n notificationUserEventsCollection.setRecipientId(DataGenerator.generateRandomString(10, 20, RANDOM));\n notificationUserEventsCollection.setEventModel(eventModelObject);\n\n //posting a single notification.\n NotificationsUserEventsPostContext notificationsUserEventsPostContext = notificationsContextFactory.getCreateNotificationsUserEventsPostContext(notificationUserEventsCollection);\n notificationsUserEventsPostContext.setAuthorizationToken(\"1234\");\n notificationsUserEventsPostContext.setRequestContentType(\"application/json\");\n notificationsUserEventsPostContext.setNewNotificationsUserEventsCollection(notificationUserEventsCollection);\n history.push(injector.getInstance(NotificationsUserEventsPostExecutionDriver.class).execute(notificationsUserEventsPostContext));\n\n \n //reading the single posted notification.\n NotificationsUserEventsReadContext notificationsUserEventsReadContext = notificationsContextFactory.getCreateNotificationsUserEventsReadContext(notificationUserEventsCollection);\n notificationsUserEventsReadContext.setAuthorizationToken(\"1234\");\n notificationsUserEventsReadContext.setRequestContentType(\"application/json\");\n notificationsUserEventsReadContext.setExpectedNotificationsUserEvent(notificationUserEventsCollection);\n notificationsUserEventsReadContext.setUserEventId(notificationsUserEventsPostContext.getReturnedNotificationsUserEventsCollection().getId());\n history.push(injector.getInstance(NotificationsUserEventsReadExecutionDriver.class).execute(notificationsUserEventsReadContext));\n }", "@Test\n public void testLikeViolation() throws Exception {\n final RestTemplate restTemplate = this.getRestTemplate();\n\n // 1. Adim: Authentication\n final SignInRequestDto signInRequestDto = new SignInRequestDto();\n signInRequestDto.setUsername(\"test\");\n signInRequestDto.setPassword(\"test\");\n\n final SignInResponseDto signInResponseDto = restTemplate.postForObject(this.baseUrl + \"/signin\", signInRequestDto, SignInResponseDto.class);\n assertNotNull(signInResponseDto);\n assertNotNull(signInResponseDto.getToken());\n\n // 2. Adim: Violation icin Gerekli Media'larin yuklenmesi\n final RestTemplate secureRestTemplate = this.getSecureTemplate(signInResponseDto.getToken());\n\n final LinkedMultiValueMap<String, Object> map = new LinkedMultiValueMap<>();\n map.add(\"file\", new ClassPathResource(\"know_nothing.jpg\"));\n map.add(\"mediaType\", \"IMAGE\");\n final HttpHeaders headers = new HttpHeaders();\n headers.setContentType(MediaType.MULTIPART_FORM_DATA);\n\n final HttpEntity<LinkedMultiValueMap<String, Object>> requestEntity = new HttpEntity<>(map, headers);\n final MediaDto mediaDto = secureRestTemplate.postForObject(this.baseUrl + \"/media/upload\", requestEntity, MediaDto.class);\n assertNotNull(mediaDto);\n assertNotNull(mediaDto.getId());\n assertEquals(\"know_nothing.jpg\", mediaDto.getFileName());\n\n // Bu admin sonunda violationMediaId'yi aliyoruz, birazdan bu id'yi violation yaratmada kullanacagiz\n final Long violationMediaId = mediaDto.getId();\n\n\n // 3. Adim: Violation'in yaratilmasi\n final CreateViolationRequestDto createViolationRequestDto = new CreateViolationRequestDto();\n createViolationRequestDto.setTitle(\"Test Violation\");\n createViolationRequestDto.setDescription(\"Test Violation for Integration Test\");\n createViolationRequestDto.setLatitude(0d);\n createViolationRequestDto.setLongitude(0d);\n createViolationRequestDto.setAddress(\"Right here!!\");\n createViolationRequestDto.setViolationStatus(ViolationStatusTypeDto.NEW);\n createViolationRequestDto.setDangerLevel(DangerLevelTypeDto.LOW);\n createViolationRequestDto.setFrequencyLevel(FrequencyLevelTypeDto.LOW);\n // Dikkat!! Bu groubun veritabaninda olmasi gerekiyor. Ekranlar gelistirilirken\n // Combobox benzeri bir yapidan secilmeli. Combobox icerisi ViolationGroupRestService\n // icerisinden doldurulmali.\n createViolationRequestDto.setViolationGroupName(\"Test Violation Group\");\n // Yine tagler TagRestService icerisinden secilmeli. Olmayan tagler otomatik olarak\n // yaratilacak. Tum tagler lower-cased olarak yaratilacak.\n createViolationRequestDto.setTags(Arrays.asList(\"tag1\", \"tag2\"));\n // Az once yarattigimiz media'yi kullaniyoruz.\n createViolationRequestDto.setMedias(Collections.singleton(violationMediaId));\n\n final ViolationDto createdViolationDto = this.getSecureTemplate(signInResponseDto.getToken()).postForObject(this.baseUrl + \"/violation\", createViolationRequestDto, ViolationDto.class);\n assertNotNull(createdViolationDto);\n assertThat(createdViolationDto.getMedias(), Matchers.contains(mediaDto));\n assertThat(createdViolationDto.getTags(), Matchers.contains(\"tag1\", \"tag2\"));\n assertEquals(\"Test Violation Group\", createdViolationDto.getViolationGroupName());\n // Authentication token'imiza iliskin kullanici otomatik olarak owner oluyor.\n // Authentication token'imizi bu kullaniciyi kullanarak aldik.\n assertEquals(\"test\", createdViolationDto.getOwner());\n\n // 4. Adim: Like Yapilmasi\n final UserLikeDto userLikeDto = new UserLikeDto();\n userLikeDto.setViolationId(createdViolationDto.getId());\n final UserLikeDto createdUserLikeDto = this.getSecureTemplate(signInResponseDto.getToken()).postForObject(this.baseUrl + \"/userLike\", userLikeDto, UserLikeDto.class);\n assertNotNull(createdUserLikeDto);\n assertNotNull(createdUserLikeDto.getId());\n assertNotNull(\"test\", createdUserLikeDto.getUsername());\n\n final ViolationDto actualViolationDto = this.getSecureTemplate(signInResponseDto.getToken()).getForObject(this.baseUrl + \"/violation/\" + createdViolationDto.getId(), ViolationDto.class);\n assertNotNull(actualViolationDto);\n assertEquals(new Integer(1), actualViolationDto.getUserLikeCount());\n\n final Collection<UserLikeDto> userLikeDtos = this.getSecureTemplate(signInResponseDto.getToken()).getForObject(this.baseUrl + \"/violation/\" + createdViolationDto.getId() + \"/userLikes\", UserLikeDtoCollection.class);\n assertNotNull(userLikeDtos);\n assertEquals(createdUserLikeDto, userLikeDtos.iterator().next());\n\n }", "@Test\n public void attachmentTest() {\n // TODO: test attachment\n }", "private static Response callAPI(VERB verb, String url, Workflow mo) throws Exception {\n\n Response result;\n Entity<Workflow> wfEntity = Entity.entity(mo, MediaType.APPLICATION_JSON_TYPE);\n switch (verb) {\n case POST:\n result = RequestSender.sendPOSTRequest(getAPIURL() + url, wfEntity);\n break;\n case GET:\n result = RequestSender.sendGETRequest(getAPIURL() + url);\n break;\n case PUT:\n result = RequestSender.sendPUTRequest(getAPIURL() + url, wfEntity);\n break;\n case DELETE:\n result = RequestSender.sendDELETERequest(getAPIURL() + url);\n break;\n default:\n throw new Exception(\"Bad VERB\");\n }\n\n return result;\n }", "@Test\n public void testGatewayMigratePersonalItems() {\n // TODO: test GatewayMigratePersonalItems\n }", "public WebHookRunner getRunner(WebHook webhook, WebHookConfig whc, SProject sProject, BuildStateEnum state,\n Map<MuteInfo, Collection<STest>> mutedOrUnmutedGroups, boolean isTest) {\n return new TestsMutingWebHookRunner(\n webHookContentBuilder, \n webHookHistoryRepository, \n webHookHistoryItemFactory, \n webhook, \n whc, \n sProject,\n state,\n mutedOrUnmutedGroups, \n isTest);\n }", "@Test\n public void testPostShoppinglistsAction() throws ClientException, IOException, ProcessingException {\n CloudResponse response = this.actions.postShoppinglistsAction(\"{name}\", \"{description}\", \"{Content-Language}\");\n List<Integer> expectedResults = Arrays.asList(200, 201, 400, 403, 404);\n LOG.info(\"Got status {}\", response.getStatusLine());\n Assert.assertTrue(expectedResults.contains(response.getStatusLine().getStatusCode()));\n\n if(response.getStatusLine().getStatusCode() == 200) {\n this.actions.checkResponseJSONSchema(\"#/definitions/ShoppingList\", response.getContent());\n }\n if(response.getStatusLine().getStatusCode() == 201) {\n this.actions.checkResponseJSONSchema(\"#/definitions/ShoppingList\", response.getContent());\n }\n if(response.getStatusLine().getStatusCode() == 400) {\n this.actions.checkResponseJSONSchema(\"#/definitions/ErrorResponse\", response.getContent());\n }\n if(response.getStatusLine().getStatusCode() == 403) {\n this.actions.checkResponseJSONSchema(\"#/definitions/ErrorResponse\", response.getContent());\n }\n if(response.getStatusLine().getStatusCode() == 404) {\n this.actions.checkResponseJSONSchema(\"#/definitions/ErrorResponse\", response.getContent());\n }\n \n }", "@Test\n\tpublic void testSave() {\n\t}", "@Test\n @WithMockUser(username=\"supervisor_admin\",roles={\"PM\",\"ADMIN\"})\n public void shouldRetrieveRubricsAssociatedToLearningProcessId() throws Exception {\n\n // Creating Rubric object using test values\n String rubricTitle = \"test_rubric_title\";\n int rubricRank = 4;\n boolean rubricIsEnabled = true;\n\n AssessmentRubric rubricObject = new AssessmentRubric();\n rubricObject.setTitle(rubricTitle);\n rubricObject.setStarting_date_time(LocalDateTime.now());\n rubricObject.setEnd_date_time(LocalDateTime.now());\n rubricObject.setEnabled(rubricIsEnabled);\n rubricObject.setRank(rubricRank);\n\n rubricObject.setRubricType(getMockTestRubricType());\n rubricObject.setLearningProcess(getMockTestLearningProcess());\n\n // Creating process JSON\n byte[] rubricJSON = this.mapper.writeValueAsString(rubricObject).getBytes();\n\n // invoke Create\n MvcResult resultInsert = mvc.perform(post(BASE_URL).content(rubricJSON)\n .contentType(MediaType.APPLICATION_JSON)\n .accept(MediaType.APPLICATION_JSON))\n .andExpect(status().isCreated())\n .andExpect(jsonPath(\"$.title\", is(rubricTitle)))\n .andExpect(jsonPath(\"$.rank\", is(rubricRank)))\n .andExpect(jsonPath(\"$.enabled\", is(rubricIsEnabled)))\n .andReturn();\n\n // GET: Operation Check\n MvcResult result = mvc.perform(get(BASE_URL_WITH_SUFFIX+\"/\"+getMockTestLearningProcess().getId())\n .accept(MediaType.APPLICATION_JSON))\n .andExpect(status().isOk())\n .andExpect(jsonPath(\"$\").exists())\n .andExpect(jsonPath(\"$\", hasSize(1)))\n .andReturn();\n }", "@Test\n\tpublic void EmailUtility() {\n\n\t\tlog.info(\"Testing Starts\");\n\t\tperformCommonMocking();\n\t\t\n\t\tEmail emailMessage = new Email();\n\t\temailMessage.setHostName(\"localhost\");\n\t\temailMessage.setPortName(\"25\");\n\t\tString[] recipients = new String [3];\n\t\trecipients[0] = \"abc@abc.com\";\n\t\trecipients[1] = \"xyz@xyz.com\";\n\t\trecipients[2] = \"qwe@qwe.com\";\n\t\temailMessage.setRecipient(recipients);\n\t\temailMessage.setFrom(\"robi@robi.com\");\n\t\temailMessage.setSubject(\"Test Email\");\n\t\temailMessage.setBody(\"Test Body\");\n\t\tString[] files = new String[1];\n\t\tfiles[0] = \"C:\\\\Users\\\\asara3\\\\Documents\\\\Architecture.jpg\";\n\t\temailMessage.setFile(files);\n\t\t\n\t\tlog.info(\"Email Model Set Successfully\");\n\t\t\n\t\ttry {\n\t\t\tWhitebox.invokeMethod(EmailUtility.class, \"processEmail\", emailMessage);\n\t\t\tlog.info(\"Model Processed Successfully\");\n\t\t} catch (Exception e) {\n\t\t\n\t\t\tlog.error(\"Error in Model processing\");\n\t\t}\n\t\t\n\t}", "@Test\r\n\tpublic void playGame1() throws Exception {\r\n\t\t\r\n\t\ttr.deleteAll();\r\n\t\tint id0 = tr.save(new Transformer( null, \"Soundwave\", Team.DECEPTICON, 8, 9, 2, 6, 7, 5, 6, 10)).getId(); \r\n\t\tint id1 = tr.save(new Transformer( null, \"Hubcap\", Team.AUTOBOT, 4,4,4,4,4,4,4,4)).getId();\r\n\t\tint id2 = tr.save(new Transformer( null, \"Bluestreak\", Team.AUTOBOT, 6,6,7,9,5,2,9,7)).getId();\r\n\t\t\r\n\t\tString content = String.format(\"[%d,%d,%d]\",id0,id1,id2) ;\r\n\t\t\r\n\t\tmockMvc.perform(post(\"/transformers/play\").contentType(MediaType.APPLICATION_JSON).content(content.getBytes(\"UTF-8\")))\r\n\t\t\t\t.andExpect(status().isOk())\r\n\t\t\t\t.andExpect(content().contentTypeCompatibleWith(\"application/json\"))\r\n\t\t\t\t.andExpect(jsonPath(\"$.battles\").value(1))\r\n\t\t\t\t.andExpect(jsonPath(\"$.winningTeam\").value(\"DECEPTICON\"))\r\n\t\t\t\t.andExpect(jsonPath(\"$.survivedLosers\").isArray() )\r\n\t\t\t\t.andExpect(jsonPath(\"$.survivedLosers\", hasSize(1)))\r\n\t\t\t\t.andExpect(jsonPath(\"$.survivedLosers\", hasItem(\"Hubcap\")))\r\n\t\t\t\t;\r\n\t}", "@Test\n public void getWorkflow_200() throws Exception {\n\n // PREPARE THE DATABASE\n // Fill in the workflow db with a new macro operator\n Workflow mo = addMOToDb(1);\n\n // PREPARE THE TEST\n // Nothing to do\n\n // DO THE TEST\n Response response = callAPI(VERB.GET, \"/mo/\" + mo.getId().toString(), null);\n\n // CHECK RESULTS\n int status = response.getStatus();\n assertEquals(200, status);\n\n Workflow readWorkflow = response.readEntity(new GenericType<Workflow>() {\n });\n assertEquals(mo.getId(), readWorkflow.getId());\n assertEquals(mo.getName(), readWorkflow.getName());\n assertEquals(mo.getDescription(), readWorkflow.getDescription());\n assertEquals(mo.getRaw(), readWorkflow.getRaw());\n }", "@Test\n public void triggeredByCouponTest() {\n // TODO: test triggeredByCoupon\n }", "@Test\n @DisplayName(\"Should return 200 when adding one existing user not part of Bill in Invite Registered Person to Bill\")\n void shouldReturn200ForNormalCaseOneUserInviteRegisteredGivenPost() throws Exception {\n final var inviteRegisteredResource = InviteRegisteredResourceFixture.getDefault();\n final var user = UserFixture.getDefaultWithEmailAndPassword(\"test@email.com\", \"notEncrypted\");\n final var accountNotInBill = \"nobills@inthisemail.com\";\n final var existentBillId = 1000L;\n inviteRegisteredResource.setAccounts(List.of(accountNotInBill));\n final var path = String.format(BILL_BILLID_ACCOUNTS_ENDPOINT, existentBillId);\n final var authorities = new ArrayList<GrantedAuthority>();\n authorities.add(new SimpleGrantedAuthority(\"RESPONSIBLE_\" + existentBillId));\n\n //When\n final var mvcResult = performMvcPostRequestWithoutBearer(path, inviteRegisteredResource, 200, user.getUsername(), authorities);\n final String content = mvcResult.getResponse().getContentAsString();\n final BillSplitResource response = mapper.readValue(content, BillSplitResource.class);\n\n //Then\n assertThat((int) response.getInformationPerAccount().stream().map(ItemAssociationSplitResource::getAccount).map(AccountResource::getEmail)\n .filter(acc -> acc.equals(accountNotInBill)).count())\n .isEqualTo(1);\n }", "@Test\n public void testProcessAudienceMembershipChangeRequest() throws Exception {\n IterableService service = Mockito.mock(IterableService.class);\n testExtension.iterableService = service;\n Call callMock = Mockito.mock(Call.class);\n Mockito.when(service.listSubscribe(Mockito.any(), Mockito.any()))\n .thenReturn(callMock);\n Mockito.when(service.listUnsubscribe(Mockito.any(), Mockito.any()))\n .thenReturn(callMock);\n ListResponse apiResponse = new ListResponse();\n Response<ListResponse> response = Response.success(apiResponse);\n Mockito.when(callMock.execute()).thenReturn(response);\n\n Audience audience = new Audience();\n Map<String, String> audienceSubscriptionSettings = new HashMap<>();\n audienceSubscriptionSettings.put(IterableExtension.SETTING_LIST_ID, \"1\");\n audience.setAudienceSubscriptionSettings(audienceSubscriptionSettings);\n audience.setAudienceAction(Audience.AudienceAction.ADD);\n\n Audience audience2 = new Audience();\n Map<String, String> audienceSubscriptionSettings2 = new HashMap<>();\n audienceSubscriptionSettings2.put(IterableExtension.SETTING_LIST_ID, \"2\");\n audience2.setAudienceSubscriptionSettings(audienceSubscriptionSettings2);\n audience2.setAudienceAction(Audience.AudienceAction.ADD);\n\n Audience audience3 = new Audience();\n Map<String, String> audienceSubscriptionSettings3 = new HashMap<>();\n audienceSubscriptionSettings3.put(IterableExtension.SETTING_LIST_ID, \"3\");\n audience3.setAudienceSubscriptionSettings(audienceSubscriptionSettings3);\n audience3.setAudienceAction(Audience.AudienceAction.DELETE);\n\n List<Audience> list1 = new LinkedList<>();\n list1.add(audience);\n list1.add(audience2);\n list1.add(audience3);\n\n Audience audience4 = new Audience();\n Map<String, String> audienceSubscriptionSettings4 = new HashMap<>();\n audienceSubscriptionSettings4.put(IterableExtension.SETTING_LIST_ID, \"1\");\n audience4.setAudienceSubscriptionSettings(audienceSubscriptionSettings4);\n audience4.setAudienceAction(Audience.AudienceAction.DELETE);\n\n Audience audience5 = new Audience();\n Map<String, String> audienceSubscriptionSettings5 = new HashMap<>();\n audienceSubscriptionSettings5.put(IterableExtension.SETTING_LIST_ID, \"2\");\n audience5.setAudienceSubscriptionSettings(audienceSubscriptionSettings5);\n audience5.setAudienceAction(Audience.AudienceAction.DELETE);\n\n Audience audience6 = new Audience();\n Map<String, String> audienceSubscriptionSettings6 = new HashMap<>();\n audienceSubscriptionSettings6.put(IterableExtension.SETTING_LIST_ID, \"3\");\n audience6.setAudienceSubscriptionSettings(audienceSubscriptionSettings6);\n audience6.setAudienceAction(Audience.AudienceAction.ADD);\n\n List<Audience> list2 = new LinkedList<>();\n list2.add(audience4);\n list2.add(audience5);\n list2.add(audience6);\n\n List<UserProfile> profiles = new LinkedList<>();\n UserProfile profile1 = new UserProfile();\n profile1.setAudiences(list1);\n List<UserIdentity> userIdentities1 = new LinkedList<>();\n userIdentities1.add(new UserIdentity(UserIdentity.Type.EMAIL, Identity.Encoding.RAW, \"mptest@mparticle.com\"));\n userIdentities1.add(new UserIdentity(UserIdentity.Type.CUSTOMER, Identity.Encoding.RAW, \"123456\"));\n profile1.setUserIdentities(userIdentities1);\n profiles.add(profile1);\n\n UserProfile profile2 = new UserProfile();\n profile2.setAudiences(list2);\n List<UserIdentity> userIdentities2 = new LinkedList<>();\n userIdentities2.add(new UserIdentity(UserIdentity.Type.EMAIL, Identity.Encoding.RAW, \"mptest-2@mparticle.com\"));\n userIdentities2.add(new UserIdentity(UserIdentity.Type.CUSTOMER, Identity.Encoding.RAW, \"1234567\"));\n profile2.setUserIdentities(userIdentities2);\n profiles.add(profile2);\n\n AudienceMembershipChangeRequest request = new AudienceMembershipChangeRequest();\n Account account = new Account();\n Map<String, String> settings = new HashMap<>();\n settings.put(SETTING_API_KEY, \"7982f56948624d8dc2f53ff007f51de3\");\n account.setAccountSettings(settings);\n request.setAccount(account);\n request.setUserProfiles(profiles);\n\n testExtension.processAudienceMembershipChangeRequest(request);\n\n ArgumentCaptor<SubscribeRequest> argument = ArgumentCaptor.forClass(SubscribeRequest.class);\n ArgumentCaptor<String> apiArgument = ArgumentCaptor.forClass(String.class);\n Mockito.verify(service, Mockito.times(3)).listSubscribe(apiArgument.capture(), argument.capture());\n String apiKey = apiArgument.getValue();\n assertEquals(\"7982f56948624d8dc2f53ff007f51de3\", apiKey);\n List<SubscribeRequest> subscribeRequests = argument.getAllValues();\n int i = 0;\n for (SubscribeRequest subscribeRequest : subscribeRequests) {\n switch (subscribeRequest.listId) {\n case 1:\n assertEquals(subscribeRequest.subscribers.get(0).email, \"mptest@mparticle.com\");\n i++;\n break;\n case 2:\n assertEquals(subscribeRequest.subscribers.get(0).email, \"mptest@mparticle.com\");\n i++;\n break;\n case 3:\n assertEquals(subscribeRequest.subscribers.get(0).email, \"mptest-2@mparticle.com\");\n i++;\n break;\n }\n }\n assertEquals(3, i);\n\n ArgumentCaptor<UnsubscribeRequest> unsubArg = ArgumentCaptor.forClass(UnsubscribeRequest.class);\n Mockito.verify(service, Mockito.times(3)).listUnsubscribe(Mockito.any(), unsubArg.capture());\n List<UnsubscribeRequest> unsubscribeRequests = unsubArg.getAllValues();\n i = 0;\n for (UnsubscribeRequest unsubscribeRequest : unsubscribeRequests) {\n switch (unsubscribeRequest.listId) {\n case 1:\n assertEquals(unsubscribeRequest.subscribers.get(0).email, \"mptest-2@mparticle.com\");\n i++;\n break;\n case 2:\n assertEquals(unsubscribeRequest.subscribers.get(0).email, \"mptest-2@mparticle.com\");\n i++;\n break;\n case 3:\n assertEquals(unsubscribeRequest.subscribers.get(0).email, \"mptest@mparticle.com\");\n i++;\n break;\n }\n }\n assertEquals(3, i);\n }", "@Test\n @Deployment(resources = \"ex3a.bpmn\")\n public void testHappyPath() {\n Map<String, Object> variables = new HashMap<>();\n variables.put(\"approved\", true);\n // Start process with Java API and variables\n ProcessInstance processInstance = runtimeService().startProcessInstanceByKey(\"TwitterQAProcessEx3a\", variables);\n // Make assertions on the process instance\n assertThat(processInstance).isEnded();\n }", "@Test\r\n\tpublic void testHandleReviewableExceptionHandler() {\r\n\r\n\t\tValidationExceptionHandler handler = new ValidationExceptionHandler();\r\n\t\tList<ObjectError> errors = new ArrayList<>();\r\n\t\terrors.add(new ObjectError(\"review\", new String[] { \"ERROR1\" }, null, \"FATAL_ERROR\"));\r\n\t\tBindingResult bindingResult = new BeanPropertyBindingResult(errors, \"errors\");\r\n\t\tMethodArgumentNotValidException ex = new MethodArgumentNotValidException(null, bindingResult);\r\n\t\tResponseEntity<Object> error = handler.handleMethodArgumentNotValid(ex, null, HttpStatus.INTERNAL_SERVER_ERROR,\r\n\t\t\t\tnull);\r\n\r\n\t\tassertEquals(error.getStatusCode(), HttpStatus.INTERNAL_SERVER_ERROR);\r\n\r\n\t}", "@Test\n public void testCheckForProduct() throws Exception {\n }", "@Test\n public void testIsFalling() {\n // Setup\n\n // Run the test\n modelUnderTest.isFalling();\n\n // Verify the results\n }", "@Test\n public void Upload()\n {\n }", "@Test\n\tpublic void saveTest(){\n\t\t\n\t}", "@Test\n public void testHandle() {\n Response response = TestHelp.testForHandle(handler,\n \"eis essen\", PhrasesAndConstants.ACTIVITY_SLOT,\n null);\n assertTrue(response.getOutputSpeech().toString().contains(PhrasesAndConstants.NO_ACTIVITIES_YET));\n\n Map<String, Object> persistentAttributes = new HashMap<>();\n persistentAttributes.put(\"zumba\", \"name: zumba; inside: true; minutes: 30\");\n\n // no hobby by that name\n response = TestHelp.testForHandle(handler,\n \"billard\", PhrasesAndConstants.ACTIVITY_SLOT,\n persistentAttributes);\n assertTrue(response.getOutputSpeech().toString().contains(PhrasesAndConstants.NO_HOBBY_BY_THAT_NAME));\n\n // delete successful\n response = TestHelp.testForHandle(handler,\n \"zumba\", PhrasesAndConstants.ACTIVITY_SLOT,\n persistentAttributes);\n assertTrue(response.getOutputSpeech().toString().contains(String.format(PhrasesAndConstants.DELETED_SUCCESSFULL, \"zumba\")));\n\n\n persistentAttributes.put(\"sport\", \"name: sport; inside: true; minutes: 30\");\n response = TestHelp.testForHandle(handler,\n \"alle\", PhrasesAndConstants.ACTIVITY_SLOT,\n persistentAttributes);\n assertTrue(response.getOutputSpeech().toString().contains(String.format(PhrasesAndConstants.DELETED_ALL_SUCCESSFULL, \"alle\")));\n }", "@Ignore\n @Test\n public void testDslTriggerCreateUpdatedMergedApprovedPRAllowBranchesWithApproveActionsPipeline() throws Exception {\n createSeedJob(readDslScript(\"./dsl/testDslTriggerCreateUpdatedMergedApprovedPRAllowBranchesWithApproveActionsPipeline.groovy\"));\n /* Fetch the newly created job and check its trigger configuration */\n WorkflowJob createdJob = (WorkflowJob) j.getInstance().getItem(\"test-job\");\n /* Go through all triggers to validate DSL */\n PipelineTriggersJobProperty pipelineTriggers = (PipelineTriggersJobProperty) createdJob.getProperty(PipelineTriggersJobProperty.class);\n Map<TriggerDescriptor, Trigger<?>> triggers = pipelineTriggers.getTriggersMap();\n /* Only one 'triggers{}' closure */\n assertEquals(1, triggers.size());\n List<String> dispNames = new ArrayList<>();\n for (Trigger<?> entry : triggers.values()) {\n BitBucketPPRTrigger tmp2 = (BitBucketPPRTrigger) entry;\n /* Three different triggers expected */\n assertEquals(4, tmp2.getTriggers().size());\n String tmpNname = tmp2.getTriggers().get(0).getActionFilter().getClass().getName();\n String dispName = tmpNname.substring(tmpNname.lastIndexOf(\".\") + 1);\n dispNames.add(dispName);\n tmpNname = tmp2.getTriggers().get(1).getActionFilter().getClass().getName();\n dispName = tmpNname.substring(tmpNname.lastIndexOf(\".\") + 1);\n dispNames.add(dispName);\n tmpNname = tmp2.getTriggers().get(2).getActionFilter().getClass().getName();\n dispName = tmpNname.substring(tmpNname.lastIndexOf(\".\") + 1);\n dispNames.add(dispName);\n tmpNname = tmp2.getTriggers().get(3).getActionFilter().getClass().getName();\n dispName = tmpNname.substring(tmpNname.lastIndexOf(\".\") + 1);\n dispNames.add(dispName);\n }\n assertEquals(4, dispNames.size());\n assertEquals(dispNames.get(0), \"BitBucketPPRPullRequestCreatedActionFilter\");\n assertEquals(dispNames.get(1), \"BitBucketPPRPullRequestUpdatedActionFilter\");\n assertEquals(dispNames.get(2), \"BitBucketPPRPullRequestMergedActionFilter\");\n assertEquals(dispNames.get(3), \"BitBucketPPRPullRequestApprovedActionFilter\");\n }", "@Test\n public void testNewJobHistoryProcessing()\n {\n Job job = jobFakery.makeFakeJob();\n JobHistory newJobHistory = jobHistoryTx.newJobHistoryProcessing(job, START_TIME);\n\n verify(mockJobHistoryDAO).persist(newJobHistory);\n assertEquals(newJobHistory.getStatus(), JobStatus.PROCESSING);\n assertNull(newJobHistory.getEndTime());\n }", "HttpApiResponse run(HttpApiRequest request, ThingifierApiConfig config);", "protected void setUp() throws Exception {\n super.setUp();\n\n sub = new Submission();\n }", "@Test\n public void testDslTriggerPushActionPipeline() throws Exception {\n createSeedJob(readDslScript(\"./dsl/testDslTriggerPushActionPipeline.groovy\"));\n /* Fetch the newly created job and check its trigger configuration */\n WorkflowJob createdJob = (WorkflowJob) j.getInstance().getItem(\"test-job\");\n /* Go through all triggers to validate DSL */\n PipelineTriggersJobProperty pipelineTriggers = (PipelineTriggersJobProperty) createdJob.getProperty(PipelineTriggersJobProperty.class);\n Map<TriggerDescriptor, Trigger<?>> triggers = pipelineTriggers.getTriggersMap();\n assertEquals(1, triggers.size());\n List<String> dispNames = new ArrayList<>();\n boolean isToApprove = false;\n for (Trigger<?> entry : triggers.values()) {\n BitBucketPPRTrigger tmp2 = (BitBucketPPRTrigger) entry;\n assertEquals(1, tmp2.getTriggers().size());\n String tmpNname = tmp2.getTriggers().get(0).getActionFilter().getClass().getName();\n String dispName = tmpNname.substring(tmpNname.lastIndexOf(\".\") + 1);\n dispNames.add(dispName);\n\n BitBucketPPRRepositoryPushActionFilter tmp3 = (BitBucketPPRRepositoryPushActionFilter) tmp2.getTriggers().get(0)\n .getActionFilter();\n isToApprove = tmp3.shouldSendApprove();\n }\n assertEquals(1, dispNames.size());\n assertEquals(dispNames.get(0), \"BitBucketPPRRepositoryPushActionFilter\");\n assertFalse(isToApprove);\n }", "@Test\n public void testFeedBackDelete(){\n }", "@Test\n\tpublic void performRequestValidation() throws Exception {\n\n\t\tString responseBody = TestUtils.getValidResponse();\n\n\t\ttry {\n\t\t\t@SuppressWarnings(\"unused\")\n\t\t\tResponseEntity<ResponseWrapper> responseEntity = prepareReponseEntity(responseBody);\n\n\t\t\tthis.mockServer.verify();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Test\n public void testProcess() throws Exception {\n }", "@Override\n public void createTechnicalTestService(\n @RequestBody CreateProblemSetRequest createProblemSetRequest)\n {\n List<Problem> problemSet = createProblemSetService(createProblemSetRequest);\n TechnicalTest technicalTest = new TechnicalTest();\n\n technicalTest.setProblems(problemSet);\n technicalTest.setCv(cvRepository.findOne(createProblemSetRequest.getIdCV()));\n\n technicalTestRepository.save(technicalTest);\n\n }", "@Test\n public void whenPriceEventIsReceived_ThenItCanBeReadBackByVendorId() throws JsonProcessingException {\n Price bloomberg_AAPL = sendMessage(\"Bloomberg\", \"AAPL\");\n Price bloomberg_MSFT = sendMessage(\"Bloomberg\", \"MSFT\");\n Price reuters_AAPL = sendMessage(\"Reuters\", \"AAPL\");\n\n // then when we ask for prices submitted by `Bloomberg`\n // we expect to receive prices for `AAPL` and `MSFT`\n await().untilAsserted(() -> getByVendorId(\"Bloomberg\").isEqualTo(new Price[]{ bloomberg_MSFT, bloomberg_AAPL }));\n\n // when we ask for prices submitted by `Reuters`\n // then we expect to receive prices for `AAPL` only.\n await().untilAsserted(() -> getByVendorId(\"Reuters\").isEqualTo(new Price[] { reuters_AAPL }));\n }" ]
[ "0.6140108", "0.5982218", "0.55509394", "0.55100465", "0.5421461", "0.5393959", "0.5393163", "0.5355531", "0.5334646", "0.533418", "0.5323039", "0.53043514", "0.5282712", "0.52700233", "0.5199307", "0.5199057", "0.5182748", "0.51714325", "0.51585704", "0.5134865", "0.51293707", "0.5118167", "0.511012", "0.5102205", "0.5087787", "0.5085368", "0.50832784", "0.5077378", "0.5074409", "0.50712895", "0.50671256", "0.50589365", "0.5042709", "0.5033354", "0.5031616", "0.50254446", "0.50209016", "0.5020502", "0.49741155", "0.49724883", "0.4967396", "0.49628434", "0.4957173", "0.49495515", "0.49355644", "0.4935198", "0.49349922", "0.49164233", "0.4915891", "0.4915605", "0.49122852", "0.49066532", "0.4905936", "0.49030152", "0.4887898", "0.48795706", "0.48786142", "0.48778012", "0.48709852", "0.48625496", "0.4862032", "0.48617476", "0.4859385", "0.4858949", "0.48530096", "0.48494476", "0.484926", "0.48419467", "0.48406872", "0.4840566", "0.4833368", "0.48302323", "0.48290986", "0.48289225", "0.4822554", "0.4816761", "0.48153126", "0.48146072", "0.48115644", "0.4811304", "0.48095378", "0.48087156", "0.4805007", "0.48035553", "0.48008198", "0.48003104", "0.47979057", "0.47940445", "0.47914758", "0.4788353", "0.47833252", "0.47810832", "0.47790888", "0.47756875", "0.47736758", "0.4772095", "0.47696865", "0.47664937", "0.47656447", "0.47654077" ]
0.7689539
0
This method is called once with the initial value and again whenever data at this location is updated.
@Override public void onDataChange(DataSnapshot dataSnapshot) { User value = dataSnapshot.getValue(User.class); Toast.makeText(MainActivity.this, "Response: " + value.getNama(), Toast.LENGTH_SHORT).show(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tprotected void init() {\n\t\tupdateValues();\r\n\t}", "public void initialize() {\r\n\t\tsetValue(initialValue);\r\n\t}", "private void onChange() {\n startTime = -1L;\n endTime = -1L;\n minLat = Double.NaN;\n maxLat = Double.NaN;\n minLon = Double.NaN;\n maxLon = Double.NaN;\n }", "synchronized void reset() {\n\n // no change if called before getValue() or called twice\n lastValue = currValue = startValue;\n }", "public void update() {\n\t\tmLast = mNow;\n\t\tmNow = get();\n\t}", "@Override\r\n\tpublic void updateData() {\n\t\t\r\n\t}", "private void notifyInitialValue() {\r\n if (this.bindingSource != null) {\r\n updateTarget(this.bindingSource.getInitialValue());\r\n }\r\n else {\r\n updateTarget(null);\r\n }\r\n }", "private void Initialized_Data() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void update() {\n\n\t\t}", "@Override\n\t\tpublic void update() {\n\n\t\t}", "@Override\n\t\tpublic void update() {\n\n\t\t}", "@Override\n public void onRefresh() {\n if(mLatitude == null || mLongitude == null){\n mLatitude = DEFAULT_LAT;\n mLongitude = DEFAULT_LON;\n loadZomatoData(mLatitude, mLongitude);\n } else {\n loadZomatoData(mLatitude,mLongitude);\n }\n }", "private void setLocationData(Location location){\r\n currentLat = location.getLatitude();\r\n currentLng = location.getLongitude();\r\n }", "public void updatePositionValue(){\n m_X.setSelectedSensorPosition(this.getFusedPosition());\n }", "@Override\r\n\t\tpublic void update() {\n\t\t\t\r\n\t\t}", "@Override\r\n\t\tpublic void update() {\n\t\t\t\r\n\t\t}", "private void initValues() {\n \n }", "public void updateInformation() {\r\n onFirstCycle = false;\r\n lastLocation = player.getLocation();\r\n preparedAppearance = false;\r\n }", "@Override\n public void onLocationChanged(Location location) {\n mLastLocation = location;\n\n\n }", "private void updateGeo(Double latitude, Double longitude) {\n latitudeValue = latitude;\n longitudeValue = longitude;\n }", "private void updateLocationUI() {\n if (mCurrentLocation != null) {\n Log.e(\"UPDATE GEO\", \"LAT \" + mCurrentLocation.getLatitude() + \" LON \" +\n mCurrentLocation.getLongitude() + \" LAST UPDATE \" + mLastUpdateTime);\n }\n }", "protected void initialize() {\n \tsetSetpoint(0.0);\n }", "@Override\r\n\tpublic void update() {\n\t\tsuper.update();\r\n\t}", "@Override\n\t\tpublic void onLocationChanged(Location args0) {\n\t\t\t mCurrentLocation = args0;\n\t mLastUpdateTime = DateFormat.getTimeInstance().format(new Date());\n\t updateUI();\n\n\t\t}", "public void willbeUpdated() {\n\t\t\n\t}", "protected void storeCurrentValues() {\n }", "public synchronized void updateData() {\n updateDataFields(this::defaultFetcher);\n }", "@Override\n\tpublic int update() {\n\t\treturn 0;\n\t}", "private void initLocationData() {\n\n // init google client and request for fused location provider\n fusedLocationProviderClient = LocationServices.getFusedLocationProviderClient(context);\n\n locationRequest = new LocationRequest()\n //.setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY) // GPS quality location points\n .setPriority(LocationRequest.PRIORITY_BALANCED_POWER_ACCURACY) // optimized for battery\n .setInterval(20000) // at least once every 20 seconds\n .setFastestInterval(10000); // at most once every 10 seconds\n\n locationCallback = new LocationCallback() {\n @Override\n public void onLocationResult(LocationResult locationResult) {\n\n Point userPoint;\n if (locationResult != null) {\n // update user location\n Location lastLocation = locationResult.getLastLocation();\n userPoint = new Point(lastLocation.getLatitude(), lastLocation.getLongitude());\n // cache location\n PreferencesCache.setLastLatitude(lastLocation.getLatitude());\n PreferencesCache.setLastLongitude(lastLocation.getLongitude());\n } else {\n // get cached data\n userPoint = new Point(PreferencesCache.getLastLatitude(), PreferencesCache.getLastLongitude());\n }\n\n navigator.updateUserLocation(userPoint);\n }\n };\n }", "@Override\n protected void initialize() {\n m_oldTime = Timer.getFPGATimestamp();\n m_oldError= m_desiredDistance;\n }", "private void reset() {\n //todo test it !\n longitude = 0.0;\n latitude = 0.0;\n IDToday = 0L;\n venVolToday = 0L;\n PM25Today = 0;\n PM25Source = 0;\n DBCanRun = true;\n DBRunTime = 0;\n isPMSearchRunning = false;\n isLocationChanged = false;\n isUploadRunning = false;\n refreshAll();\n locationInitial();\n DBInitial();\n sensorInitial();\n }", "private void initialData() {\n\n }", "private void updateValues(){\n if (mCelsian != null) {\n mCelsian.readMplTemp();\n mCelsian.readShtTemp();\n mCelsian.readRh();\n mCelsian.readPres();\n mCelsian.readUvaValue();\n mCelsian.readUvbValue();\n mCelsian.readUvdValue();\n mCelsian.readUvcomp1Value();\n mCelsian.readUvcomp2Value();\n }\n }", "public void updateData() {}", "@Override\n\tpublic void initValue() {\n\t\t\n\t}", "@Override\n protected void initLocation() {\n }", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "@Override\n protected void onSetInitialValue(boolean restorePersistedValue,\n Object defaultValue) {\n setLocationString(restorePersistedValue ?\n getPersistedString(loc_string) : (String) defaultValue);\n }", "@Override\n public void update() {\n \n }", "@Override\r\n\tpublic void update() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void update() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void update() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void update() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void update() {\n\t\t\r\n\t}", "public void updateValues() {\r\n\t\tSystem.out.println(\"LastTime: \" + lastTime);\r\n\t\t// System.out.println(\"Rerouted: \" + restoredLSP.toString());\r\n\t\t// System.out.println(\"Crack rerouted success: \" +\r\n\t\t// reroutedLSP.toString());\r\n\t\tSystem.out.println(\"Number of Crack rerouted success: \"\r\n\t\t\t\t+ reroutedLSP.size());\r\n\t}", "@Override\r\n\tpublic void update() {\r\n\t}", "@Override\r\n\tpublic void update() {\r\n\r\n\t}", "@Override\r\n public void update() {\r\n this.total = calculateTotal();\r\n }", "public void onLocationChange() {\n\t\tupdateWeather();\n\t\tgetLoaderManager().restartLoader(FORECAST_LOADER_ID, null, this);\n\t}", "public void update() {\n\t\tupdate(1);\n\t}", "@Override\r\n public void update() {\r\n this.highestRevenueRestaurant = findHighestRevenueRestaurant();\r\n this.total = calculateTotal();\r\n }", "public void recalibrateData() {\r\n\t\tclicks = random.nextInt(65535); //may need tweaking. the sensor sends 2 bytes worth of data but 65k is probably too big of a range to be reasonable\r\n\t}", "@Override\n\tpublic void onLocationChanged(Location location) {\n\t\tphysAddr = this.initLocationManager();\n\t}", "public void init() {\n\t\tdouble v = MathUtils.toNum(get(\"value\"));\n\t\tlong v100 = (long) MathUtils.toNum(get(\"value100\"));\n\t\tif (v100 != 100*v) {\n\t\t\tv100 = (long) (v*100);\n\t\t\tput(\"value100\", v100);\n\t\t}\n\t}", "protected void assignCurrentValue() {\n\t\tcurrentValue = new Integer(counter + incrValue);\n\t}", "@Override\n\tprotected void onStart() {\n \tElevator.getInstance().setMotorValue(val);\n }", "@Override\n public void onLocationChanged(Location location) {\n currentLatitude = location.getLatitude();\n currentLongitude = location.getLongitude();\n\n }", "public void refresh() {\r\n\t\tinit();\r\n\t}", "public void reset() {\n _valueLoaded = false;\n _value = null;\n }", "public void startRefresh() {\n SmartDashboard.putNumber(\"Ele P\", 0.0);\n SmartDashboard.putNumber(\"Ele I\", 0.0);\n SmartDashboard.putNumber(\"Ele D\", 0.0);\n SmartDashboard.putNumber(\"Ele Set\", 0.0);\n }", "protected void updateLocationUI() {\n if (mCurrentLocation != null) {\n //TrackDataCSVHelper myCSV2 = new TrackDataCSVHelper();\n //mDistanceFromWaypointText.setText(String.valueOf(myCSV2.getLon(track, this))); //<-- used this to test getting proper lat/lon\n //mDistanceFromWaypointText.setText(String.format(\"%s: %f\", \"Dist from WP\", mDistanceFromWaypoint));\n //mZoneStatusText.setText(\"IN THE ZONE? \" + mIsInZone);\n //mNumberUpdates.setText(String.valueOf(mNum));\n }\n }", "public void dispatch() {\n if (getScrollChild() == null) {\n return;\n }\n\n peer.ignoreSetValue = true;\n adjuster.setValue(value);\n peer.ignoreSetValue = false;\n }", "public void internalStore() {\r\n\t\tdata = busInt.get();\r\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\tpublic void update() {}", "@Override\n\tpublic void update() {}", "@Override\n \tpublic void onLocationChanged(Location location) {\n \t\tthis.location = location;\n \t}", "public void update() {\n\t\tfinal StarSystem oldLocation = getPlayer().getLocation();\n\t\tfinal StarSystem newLocation = getChart().getSelected();\n\t\tgetPlayer().setLocation(newLocation);\n\t\tgetPlayer().setFuel(-oldLocation.distanceToStarSystem(newLocation));\n\t\tgetChart().setSelected(null);\n\t\tgetChart().repaint();\n\t\tplanetLbl.setText(\"Current Location: \" + player.getLocation().getName()\n\t\t\t\t+ \"....Tech Level: \" + player.getLocation().getTechLevel());\n\n\t}", "@Override\n public void update() {\n }", "private void sample() {\n Number value = gauge.get();\n this.inner.set(value != null ? value.doubleValue() : 0);\n }", "@Override\n\tpublic void resetLocation() {\n\t\t\n\t}", "public void reset() {\n firstUpdate = true;\n }", "private void updateLocationUI() {\n mCurrentLocationStr = mCurrentPlace.getAddress().toString();\n mCurrentLatLng = mCurrentPlace.getLatLng();\n if(mCurrentLocationStr.isEmpty())\n mCurrentLocationStr = String.format(\"(%.2f, %.2f)\",mCurrentLatLng.latitude, mCurrentLatLng.longitude);\n\n mAddLocation.setText(mCurrentLocationStr);\n mAddLocation.setTextColor(mSecondaryTextColor);\n mClearLocation.setVisibility(View.VISIBLE);\n }", "private void updateLocationUI() {\r\n if (mCurrentLocation != null) {\r\n CityName = mCurrentLocation.getLatitude()+ mCurrentLocation.getLongitude();\r\n }\r\n }", "@Override\n\tpublic void update() { }", "@Override\r\n\tpublic void update() {\n\t}", "@Override\r\n\tpublic void update() {\n\t}", "@Override\n public void onLocationChanged(Location location) {\n if(!firstLocCheck){\n drive = new Drive(location.getLatitude(),location.getLongitude(),Car.carList.get(carIndex),startTime);\n firstLocCheck = true;\n } else {\n Drive.curLat = location.getLatitude();\n Drive.curLong = location.getLongitude();\n }\n System.out.println(\"Location has changed\");\n System.out.println(location.getLatitude() + \" | \" + location.getLongitude());\n\n //updateLoc(location);\n //locProvider = location.getProvider();\n }", "@Override\n public String updateLat() {\n return mylat;\n }", "@Override\n public void onLocationChanged(Location location) {\n setLocation(location);\n mLastUpdateTime = DateFormat.getTimeInstance().format(new Date());\n mTime = new SimpleDateFormat(K.TIMESTAMP_FORMAT_STRING).format(Calendar\n .getInstance().getTime()).toString();\n androidLocationUI.updateUI();\n if (application.isLogging()) {\n new Thread(new Runnable() {\n @Override\n public void run() {\n saveData();\n }\n }).start();\n }\n }", "@Override\n public void onConnected(Bundle arg0) {\n mLastLocation=locationHelper.getLocation();\n }", "public void update() {\n if (System.currentTimeMillis() >= currSampleTimeInMillis + sampleDuration) {\n lastSampleTimeInMillis = currSampleTimeInMillis;\n lastPositionInTicks = currPositionInTicks;\n currSampleTimeInMillis = System.currentTimeMillis();\n currPositionInTicks = motor.getCurrentPosition();\n }\n }", "private void assumeValues() {\n\n if (isDisposed.get()) return;\n\n {// set map values\n MapPosition currentMapPosition = this.map.getMapPosition();\n if (this.mapCenter != null && getCenterGps())\n currentMapPosition.setPosition(this.mapCenter.latitude, this.mapCenter.longitude);\n\n // heading for map must between -180 and 180\n if (mapBearing < -180) mapBearing += 360;\n currentMapPosition.setBearing(mapBearing);\n currentMapPosition.setTilt(this.tilt);\n this.map.setMapPosition(currentMapPosition);\n }\n\n if (this.myPosition != null) {\n if (!ThreadUtils.isMainThread())\n this.map.post(new Runnable() {\n @Override\n public void run() {\n myLocationModel.setPosition(myPosition.latitude, myPosition.longitude, arrowHeading);\n myLocationAccuracy.setPosition(myPosition.latitude, myPosition.longitude, accuracy);\n map.updateMap(true);\n }\n });\n else {\n myLocationModel.setPosition(myPosition.latitude, myPosition.longitude, arrowHeading);\n myLocationAccuracy.setPosition(myPosition.latitude, myPosition.longitude, accuracy);\n map.updateMap(true);\n }\n }\n\n {// set yOffset at dependency of tilt\n if (this.tilt > 0) {\n float offset = MathUtils.linearInterpolation\n (Viewport.MIN_TILT, Viewport.MAX_TILT, 0, 0.8f, this.tilt);\n this.map.viewport().setMapScreenCenter(offset);\n } else {\n this.map.viewport().setMapScreenCenter(0);\n }\n }\n\n {// set mapOrientationButton tilt\n if (this.tilt > 0) {\n float buttonTilt = MathUtils.linearInterpolation\n (Viewport.MIN_TILT, Viewport.MAX_TILT, 0, -60f, this.tilt);\n this.mapOrientationButton.setTilt(buttonTilt);\n } else {\n this.mapOrientationButton.setTilt(0);\n }\n }\n }", "@Override\n public void update() {\n }", "private void updateLocation() {\n myLocationOnScreenRef.set(myComponent.getLocationOnScreen());\n }", "public void refreshData() {\n\n if (!mUpdatingData) {\n new RefreshStateDataTask().execute((Void) null);\n }\n }", "private void setData() {\n\n }", "public void reset(){\n value = 0;\n }", "public void updateLocation();", "@Override\n public void onLocationChange(Location loc) {\n user.setRelativePosition(loc.getX(), loc.getY());\n map.addStep(new PointF(loc.getX(), loc.getY()));\n //messageHandler.sendEmptyMessage(MESSAGE_REFRESH);\n }", "@Override\n\tpublic void update() {\n\n\t}", "@Override\n\tpublic void update() {\n\n\t}", "@Override\n\tpublic void update() {\n\n\t}", "@Override\n\tpublic void update() {\n\n\t}", "@Override\n\tpublic void update() {\n\n\t}", "@Override\n\tpublic void update() {\n\n\t}", "protected void updateDisplay() {\r\n setValue(Integer.toString(value.getValue()));\r\n }", "@Override\r\n\tpublic void onLocationChange(Location loc) {\n\t\tuser.setRelativePosition(loc.getX(), loc.getY());\r\n\t\tmap.addStep(new PointF(loc.getX(),loc.getY()));\r\n\t\tmessageHandler.sendEmptyMessage(MESSAGE_REFRESH);\r\n\t}", "@Override \n public void onLocationChanged(Location location) { \n mostRecentLocation = location; \n }", "@Override\n\tpublic void update() {\n\t\t\n\t}", "@Override\n\tpublic void update() {\n\t\t\n\t}" ]
[ "0.6856542", "0.6654883", "0.6446471", "0.64045274", "0.62937367", "0.62570226", "0.62508667", "0.624989", "0.6217914", "0.6217914", "0.6217914", "0.61913645", "0.6187112", "0.61626685", "0.6160627", "0.6160627", "0.61481184", "0.614558", "0.6142754", "0.6118363", "0.6087983", "0.60775137", "0.60732204", "0.60703427", "0.6056895", "0.6055453", "0.60546345", "0.6054223", "0.6051069", "0.60471123", "0.6037719", "0.6017332", "0.6016473", "0.6007601", "0.5990483", "0.5986395", "0.59851384", "0.59689265", "0.59683985", "0.59615046", "0.59615046", "0.59615046", "0.59615046", "0.59615046", "0.5958242", "0.594287", "0.59418666", "0.5937245", "0.5934195", "0.59159356", "0.59081286", "0.5906132", "0.5905515", "0.5902108", "0.58980954", "0.5896514", "0.58822805", "0.5881727", "0.58796126", "0.5864834", "0.5840819", "0.5829503", "0.58259916", "0.58239263", "0.5821117", "0.5821117", "0.5820587", "0.5815942", "0.58117074", "0.580967", "0.5805761", "0.5799243", "0.5795482", "0.57919407", "0.57892895", "0.5787571", "0.5787571", "0.5786608", "0.5784424", "0.5769878", "0.57665694", "0.5756872", "0.57555073", "0.5750877", "0.57464033", "0.5738473", "0.57328475", "0.5731573", "0.5731547", "0.57271314", "0.57260245", "0.57260245", "0.57260245", "0.57260245", "0.57260245", "0.57260245", "0.5723563", "0.572117", "0.57182354", "0.5716495", "0.5716495" ]
0.0
-1
Failed to read value
@Override public void onCancelled(DatabaseError error) { Log.w(TAG, "Failed to read value.", error.toException()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean shouldReadValue();", "Object readValue();", "private @NotNull ErrorValue finishReadingError()\n throws IOException, JsonFormatException {\n stepOver(JsonToken.VALUE_NUMBER_INT, \"integer value\");\n int errorCode;\n try { errorCode = currentValueAsInt(); } catch (JsonParseException ignored) {\n throw expected(\"integer error code\");\n }\n stepOver(JsonFormat.ERROR_MESSAGE_FIELD);\n stepOver(JsonToken.VALUE_STRING, \"string value\");\n String message = currentText();\n // TODO read custom error properties here (if we decide to support these)\n stepOver(JsonToken.END_OBJECT);\n return new ErrorValue(errorCode, message, null);\n }", "@Override\n public void onCancelled(DatabaseError error) {\n Log.w(TAG, \"Failed to read value.\", error.toException());\n }", "@Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n Log.w(TAG, \"Failed to read value.\" + databaseError.toString());\n }", "Text getValue() throws IOException;", "@Override\n public void onCancelled(@NonNull DatabaseError error) {\n Log.w(TAG, \"Failed to read value.\", error.toException());\n }", "@Override\n public void onCancelled(DatabaseError error) {\n Log.w(\"Firebase read \", \"Failed to read value.\", error.toException());\n }", "@Override\n public void onCancelled(DatabaseError error) {\n // Failed to read value\n Log.w(TAG, \"Failed to read value.\", error.toException());\n }", "@Override\n public void onCancelled(DatabaseError databaseError) {\n Log.w(TAG, \"Failed to read value.\", databaseError.toException());\n }", "@Override\n public void onCancelled(DatabaseError error) {\n Log.w(TAG, \"Failed to read value.\", error.toException());\n }", "@Override\n public void onCancelled(DatabaseError error) {\n Log.w(\"Tag\",\"Failed to read value.\", error.toException());\n }", "@Override\n public void onCancelled(DatabaseError error) {\n Log.w(\"Tag\",\"Failed to read value.\", error.toException());\n }", "@Override\n public void onCancelled(DatabaseError error) {\n Log.d(UIUtil.TAG, \"Failed to read value.\", error.toException());\n }", "@Test\n void deserialize_test_with_invalid_value() {\n assertThatThrownBy(\n () -> jsonConverter.readValue(\"{\\\"transport\\\": -1}\", TestDTO.class)\n ).isInstanceOf(DataConversionException.class);\n }", "@Override\n public void onCancelled(DatabaseError error) {\n Log.w(\"TAG\", \"Failed to read value.\", error.toException());\n }", "@Override\n public void onCancelled(DatabaseError error) {\n Log.w(TAG, \"Failed to read value.\", error.toException());\n }", "abstract Object getValue (String str, ValidationContext vc) throws DatatypeException;", "@Override\r\n public void onCancelled(DatabaseError error) {\n Log.w(TAG, \"Failed to read value.\", error.toException());\r\n }", "@Override\n public void onCancelled(DatabaseError error) {\n Log.w(\"TAG\", \"Failed to read value.\", error.toException());\n }", "public int readValue() { \n\t\treturn (port.readRawValue() - offset); \n\t}", "@Override\r\n public Object getValueFromString(String text_p) throws Exception\r\n {\n return null;\r\n }", "@Override\n public void onCancelled(DatabaseError error) {\n Log.w(\"Failed to read value.\", error.toException());\n }", "protected E readValue(LineReader reader, long indexElement) throws IOException {\n int length = (int) getValueLength(indexElement);\n if (length == 0) {\n return getValueConverter().bytesToValue(buffer, 0);\n }\n long valPos = getValuePosition(indexElement);\n if (log.isTraceEnabled()) {\n log.trace(\"readValue: Retrieving value of length \" + length + \" from file at position \" + valPos);\n }\n synchronized (this) {\n reader.seek(valPos);\n if (buffer.length < length) {\n buffer = new byte[length];\n }\n reader.readFully(buffer, 0, length);\n }\n/* for (int i = 0 ; i < length ; i++) {\n System.out.println(buffer[i]);\n }\n */\n return getValueConverter().bytesToValue(buffer, length);\n }", "@Override\n public void onCancelled(DatabaseError error) {\n Log.w(TAG, \"Failed to read test value.\", error.toException());\n }", "@Override\n public void onCancelled(DatabaseError error) {\n Log.w(\"\", \"Failed to read value.\", error.toException());\n }", "@Override\n public void onCancelled(DatabaseError error) {\n Log.w(\"\", \"Failed to read value.\", error.toException());\n }", "@Override\n public void onCancelled(DatabaseError error) {\n Log.w(\"TAG\", \"Failed to read value.\", error.toException());\n }", "@Override\n public void onCancelled(DatabaseError error) {\n Log.w(\"TAG\", \"Failed to read value.\", error.toException());\n }", "@Override\n public void onCancelled(DatabaseError error) {\n Log.w(\"TAG\", \"Failed to read value.\", error.toException());\n }", "@Override\n public void onCancelled(DatabaseError error) {\n Log.w(\"TAG\", \"Failed to read value.\", error.toException());\n }", "@Override\n public void onCancelled(DatabaseError error) {\n Log.w(\"TAG\", \"Failed to read value.\", error.toException());\n }", "java.lang.String getValue();", "java.lang.String getValue();", "java.lang.String getValue();", "java.lang.String getValue();", "java.lang.String getValue();", "java.lang.String getValue();", "public String getValue() {\n/* 99 */ return this.value;\n/* */ }", "@Override\n public void onCancelled(DatabaseError error) {\n Log.w(\"Jinx\", \"Failed to read value.\", error.toException());\n }", "@Test(expected = IllegalArgumentException.class)\n public void testFromValueWithException() {\n System.out.println(\"fromValue\");\n String value = \"DELETED\";\n StatusType expResult = StatusType.DELETED;\n StatusType result = StatusType.fromValue(value);\n assertEquals(expResult, result);\n }", "public ValueOutOfBoundsException(String message){\n super(message);\n //do nothing else\n }", "@Override\n public void onCancelled(DatabaseError error) {\n Log.w(null, \"Failed to read value.\", error.toException());\n }", "private @NotNull Val finishReadingValue(@NotNull Tag tag) throws IOException, JsonFormatException {\n\n DatumType type = tag.type;\n @NotNull JsonToken token = currentToken();\n // null?\n if (token == JsonToken.VALUE_NULL) return type.createValue(null);\n // error?\n final @Nullable String firstFieldName;\n if (token == JsonToken.START_OBJECT) { // can be a record or an error\n firstFieldName = nextFieldName(); // advances to next token (field name or end object - in valid cases)\n if (JsonFormat.ERROR_CODE_FIELD.equals(firstFieldName)) return type.createValue(finishReadingError());\n } else firstFieldName = null;\n // datum\n final @NotNull Datum datum = finishReadingDatum(token, firstFieldName, type);\n return datum.asValue();\n }", "@Override\n public void onCancelled(DatabaseError error) {\n Log.w(\"Oof2\", \"Failed to read value.\", error.toException());\n }", "@Override\n public void onCancelled(DatabaseError error) {\n Log.w(\"Oof2\", \"Failed to read value.\", error.toException());\n }", "@Override\n public void onCancelled(DatabaseError error) {\n Log.w(UIUtil.TAG, \"Failed to read value.\", error.toException());\n }", "@Override\n public void onCancelled(DatabaseError error) {\n Log.w(\"Payments\", \"Failed to read value.\", error.toException());\n }", "@Override\n public void onCancelled(DatabaseError error) {\n Log.w(\"taches \", \"Failed to read value.\", error.toException());\n }", "String getValue();", "String getValue();", "String getValue();", "String getValue();", "String getValue();", "String getValue();", "String getValue();", "String getValue();", "String getValue();", "String getValue();", "@Override\n public void onCancelled(DatabaseError error) {\n Log.w(\"ASDG\", \"Failed to read value.\", error.toException());\n }", "Object nextValue() throws IOException;", "@Override\n public void onCancelled(DatabaseError error) {\n Log.d(\"ERROR TAG\", \"Failed to read value.\", error.toException());\n }", "private void read() {\n\t\tticketint = preticketint.getInt(\"ticketint\", 0);\r\n\t\tLog.d(\"ticketint\", \"ticketint\" + \"read\" + ticketint);\r\n\t}", "@BeforeStep\n\tprivate void retriveValue(StepExecution stepExecution) throws PhotoOmniException{\n\t\tif (LOGGER.isDebugEnabled()) {\n\t\t\tLOGGER.debug(\" Entering into PMByWICCustomReader.retriveValue() \");\n\t\t}\n\t\ttry {\n\t\t\tJobExecution objJobExecution = stepExecution.getJobExecution();\n\t\t\tExecutionContext objExecutionContext = objJobExecution.getExecutionContext();\n\t\t\tobjPMBYWICReportPrefDataBean = (PMBYWICReportPrefDataBean) objExecutionContext.get(\"refDataKey\");\n\t\t} catch (Exception e) {\n\t\t\tLOGGER.error(\" Error occoured at PMByWICCustomReader.retriveValue() >----> \" + e);\n\t\t\tthrow new PhotoOmniException(e.getMessage());\n\t\t}finally {\n\t\t\tif (LOGGER.isDebugEnabled()) {\n\t\t\t\tLOGGER.debug(\" Exiting From PMByWICCustomReader.retriveValue() >----> \");\n\t\t\t}\n\t\t}\n\t}", "private void checkNotUnknown() {\n if (isUnknown())\n throw new AnalysisException(\"Unexpected 'unknown' value!\");\n }", "public InvalidRifValueException(Throwable cause) {\n super(cause);\n }", "@Override\r\n public void onCancelled(DatabaseError error) {\n Log.w(\"\", \"Failed to read value.\", error.toException());\r\n //showProgress(false);\r\n }", "@Override\n public void onCancelled(DatabaseError error) {\n Log.w(TAG, \"Failed to read value.\", error.toException());\n }", "public void testInvalidTextValueWithBrokenUTF8() throws Exception\n {\n final byte[] input = readResource(\"/data/clusterfuzz-cbor-35979.cbor\");\n try (JsonParser p = MAPPER.createParser(input)) {\n assertToken(JsonToken.VALUE_STRING, p.nextToken());\n p.getText();\n fail(\"Should not pass\");\n } catch (StreamReadException e) {\n verifyException(e, \"Truncated UTF-8 character in Short Unicode Name (36 bytes)\");\n }\n\n }", "public Address getValue() throws UnmappedAddressException, UnalignedAddressException, WrongTypeException;", "public String getStringValue() {\n throw new OurBadException(\" Item '\" + this.serialize() + \"' is not a string.\");\n }", "public static int getValue_from_die()\n {\n return value_from_die;\n }", "@Override\n public void onCancelled(@NonNull DatabaseError error) {\n Log.i(\"OnCancelled\", \"Failed to read value.\", error.toException());\n }", "@Override\n public void onCancelled(DatabaseError error) {\n Log.w(\"error\", \"Failed to read value.\", error.toException());\n }", "protected Object readUnknownData() throws IOException {\r\n byte[] bytesValue;\r\n Byte[] bytesV;\r\n Preferences.debug(\"Unknown data; length is \" + elementLength + \" fp = \" + getFilePointer() + \"\\n\", 2);\r\n\r\n if (elementLength <= 0) {\r\n Preferences.debug(\"Unknown data; Error length is \" + elementLength + \"!!!!!\\n\", 2);\r\n\r\n return null;\r\n }\r\n\r\n bytesValue = new byte[elementLength];\r\n read(bytesValue);\r\n bytesV = new Byte[elementLength];\r\n\r\n for (int k = 0; k < bytesValue.length; k++) {\r\n bytesV[k] = new Byte(bytesValue[k]);\r\n }\r\n\r\n return bytesV;\r\n }", "@Test\n public void shouldThrowExceptionIfFailsToGetVariableAsIntByOid() throws IOException {\n expect(configuration.createPDU(PDU.GET)).andReturn(new PDU());\n expect(snmpInterface.send(isA(PDU.class), same(target))).andThrow(new IOException());\n\n replayAll();\n final Integer variableAsInt = session.getVariableAsInt(\"1\");\n\n assertNull(variableAsInt);\n verifyAll();\n\n }", "public void testGetValue() {\n for (int i = 0; i < 10; i++) {\n test1.append(new Buffer(i, rec));\n }\n test1.prev();\n test1.moveToPos(8);\n assertTrue(test1.getValue().inRange(8));\n for (int i = 0; i < 10; i++) {\n test1.next();\n }\n try {\n test1.getValue();\n }\n catch (Exception e) {\n assertTrue(e instanceof NoSuchElementException);\n }\n }", "public abstract String getValue();", "public abstract String getValue();", "public abstract String getValue();", "@Override\r\n\t\tpublic long getValue() {\n\t\t\treturn -1;\r\n\t\t}", "public void _read(org.omg.CORBA.portable.InputStream istream)\r\n {\r\n value = EtudiantDejaInscritExceptionHelper.read(istream);\r\n }" ]
[ "0.6520245", "0.644224", "0.62601036", "0.6077715", "0.6027265", "0.59389204", "0.5928014", "0.5897478", "0.5892562", "0.5891626", "0.5821752", "0.5813256", "0.5813256", "0.58093756", "0.58006567", "0.5798476", "0.5776234", "0.5774579", "0.57361126", "0.5728217", "0.57143444", "0.5699661", "0.56832033", "0.5677442", "0.5675753", "0.5673998", "0.5673998", "0.5639195", "0.5639195", "0.5639195", "0.5639195", "0.5639195", "0.56246144", "0.56246144", "0.56246144", "0.56246144", "0.56246144", "0.56246144", "0.5616912", "0.56142795", "0.5613676", "0.5605406", "0.5584552", "0.5570884", "0.5567774", "0.5567774", "0.55625266", "0.5544951", "0.55435926", "0.55421937", "0.55421937", "0.55421937", "0.55421937", "0.55421937", "0.55421937", "0.55421937", "0.55421937", "0.55421937", "0.55421937", "0.5525155", "0.55243915", "0.55217975", "0.5517537", "0.551731", "0.55162007", "0.5509505", "0.5503448", "0.55026805", "0.549577", "0.5493651", "0.5481864", "0.547583", "0.54632115", "0.54314864", "0.54267025", "0.5424288", "0.5423057", "0.54224277", "0.54224277", "0.54224277", "0.54200286", "0.54182553" ]
0.5678807
39
TODO Autogenerated method stub
@Override public void getAllRole() { System.out.println(roles); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void getAllUser() { System.out.println(users); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.println("Lotto 번호를 추첨하겠습니다."); Random rd = new Random(); int[]lotto = new int[6]; int i; int j; for(i=0; i<6; i++) { lotto[i]=rd.nextInt(45)+1; for(j=0; j<i; j++) { if(lotto[i]==lotto[j]) { i--; } } } for(i=0; i<6; i++) { System.out.println(i+1+"번 번호 : "+lotto[i]); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
10 / \ 6 14 /\ /\ 4 8 12 16
private static void test01() { BinaryTreeNode node10 = new BinaryTreeNode(); node10.value = 10; BinaryTreeNode node6 = new BinaryTreeNode(); node6.value = 6; BinaryTreeNode node14 = new BinaryTreeNode(); node14.value = 14; BinaryTreeNode node4 = new BinaryTreeNode(); node4.value = 4; BinaryTreeNode node8 = new BinaryTreeNode(); node8.value = 8; BinaryTreeNode node12 = new BinaryTreeNode(); node12.value = 12; BinaryTreeNode node16 = new BinaryTreeNode(); node16.value = 16; node10.left = node6; node10.right = node14; node6.left = node4; node6.right = node8; node14.left = node12; node14.right = node16; System.out.print("Before convert: "); printTree(node10); System.out.println("null"); BinaryTreeNode head = convert(node10); System.out.print("After convert : "); printList(head); System.out.println(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int rightChild(int i){return 2*i+2;}", "private int leftChild(int i){return 2*i+1;}", "private int parent(int i){return (i-1)/2;}", "@Test(timeout = 4000)\n public void test072() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\":_]J_/L!uFQ7%)BrL\");\n Token token0 = xPathLexer0.minus();\n assertEquals(\":\", token0.getTokenText());\n assertEquals(6, token0.getTokenType());\n \n Token token1 = xPathLexer0.literal();\n assertNotNull(token1);\n \n xPathLexer0.setPreviousToken(token1);\n assertEquals(\"]J\", token1.getTokenText());\n assertEquals(27, token1.getTokenType());\n \n Token token2 = xPathLexer0.slashes();\n assertEquals(11, token2.getTokenType());\n assertEquals(\"/\", token2.getTokenText());\n \n Token token3 = xPathLexer0.nextToken();\n assertEquals(\"L!uFQ7%)BrL\", token3.getTokenText());\n }", "private boolean slash() {\r\n return MARK(OPERATOR) && CHAR('/') && gap();\r\n }", "private int get_right_child(int index){\r\n return 2 * index + 2;\r\n }", "public void divide() {\n\t\t\n\t}", "@Test(timeout = 4000)\n public void test058() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"rV.:Q-\");\n Token token0 = xPathLexer0.slashes();\n assertEquals(11, token0.getTokenType());\n assertEquals(\"r\", token0.getTokenText());\n \n Token token1 = xPathLexer0.dots();\n assertEquals(\"V.\", token1.getTokenText());\n assertEquals(14, token1.getTokenType());\n }", "public static void main(String args[]) {\n\tSystem.out.println(\"1 2 + 4 * 4 2 - + = \" + execute(\"1 2 + 4 * 4 2 - +\"));\r\n\t\r\n\t// (1 + 4) * (3 + 7) / 5 == 10\r\n\t/*System.out.println(\"1 4 + 3 7 + * 5 / = \" \r\n\t\t\t + execute(\"1 4 + 3 7 + * 5 /\"));\r\n\t\r\n\t// 10 + 2 == 12\r\n\tSystem.out.println(\"10 2 + = \" \r\n\t\t\t + execute(\"10 2 +\"));\r\n\t\r\n\t// 10 / 2 == 5\r\n\tSystem.out.println(\"10 2 / = \"\r\n\t\t\t + execute(\"10 2 /\"));*/\r\n }", "private int get_left_child(int index){\r\n return 2 * index + 1;\r\n }", "public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }", "public static void main(String[] args) {\n TreeNode n20 = new TreeNode(20);\n TreeNode n8 = new TreeNode(8);\n TreeNode n4 = new TreeNode(4);\n TreeNode n7 = new TreeNode(7);\n TreeNode n12 = new TreeNode(12);\n TreeNode n14 = new TreeNode(14);\n TreeNode n21 = new TreeNode(21);\n TreeNode n22 = new TreeNode(22);\n TreeNode n25 = new TreeNode(25);\n TreeNode n24 = new TreeNode(24);\n n20.left = n8;\n n20.right = n22;\n n8.left = n4;\n n8.right = n12;\n n4.right = n7;\n n12.right = n14;\n n22.left = n21;\n n22.right = n25;\n n25.left = n24;\n\n for (Integer i : printBoundary(n20)) {\n System.out.println(i);\n }\n }", "private int first_leaf() { return n/2; }", "public static void slashes() {\n\t\tSystem.out.println(\"//////////////////////\");\r\n\r\n\t}", "public static void main(String[] args) {\n// TreeNode node1 = new TreeNode(0);\n// TreeNode node2l = new TreeNode(3);\n// TreeNode node2r = new TreeNode(5);\n//// TreeNode node3l = new TreeNode(2);\n// TreeNode node3r = new TreeNode(2);\n//// TreeNode node4l = new TreeNode(4);\n// TreeNode node4r = new TreeNode(1);\n//\n// node1.left = node2l;\n// node1.right = node2r;\n//// node2l.left = node3l;\n// node2l.right = node3r;\n// node3r.right = node4r;\n//\n\n int[] nums = {3, 2, 1, 6, 0, 5};\n\n }", "public static void main(String[] args) {\n Scanner input = new Scanner(System.in);\n int[] numbers = new int [5];\n\n for (int i = 0; i < 5; i ++) {\n System.out.print(i+1 + \". \");\n numbers[i]=input.nextInt();\n }\n for(int num : numbers){\n int rootNumber = num / num;\n System.out.println(rootNumber + \"\\t\");\n }\n }", "@Test(timeout = 4000)\n public void test057() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"P/-a/\");\n Token token0 = xPathLexer0.slashes();\n assertEquals(\"P/\", token0.getTokenText());\n assertEquals(12, token0.getTokenType());\n }", "public static void main(String[] args) {\n\n\n\n System.out.println(4 * (1.0 - (1 / 3) + (1 / 5) - (1 / 7) + (1 / 9) - (1 / 11)));\n\n System.out.println(4 * (1.0 - (1/3) + (1/5) - (1/7)\n + (1 / 9) - (1/11) + (1/13)));\n }", "public static void bottomHalf() {\n\n for(int i = 1; i <= SIZE; i++) {\n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\" \");\n }\n \n\t System.out.print(\"\\\\_\");\n\t for(int j = 3*SIZE-i; j >= i; j--) {\n\t System.out.print(\"/\\\\\");\n\t }\n\t System.out.println(\"_/\");\n }\n }", "public static void main(String[] args) {\n FloorInBst tree = new FloorInBst();\n tree.root = new Node_2(8);\n tree.root.left = new Node_2(4);\n tree.root.right = new Node_2(12);\n tree.root.left.left = new Node_2(2);\n tree.root.left.right = new Node_2(6);\n tree.root.right.left = new Node_2(10);\n tree.root.right.right = new Node_2(14);\n\n /**\n * =========8==============// \n * =====4==========12======//\n * =2=====6===10=======14==//\n */\n for (int input = 0; input < 18; input++) {\n System.out.println(input + \" \" + tree.Floor(root, input));\n }\n }", "protected int parent(int i) { return (i - 1) / 2; }", "private int leftChild(int index){\n\t\treturn (2*index) +1;\n\t}", "private static int getDividingIndex(String fullPath) {\n int baseEnd = fullPath.lastIndexOf(\"/\");\n if (fullPath.substring(0, baseEnd).endsWith(COMMAND_PATH)) {\n baseEnd = fullPath.substring(0, baseEnd).lastIndexOf(\"/\");\n }\n return baseEnd;\n }", "public static void main(String[] args) {\n\t\tint num = 10 + 20 -5;\n\t\t\n\t\tnum = 10 + 20/5; // 14\n\t\t\n\t\t// division goes first!\n\t\tnum = (10+20) /5 ; // 6\n\t\t\n\t\tint i = 6+3*10/6;\n\t\t// i = 6+5\n\n\t}", "@Test(timeout = 4000)\n public void test147() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"zO=t1k%z[\");\n Token token0 = xPathLexer0.star();\n assertEquals(20, token0.getTokenType());\n assertEquals(\"z\", token0.getTokenText());\n \n Token token1 = xPathLexer0.minus();\n assertEquals(\"\", token1.getTokenText());\n assertEquals(6, token1.getTokenType());\n \n Token token2 = xPathLexer0.dollar();\n assertEquals(\"O\", token2.getTokenText());\n assertEquals(26, token2.getTokenType());\n \n Token token3 = xPathLexer0.at();\n assertEquals(\"=\", token3.getTokenText());\n assertEquals(16, token3.getTokenType());\n \n Token token4 = xPathLexer0.not();\n assertEquals(23, token4.getTokenType());\n assertEquals(\"t\", token4.getTokenText());\n \n Token token5 = xPathLexer0.nextToken();\n assertEquals(\"1\", token5.getTokenText());\n assertEquals(30, token5.getTokenType());\n }", "public static void main(String[] args) {\n\n\n for(int a=0; a<7;a++){\n for(int b=0;b<7-a;b++){\n System.out.print(\" \");\n }\n for(int c=0; c<=a;c++){\n System.out.print(\"* \");\n }\n System.out.println(\" \");\n }\n\n }", "public static TreeNode buildTreeNode08() {\n\t\tTreeNode root = new TreeNode(4);\n\t\troot.left = new TreeNode(-57);\n\t\troot.left.right = new TreeNode(67);\n\t\troot.left.right.right = new TreeNode(-97);\n\t\t\n\t\troot.right = new TreeNode(-57);\n\t\troot.right.left = new TreeNode(67);\n\t\troot.right.left.left = new TreeNode(-97);\n\t\t\n\t\treturn root;\n\t}", "private boolean dividingByZero(String operator){\n if (numStack.peek() == 0 && operator.equals(\"/\")){\n return true;\n }\n return false;\n }", "public static void main(String[] args) {\n\t\tint[] arr = {7,3,10,12,5,1,9};\n\t\tNode root = null;\n\t\tfor(int n:arr) {\n\t\t\tif(root == null) {\n\t\t\t\troot = new Node(n);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tNode cur = root;\n\t\t\tNode par = null;\n\t\t\twhile(cur != null) {\n\t\t\t\tpar = cur;\n\t\t\t\tif(n < cur.val) cur = cur.left;\n\t\t\t\telse cur = cur.right;\n\t\t\t}\n\t\t\tif(n < par.val) par.left = new Node(n);\n\t\t\telse par.right = new Node(n);\n\t\t\tif(height(root.left) - height(root.right) > 1) {\n\t\t\t\tif(height(root.left.right) > height(root.left.left)) leftRotate(root.left);\n\t\t\t\trightRotate(root);\n\t\t\t}\n\t\t\tif(height(root.right) - height(root.left) > 1) {\n\t\t\t\tif(height(root.right.left) > height(root.right.right)) rightRotate(root.right);\n\t\t\t\tleftRotate(root);\n\t\t\t}\n\t\t}\n\t\t//infixOrder(root);\n//\t\tdel(root,7);\n//\t\tinfixOrder(root);\n\t\t//del(root,5);\n\t\t//del(root,5);\n\t\tinfixOrder(root);\n\t}", "@Test(timeout = 4000)\n public void test160() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"hN!SM~8ux(wB\");\n Token token0 = xPathLexer0.dollar();\n assertEquals(\"h\", token0.getTokenText());\n \n xPathLexer0.not();\n Token token1 = xPathLexer0.nextToken();\n assertEquals(23, token1.getTokenType());\n \n Token token2 = xPathLexer0.leftParen();\n assertEquals(1, token2.getTokenType());\n assertEquals(\"S\", token2.getTokenText());\n \n Token token3 = xPathLexer0.dollar();\n assertEquals(26, token3.getTokenType());\n \n Token token4 = xPathLexer0.at();\n assertEquals(16, token4.getTokenType());\n assertEquals(\"~\", token4.getTokenText());\n \n Token token5 = xPathLexer0.not();\n assertEquals(\"8\", token5.getTokenText());\n \n Token token6 = xPathLexer0.nextToken();\n assertEquals(\"ux(wB\", token6.getTokenText());\n }", "public Divide(Node l, Node r) {\r\n\t\tsuper(l, r);\r\n\t}", "static void print4(int n) {\n\t\tint blank = 0;\n\t\tint star = (n/2) + 1;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < blank; j++) {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tfor (int j = 0; j < Math.abs(star); j++) {\n\t\t\t\tSystem.out.print(\"*\");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\tstar--;\n\t\t\tif(star == 0) {\n\t\t\t\tstar = -2;\n\t\t\t}\n\t\t\tblank++;\n\t\t\tif(blank > n/2)\n\t\t\t\tblank = n >> 1;\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\tint n=5;\n\t\tfor(int i=n-1;i>=0;i--)\n\t\t{\n\t\t\tfor(int space=0;space<n-1-i;space++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tfor(int j=0;j<=i*2;j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"* \");\n\t\t\t}\n\t\t\n\t\tSystem.out.println();\n\t}\n\n}", "public static void topHalf() {\n \t\n for( int i = 1; i <= SIZE; i++){\n for(int spaces = 1; spaces <= 3*SIZE - 3*i; spaces++) {\n System.out.print(\" \"); \n }\n \n for(int j = 1; j <= 1; j++) {\n System.out.print(\"__/\");\n }\n \n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\":::\");\n }\n \n System.out.print(\"||\");\n \n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\":::\");\n }\n \n for(int j = 1; j <= 1; j++) {\n System.out.print(\"\\\\__\");\n }\n \n System.out.println();\n }\n \n System.out.print(\"|\");\n \n for(int i = 1; i <= 6 * SIZE; i++) {\n System.out.print(\"\\\"\");\n }\n \n System.out.println(\"|\");\n }", "public abstract String division();", "@Test\n\tpublic void testCuatroEnRayaDiag2() {\n\t\t\n\t\tint []posX = new int[4];\n\t\tint []posY = new int[4];\n\t\tfor (int i = 1; i <= 12; ++i) {\n\t\t\tint sx = Math.min(i, 7);\n\t\t\tint sy = Math.min(13 - i, 6);\n\t\t\twhile ((sy - 4 >= 0) && (sx - 4 >= 0)) {\n\t\t\t\tfor (int l = 0; l < 4; ++l) {\n\t\t\t\t\tposX[l] = sx - l;\n\t\t\t\t\tposY[l] = sy - l;\n\t\t\t\t}\n\t\t\t\tpruebaCuatroEnRaya(posX, posY);\n\t\t\t\tsy--; sx--;\n\t\t\t}\n\t\t}\n\t}", "BaseNumber divide(BaseNumber operand);", "private int rightChild(int index) {\n return index * 2 + 1;\n }", "private static void drawNumDiamondRec(int h) {\n double hd = h;\r\n boolean odd = hd % 2 == 1;\r\n int middle = (int) Math.ceil(hd / 2);\r\n\r\n actual_recursion(h, middle, odd, 1, 0);\r\n\r\n }", "@Test\n\tpublic void testCuatroEnRayaDiag1() {\n\t\t\n\t\tint []posX = new int[4];\n\t\tint []posY = new int[4];\n\t\tfor (int i = 1; i <= 12; ++i) {\n\t\t\tint sx = Math.max(1, i-5);\n\t\t\tint sy = Math.min(i, 6);\n\t\t\twhile ((sy - 4 >= 0) && (sx + 3 <= 7)) {\n\t\t\t\tfor (int l = 0; l < 4; ++l) {\n\t\t\t\t\tposX[l] = sx + l;\n\t\t\t\t\tposY[l] = sy - l;\n\t\t\t\t}\n\t\t\t\tpruebaCuatroEnRaya(posX, posY);\n\t\t\t\tsy--; sx++;\n\t\t\t}\n\t\t}\n\t}", "@Test(timeout = 4000)\n public void test136() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"ImO=t1kJz[4\");\n Token token0 = xPathLexer0.whitespace();\n assertEquals(\"\", token0.getTokenText());\n assertEquals((-2), token0.getTokenType());\n \n Token token1 = xPathLexer0.dollar();\n assertEquals(\"m\", token1.getTokenText());\n assertEquals(26, token1.getTokenType());\n \n Token token2 = xPathLexer0.at();\n assertEquals(\"O\", token2.getTokenText());\n assertEquals(16, token2.getTokenType());\n \n Token token3 = xPathLexer0.nextToken();\n assertEquals(21, token3.getTokenType());\n assertEquals(\"=\", token3.getTokenText());\n }", "private int leftChild(int index) {\n return index * 2;\n }", "private static int primitiveRoot(int m) {\n if (m == 2)\n return 1;\n if (m == 167772161)\n return 3;\n if (m == 469762049)\n return 3;\n if (m == 754974721)\n return 11;\n if (m == 998244353)\n return 3;\n\n int[] divs = new int[20];\n divs[0] = 2;\n int cnt = 1;\n int x = (m - 1) / 2;\n while (x % 2 == 0)\n x /= 2;\n for (int i = 3; (long) (i) * i <= x; i += 2) {\n if (x % i == 0) {\n divs[cnt++] = i;\n while (x % i == 0) {\n x /= i;\n }\n }\n }\n if (x > 1) {\n divs[cnt++] = x;\n }\n for (int g = 2;; g++) {\n boolean ok = true;\n for (int i = 0; i < cnt; i++) {\n if (pow(g, (m - 1) / divs[i], m) == 1) {\n ok = false;\n break;\n }\n }\n if (ok)\n return g;\n }\n }", "private void split(){\n // Slice horizontaly to get sub nodes width\n float subWidth = this.getBounds().width / 2;\n // Slice vertically to get sub nodes height\n float subHeight = this.getBounds().height / 2;\n float x = this.getBounds().x;\n float y = this.getBounds().y;\n int newLevel = this.level + 1;\n\n // Create the 4 nodes\n this.getNodes().add(0, new QuadTree(newLevel, new Rectangle(x + subWidth, y, subWidth, subHeight)));\n this.getNodes().add(1, new QuadTree(newLevel, new Rectangle(x, y, subWidth, subHeight)));\n this.getNodes().add(2, new QuadTree(newLevel, new Rectangle(x, y + subHeight, subWidth, subHeight)));\n this.getNodes().add(3, new QuadTree(newLevel, new Rectangle(x + subWidth, y + subHeight, subWidth, subHeight)));\n\n }", "public static void main(String[] args) {\n\t\tint length = 9;\n\t\tint counter = 1;\n\t\t\tfor ( int x = (length+1)/2; x<=length;x++){\n\t\t\t\tfor (int j = x-counter; j>=0; j--){\n\t\t\t\t\t//System.out.println(\"j is \"+ j);\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t\tfor (int i =1;i<=counter;i++){\n\t\t\t\t\t\t\n\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tSystem.out.println();\n\t\t\t\tcounter+=2;\n\t\t\t}\n\t\t\tcounter = length-2;\n\t\t\t\n\t\t\t// length = 9, counter is 7 , j = 1, i = 7, x=8\n\t\t\tfor ( int x = (length-1); x>=(length+1)/2; x--){\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t\tfor (int j = 1; j<=x-counter; j++){\n\t\t\t\t\t//System.out.println(\"j is \"+ j);\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\t\n\t\t\t\t\n\t\t\t\tfor (int i =counter;i>=1;i--){\n\t\t\t\t\t\t\n\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t}\n\t\t\t\tcounter-=2;\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t}", "public static void ninethProgram() {\n\t\tfor(int i=1;i<=4;i++) {\n\t\t\tfor(int j=4-1;j>=i;j--) {\n\t\t\t\tSystem.out.print(\" \");\t\n\t\t\t}for(int k=1;k<=4;k++) {\n\t\t\t\tSystem.out.print(\"*\");\t\t\n\t\t\t}System.out.println();\n\t\t}\n\t}", "void graph4() {\n\t\tconnect(\"8\", \"9\");\n\t\tconnect(\"3\", \"1\");\n\t\tconnect(\"3\", \"2\");\n\t\tconnect(\"3\", \"9\");\n\t\tconnect(\"4\", \"3\");\n\t\t//connect(\"4\", \"5\");\n\t\t//connect(\"4\", \"7\");\n\t\t//connect(\"5\", \"7\");\t\t\n\t}", "public final void testSlash() \n\t\t\tthrows ParserConfigurationException, IOException, SAXException \n\t{\n//\t\tassertSingleDocWithValue(\"8\", fldName, \"nnðýþnn\");\n//\t\tassertSingleDocWithValue(\"8\", fldName, \"nnønn\");\n\t\tassertSingleResult(\"8\", fldName, \"nnunn\");\n\t}", "private static Object[] newPath(int length, Object[] leaf) {\n Object[] node = leaf;\n for (int i = 0; i < length; i += 5) {\n node = new Object[] { node };\n }\n return node;\n }", "public static void main(String[] args) {\nint i,j,k;\r\nint num=5;\r\nfor(i=0;i<num;i++){\r\n\tfor(j=0;j<i;j++){\r\n\t\tSystem.out.print(\" \");\r\n\t}\r\n\tfor(k=num; k>=2*i-1; k--){\r\n\t\tSystem.out.print(\"*\");\r\n\t}\r\n\t\r\n\tSystem.out.println();\r\n}\r\n\t}", "private void handleSlash() {\n // Single line comment\n if (secondCharIs('/')) {\n // Rune has C-style comments, so goes until end of line\n while ((peek() != '\\n') && !reachedEnd()) {\n advance(); // Keep advancing until newline or EOF, thus ignoring the comment lexeme\n }\n } else if (secondCharIs('*')) {\n // Block comments go until * / is reached\n while (!reachedEnd()) {\n if (peek() == '*' && peekFurther(1) == '/') {\n advance();\n advance();\n return;\n }\n advance();\n }\n } else {\n addToken(SLASH);\n }\n }", "@Test\n\tpublic void testStartingIndicesRegression(){\n\t\tassertLeftmostStartingIndices(\"5,1,7,3,2|-..xxx$1..x...xxx$3....-xx........\", 0, 6, 8, 18, 22);\n\t\tassertRightmostStartingIndices(\"7,5|.......xxx$1....xxx$2..-\", 6, 14);\n\t\t\n\t}", "public static void part2(){\n\t\n System.out.println(\"\\\\\"); //Outer wall\n System.out.println(\"\\\\\");\n System.out.println(\"\\\\\");\n for(int i = 0; i <= 16; i++){ //loop created to display top of the door\n\n \tSystem.out.print(\"-\");\n\n\t}\n System.out.println(\"\");\n System.out.println(\"\\\\\\t\\t| \\t(\\\")\"); //The door and the stick figure\n System.out.println(\"\\\\\\t\\t|\\t-|-\");\n System.out.println(\"\\\\\\t o | \\t |\");\n System.out.println(\"\\\\\\t\\t|\\t /\\\\\");\n System.out.println(\"\\\\\\t\\t|\\t/ \\\\\");\n\t\t\n }", "public static void main(String[] args) {\n\r\n for (int x = 1; x < 10; x++) {// x=1\r\n\r\n for (int h = 1; h < 10; h++) { // h=1+1+1...8+1\r\n\r\n System.out.println(x + \"*\" + h \"=\" +x*h);// 1-2-3....8-9\r\n\r\n if(h==2){\r\n break;\r\n }\r\n }\r\n\r\n if(x==4){\r\n continue;\r\n }\r\n\r\n }\r\n\r\n }", "public static void main(String[] args) {\n\t\tSystem.out.println(divide(10, 5));\n\n\t\tSystem.out.println(divide(10, 0));\n\t}", "public static void main(String[] arg) {\n leftLeftInsert();\n rightRightInsert();\n leftRightInsert();\n rightLeftInsert();\n leftLeftDelete(); \n rightRightDelete();\n leftRightDelete();\n rightLeftDelete();\n System.out.println(\"\\nEnd\");\n }", "public static void main(String[] args) {\n TreeNode root = new TreeNode(50);\n root.left = new TreeNode(30);\n root.right = new TreeNode(70);\n root.left.left = new TreeNode(20);\n root.left.right = new TreeNode(40);\n root.right.left = new TreeNode(60);\n root.right.right = new TreeNode(80);\n printSpiralRec(root);\n System.out.println();\n printSpiralIte(root);\n }", "public static void main(String[] args) {\n TreeNode root = new TreeNode(10);\n root.left = new TreeNode(5);\n root.right = new TreeNode(12);\n root.left.left = new TreeNode(4);\n root.left.right = new TreeNode(7);\n List<List<Integer>> result = pathSum(root, 22);\n for(List<Integer> i: result) {\n System.out.println(i);\n }\n }", "@Override\n\tpublic void visit(DivisionListNode node) {\n\t\tstackPair.push(new Pair<>(\"/\", 2));\n\t\tnode.getNext().accept(this);\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t\tint k,n=10;\r\n\t\tk=n-1;\r\n\t\tfor(int i=0;i<=n;i++)\r\n\t\t{\r\n\t\t\tfor(int j=0;j<=k;j++)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\r\n\t\t\t}\r\n\t\t\tk=k-1;\r\n\t\t\tfor(int j=0;j<=i;j++)\r\n\t\t\t\tSystem.out.print(\"*\"+\" \");\r\n\t\t\tSystem.out.println(\"\\r\");\r\n\t\t}\r\n\t}", "@Test(timeout = 4000)\n public void test059() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"<= \");\n Token token0 = xPathLexer0.relationalOperator();\n assertEquals(8, token0.getTokenType());\n assertNotNull(token0);\n assertEquals(\"<=\", token0.getTokenText());\n }", "public static void main(String[] args) {\n\t\tfor(int j=0;j<8;j++){\n\t\t\tfor(int i=0;i<8;i++){\n\t\t\t\t//上下两侧\n\t\t\t\tif(j==0||j==7){\n\t\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t}else{\n\t\t\t\t\t//中间\n\t\t\t\t\tif(i>0&&i<7){\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "private int get_parent(int index){\r\n return (index-1)/2;\r\n }", "public static void main(String[] args) {\n IntTree tree = new IntTree(\r\n new IntTreeNode(\r\n 9, \r\n new IntTreeNode(8,\r\n null,\r\n new IntTreeNode(3)), \r\n new IntTreeNode(7,\r\n new IntTreeNode(5),\r\n null)\r\n ));\r\n\r\n\r\n\r\n\r\n\r\n\r\n tree.printSideways();\r\n tree.slightStutter();\r\n System.out.println(\"---------------------------------\");\r\n tree.printSideways();\r\n\r\n }", "public void testORDINARY_DIV10() throws Exception {\n\t\tObject retval = execLexer(\"ORDINARY_DIV\", 19, \"colour\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.FAIL, retval);\n\t\tObject expecting = \"FAIL\";\n\n\t\tassertEquals(\"testing rule \"+\"ORDINARY_DIV\", expecting, actual);\n\t}", "public static int Main()\n\t{\n\t\tint x;\n\t\tint y;\n\t\tint i;\n\t\tint j;\n\t\tx = Integer.parseInt(ConsoleInput.readToWhiteSpace(true));\n\t\ty = Integer.parseInt(ConsoleInput.readToWhiteSpace(true));\n\t\tfor (i = 1;x / i > 0;i = i * 2)\n\t\t{\n\t\t;\n\t\t}\n\t\tfor (j = 1;y / j > 0;j = j * 2)\n\t\t{\n\t\t;\n\t\t}\n\t\ti = i / 2;\n\t\tj = j / 2; //i,j????2?????\n\t\tif (i > j)\n\t\t{\n\t\t\tx = x * j / i;\n\t\t}\n\t\telse\n\t\t{\n\t\t\ty = y * i / j;\n\t\t}\n\t\twhile (x != y)\n\t\t{\n\t\t\tx = x / 2;\n\t\t\ty = y / 2;\n\t\t}\n\t\tSystem.out.print(x);\n\n\n\n\n\n\n\t}", "@Test(timeout = 4000)\n public void test120() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"#OPh7\");\n Token token0 = xPathLexer0.whitespace();\n assertEquals((-2), token0.getTokenType());\n assertEquals(\"\", token0.getTokenText());\n \n Token token1 = xPathLexer0.not();\n assertEquals(\"O\", token1.getTokenText());\n assertEquals(23, token1.getTokenType());\n \n Token token2 = xPathLexer0.nextToken();\n assertEquals(\"Ph7\", token2.getTokenText());\n assertEquals(15, token2.getTokenType());\n }", "public static void main(String[] args) {\n \n LinkedBinaryTree expr = new LinkedBinaryTree<String>();\n // a is the root of the tree\n Position a, b, c, d, e, f, g, h, i;\n a = expr.addRoot(\"*\");\n b = expr.addLeft(a, \"+\");\n c = expr.addLeft(b, \"/\");\n d = expr.addLeft(c, \"*\");\n e = expr.addLeft(d, \"+\");\n expr.addLeft(e, \"5\");\n expr.addRight(e, \"2\");\n f = expr.addRight(d, \"-\");\n expr.addLeft(f, \"2\");\n expr.addRight(f, \"1\");\n g = expr.addRight(c, \"+\");\n expr.addLeft(g, \"2\");\n expr.addRight(g, \"9\");\n h = expr.addRight(b, \"-\");\n i = expr.addLeft(h, \"-\");\n expr.addLeft(i, \"7\");\n expr.addRight(i, \"2\");\n expr.addRight(h, \"1\");\n expr.addRight(a, \"8\");\n \n System.out.println(\"The original expression:\");\n System.out.println(\"(((5+2)*(2–1)/(2+9)+((7–2)–1))*8)\\n\");\n \n System.out.println(\"Preorder traversal:\");\n Iterable<Position<String>> preIter = expr.preorder();\n for (Position<String> s : preIter) {\n System.out.print(s.getElement() + \" \");\n }\n System.out.println(\"\\n\");\n \n System.out.println(\"Inorder traversal:\");\n Iterable<Position<String>> inIter = expr.inorder();\n for (Position<String> s : inIter) {\n System.out.print(s.getElement() + \" \");\n }\n System.out.println(\"\\n\");\n \n System.out.println(\"Postorder traversal:\");\n Iterable<Position<String>> postIter = expr.postorder();\n for (Position<String> s : postIter) {\n System.out.print(s.getElement() + \" \");\n }\n System.out.println(\"\\n\");\n \n System.out.println(\"Breadth traversal:\");\n Iterable<Position<String>> breadthIter = expr.breadthfirst();\n for (Position<String> s : breadthIter) {\n System.out.print(s.getElement() + \" \");\n }\n System.out.println(\"\\n\");\n \n System.out.println(\"Parenthesized representation:\"); \n printParenthesize(expr, a);\n System.out.println();\n }", "@Test(timeout = 4000)\n public void test019() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\">6_XdrPl\");\n Token token0 = xPathLexer0.relationalOperator();\n assertNotNull(token0);\n assertEquals(\">\", token0.getTokenText());\n assertEquals(9, token0.getTokenType());\n \n Token token1 = xPathLexer0.rightParen();\n assertEquals(2, token1.getTokenType());\n assertEquals(\"6\", token1.getTokenText());\n \n char char0 = xPathLexer0.LA(0);\n assertEquals('6', char0);\n }", "static int parent(int i)\n {\n return (i-1)/2;\n }", "public\nstatic\nvoid\nmain(String args[]) \n\n{ \n\nBinaryTree tree = \nnew\nBinaryTree(); \n\ntree.root = \nnew\nNode(\n20\n); \n\ntree.root.left = \nnew\nNode(\n8\n); \n\ntree.root.left.left = \nnew\nNode(\n4\n); \n\ntree.root.left.right = \nnew\nNode(\n12\n); \n\ntree.root.left.right.left = \nnew\nNode(\n10\n); \n\ntree.root.left.right.right = \nnew\nNode(\n14\n); \n\ntree.root.right = \nnew\nNode(\n22\n); \n\ntree.root.right.right = \nnew\nNode(\n25\n); \n\ntree.printBoundary(tree.root); \n\n}", "public static void calcIntegersDivBy()\r\n\t{\r\n\t\tint x = 5;\r\n\t\tint y = 20;\r\n\t\tint p = 3;\r\n\t\tint result = 0;\r\n\t\tif (x % p == 0)\r\n\t\t\tresult = (y / p - x / p + 1);\r\n\t\telse\r\n\t\t\tresult = (y / p - x / p);\r\n\t\tSystem.out.println(result);\r\n\t}", "private static int rightChild(int i) {\n\t\treturn 2*i + 2;\n\t}", "private static int leftChild(int i) {\n\t\treturn 2*i + 1;\n\t}", "void calculating(int depth);", "public static void main(String[] args) {\n\t\tTreeNode root1 = new TreeNode(8);\n\t\troot1.left = new TreeNode(8);\n\t\troot1.right = new TreeNode(7);\n\t\troot1.left.left = new TreeNode(9);\n\t\troot1.left.right = new TreeNode(2);\n\t\troot1.left.right.left = new TreeNode(4);\n\t\troot1.left.right.right = new TreeNode(7);\n\t\tQ32 pf = new Q32();\n\t\tSystem.out.print(pf.PrintFromTopToBottom(root1));\n\t}", "@Test\n public void testParseDiv() {\n System.out.println(\"testParseDiv\");\n\n byte[] expected = {\n Instruction.LIT.getId(), 0, 1,\n Instruction.LIT.getId(), 0, 2,\n Instruction.DIV.getId(),\n Instruction.LV.getId(), 0, 0, 32,\n Instruction.DIV.getId()\n };\n\n TermParser p = TermParserTestSetup.getDivTermSetup();\n assertEquals(\"Parse\", true, p.parse());\n AssemblerCodeChecker.assertCodeEquals(\"Code \", expected, TermParserTestSetup.getByteCode());\n }", "public static void main(String[] args) {\n\t\tScanner obj=new Scanner(System.in);\r\n\t\tint a=0;\r\n\t\tint count=0;\r\n System.out.println(\"enter size\");\r\n\t\ta=obj.nextInt();\r\n\t\tint m=2*a+1;\r\n\t\tint n=2*a+2;\r\n\t\tint mid=(m+1)/2;\r\n\t\tfor(int i=1;i<=m;i++)\r\n\t\t{\r\n\t\t\tcount=0;\r\n\t\t\tfor(int j=1;j<=n;j++)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t\tif((i==1)||(i==m)||(j==1)||(j==n))//frame begin\r\n\t\t\t\t{\r\n\t\t\t\t\tif((i==1)||(i==m))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"+\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t {\r\n\t\t\t\t\t\t\tSystem.out.print(\"|\");//frame left and right\r\n\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//frame end\r\n\t\t\t\telse if (i<mid)//upper-half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t for(int l=1;l<=2*i-4;l++)\r\n\t\t\t\t {\r\n\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t }\r\n\t\t\t\t\t else\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\tSystem.out.print(\"\\\\\");\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end of upper half\r\n\t\t\t\telse if(i>mid)//lower half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tfor(int k=mid;k<i;k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t System.out.print(\"\\\\\");\r\n\t\t\t\t\t for(int l=2*m-6;l>2*i-4;l--)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t else\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t\t } \r\n\t\t\t\t\t }\r\n\t\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t\t for(int k=mid;k<i;k++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t\t\t}//end of lower half\r\n\t\t\t\telse if(i==mid)//middle part\r\n\t\t\t\t{\r\n\t\t\t\t\tif(j==2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\"<\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(j==n-1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\">\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(i%2==0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"=\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end\r\n\t\t\t}//end-of-j\r\n\t\t\tSystem.out.println();\r\n\t\t}//end\r\n\r\n\t}", "private int rightchild(int i) {\n return (2 * i) + 2;\n }", "@Test(timeout = 4000)\n public void test108() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\":_]J_/L!uFQ7%)BrL\");\n Token token0 = xPathLexer0.minus();\n assertEquals(\":\", token0.getTokenText());\n assertEquals(6, token0.getTokenType());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"_\", token1.getTokenText());\n assertEquals(15, token1.getTokenType());\n }", "public static void figure(int level, int space) {\r\n //base case \r\n if(level == 0) { \r\n\t System.out.print(\"*\");\r\n }else {\r\n\t // prints out the top part\r\n\t figure(level-1,space);\r\n\t System.out.println();\r\n\t for (int i = 0; i < space; i++) {\r\n\t System.out.print(\" \");\r\n\t }\r\n\t \r\n\t // prints out the middle part\r\n\t for(int i = 0; i < (int)Math.pow(2, level); i++) {\r\n\t System.out.print(\"*\");\r\n\t } \r\n\t System.out.println();\r\n\t // prints out the bottom part\r\n\t for (int i = 0; i < space + (int)Math.pow(2, level-1); i++) {\r\n\t System.out.print(\" \");\r\n\t }\r\n\t figure(level-1,space + (int)Math.pow(2, level-1));\r\n } \r\n }", "@Test(timeout = 4000)\n public void test096() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"ml'}{GbV%Y&X\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(1, token0.getTokenType());\n assertEquals(\"m\", token0.getTokenText());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"l\", token1.getTokenText());\n assertEquals(15, token1.getTokenType());\n }", "@Test(timeout = 4000)\n public void test071() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"com.werken.saxpath.XPathLexer\");\n xPathLexer0.pipe();\n xPathLexer0.slashes();\n xPathLexer0.minus();\n Token token0 = xPathLexer0.number();\n xPathLexer0.setPreviousToken(token0);\n Token token1 = xPathLexer0.identifierOrOperatorName();\n assertNull(token1);\n }", "private static int rightChild(int i) {\n\t\treturn 2 * i + 2;\n\t}", "public static void main(String[] args) {\n int n;\n int i = 1;\n Scanner sc= new Scanner(System.in);\n n = sc.nextInt();\n \n while(i<=n)\n {\n int spaces = 1;\n while(spaces<=n-i)\n {\n System.out.print(' ');\n spaces = spaces + 1;\n }\n int numb = 1;\n while(numb<=i)\n {\n System.out.print('*');\n numb = numb + 1;\n }\n int dec = i - 1;\n while(dec>=1)\n {\n System.out.print('*');\n dec = dec - 1;\n }\n System.out.println();\n i = i +1;\n }\t\n\t}", "public static void tenthProgram() {\n\t\tfor(int i=1;i<=4;i++) {\n\t\t\tfor(int j=1;j<=i-1;j++) {\n\t\t\t\tSystem.out.print(\" \");\t\t\t\n\t\t\t}for(int k=1;k<=4;k++) {\n\t\t\t\tSystem.out.print(\"*\");\t\t\n\t\t\t}System.out.println();\n\t\t}\n\t}", "private int leftchild(int i) {\n return (2 * i) + 1;\n }", "public static void main(String[] args) \n\t{\n\t\ttree x = new tree(0);\n\t\t\n\t\ttreenode r = x.root;\n\t\t\n//\t\ttreenode c = r;\n//\t\tfor(int i =1;i<=4;i++)\n//\t\t{\n//\t\t\tfor(int j=0;j<=8;j=j+4)\n//\t\t\t{\n//\t\t\t\ttreenode n = new treenode(i+j);\n//\t\t\t\tif(j==0)\n//\t\t\t\t{\n//\t\t\t\t\tr.child.add(n);\n//\t\t\t\t\tc = n;\n//\t\t\t\t}\n//\t\t\t\telse\n//\t\t\t\t{\n//\t\t\t\t\tc.child.add(n);\n//\t\t\t\t\tc = n;\n//\t\t\t\t}\n//\t\t\t}\n//\t\t}\n\t\ttreenode c1 = r;\n\t\ttreenode c2 = r;\n\t\ttreenode c3 = r;\n\t\ttreenode c4 = r;\n\t\tfor(int i=1;i<13;i++)\n\t\t{\n\t\t\ttreenode n = new treenode(i);\n\t\t\tif(i%4==1)\n\t\t\t{\n\t\t\t\tc1.child.add(n);\n\t\t\t\tc1 = n;\n\t\t\t}\n\t\t\tif(i%4==2)\n\t\t\t{\n\t\t\t\tc2.child.add(n);\n\t\t\t\tc2 = n;\n\t\t\t}\n\t\t\tif(i%4==3)\n\t\t\t{\n\t\t\t\tc3.child.add(n);\n\t\t\t\tc3 = n;\n\t\t\t}\n\t\t\tif(i%4==0)\n\t\t\t{\n\t\t\t\tc4.child.add(n);\n\t\t\t\tc4 = n;\n\t\t\t}\n\t\t}\n\t\tx.traverse(r);\n\t}", "@Test(timeout = 4000)\n public void test148() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\")o/f0*4=P~Q{S\");\n Token token0 = xPathLexer0.dollar();\n assertEquals(26, token0.getTokenType());\n assertEquals(\")\", token0.getTokenText());\n \n Token token1 = xPathLexer0.at();\n assertEquals(\"o\", token1.getTokenText());\n assertEquals(16, token1.getTokenType());\n \n xPathLexer0.not();\n Token token2 = xPathLexer0.not();\n assertEquals(\"f\", token2.getTokenText());\n assertEquals(23, token2.getTokenType());\n \n Token token3 = xPathLexer0.nextToken();\n assertEquals(30, token3.getTokenType());\n assertEquals(\"0\", token3.getTokenText());\n }", "public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n \n System.out.println(\"Enter value\");\n int n = sc.nextInt();\n \n for (int rowCount = 1; rowCount <= n; rowCount++){\n for (int space = 1; space <=n-rowCount; space++){\n System.out.print(\" \");\n }\n for (int star = 1; star<=rowCount; star++ ){\n System.out.print(\"*\");\n }\n System.out.println(\" \");\n }\n \n \n \n }", "public static void main(String[] args) {\nint i,space,rows,k=0;\n Scanner sc=new Scanner(System.in);\nSystem.out.print(\"Enter number of rows\");\nrows=sc.nextInt();\nfor(i=1;i<=rows;i++)\n{\n\tfor(space=1;space<=(rows-i);space++)\n\t{\n\t\tSystem.out.print(\" \");\n\t}\n\twhile(k !=(2*i-1))\n\t{\n\t\tSystem.out.print(\"* \");\n\t\tk++;\n\t}\n\tk=0;\n\tSystem.out.println();\n}\n\t}", "@Test(timeout = 4000)\n public void test080() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"y/F+oSztXWDMo}00{5-\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(\"y\", token0.getTokenText());\n assertEquals(1, token0.getTokenType());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"/\", token1.getTokenText());\n assertEquals(11, token1.getTokenType());\n \n Token token2 = xPathLexer0.identifierOrOperatorName();\n assertEquals(\"F\", token2.getTokenText());\n assertEquals(15, token2.getTokenType());\n }", "private static int leftChild(int i) {\n\t\treturn 2 * i + 1;\n\t}", "private int parent(int index) {\n return index / 2;\n }", "private int parent(int index) {\n return index / 2;\n }", "public static void main(String[] args) {\n int i= 1; int j=1;\r\n\t\t/*for(i=1; i<=6; i++){\r\n\t\t\tfor(j=1; j<=6-i; j++){\r\n\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t }\r\n\t\t\t for(j=1; j<=i; j++){\r\n\t\t\t\tSystem.out.print(\"*\");\r\n\t\t\t } for(j=1; j<=6; j++){\r\n\t\t} System.out.print(\"*\");\r\n\t\t System.out.println();\r\n\t\t}\r\n\t\t*/\r\n\t\r\nfor(i=1; i<=7;i++){\r\n\tfor(j=1; j<=7-i; j++){\r\n\t\tSystem.out.println(\" \");\r\n\t}\r\n\tfor(j=1; j<=i; j++){\r\n\t\tSystem.out.print(\"*\");\r\n\t\r\n\t}\r\n}\r\n\r\n\t\t\r\n\t\t/*int num = 6;\r\n\t\tfor(i=1; i<=num; i++){\r\n\t\t\tfor(j=1; j<=num+1-i; j++){\r\n\t\t\t\tSystem.out.print(\"*\");\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t\t*/\r\n\t\t\r\n\t\tint num = 6;\r\n\t\tfor(i=1; i<=num; i++){\r\n\t\t\tfor(j=1; j<=num+6-i; j++){\r\n\t\t\t\tSystem.out.print(\"*\");\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t/******* i=1 *=6\r\n\t\t***** i=2 *=5\r\n\t\t**** i=3 *=4\r\n\t\t*** i=4 *=3\r\n\t\t** i=5 *=2\r\n\t\t* i=6 *=1\r\n\t\t *=7 -i=6+1-i=num+1-i\r\n\t\t*/\r\n\t\t\r\n\t\t\r\n\t/*\t****** i=1 * =6\r\n\t\t ***** i=2 * = 5\r\n\t\t ***\r\n\t\t **\r\n\t\t *\r\n\t\t\r\n\t*/\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tfor(i=1; i<=num; i++){\r\n\t\t\tfor(j=1; j<=i-1; j++){\r\n\t\t\t\tSystem.out.println(\" \");\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "@Test(timeout = 4000)\n public void test135() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"d>%NV0\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(\"d\", token0.getTokenText());\n assertEquals(1, token0.getTokenType());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\">\", token1.getTokenText());\n assertEquals(9, token1.getTokenType());\n \n Token token2 = xPathLexer0.identifierOrOperatorName();\n assertEquals(15, token2.getTokenType());\n assertEquals(\"\", token2.getTokenText());\n }", "@Test(timeout = 4000)\n public void test076() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"5!\");\n Token token0 = xPathLexer0.star();\n xPathLexer0.setPreviousToken(token0);\n assertEquals(20, token0.getTokenType());\n assertEquals(\"5\", token0.getTokenText());\n \n Token token1 = xPathLexer0.identifierOrOperatorName();\n assertEquals(15, token1.getTokenType());\n assertEquals(\"\", token1.getTokenText());\n }", "public static void main(String[] args) {\n \n\t\t\n\t\tNode root = new Node(8);\n\t\tinsertNode(root, 5);\n\t\tinsertNode(root, 3);\n\t\tinsertNode(root, 6);\n\t\tinsertNode(root, 2);\n\t\tinsertNode(root, 14);\n\t\tinsertNode(root, 13);\n\t\tinsertNode(root, 16);\n\t\tinsertNode(root, 12);\n\t\tinsertNode(root, 1);\n\t\tinsertNode(root, 11);\n \n\t\tprintRightOrder(root,0,-1);\n\t\t\n\t}", "protected abstract int[] getPathElements();", "public static void test10(World w){\n\t\tUtilities.generateGeometry2(w.points ,w.pivots, \"Front.png\", \"Side.png\", 1900, 2500, 0, 0, 1/7.0);\r\n\t\t\r\n\t}" ]
[ "0.5473678", "0.54474646", "0.5330374", "0.51268196", "0.5123817", "0.5122482", "0.51204556", "0.5108089", "0.5107896", "0.50650346", "0.5055653", "0.50440866", "0.50205797", "0.50056237", "0.49760407", "0.49713477", "0.4955534", "0.49092618", "0.49038655", "0.48990417", "0.48802635", "0.48747656", "0.48693734", "0.4860432", "0.48502055", "0.48303068", "0.4827036", "0.48020798", "0.4779255", "0.47711864", "0.47591504", "0.47465035", "0.47439796", "0.4738207", "0.47367722", "0.47219375", "0.47053984", "0.47038564", "0.470319", "0.4697775", "0.46970138", "0.4694316", "0.4693306", "0.469156", "0.4689902", "0.46848705", "0.46840116", "0.4683055", "0.46725604", "0.46630517", "0.4659176", "0.46575004", "0.46554652", "0.4653223", "0.46504885", "0.46431977", "0.46429354", "0.46419793", "0.463975", "0.46394876", "0.4639454", "0.4637357", "0.46366012", "0.46339366", "0.46328276", "0.46256405", "0.46222177", "0.46194655", "0.46157682", "0.4613546", "0.46092045", "0.4608931", "0.46039075", "0.46003616", "0.45996547", "0.45989758", "0.45952293", "0.45927027", "0.45926198", "0.459177", "0.45912534", "0.45904273", "0.45904258", "0.45704505", "0.4567919", "0.45638657", "0.45607668", "0.4555501", "0.45535865", "0.45530757", "0.45510358", "0.45476252", "0.45405576", "0.4534244", "0.4534244", "0.4530766", "0.45279416", "0.4526833", "0.452604", "0.45240214", "0.4521823" ]
0.0
-1
5 / 4 / 3 / 2 / 1
private static void test02() { BinaryTreeNode node1 = new BinaryTreeNode(); node1.value = 1; BinaryTreeNode node2 = new BinaryTreeNode(); node2.value = 2; BinaryTreeNode node3 = new BinaryTreeNode(); node3.value = 3; BinaryTreeNode node4 = new BinaryTreeNode(); node4.value = 4; BinaryTreeNode node5 = new BinaryTreeNode(); node5.value = 5; node5.left = node4; node4.left = node3; node3.left = node2; node2.left = node1; System.out.print("Before convert: "); printTree(node5); System.out.println("null"); BinaryTreeNode head = convert(node5); System.out.print("After convert : "); printList(head); System.out.println(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n\t\tint num = 10 + 20 -5;\n\t\t\n\t\tnum = 10 + 20/5; // 14\n\t\t\n\t\t// division goes first!\n\t\tnum = (10+20) /5 ; // 6\n\t\t\n\t\tint i = 6+3*10/6;\n\t\t// i = 6+5\n\n\t}", "public void divide() {\n\t\t\n\t}", "public static void main(String[] args) {\n\n\n\n System.out.println(4 * (1.0 - (1 / 3) + (1 / 5) - (1 / 7) + (1 / 9) - (1 / 11)));\n\n System.out.println(4 * (1.0 - (1/3) + (1/5) - (1/7)\n + (1 / 9) - (1/11) + (1/13)));\n }", "public static void calcIntegersDivBy()\r\n\t{\r\n\t\tint x = 5;\r\n\t\tint y = 20;\r\n\t\tint p = 3;\r\n\t\tint result = 0;\r\n\t\tif (x % p == 0)\r\n\t\t\tresult = (y / p - x / p + 1);\r\n\t\telse\r\n\t\t\tresult = (y / p - x / p);\r\n\t\tSystem.out.println(result);\r\n\t}", "public static void main(String[] args) {\n\t\tSystem.out.println(divide(10, 5));\n\n\t\tSystem.out.println(divide(10, 0));\n\t}", "public void testORDINARY_DIV5() throws Exception {\n\t\tObject retval = execLexer(\"ORDINARY_DIV\", 14, \"saltire\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.OK, retval);\n\t\tObject expecting = \"OK\";\n\n\t\tassertEquals(\"testing rule \"+\"ORDINARY_DIV\", expecting, actual);\n\t}", "public static void main(String[] args) {\n Scanner input = new Scanner(System.in);\n int[] numbers = new int [5];\n\n for (int i = 0; i < 5; i ++) {\n System.out.print(i+1 + \". \");\n numbers[i]=input.nextInt();\n }\n for(int num : numbers){\n int rootNumber = num / num;\n System.out.println(rootNumber + \"\\t\");\n }\n }", "BaseNumber divide(BaseNumber operand);", "@Test\n\tvoid divide() {\n\t\tfloat result = calculator.divide(12, 4);\n\t\tassertEquals(3,result);\n\t}", "public static void main(String args[]) {\n\tSystem.out.println(\"1 2 + 4 * 4 2 - + = \" + execute(\"1 2 + 4 * 4 2 - +\"));\r\n\t\r\n\t// (1 + 4) * (3 + 7) / 5 == 10\r\n\t/*System.out.println(\"1 4 + 3 7 + * 5 / = \" \r\n\t\t\t + execute(\"1 4 + 3 7 + * 5 /\"));\r\n\t\r\n\t// 10 + 2 == 12\r\n\tSystem.out.println(\"10 2 + = \" \r\n\t\t\t + execute(\"10 2 +\"));\r\n\t\r\n\t// 10 / 2 == 5\r\n\tSystem.out.println(\"10 2 / = \"\r\n\t\t\t + execute(\"10 2 /\"));*/\r\n }", "public int division(){\r\n return Math.round(x/y);\r\n }", "public static void main(String[] args) {\n\t\t\n\t\tint num1 = 6, num2 = 100, num3 = 10, num4 = 2, num5 = 3;\n\t\t int result = num1 * num2 / num3 / num4 / num5 - num3;\n\tSystem.out.print(result);\t\n\n\t}", "void doStuff() {\n System.out.println(7/0);\r\n }", "static int calcul4 (int y1, int y2, int y3, int y4, int y5, int y6) {\n return (y1 + y2 / y3 * y4 - y5 % y6);\n }", "private static void div(int[] numbers) {\n\t\tint sum=-1;\n\t\ttry {\n\t\t\tsum = numbers[0] / numbers[1];\n\t\t\tSystem.out.println(sum);\n\t\t} catch (ArithmeticException ex) {\n\t\t\tSystem.out.println(\"Sie dürfen um gottes Willen nicht durch NULL dividieren!\");\n\t\t\tex.printStackTrace();\n\t\t}\n\t\t\n\t}", "public void division() {\n\t\tx=1;\n\t\ty=0;\n\t\tz=x/y;\n\t\t\t\t\n\t}", "private static void addAllMultiplesOfFive()\n\t{\n\t\tfor (int i = 0; i <= MAX_NUMBER; i += 5)\n\t\t{\n\t\t\tboolean isDivisibleByThree = i % 3 == 0;\n\t\t\tif (!isDivisibleByThree)\n\t\t\t{\n\t\t\t\tanswerSum += i;\n\t\t\t}\n\t\t}\n\t}", "private static int trailzerofun(int num) {\n\t\tint count=0;\n\t\tif(num<0)\n\t\t\treturn -1;\n\t\tfor(int i=5;num/i>=1;i*=5)\n\t\t{\n\t\t\tcount+=num/i;\n\t\t}\n\t\treturn count;\n\t}", "public final void div() {\n\t\tif (size > 1) {\n\n\t\t\tdouble topMostValue = pop();\n\t\t\tdouble secondTopMostValue = pop();\n\t\t\tif (topMostValue > 0) {\n\t\t\t\tpush(secondTopMostValue / topMostValue);\n\t\t\t}\n\t\t}\n\t}", "public void multiplesOfFive()\n {\n int index = 10;\n int max = 95;\n\n while (index <= 95) {\n System.out.println(index);\n index += 5;\n }\n }", "private static void eval5(){\n for(int i = 0; i < 46; i++){\n for(int j = i + 1; j < 47; j++){\n for(int k = j + 1; k < 48; k++){\n for(int l = k + 1; l < 49; l++){\n for(int m = l + 1; m < 50; m++){\n Evaluator.evaluate(i, j, k, l, m);\n }\n }\n }\n }\n }\n }", "static int multiplesOf3And5(int n) {\n int response = 0;\n for (int i = 0; i < n; i++) {\n if (i % 3 == 0 || i % 5 == 0) {\n response += i;\n }\n }\n return response;\n }", "private static int multAndDivFixer(int size){\n return size;\n }", "public static void main(String[] args) {\n\n double fraction = 1/2.0;\n System.out.println(fraction);\n\n //Modules is the remainder of a division problem\n //25 % 6 = 1\n //31 % 5 = 1\n //17 % 3 = 2\n //4 % 2 = 0\n //5 % 2 = 1\n //6 % 2 = 0\n //121 % 100 = 21\n // 47 % 15 = 2\n //55 % 15 =10\n\n //5 + 2 * 4 =\n //12 / 2 - 4 =\n //4 + 17 % 2 -1 =\n //4 + 5 * 2 / 2 + 1 =\n //4 * (6 + 3 * 2) + 7 =\n\n System.out.println(5 + 2 * 4);\n System.out.println (12 / 2 -4);\n System.out.println(4 + 17 % 2 - 1);\n System.out.println(4 + 5 * 2 / 2 + 1);\n System.out.println(4 * (6 + 3 *2) + 7);\n\n\n }", "public String run() {\r\n\t// divisorSum[n] is the sum of all the proper divisors of n\r\n int divisorSum[]= new int[LIMIT+1];\r\n for(int i=1;i<=LIMIT;i++)\r\n {\r\n for(int j=i+i;j<=LIMIT;j+=i)\r\n divisorSum[j]+=i;\r\n }\r\n // Analyze the amicable chain length for each number in ascending order\r\n int maxChainLen=0;\r\n int minChainElem=-1;\r\n for(int i=0;i<=LIMIT;i++){\r\n Set<Integer> visited=new HashSet<>();\r\n for(int count=1,cur=i;;count++){\r\n visited.add(cur);\r\n int next=divisorSum[cur];\r\n if(next==i)\r\n {\r\n if(count>maxChainLen){\r\n minChainElem=i;\r\n maxChainLen=count;\r\n \r\n }\r\n break;\r\n }\r\n // Exceeds limit or not a chain (a rho shape instead)\r\n else if(next>LIMIT || visited.contains(next))\r\n break;\r\n else\r\n cur=next;\r\n }\r\n }\r\n return Integer.toString(minChainElem);\r\n }", "public static void main(String[] args){\n\t\tSystem.out.println(1/1+1/2+1/3+1/4+1/5+1/6+1/7+1/8+1/9+1/10);\n\t\t//Computes the sum of 1/1+1/2+...+1/10 correctly.\n\t\tSystem.out.println(1/1.0+1/2.0+1/3.0+1/4.0+1/5.0+1/6.0+1/7.0+1/8.0+1/9.0+1/10.0);\n\t\t\t\t\n\t\t/* The second method prints a correct value because it is understood\n\t\t * to be a floating point. The values from the first method are truncated to\n\t\t * \"1+0+0+....+0\" respectively. */\n\t\n\t\t}", "@Override\r\n\tpublic int call(int a, int b) {\n\t\treturn a/b;\r\n\t}", "public static BinaryExpression divide(Expression expression0, Expression expression1, Method method) { throw Extensions.todo(); }", "private static int sumOfAllMultiplesof3or5ForAandBelow (int a){\n\t\treturn (a==0)? 0 : sumOfAllMultiplesof3or5ForAandBelow(a-1) + ((isDivisibeby3or5(a))? a : 0) ;\n\t}", "public static void main( String[] args) {\n System.out.println( 3 + 5.0/2 + 5 * 2-3 );\n System.out.println( 3.0 + 5/2 + 5 * 2-3 );\n System.out.println( (int)(3.0 + 5)/(2 + 5.0) * 2-3); // -.2\n \n // initial variables\n double d1 = 37.9;\n double d2 = 1004.128;\n int i1 = 12;\n int i2 = 18;\n \n System.out.println( \"Problem 1: \" + (57.2 * (i1/i2) + 1) ); // 1.0\n System.out.println( \"Problem 2: \" + (57.2 * ((double)i1/i2) + 1) ); // 39.13333\n System.out.println( \"Problem 3: \" + (15 - i1 * (d1 * 3 ) + 4) ); // -1345.39999\n System.out.println( \"Problem 4: \" + (15 - i1 * (int)(d1 * 3) + 4) ); // -1337\n System.out.println( \"Problem 5: \" + (15 - i1 * ((int)d1 * 3) + 4) ); // -1313\n \n // Exercises 10-15 page 5-4\n System.out.println( \"Exercise 10\" );\n int p1 = 3;\n double d3 = 10.3;\n int j1 = (int)5.9;\n System.out.println( p1 + p1 * (int)d3 - 3 * j1 );\n \n System.out.println( \"Exercises 12-15\" );\n int dividend = 12, divisor = 4, quotient = 0, remainder = 0;\n int dividend2 = 13, divisor2 = 3, quotient2 = 0, remainder2 = 0;\n \n quotient = dividend/divisor; // 3\n remainder = dividend % divisor; // 0\n quotient2 = dividend / divisor2; // 4\n remainder2 = dividend2 % divisor2; //1\n \n System.out.println( quotient );\n System.out.println( remainder );\n System.out.println( quotient2 );\n System.out.println( remainder2 );\n \n // Exercise 17\n final String M = \"ugg\"; // constant String M\n // M = \"wow\"; // compile error\n \n // Math class methods\n \n /*\n * Math class methods:\n * \n * Math.abs(x); = Absolute value (int,double)\n * Math.pow(x,y); = Exponent (x to the power of y)\n * Math.sqrt(x); = Square root (double)\n * Math.ceil(x); = Ceiling (the next highest whol num 1.1 = 2\n * Math.floor(x); = Floor (the next lowest num 1.9 = 1)\n * Math.min(x,y); = Minimum of x or y \n * Math.max(x,y); = Maximum of x or y\n * Math.random(); = Returns a random num between 0<=x<1\n * Math.round(x); = Rounds the number\n * Math.PI = Constant variable, returns 3.14159265...\n */\n System.out.println( \"\\nMath class methods\" );\n System.out.println( Math.abs(-312.7) );\n System.out.println( Math.pow(5,5) );\n System.out.println( Math.sqrt(1.0) );\n System.out.println( Math.ceil(99.1));\n System.out.println( Math.floor(100.9) );\n System.out.println( Math.min(2, 25) );\n System.out.println( Math.max(2, 25) );\n System.out.println( Math.round(99.5) );\n System.out.println( Math.random() + \"\\t\" + Math.random() );\n System.out.println( Math.PI );\n \n /*\n * Other Math methods\n * \n * Math.log(x); == log base e of x\n * Math.sin(x); == sin of angle x in radians\n * Math.cos(x); == cos of angle x in radians\n * Math.tan(x); == tan of angle x in radians\n * Math.asin(x); == arcisne of x in radians -PI/2 to PI/2\n * Math.acos(x); == arccosine of x in radians -PI/2 to PI/2\n * Math.atan(x); == arctan of x in range -PI/2 to PI/2\n * Math.toDegrees(x); == converts radians to degrees\n * Math.toRadians(x); == converts degrees to radians\n */\n \n /*\n * Project: ComputeThis\n * \n * Print: d1 = 3PIsin(187deg) + |cos(122deg)| = -0.618672237585067\n * Print: d2 = (14.72)^3.801 + ln72 = 27496.9888867001543\n */\n \n double d10 = 3 * Math.PI * Math.sin(Math.toRadians(187)) + Math.abs( Math.cos( Math.toRadians(122) ) );\n double d20 = Math.pow(14.72, 3.801) + Math.log(72);\n System.out.println( \"d1 = \" + d10 );\n System.out.println( \"d2 = \" + d20 );\n \n \n \n }", "@Test\n\tpublic void divisionTest() {\n\t\tMathOperation division = new Division();\n\n\t\tassertEquals(0, division.operator(ZERO, FIVE).intValue());\n\t\tassertEquals(4, division.operator(TWENTY, FIVE).intValue());\n\t}", "private static double addOneAndHalf(int x) {\n return x + 1.5;\n }", "public static BinaryExpression divide(Expression expression0, Expression expression1) { throw Extensions.todo(); }", "public static void main(String[] args) {\n\n int a=5;\n int b=0;\n\n System.out.println(\"a/b = \" + a/b);\n\n }", "@Override\r\n\tpublic int div() {\n\t\treturn 0;\r\n\t}", "public static int tower(int... result) {\n\n int score = nSame(4, 6, result);\n int firstMatch = score/4;\n\n result = IntStream.of(result).filter(val -> val != firstMatch).toArray();\n score = nSame(2, 6, result);\n int secondMatch = score/2;\n\n if (firstMatch*secondMatch > 0) {\n score = 4*firstMatch + 2*secondMatch;\n } else {\n score = 0;\n }\n\n return score;\n }", "@Test\n public void testFactor_4args() {\n System.out.println(\"factor\");\n int[] number = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9};\n int[] weighting = {1, 2, 2, 3, 4, 5};\n int start = 4;\n int end = 9;\n AbstractMethod instance = new AbstractMethodImpl();\n int[] expResult = {0, 1, 2, 15, 16, 15, 12, 14, 8, 9};\n int[] result = instance.factor(number, weighting, start, end);\n assertArrayEquals(expResult, result);\n\n\n }", "private void handleIndivisible() {\n\t\n}", "private static boolean isDivisibeby3or5(int a){\n\t\treturn a%3 == 0 || a%5 == 0;\n\t}", "public static void main(String[] args) {\n\t\tint array[] = { 5, 2, 3, 6, 1 };\n\t\tint total = ((array.length + 1) * (array.length + 2)) / 2;\n\t\tSystem.out.println(total);\n\t\tfor (int i = 0; i < array.length; i++) {\n\t\t\ttotal -= array[i];\n\t\t}\n\t\tSystem.out.println(\"Missing number=\" + total);\n\t}", "public static void main(String[] args) {\n System.out.println(\"Start of code\");\r\n\t\t\r\n\t\tmyAdd();\r\n\t\tmyAdd();\r\n\t\tmyAdd();\r\n\t\tmyMultiple(15,23);\r\n\t\tmyMultiple(15,22);\r\n\t\t\r\n\t\tint a= myDivision(100,5);\r\n\t\tSystem.out.println(\"Value of s is \"+a);\r\n\t\t\r\n\t\tint b= myDivision(100,15);\r\n\t\tSystem.out.println(\"Value of s is \"+b);\r\n \r\n\t\tSystem.out.println(\"End of code\");\r\n\t}", "private void reduce()\r\n {\r\n int lowest, highest, temp;\r\n if(Math.abs(numerator) >= Math.abs(denominator))\r\n { \r\n lowest = Math.abs(denominator);\r\n highest = Math.abs(numerator);\r\n }\r\n else\r\n {\r\n lowest = Math.abs(numerator);\r\n highest = Math.abs(denominator);\r\n }\r\n while(lowest != 0)\r\n {\r\n temp = lowest;\r\n lowest = highest % lowest;\r\n highest = temp;\r\n } \r\n numerator = numerator / highest;\r\n denominator = denominator / highest; \r\n \r\n if(denominator < 0)\r\n {\r\n numerator = numerator * (-1);\r\n denominator = denominator * (-1); \r\n } \r\n }", "public static int foo5( int n )\r\n\t{\r\n\t\tif ( n >= 1000 )\r\n\t\t\treturn n;\r\n\t\telse\r\n\t\t\treturn (foo5(n * n));\r\n\t\t\r\n\t}", "static Double executeDivition(List<Double> operands) {\n Double result = null;\n for (Double operand : operands) {\n if (Objects.isNull(result)) {\n result = operand;\n }\n else {\n result = result / operand;\n }\n }\n return result;\n }", "int div(int num1, int num2) {\n\t\treturn num1/num2;\n\t}", "@Test\n public void findFirstSquareThatIsDivisibleBy5() {\n // HINT: IntStream.range(1, 100) creates a stream 1, 2, ... 99\n final int first = 0; // TODO\n\n assertEquals(25, first);\n }", "public static void main(String[] args) {\n int int1 = 10, int2 = 20, int3 = 30;\n System.out.println(int1 % int2 * int3 + int1 / int2);\n \n }", "@Test(priority=4)\n\n\tpublic void divisionTest() {\n\n\t\tandroidCalculator = new AndroidCalculator(driver);\n\n\t\tandroidCalculator.inputLeftAndRightFields(\"20\", \"10\");\n\t\tandroidCalculator.division();\n\n\t\tAssert.assertEquals(androidCalculator.verifyResult(), 20/10);\n\t}", "private int[] process(int[] ip)\n\t{\n\t\tint[] result = new int[ip.length];\n\t\t//first multiply all numbers\n\t\tint x = ip[0];\n\t\tfor(int i=0; i<ip.length; i++)\n\t\t{\n\t\t\tx = x*ip[i];\n\t\t}\n\t\t\n\t\tfor(int i=0;i<ip.length; i++)\n\t\t{\n\t\t\tresult[i] = x / ip[i];\n\t\t}\n\t\treturn result;\n\t}", "public static String doFourFunc() {\r\n System.out.println(\"What is your first number?\");\r\n int a = Main.sc.nextInt();\r\n System.out.println(\"What is your second number?\");\r\n int b = Main.sc.nextInt();\r\n String a1 = Integer.toString(a + b); // add\r\n String a2 = Integer.toString(a - b); // subtract\r\n String a3 = Integer.toString(a * b); // multiply\r\n String a4 = Integer.toString(a / b); // divide\r\n String a5 = Integer.toString(a % b); // remainder\r\n String toReturn = \"The sum of your numbers is \" + a1 \r\n + \"; the difference of your numbers is \" + a2\r\n + \"; the product of your numbers is \" + a3 \r\n + \"; the quotient of your numbers is \" + a4 + \" R \" + a5;\r\n return toReturn;\r\n }", "@Override\npublic void div(int a, int b) {\n\t\n}", "public void divide (int value) {\r\n\t\thistory = history + \" / \" + value;\r\n\t\tif (value == 0)\r\n\t\t\ttotal = 0;\r\n\t\telse\r\n\t\t\ttotal = total / value;\r\n\t}", "public static void promedio(int [] Grado1, int NNEstudent){\nint aux=0;\nfor(int i=0;i<NNEstudent;i++){\naux=Grado1[i]+aux;}\nint promedio;\npromedio=aux/NNEstudent;\nSystem.out.println(aux);\nSystem.out.println(\"el promedio de las edades es:\");\nSystem.out.println(promedio);\n}", "@Override\r\n\tpublic int umul(int a,int b) {\n\t\treturn a/b;\r\n\t}", "@Test\n public void testCalculateNumberOfDivisors() {\n System.out.println(\"calculateNumberOfDivisors\");\n int value = 10; \n List<Integer> primelist = Arrays.asList(2, 3, 5, 7);\n int expResult = 4; //1, 2, 5, 10\n int result = NumberUtil.calculateNumberOfDivisors(value, primelist);\n assertEquals(expResult, result);\n }", "@Override\r\n\tpublic int challengeFive(Comparable[] arr, Comparable query) {\n\t\treturn 0;\r\n\t}", "public static int villa(int... result) {\n\n int score = nSame(3, 6, result);\n int firstPairVal = score/3;\n\n result = IntStream.of(result).filter(val -> val != firstPairVal).toArray();\n score = nSame(3, 6, result);\n int secondPairVal = score/3;\n\n if (firstPairVal*secondPairVal > 0) {\n score = 3*firstPairVal + 3*secondPairVal;\n } else {\n score = 0;\n }\n\n return score;\n }", "private void division()\n\t{\n\t\tFun = Function.DIVIDE; //Function set to determine what action should be taken later.\n\t\t\n\t\t\tsetLeftValue();\n\t\t\tentry.grabFocus();\n\t\t\n\t}", "static int valDiv2 (){\n return val/2;\n }", "public int division(int a, int b) {\n return a / b;\n }", "public static int f5(int N) { \n int x = 0;\n // log(n)\n for(int i = N; i > 0; i = i/2)\n // O(n) + O(n/2) + O(n/4)\n x += f1(i);\n \n return x; \n \n }", "public void divide(int value) {\r\n\t\tif (value == 0) {\r\n\t\t\ttotal = 0;\r\n\t\t}\r\n\t\telse {\r\n\t\t\ttotal /= value;\r\n\t\t}\r\n\t\thistory += \" / \" + value;\r\n\t}", "public static int countDivBy5(Scanner s){\n\t\t\n\t\tint count = 0;\n\t\t\n\t\twhile(s.hasNextInt()){\n\t\t\t\n\t\t\t//check to see if the next is divisible by 5 if so increment count\n\t\t\tif(s.nextInt() %5 == 0){\n\t\t\t\tcount ++;\n\t\t\t}\n\t\t}\n\t\treturn count;\n\t}", "public void reduce() {\n\tint g = this.gcd();\n\tif ( g != 0 ) {\n\t numerator /= g;\n\t denominator /= g;\n\t}\n }", "public static String optimalDivision(int[] nums) {\n if(nums.length==1) return nums[0]+\"\";\n if(nums.length==2) return nums[0]+\"/\"+nums[1];\n StringBuilder res=new StringBuilder();\n res.append(nums[0]); res.append(\"/(\"); res.append(nums[1]);\n for(int i=2;i<nums.length;i++){\n res.append(\"/\"+nums[i]);\n }\n res.append(\")\");\n return res.toString();\n }", "public static void main(String args[])\r\n\t{\r\n\t\t/*int r1 = m+n;\r\n\t\tint r2 = m-n;\r\n\t\tint r3 = m*n;\r\n\t\tdouble r4 = (double)m/n; // to get quotient\r\n\t\t\r\n\t\tint r5 = m%n; // to get remainder\r\n\t\t\r\n\t\t\r\n\t\tSystem.out.println(r1);\r\n\t\tSystem.out.println(r2);\r\n\t\tSystem.out.println(r3);\r\n\t\tSystem.out.println(r4);\r\n\t\tSystem.out.println(r5);\r\n\t\t \r\n\t\t */\r\n\t\tint x = 4;\r\n\t\tx &= 3;\r\n\t\tSystem.out.println(x);\r\n\t}", "public static int Num1(int num1,int num2,int num4){\r\n\t\t //System.out.println(num1-num2);\r\n\t\t return num1-num2-num4;\r\n\t\t \r\n\t\t \r\n\t }", "public static double compute(int x)\n {\n return (Math.pow(x, 2)+Math.pow(5, 2))/(x+5);\n }", "public abstract int preN();", "public abstract String division();", "public boolean or35 (int n) {\n if ( (n % 3 == 0) || (n % 5 == 0)){\n return true;\n }\n return false;\n}", "@Override\n\tpublic void\n\tscalarDiv( double value )\n\t{\n\t\tdata[0] /= value;\n\t\tdata[1] /= value;\n\t\tdata[2] /= value;\n\t}", "public static void main(String[] args) {\n int a = 2; // starting number\n int r = 2; // Common ratio\n int n = 5; // N th term to be find\n\n int curr_term;\n for (int i = 0; i < n; i++) {\n curr_term = a * (int)Math.pow(r, i);\n System.out.print(curr_term + \" \");\n }\n\n }", "public BigDecimal divideNumbers(List<Integer> numbers) throws Exception;", "public double eval(double[] data) {\r\n\t\tif (rChild.eval(data) == 0){\r\n\t\t\tSystem.out.println(\"Divisor = 0\");\r\n\t\t\tSystem.exit(0);\r\n\t\t}\r\n\t\treturn lChild.eval(data) / rChild.eval(data);\r\n\t}", "public static void main(String[] args) {\n\t\tint a=20;\n\t\tint b=0;\n\t\tint c=a/b;\n\t\tSystem.out.println(c);\n\t\tSystem.out.println(\"division=\"+c);\n\t\tSystem.out.println(c);\n\n\t}", "public void reduce()\n\t{\n\t\tint divider = getGCD(myNumerator, myDenominator);\n\t\tmyNumerator /= divider;\n\t\tmyDenominator /= divider;\n\t}", "@Override\n\tpublic float dividir(float op1, float op2) {\n\t\treturn op1 / op2;\n\t}", "public String division()\r\n {if (Second.compareTo(BigDecimal.ZERO)==0){\r\n throw new RuntimeException(\"Error\");\r\n }\r\n return First.divide(Second,5,BigDecimal.ROUND_UP).stripTrailingZeros().toString();\r\n }", "public static BinaryExpression divideAssign(Expression expression0, Expression expression1, Method method) { throw Extensions.todo(); }", "private int d(final int n) {\r\n Set<Long> set = new Factors(n).getProperDivisors();\r\n long sum = 0;\r\n for (long i : set) {\r\n sum += i;\r\n }\r\n return (int) sum;\r\n }", "@Override\r\n\tpublic double calculate() {\n\t\treturn n1 / n2;\r\n\t}", "public static int buggyMultiplyThrough(List<Integer> numbers) {\n return numbers.stream().reduce(5, (acc, x) -> x * acc);\n }", "private int first_leaf() { return n/2; }", "private int parent(int i){return (i-1)/2;}", "@Override\n\tpublic int calculation(int a, int b) {\n\t\treturn b/a;\n\t}", "@Override\n\tprotected Integer compute() {\n\t\treturn 3;\n\t}", "public static void calculateMathProblem(){\n\n int num1 = 5;\n double num2 = 3.0d;\n float num3 = 3.0f;\n double result1 = num1 + num2;\n double result2 = num1 - num2;\n double result3 = num1 * num2;\n double result4 = num1 / num2;\n float result5 = num1 / num3;\n System.out.println(result1);\n System.out.println(result2);\n System.out.println(result3);\n System.out.println(result4);\n System.out.println(result5);\n\n }", "public static void main(String[] args) {\n\t\t\n\t\tint a = (20-3)*(3-9)/3;\n\t\tint b = 20-3*3-9/3;\n\t\t\n\t\tSystem.out.println(a);\n\t\tSystem.out.println(b);\n\n\t}", "public int score(String ops[]) {\n int result = 0;\n\n Deque<Integer> stack = new ArrayDeque<>();\n\n for (String op : ops) {\n if (\"+\".equals(op)) {\n int prev1 = stack.pop();\n int prev2 = stack.peek();\n\n stack.push(prev1);\n stack.push(prev1 + prev2);\n } else if (\"D\".equals(op)) {\n int prev1 = stack.peek();\n stack.push(prev1 * prev1);\n } else if (\"C\".equals(op)) {\n stack.pop();\n } else {\n stack.push(Integer.parseInt(op));\n }\n }\n\n System.out.println(stack);\n\n while (!stack.isEmpty()) {\n result += stack.pop();\n }\n\n return result;\n }", "void h(List<List<Integer>> r, List<Integer> t, int n, int s){ \n for(int i = s; i*i <= n; i++){\n if(n % i != 0) continue; \n t.add(i);\n t.add(n / i);\n r.add(new ArrayList<>(t));\n t.remove(t.size() - 1);\n h(r, t, n/i, i);\n t.remove(t.size() - 1);\n }\n }", "public int division(int x,int y){\n System.out.println(\"division methods\");\n int d=x/y;\n return d;\n\n }", "public static BinaryExpression divideAssign(Expression expression0, Expression expression1, Method method, LambdaExpression lambdaExpression) { throw Extensions.todo(); }", "public static BinaryExpression divideAssign(Expression expression0, Expression expression1) { throw Extensions.todo(); }", "public static void main(String[] args) {\n\t\t\n\t\tint num1 = 12;\n\t\tnum1 = num1*5;\n\t\tSystem.out.println(num1);\t\t//uzun yol carpma\n\t\t\n\t\tint num2 = 12;\n\t\tnum2 = num2/4;\n\t\tSystem.out.println(num2);\t\t//uzun yol bolme\n\t\t\n\t\tint num3 = 12;\n\t\tnum3*=3;\t\t\t\t\t\t//kisa yol carpma\n\t\tSystem.out.println(num3);\n\t\t\n\t\tint num4= 12;\n\t\tnum4/=2;\t\t\t\t\t\t//kisa yol bole\n\t\tSystem.out.println(num4);\n\n\t}", "public static void main(String[] args) {\n//\t\tSystem.out.println(-5 + 8 * 6);\n//\n//\t\tSystem.out.println((55 + 9) % 9);\n//\t\tSystem.out.println(20 + -3 * 5 / 8);\n//\t\tSystem.out.println(5 + 15 / 3 * 2 - 8 % 3);\n//\t\t/\n//\t\t \n//\t\t\tSystem.out.println(\"-----------End of Question 1\");\n\t\t////////////////////////////////////////////////////////\n\n//\t\tSystem.out.println(num1 + \" + \" + num2 + \" = \" + (num1 + num2));\n//\t\tSystem.out.println(num1 + \" - \" + num2 + \" = \" + (num1 - num2));\n//\t\tSystem.out.println(num1 + \" x \" + num2 + \" = \" + (num1 * num2));\n//\t\tSystem.out.println(num1 + \" / \" + num2 + \" = \" + (num1 / num2));\n//\t\t\t\n//\t\t\tSystem.out.println(\"-----------End of Question 2\");\n\t\t///////////////////////////////////////////////////////////////////////\n//\t\t\n//\t\t Scanner input = new Scanner(System.in);\n//\n//\t int num1;\n//\t int num2;\n//\t int num3;\n//\t int sum;\n//\t int average;\n//\t \n//\n//\t System.out.print(\"Enter First Integer: \");\n//\t num1 = input.nextInt();\n//\n//\t System.out.print(\"Enter Second Integer: \");\n//\t num2 = input.nextInt();\n//\n//\t System.out.print(\"Enter Third Integer: \");\n//\t num3 = input.nextInt();\n//\n//\t sum = num1 + num2 + num3;\n//\t average = sum / 3;\n//\t\t\n\n//\t\tSystem.out.println(\"-----------End of Question 3\");\n\t\t////////////////////////////////////////////\n//\t\t\n//\t\tint a,b;\n//\t\t\n//\t\ta = 24;\n//\t\tb = 35;\n//\t\tSystem.out.println(\"Before swapping : a, b = \"+a+\", \"+ + b);\n//\t\t a = a + b;\n//\t\tb = a - b;\n//\t\t a = a - b;\n//\t\t\n//\t\tSystem.out.println(\"After swapping : a, b = \"+a+\", \"+ + b);\n//\t\t\n//\t\tSystem.out.println(\"-------------End of Question 4\");\n\t\t/////////////////////////////////////////////////////\n\n\n//\t int num = 29;\n//\t boolean flag = false;\n//\t for (int i = 2; i <= num / 2; ++i) {\n//\t // condition for nonprime number\n//\t if (num % i == 0) {\n//\t flag = true;\n//\t break;\n//\t }\n//\t }\n//\n//\t if (!flag)\n//\t System.out.println(num + \" is a prime number.\");\n//\t else\n//\t System.out.println(num + \" is not a prime number.\");\n//\t \n//\t\tSystem.out.println(\"-------------End of Question 5\");\n\t\t/////////////////////////////////////////////////////\n\t\t\n\t\t\n//\t\tfor (int i = 0; i < 100; i++) {\n//\t\t\t\n//\t\t\tif(i % 5 == 0 && i % 3== 0) {\n//\t\t\t\tSystem.out.println(\"fizbuzz\");\n//\t\t\t}\n//\t\t\t\tif(i == 3) {\n//\t\t\t\tSystem.out.println(\"Fizz\");\n//\t\t\t}\n//\t\t\t\n//\t\t\tif(i == 5) {\n//\t\t\t\tSystem.out.println(\"buzz\");\n//\t\t\t}\n//\t\t\t\t\n//\t\t\t\n//\t\t\tif(i == 6) {\n//\t\t\t\tSystem.out.println(\"Fizz\");\n//\t\t\t}\n//\t\t\t\n//\t\t\tif(i == 9) {\n//\t\t\t\tSystem.out.println(\"Fizz\");\n//\t\t\t}\n//\t\t\tif(i == 10) {\n//\t\t\t\tSystem.out.println(\"buzz\");\n//\t\t\t}\n//\t\t}\n//\t\t\t\t\n//\t\tSystem.out.println(\"-------------End of Question 7\");\n\t\t/////////////////////////////////////////////////////\n\t\t\n\t}", "void div(double val) {\r\n\t\tresult = result / val;\r\n\t}", "public static int p_div(){\n Scanner keyboard = new Scanner(System.in);\n System.out.println(\"please put the first number that you want to divide:\");\n int v_div_number_1 = keyboard.nextInt();\n System.out.println(\"please put the second number that you want to divide:\");\n int v_div_number_2 = keyboard.nextInt();\n int v_total_div= v_div_number_1/v_div_number_2;\n return v_total_div;\n }", "private int p(final int x) {\n assert(valid(x));\n return (x-1)/2;\n }", "public Vector<T> divide(T aScalar);", "public static void main(String[] args) {\n\n System.out.println(3 + 9);\n\n System.out.println(10 - 2);\n\n System.out.println(10 * 3);\n\n System.out.println(10 / 2);\n\n System.out.println(10 % 4); // 2\n\n int result = 10 % 3;\n\n System.out.println(\"result = \" + result);\n\n System.out.println(10 / 4); // 2\n System.out.println(10.0 / 4); // 2.5\n System.out.println(10 / 4.0); // 2.5\n\n double d1 = 10 / 4; // 2.0\n\n System.out.println(\"d1 = \" + d1);\n\n double d2 = 10 / 4.0f; // 2.5\n\n System.out.println(\"d2 = \" + d2);\n }" ]
[ "0.6285945", "0.62187624", "0.62183046", "0.6098907", "0.6058939", "0.6053144", "0.595679", "0.5900007", "0.58890826", "0.5838125", "0.5829732", "0.5817407", "0.57812434", "0.5737321", "0.5723127", "0.5716741", "0.5714901", "0.5696145", "0.5684555", "0.5673132", "0.563848", "0.56309825", "0.5614088", "0.561116", "0.5604956", "0.5601029", "0.56006265", "0.5587235", "0.55776024", "0.5573936", "0.555902", "0.5558568", "0.5543721", "0.5522251", "0.5515011", "0.5512647", "0.54970086", "0.5494413", "0.54941523", "0.5474408", "0.54641485", "0.5454793", "0.5452018", "0.54324144", "0.5430982", "0.5427965", "0.54131633", "0.54127336", "0.5404408", "0.5404384", "0.54026294", "0.5401437", "0.53936434", "0.53821826", "0.5381054", "0.5380217", "0.53755754", "0.53740966", "0.53650475", "0.5362154", "0.53467435", "0.5345208", "0.53442395", "0.5340608", "0.5338518", "0.53357846", "0.5332376", "0.53281224", "0.53228194", "0.5321104", "0.53199816", "0.53184325", "0.53183746", "0.53099555", "0.53030276", "0.5302921", "0.5300118", "0.5298013", "0.5296779", "0.5295644", "0.5289607", "0.5285936", "0.5285556", "0.52852273", "0.5279857", "0.5277845", "0.5277795", "0.5277352", "0.5274877", "0.5266006", "0.52587664", "0.525114", "0.52483076", "0.52478594", "0.52364767", "0.5234804", "0.5233465", "0.523279", "0.522914", "0.5227713", "0.5210457" ]
0.0
-1
1 \ 2 \ 3 \ 4 \ 5
private static void test03() { BinaryTreeNode node1 = new BinaryTreeNode(); node1.value = 1; BinaryTreeNode node2 = new BinaryTreeNode(); node2.value = 2; BinaryTreeNode node3 = new BinaryTreeNode(); node3.value = 3; BinaryTreeNode node4 = new BinaryTreeNode(); node4.value = 4; BinaryTreeNode node5 = new BinaryTreeNode(); node5.value = 5; node1.right = node2; node2.right = node3; node3.right = node4; node4.right = node5; System.out.print("Before convert: "); printTree(node1); System.out.println("null"); BinaryTreeNode head = convert(node1); System.out.print("After convert : "); printList(head); System.out.println(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int parent(int i){return (i-1)/2;}", "private int leftChild(int i){return 2*i+1;}", "public static void main(String[] args) {\n\t\tint n=5;\n\t\tfor(int i=n-1;i>=0;i--)\n\t\t{\n\t\t\tfor(int space=0;space<n-1-i;space++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tfor(int j=0;j<=i*2;j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"* \");\n\t\t\t}\n\t\t\n\t\tSystem.out.println();\n\t}\n\n}", "public static void m4() {\r\n\t\r\n\t\tfor(int i=1;i<=5;i++) {\r\n\t\t\tchar ch ='E';\r\n\t\t\tfor(int j=5;j>=1;j--) {\r\n\t\t\t\tSystem.out.print(ch);\r\n\t\t\t\tch--;\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t}", "public static void main(String[]args){\n for(int i = 0 ; i <= 5;i++){\n System.out.println(\"*\");\n }\n }", "public void multiplesOfFive()\n {\n int index = 10;\n int max = 95;\n\n while (index <= 95) {\n System.out.println(index);\n index += 5;\n }\n }", "public static void main(String[] args) {\n// TreeNode node1 = new TreeNode(0);\n// TreeNode node2l = new TreeNode(3);\n// TreeNode node2r = new TreeNode(5);\n//// TreeNode node3l = new TreeNode(2);\n// TreeNode node3r = new TreeNode(2);\n//// TreeNode node4l = new TreeNode(4);\n// TreeNode node4r = new TreeNode(1);\n//\n// node1.left = node2l;\n// node1.right = node2r;\n//// node2l.left = node3l;\n// node2l.right = node3r;\n// node3r.right = node4r;\n//\n\n int[] nums = {3, 2, 1, 6, 0, 5};\n\n }", "private int leftChild(int index){\n\t\treturn (2*index) +1;\n\t}", "public static void main(String[] args) {\nint i,j,lines=5;\nfor(i=1;i<=lines;i++){\n\tfor(j=lines;j>=1;j--) {\n\t\tif(j!=i) {\n\t\tSystem.out.print(j);\n\t}else\n\tSystem.out.print(\"*\");\n}\n\t\nSystem.out.println(\" \");\n\t}\n\n}", "public static void main(String[] args) {\n\t\tint num=5;\r\n\t\tint c=num*2-1;//5\r\n\t\tfor(int j=0 ; j< c ; j++){//j: 0, 1, 2,3 4\r\n\t\t\t\r\n\t\t\tif(j<num) {///j: 0, 1, 2\r\n\t\t\t\t// 1 ,2,3 : 0+1, 1+1, 2+1\r\n\t\t\t\tfor(int i=0; i<j+1 ; i++) {\r\n\t\t\t\t\tSystem.out.print(\"* \");\r\n\t\t\t\t}\r\n\t\t\t}else {//j: 3,4\r\n\t\t\t\t//2,1 : 5-3, 5-4\r\n\t\t\t\tfor(int i=0; i<c-j ; i++) {\r\n\t\t\t\t\tSystem.out.print(\"* \");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\r\n\t}", "public static void m3() {\r\n\t\tchar ch ='E';\r\n\t\tfor(int i =1 ;i<=5;i++) {\r\n\t\t\tfor(int j=5;j>=1;j--) {\r\n\t\t\t\tSystem.out.print(ch);\r\n\t\t\t}\r\n\t\t\tch--;\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n \n int num = 5;\n\n for(int i=1; i<=num; i++){\n\n for (int x=1; x<=i; x++){\n System.out.print(\" \");\n }\n for(int y = i; y<=num; y++ ) System.out.print(\"*\");\n\n System.out.println();\n }\n }", "public static void main(String[] args) {\nint i,j,k;\r\nint num=5;\r\nfor(i=0;i<num;i++){\r\n\tfor(j=0;j<i;j++){\r\n\t\tSystem.out.print(\" \");\r\n\t}\r\n\tfor(k=num; k>=2*i-1; k--){\r\n\t\tSystem.out.print(\"*\");\r\n\t}\r\n\t\r\n\tSystem.out.println();\r\n}\r\n\t}", "private int get_left_child(int index){\r\n return 2 * index + 1;\r\n }", "public static void main(String[] args) {\n Scanner input = new Scanner(System.in);\n int[] numbers = new int [5];\n\n for (int i = 0; i < 5; i ++) {\n System.out.print(i+1 + \". \");\n numbers[i]=input.nextInt();\n }\n for(int num : numbers){\n int rootNumber = num / num;\n System.out.println(rootNumber + \"\\t\");\n }\n }", "public static void m7() {\r\n\tchar ch ='A';\r\n\tfor(int i=1;i<=5;i++) {\r\n\t\tfor(int j =1;j<=i;j++)\r\n\t\t{\r\n\t\t\tSystem.out.print(ch);\r\n\t\t}\r\n\t\tch++;\r\n\t\tSystem.out.println();\r\n\t}\r\n}", "public static void m8() {\r\n\tfor(int i =1;i<=5;i++) {\r\n\t\tchar ch ='A';\r\n\t\tfor(int j=5;j>=i;j--) {\r\n\t\t\tSystem.out.print(ch);\r\n\t\t\tch++;\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t}\r\n}", "private int rightChild(int i){return 2*i+2;}", "protected int parent(int i) { return (i - 1) / 2; }", "private int parent(int index) {\n return index / 2;\n }", "private int parent(int index) {\n return index / 2;\n }", "public static void main(String[] args) {\n\t\tint num = 5;\n\t\tfor(int i = 1;i<=num;i++) {\n\t\t\tfor(int j=1; j<=num;j++) {\n\t\t\t\tif(i==j || i+j ==num+1)\n\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\telse {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t}", "public static void m5() {\r\nfor(int i =1;i<=5;i++) {\r\n\tchar ch ='A';\r\n\tfor(int j =1;j<=i;j++) {\r\n\t\tSystem.out.print(ch);\r\n\t\tch++;\r\n\t}\r\n\tSystem.out.println();\r\n}\t\r\n}", "private int leftChild(int index) {\n return index * 2;\n }", "public static void main(String[] args) {\n\r\n\t\tfor(int i = 1; i <= 6; i++) {\r\n\t\t\tSystem.out.print(\"*\");\r\n\t\t}\r\n\t\tSystem.out.println(\"\\n\");\r\n\t\t\r\n\t\t\r\n\t\tfor(int j = 1; j <= 4; j++) {\r\n\t\t\tfor(int i = 1; i <= 6; i++) {\r\n\t\t\t\tSystem.out.print('*');\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t\t/*\t\t\t\tj(行号)\t\tk(*的个数)\r\n\t\t*\t\t\t\t1\t\t\t1\r\n\t\t**\t\t\t\t2\t\t\t2\r\n\t\t***\t\t\t\t3\t\t\t3\r\n\t\t****\t\t\t4\t\t\t4\r\n\t\t*****\t\t\t5\t\t\t5\r\n\t\t*/\r\n\t\t\r\n\t\tfor (int j = 1; j <= 5;j++) {//控制行数\r\n\t\t\tfor(int k = 1; k <= j; k++) {//控制列数\r\n\t\t\t\tSystem.out.print(\"*\");\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t\t/*\t\t\t\tj(行号)\t\tk(*的个数)\t规律:j + k = 5 换句话说:k = 5 - j;\r\n\t\t****\t\t\t1\t\t\t4\r\n\t\t***\t\t\t\t2\t\t\t3\r\n\t\t**\t\t\t\t3\t\t\t2\r\n\t\t*\t\t\t\t4\t\t\t1\r\n\t\t*/\r\n\t\t\r\n\t\tfor (int j = 1; j <= 4;j++) {//控制行数\r\n\t\t\tfor(int k = 1; k <= 5 - j; k++) {//控制列数\r\n\t\t\t\tSystem.out.print(\"*\");\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\r\n\t}", "private int get_parent(int index){\r\n return (index-1)/2;\r\n }", "public static void m9() {\r\n\tfor(int i =1;i<=5;i++) {\r\n\t\t\r\n\t for(int j =1;j<=i;j++) {\r\n\t\t System.out.print(\" \");\r\n\t }\r\n\t char ch ='A';\r\n\t for(int k=0;k<=(5-i);k++) {\r\n\t System.out.print(ch);\r\n\t ch++;\r\n\t }\r\n\t System.out.println();\r\n\t}\r\n}", "public static void main(String[] args) {\n\t\t\r\n\t\tfor (int i = 1; i <= 5; i++) {\r\n\t\t\tfor (int j = 1; j <= i; j++) {\r\n\t\t\t\tif (j<=1) {\r\n\t\t\t\tfor (int m = 5 - j; m >= i; m--) {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t}}\r\n\t\t\t\tSystem.out.print(\"* \");\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\r\n\t}", "public static void m6() {\r\n\tfor(int i=1;i<=5;i++) {\r\n\t\t\r\n\t\tfor(int j=1;j<=(5-i);j++) {\r\n\t\tSystem.out.print(\" \");\t\r\n\t\t}\r\n\t\tchar ch ='A';\r\n\t\tfor(int k =1;k<=i;k++) {\r\n\t\t\tSystem.out.print(ch);\r\n\t\t\tch++;\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t}\r\n}", "static int parent(int i)\n {\n return (i-1)/2;\n }", "public static void main(String[] args) {\n\r\n for (int x = 1; x < 10; x++) {// x=1\r\n\r\n for (int h = 1; h < 10; h++) { // h=1+1+1...8+1\r\n\r\n System.out.println(x + \"*\" + h \"=\" +x*h);// 1-2-3....8-9\r\n\r\n if(h==2){\r\n break;\r\n }\r\n }\r\n\r\n if(x==4){\r\n continue;\r\n }\r\n\r\n }\r\n\r\n }", "public static void m1() {\r\n\t char ch = 'A';\r\n\t\tfor(int i =1;i<=5;i++) {\r\n\t\t\tfor(int j=1;j<=5;j++) {\r\n\t\t\t\tSystem.out.print(ch);\r\n\t\t\t}\r\n\t\t\tch++;\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t}", "static void print4(int n) {\n\t\tint blank = 0;\n\t\tint star = (n/2) + 1;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < blank; j++) {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tfor (int j = 0; j < Math.abs(star); j++) {\n\t\t\t\tSystem.out.print(\"*\");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\tstar--;\n\t\t\tif(star == 0) {\n\t\t\t\tstar = -2;\n\t\t\t}\n\t\t\tblank++;\n\t\t\tif(blank > n/2)\n\t\t\t\tblank = n >> 1;\n\t\t}\n\t}", "public static void main(String[] args) {\n\n\n for(int a=0; a<7;a++){\n for(int b=0;b<7-a;b++){\n System.out.print(\" \");\n }\n for(int c=0; c<=a;c++){\n System.out.print(\"* \");\n }\n System.out.println(\" \");\n }\n\n }", "static void pyramid(){\n\t}", "public static void incorrect5() {\r\n\r\n System.out.println(\" *---*\");\r\n System.out.println(\" | |\");\r\n System.out.println(\" 0 |\");\r\n System.out.println(\" /|\\\\ | Incorrect - 5\");\r\n System.out.println(\" / |\");\r\n System.out.println(\" |\");\r\n System.out.println(\"==========\");\r\n }", "private static int path1(int n) {\n int[] path = new int[n+1];\n path[0] = 0;\n path[1] = 1;\n path[2] = 2;\n for (int i=3;i<=n;i++) {\n path[i] = path[i-1] + path[i-2];\n }\n return path[n];\n }", "public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n \n System.out.println(\"Enter value\");\n int n = sc.nextInt();\n \n for (int rowCount = 1; rowCount <= n; rowCount++){\n for (int space = 1; space <=n-rowCount; space++){\n System.out.print(\" \");\n }\n for (int star = 1; star<=rowCount; star++ ){\n System.out.print(\"*\");\n }\n System.out.println(\" \");\n }\n \n \n \n }", "public static void ninethProgram() {\n\t\tfor(int i=1;i<=4;i++) {\n\t\t\tfor(int j=4-1;j>=i;j--) {\n\t\t\t\tSystem.out.print(\" \");\t\n\t\t\t}for(int k=1;k<=4;k++) {\n\t\t\t\tSystem.out.print(\"*\");\t\t\n\t\t\t}System.out.println();\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t\tchar space = ' ';\n\t\t\n\t\tfor(int i = 1; i <= 5; i++){\n\t\t\tfor(int l=5-i; l>=1; l--){\n\t\t\t\tSystem.out.print(space);\n\t\t\t}\n\t\t\tfor(int j = 1; j <= i; j++){\n\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\tSystem.out.print(space);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\t\n\t\tSystem.out.println();\n\t\tfor(int i = 1; i <= 5; i++){\n\t\t\tfor(int l = 1; l<i; l++){\n\t\t\t\tSystem.out.print(space);\n\t\t\t}\n\t\t\tfor(int j = 5; j >= i; j--){\n\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\tSystem.out.print(space);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "private static void test4() {\n BinaryTreeNode node1 = new BinaryTreeNode(5);\n BinaryTreeNode node2 = new BinaryTreeNode(4);\n BinaryTreeNode node3 = new BinaryTreeNode(3);\n BinaryTreeNode node4 = new BinaryTreeNode(2);\n BinaryTreeNode node5 = new BinaryTreeNode(1);\n node1.left = node2;\n node2.left = node3;\n node3.left = node4;\n node4.left = node5;\n test(\"Test4\", node1, false);\n }", "public static void bottomHalf() {\n\n for(int i = 1; i <= SIZE; i++) {\n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\" \");\n }\n \n\t System.out.print(\"\\\\_\");\n\t for(int j = 3*SIZE-i; j >= i; j--) {\n\t System.out.print(\"/\\\\\");\n\t }\n\t System.out.println(\"_/\");\n }\n }", "private int get_right_child(int index){\r\n return 2 * index + 2;\r\n }", "public static void main(String[] args) {\n\n\t\t\n\t\tfor(int i=1;i<=5;i++)\n\t\t{\n\t\t\t\n\t\t for(int j=1;j<=i;j++) {\n\t\t\t \n\t\t\t \n\t\t\tSystem.out.print(\"*\");\n\t\t\n\t\t}\n\t\t\t\n\t\t System.out.println(\"\");\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\tfor(int i=1;i<=5;i++) {\n\t\t\t\t\t\t\n\t\t for(int j=5;j>=i;j--) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\tSystem.out.print(\"*\");\t\n\t\t}\n System.out.println();\t\t\n \n }\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\tfor(int a=1;a<=5;a++) {\n\t\t\t\n\t\t \n\t\t\tfor(int b=1;b<=a;b++) {\n\t\t\t\n\t\t \n\t\t\t\tSystem.out.print(\"*\");\n\t\t\n\t\t }\n\t\t System.out.println();\t\n\t\t\n\t\t}\n\t\t\n\t\t for(int c=1;c<=5;c++) {\n\t\t\t\n\t\t\t\n\t\t for(int d=4;d>=c;d--) {\n\t\t\t\n\t\t System.out.print(\"*\");\t\n\t\t\t\n\t\t}\n\t\t System.out.println();\t\n\t\t}\n \n\t\t\n\t\t\n\t\t\n\t\t\n\t\n\t}", "@Override\n protected long advanceH(final long k) {\n return 5 * k - 2;\n }", "public static void main(String[] args) \n\t{\n\t\t\n\t\tfor(int i=5;i>=1;i--) \n\t\t{\n\t\t\tfor(int j=1;j<=5-i;j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\n\t\t\t}\n\t\t\tfor(int k=1;k<=i;k++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"*\"+\" \");\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println();\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t// -------Pattern 5-------\n//\t\tfor(int i=1;i<=5;i++)\n//\t\t{\n//\t\t\tfor(int j=1;j<=5-i;j++) \n//\t\t\t{\n//\t\t\t\tSystem.out.print(\" \");\n//\t\t\t\t\n//\t\t\t}\n//\t\t\t\n//\t\t\tfor(int k=1;k<=i;k++)\n//\t\t\t{\n//\t\t\t\tSystem.out.print(\"*\"+\" \");\n//\t\t\t}\n//\t\t\t\n//\t\t\tSystem.out.println();\n//\t\t}\n\n\n\t}", "@Override\n\tpublic void sanjiao() {\n\t\t\tfor (int i = 1; i <5; i++) {\n\t\t\t\tfor(int j=1;j<=2*i-1;j++){\n\t\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t}", "public int stepFive(int step)\n\t{\n\t\tboolean over;\n\t\tint rows1=-1;\n\t\tint cols1=-1;\n\t\t\n\t\tpathCount=1;\n\t\tpath[pathCount-1][0]=path_row_0;\n\t\tpath[pathCount-1][1]=path_col_0;\n\t\tover=false;\n\t\t\n\t\twhile(!over)\n\t\t{\n\t\t\trows1=getStarInCol(path[pathCount-1][1],rows1);\n\t\t\tif(rows1>-1)\n\t\t\t{\n\t\t\t\tpathCount++;\n\t\t\t\tpath[pathCount-1][0]=rows1;\n\t\t\t\tpath[pathCount-1][1]=path[pathCount-2][1];\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tover=true;\n\t\t\t}\n\t\t\tif(!over)\n\t\t\t{\n\t\t\t\tcols1=getPrimeInRow(path[pathCount-1][0],cols1);\n\t\t\t\tpathCount++;\n\t\t\t\tpath[pathCount-1][0]=path[pathCount-2][0];\n\t\t\t\tpath[pathCount-1][1]=cols1;\n\t\t\t}\n\t\t}\n\t\t\n\t\taugmentPath();\n\t\tclearLabels();\n\t\tremovePrimes();\n\t\tstep=3;\n\t\t\n\t\treturn step;\n\t}", "private int getParent(int index) {\r\n return (index - 1) / 2;\r\n }", "protected int left(int i ) { return 2 * i + 1; }", "public static void main(String[] args) {\n\n\t\t for(int i =1; i<=5;i++){\n\n\t\t /*for (int j = 1 ; j<=5 ; j++){\n\n\t\t System.out.print(j+\" \");\n\n\t\t }*/\n\n\t\t for (int l =5 ;l >i ; l--){\n\n\t\t System.out.print(\" \");\n\n\t\t }\n\n\t\t for (int k =1; k<=i;k++){\n\n\t\t System.out.print(i);\n\n\t\t System.out.print(\" \");\n\n\t\t }\n\n\t\t System.out.println(\" layer no :\"+i);\n\n\t\t }\n\n\t\t for(int i =5; i>=1;i--){\n\n\t\t for (int j = 1 ; j<=5 ; j++){\n\n\t\t System.out.print(j+\" \");\n\n\t\t }\n\n\t\t for (int l =i ;l <5 ; l++){\n\n\t\t System.out.print(\" \");\n\n\t\t }\n\n\t\t for (int k =1; k<=i;k++){\n\n\t\t System.out.print(\"*\");\n\n\t\t System.out.print(\" \");\n\n\t\t }\n \n\t\t System.out.println(\" layer no :\"+i); \n\n\t\t }\n\n\t}", "void graph4() {\n\t\tconnect(\"8\", \"9\");\n\t\tconnect(\"3\", \"1\");\n\t\tconnect(\"3\", \"2\");\n\t\tconnect(\"3\", \"9\");\n\t\tconnect(\"4\", \"3\");\n\t\t//connect(\"4\", \"5\");\n\t\t//connect(\"4\", \"7\");\n\t\t//connect(\"5\", \"7\");\t\t\n\t}", "private int parent(int pos)\n {\t\n return (int)Math.ceil((double)Math.max(0, pos-2)/2);\n }", "public static void box(){\n System.out.println(\" ********************* ********************* ********************* \");\n System.out.println(\" *** *** *** *** *** *** \");\n System.out.println(\" *** 1 *** *** 2 *** *** 3 *** \");\n System.out.println(\" *** *** *** *** *** *** \");\n System.out.println(\" ********************* ********************* ********************* \"); \n }", "private static Object[] newPath(int length, Object[] leaf) {\n Object[] node = leaf;\n for (int i = 0; i < length; i += 5) {\n node = new Object[] { node };\n }\n return node;\n }", "private static int parentIndex(int index) {\n\t\treturn (index - 1) / 2;\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t\tint i, x=4,w=9,q;\r\n\t\tfor(i=-1;i<20;i+=3) {\r\n\t\t\tx++;\r\n\t\t\tfor(q=4;q<11;q++) {\r\n\t\t\t\tdo {\r\n\t\t\t\t\ti=+3;\r\n\t\t\t\t\tw=sizeof(i);\r\n\t\t\t\t\ti=x+w;\r\n\t\t\t\t\tx=w+i;\r\n\t\t\t\t\t\t\r\n\t\t\t\t} while (x<15);\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\"x:\"+x+\"i:\"+i);\r\n\r\n\t}", "private int parent(int i)\n {\n return (i-1)/d;\n }", "public static void main(String[] args) {\n\t\tint num=4;\r\n\t\tfor(int i=0;i<=num;i++) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tfor(int j=0;j<=num;j++) {\r\n\t\t\t\t\t\tif(j<=i && i+j>=num) \r\n\t\t\t\t\t\r\n\t\t\t\t\t\tSystem.out.print(\"*\");\r\n\t\t\t\t\t\telse \r\n\t\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tSystem.out.println();\r\n\t\t\t\t\t\t}\r\n\t\t\t}", "private int getParentIndex(int index){\n return (index-1) >> 1;\n }", "private int rightChild(int index) {\n return index * 2 + 1;\n }", "public static void main(String[] args) {\n StringBuilder numbers = new StringBuilder();\n for (int i = 1; i < 5; i++) {\n numbers.append(i);\n }\n System.out.println(numbers.toString());\n }", "public static void main(String[] args) {\n\t\t\r\n\t\tSystem.out.println(traverse(0,0,5,5));\r\n\t}", "private static int leftChildIndex(int index) {\n\t\treturn (index * 2) + 1;\n\t}", "public int getNextUnSafeSequence(){ return value++;}", "public static void m2() {\r\n\tfor(int i =1;i<=5;i++) {\r\n\t\tchar ch ='A';\r\n\t\tfor(int j =1;j<=5;j++) {\r\n\t\t\tSystem.out.print(ch);\r\n\t\t\tch++;\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t}\r\n\t}", "public static void main(String[] args) {\n\t\tint n=5;\n\t\tfor(int i=1;i<=n;i++)\n\t\t{\n\t\t\tfor(int j=n;j>=i;j--)\n\t\t\t{\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tfor(int k=1;k<2*i;k++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"*\");\n\t\t\t}\n\t\t\t/*for(int l=2;l<=i;l++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"*\");\n\t\t\t}*/\n\t\t\tSystem.out.println();\n\t\t}\n\t\tfor(int i=1;i<=5;i++)\n\t\t{\n\t\t\tfor(int j=3;j<=30;j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"*\");\n\t\t\t}\n\t\t\tfor(int k=1;k<=i;k++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"*\");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public static void fourthProgram() {\n\t\tfor (int i = 1; i <= 4; i++) {\n\t\t\tfor (int j = 4; j > i; j--) {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tfor (int k = 1; k <= i; k++) {\n\t\t\t\tSystem.out.print(\"*\");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public static void slashes() {\n\t\tSystem.out.println(\"//////////////////////\");\r\n\r\n\t}", "protected static int parent(int i){\n return (i-1)/2;\n }", "void explode(int x, int y) {\n //Implemented \n }", "private int parent(int index) {\n return (index - 1) / 2; // 2 = binary heap\n }", "public static void main(String[] args) {\n String j=\"\";\n int i=1;\n while(i<=5)\n {\t \n \t j+=\"\"+i;\n System.out.println(j);\n i++;\n }\n while(i>=1)\n { \n \t System.out.println(j.substring(0,i-1));\n \t i--;\n }\n\t}", "private int left(int index) {\r\n\t\treturn 2 * index + 1;\r\n\t}", "public static void main(String[] args) {\nint a1=0;\r\nint a2=1;\r\nint a3=a1+a2;\r\nfor(int row=1;row<=5;row++)\r\n{\r\n\tfor(int col=1;col<row;col++)\r\n\t{\r\n\t\tSystem.out.print(a3+\" \");\r\n\t\ta3=a1+a2;\t//0+1=1\t\t1+1=2 \r\n\t\ta1=a2;\t\t//0=1 1=1\t2=2\r\n\t\ta2=a3;\t\t//1=1 1=1\t1=1\r\n\t}\r\n\tSystem.out.println();\r\n}\r\n\t\r\n}", "@Test\n\tpublic void testStartingIndicesRegression(){\n\t\tassertLeftmostStartingIndices(\"5,1,7,3,2|-..xxx$1..x...xxx$3....-xx........\", 0, 6, 8, 18, 22);\n\t\tassertRightmostStartingIndices(\"7,5|.......xxx$1....xxx$2..-\", 6, 14);\n\t\t\n\t}", "public static void main(String[] args) {\n int [] test = new int[] {3, 4, 5, 6, 7, 8, 9, 10};\n pushDown(test,8,7);\n System.out.println(toString(test));\n pushDown(test,8,6);\n System.out.println(toString(test));\n pushDown(test,8,5);\n System.out.println(toString(test));\n pushDown(test,8,4);\n System.out.println(toString(test));\n pushDown(test,8,3);\n System.out.println(toString(test));\n pushDown(test,8,2);\n System.out.println(toString(test));\n pushDown(test,8,1);\n System.out.println(toString(test));\n pushDown(test,8,0);\n System.out.println(toString(test));\n }", "public static void main(String[] args) {\n\t\t\r\n\t\tint k,n=10;\r\n\t\tk=n-1;\r\n\t\tfor(int i=0;i<=n;i++)\r\n\t\t{\r\n\t\t\tfor(int j=0;j<=k;j++)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\r\n\t\t\t}\r\n\t\t\tk=k-1;\r\n\t\t\tfor(int j=0;j<=i;j++)\r\n\t\t\t\tSystem.out.print(\"*\"+\" \");\r\n\t\t\tSystem.out.println(\"\\r\");\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n int[] array = new int[6];\n array[0] = 33;\n int[] arr = { 2, 3, 5, 7 };\n \n //1 2,5 4,7\n for (int i = 0; i < arr.length; i++) {\n // for ctrl space to bring for loop\n //3,6\n System.out.println(arr[i]);\n\t}\n\n}", "public String toString(){ return \"DIV\";}", "final void jbk()\n\t{\n\t\tfor(int i=0;i<5;i++)\n\t\t\tSystem.out.println(\"value of i=n\"+i);\n\t\t}", "public void number_0() {\n\t\tfor(int row=1;row<=7;row++) { \n\t\t\tif(row==1||row==7) { \n\t\t\t\tSystem.out.print(\" \");\n\t\t\t\tfor(int col=1;col<=3;col++) { \n\t\t\t\t\tSystem.out.print(\"*\"+\" \");\n\t\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t}\n\t\t\telse if(row==7) { \n\t\t\t\tfor(int col=1;col<=3;col++) { \n\t\t\t\t\tSystem.out.print(\"*\"+\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tfor(int col=1;col<=5;col++) { \n\t\t\t\t\tif(col==1||col==5) { \n\t\t\t\t\t\tSystem.out.print(\"*\"+\" \");\n\t\t\t\t\t}\n\t\t\t\t\telse { \n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\t\n\t}", "public static void main(String[] args) {\nint i,space,rows,k=0;\n Scanner sc=new Scanner(System.in);\nSystem.out.print(\"Enter number of rows\");\nrows=sc.nextInt();\nfor(i=1;i<=rows;i++)\n{\n\tfor(space=1;space<=(rows-i);space++)\n\t{\n\t\tSystem.out.print(\" \");\n\t}\n\twhile(k !=(2*i-1))\n\t{\n\t\tSystem.out.print(\"* \");\n\t\tk++;\n\t}\n\tk=0;\n\tSystem.out.println();\n}\n\t}", "private int parentIndex(int i) {\n return i / 2;\n }", "public static void main(String[] args) {\n\t\t\n\t\tint n=5;\n\t\t\n\t\twhile ( n > 0)\n\t\t{\n\t\tSystem.out.print(\"*\");\n\t\tn--;\n\n\t\t}\n\t}", "private static int leftChild(int i) {\n\t\treturn 2*i + 1;\n\t}", "public static void main(String[] args) {\n\t\tint num = 10 + 20 -5;\n\t\t\n\t\tnum = 10 + 20/5; // 14\n\t\t\n\t\t// division goes first!\n\t\tnum = (10+20) /5 ; // 6\n\t\t\n\t\tint i = 6+3*10/6;\n\t\t// i = 6+5\n\n\t}", "public static void main(String[] args) {\n\t\tfor(int i = 0; i<=4; i++) {\r\n\t\t\tfor(int j = 5; j>i; j--) {\r\n\t\t\t\tSystem.out.print(\"*\");\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t}", "public void divide() {\n\t\t\n\t}", "private int getParentOf(int index) {\n // TODO: YOUR CODE HERE\n return index / 2;\n }", "public String toString()\n {\n return \"(\" + start + \"->\"+ (start+size-1) + \")\";\n }", "private int leftchild(int i) {\n return (2 * i) + 1;\n }", "void split(Node n,Stack<Long> nodes);", "private static int leftChild(int i) {\n\t\treturn 2 * i + 1;\n\t}", "private int h1(int p){\n\t\t return p % table.length;\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tint toatlRow=5;\n\t\t\n\t\t\n\t\tObject []obh;\n\t\t\n\t\tfor (int Row = 1; Row <=toatlRow; Row++) {\n\t\t\t\n\t\t\tfor (int st = 1; st <=toatlRow-Row+1; st++) {\n\t\t\t\t\n\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\t\n\t\t}\n\n\t}", "public static void main(String[] args) {\n\t\tfor(int j=0;j<8;j++){\n\t\t\tfor(int i=0;i<8;i++){\n\t\t\t\t//上下两侧\n\t\t\t\tif(j==0||j==7){\n\t\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t}else{\n\t\t\t\t\t//中间\n\t\t\t\t\tif(i>0&&i<7){\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public static void main(String[] args) {\n\r\n\t\t\r\n\t\tint n = 7;\r\n\t\tfor (int i = n; i >= 0; i--) {\r\n\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t for(int j=0; j<n-i; j++) {\r\n\t\t\t \r\n\t\t\t System.out.print(\" \");\r\n\t\t\t \r\n\t\t\t }\r\n\t\t\t \r\n\t\t\t \r\n\r\n\t\t\tfor (int j = n; j >= n-i; j--) {\r\n\r\n\t\t\t\tSystem.out.print(\"*\");\r\n\r\n\t\t\t}\r\n\r\n\t\t\tSystem.out.println(\"\");\r\n\t\t}\r\n\r\n\t\t\r\n\t}", "public List<String> generateParenthesis(int n) {\n List<String> res = new LinkedList<>();\n backTrack(n, n, \"\", res);\n return res;\n}", "private static void test4() {\n int[] data4 = {5, 4, 3, 2, 1};\n System.out.println(\"true: \" + verifySequenceOfBST(data4));\n }", "public static void main(String[] args) {\n BigInteger count1 = hanoiIteration(5);\r\n\r\n BigInteger count2 = hanoiIteration(64);\r\n// System.out.println(count);\r\n System.out.println(count1);\r\n System.out.println(count2);\r\n\r\n System.out.println(showStep2(5, \"A\", \"B\", \"C\"));\r\n }" ]
[ "0.5586132", "0.54995716", "0.5293773", "0.52490085", "0.5239915", "0.5200128", "0.5180775", "0.5159022", "0.5156009", "0.5153617", "0.51287013", "0.51183456", "0.51127535", "0.5110195", "0.5090657", "0.5081111", "0.50708365", "0.50694424", "0.5052809", "0.50377405", "0.50377405", "0.5034659", "0.5031395", "0.5012452", "0.5001907", "0.49916956", "0.49915677", "0.4967419", "0.4950854", "0.49344268", "0.49155653", "0.4907511", "0.4886307", "0.48840824", "0.48738572", "0.48730278", "0.48592037", "0.48534963", "0.48530725", "0.48524457", "0.4841181", "0.48405212", "0.4832829", "0.48231936", "0.48222", "0.4816401", "0.48093274", "0.48077792", "0.48007697", "0.47876287", "0.47873834", "0.47830367", "0.47712573", "0.47684774", "0.4768151", "0.47579622", "0.47495186", "0.4743447", "0.47398174", "0.47396055", "0.47373363", "0.47247207", "0.47225893", "0.47129583", "0.47125793", "0.4702601", "0.470023", "0.46976417", "0.46971524", "0.46956566", "0.4689887", "0.46867824", "0.46852025", "0.46842793", "0.46834487", "0.4682949", "0.46824667", "0.4680245", "0.46751663", "0.46747604", "0.46727", "0.46646738", "0.46620405", "0.46548468", "0.46499488", "0.4647023", "0.46446368", "0.46424967", "0.46393672", "0.46356112", "0.4634983", "0.46338713", "0.4631637", "0.46235073", "0.4620786", "0.46206293", "0.46194795", "0.4619094", "0.4607855", "0.4606475", "0.46043032" ]
0.0
-1
create a hash map
public static void main(String args[]) { HashMap hm = new HashMap(); // out elements to the map //hm.put("John Doe", new Double(3434.34)); hm.put("John Doe", 3434.34); hm.put("Tom Smith", 123.22); hm.put("Jane Baker", 1378.00); hm.put("Todd Hall", 99.22); hm.put("Ralph Smith", -19.08); // get a set of the entries Set set = hm.entrySet(); // get an iterator() Iterator i = set.iterator(); //Display elements while(i.hasNext()) { Map.Entry me = (Map.Entry)i.next(); System.out.print(me.getKey() + ": "); System.out.print(me.getValue()); System.out.println(); } System.out.println("-----------------------------------------"); //deposit 1000 into John Doe's account //double balance = ((Double)hm.get("John Doe")).doubleValue(); double balance = ((Double)hm.get("John Doe")); //hm.put("John Doe", new Double(balance +1000.00)); hm.put("John Doe", balance +1000.00); System.out.println("John Doe's new balance: " + hm.get("John Doe")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public Map makeMap() {\n Map<Integer,String> testMap = new HashingMap<>();\n return testMap;\n }", "public Hashtable<String,Stock> createMap(){\n\tHashtable table = new Hashtable<String, Stock>();\n\treturn table;\n}", "private static <K, V> Map<K, V> newHashMap() {\n return new HashMap<K, V>();\n }", "private void createHashtable()\n {\n int numLanguages = languages.length;\n mapping = new Hashtable(numLanguages, 1.0f);\n for (int i = 0; i < numLanguages; i++)\n mapping.put(languages[i], values[i]);\n }", "public static <K, V> HashMap<K, V> initHashMap() {\n\t\treturn new HashMap<K, V>();\n\t}", "public HashMap(){\n\t\tthis.numOfBins=10;\n\t\tthis.size=0;\n\t\tinitializeMap();\n\t}", "public static void createHashMap() {\n\t\t// create hash map\n\t\tHashMap<Integer, String> students = new HashMap<Integer, String>();\n\t\tstudents.put(1, \"John\");\n\t\tstudents.put(2, \"Ben\");\n\t\tstudents.put(3, \"Eileen\");\n\t\tstudents.put(4, \"Kelvin\");\n\t\tstudents.put(5, \"Addie\");\n\t\t// print the hash map\n\t\tfor (Map.Entry<Integer, String> e : students.entrySet()) {\n\t\t\tSystem.out.println(e.getKey() + \" \" + e.getValue());\n\t\t}\n\t}", "public Map<T, V> populateMap() {\n Map<T, V> map = new HashMap<>();\n for (int i = 0; i < entryNumber; i++) {\n cacheKeys[i] = (T) Integer.toString(random.nextInt(1000000000));\n String key = cacheKeys[i].toString();\n map.put((T) key, (V) Integer.toString(random.nextInt(1000000000)));\n }\n return map;\n }", "void setHashMap();", "public MyHashMap() {\n this.key_space = 2069;\n this.hash_table = new ArrayList<Bucket>();\n for (int i = 0; i < this.key_space; ++i) {\n this.hash_table.add(new Bucket());\n }\n }", "public static <K, V> MapBuilder<HashMap<K, V>, K, V> hashMap()\n {\n return new MapBuilder<HashMap<K, V>, K, V>(new HashMap<K, V>());\n }", "public void createHashMap() {\n myList = new HashMap<>();\n scrabbleList = new HashMap<>();\n }", "MAP createMAP();", "public HashEntityMap()\n\t\t{\n\t\t\tmapNameToValue = new HashMap<String, Integer>();\n\t\t}", "public MyHashMap() {\n map = new HashMap();\n }", "public Dictionary createDictionary(){\n Dictionary dict = new Dictionary(9973);\n return dict;\n }", "protected Map createPropertiesMap() {\n return new HashMap();\n }", "public abstract void createMap();", "public MyHashMap() {\n keys = new MapNode[n];\n vals = new MapNode[n];\n for (int i=0; i < n ; ++i) {\n keys[i] = new MapNode();\n vals[i] = new MapNode();\n }\n }", "public MyHashMap() {\n map = new ArrayList<>();\n for (int i = 0;i<255;i++)\n map.add(new Entry());\n }", "protected Map<E, ListenerEntry<? extends E>> createMap() {\n\t\treturn new WeakHashMap<>();\n\t}", "public Q706DesignHashMap() {\n keys = new ArrayList<>();\n values = new ArrayList<>();\n\n }", "private void generateMaps() {\r\n\t\tthis.tablesLocksMap = new LinkedHashMap<>();\r\n\t\tthis.blocksLocksMap = new LinkedHashMap<>();\r\n\t\tthis.rowsLocksMap = new LinkedHashMap<>();\r\n\t\tthis.waitMap = new LinkedHashMap<>();\r\n\t}", "private IMapData<Integer, String> getHashMapData2() {\n List<IKeyValueNode<Integer, String>> creationData = ArrayLists.make(\n KeyValueNode.make(1, \"a\"),\n KeyValueNode.make(1, \"a\"),\n KeyValueNode.make(2, \"b\"),\n KeyValueNode.make(2, \"c\"),\n KeyValueNode.make(2, \"b\"),\n KeyValueNode.make(3, \"a\"),\n KeyValueNode.make(3, \"b\"),\n KeyValueNode.make(3, \"c\"));\n\n List<IKeyValueNode<Integer, String>> data = ArrayLists.make(\n KeyValueNode.make(1, \"a\"),\n KeyValueNode.make(2, \"b\"),\n KeyValueNode.make(3, \"c\"));\n\n List<Integer> keys = this.createKeys(data);\n List<String> values = this.createValues(data);\n\n return new MapData<>(\n creationData,\n data,\n keys,\n values);\n }", "public HashMap<String, Integer> makeEmpty() {\r\n\t\tHashMap<String, Integer> newMap = new HashMap<>();\r\n\t\tnewMap.put(new Gloom(\"Gloom\", null, 30, 25, 20, 10).getName(), 0);\r\n\t\tnewMap.put(new Golbat(\"Golbat\", null, 28, 25, 20, 10).getName(), 0);\r\n\t\tnewMap.put(new Growlithe(\"Growlithe\", null, 26, 25, 20, 10).getName(), 0);\r\n\t\tnewMap.put(new Jigglypuff(\"Jigglypuff\", null, 24, 25, 20, 10).getName(), 0);\r\n\t\tnewMap.put(new Persian(\"Persian\", null, 22, 25, 20, 10).getName(), 0);\r\n\t\tnewMap.put(new Pidgeotto(\"Pidgeotto\", null, 20, 25, 20, 10).getName(), 0);\r\n\t\tnewMap.put(new Pikachu(\"Pikachu\", null, 18, 25, 20, 10).getName(), 0);\r\n\t\tnewMap.put(new Seaking(\"Seaking\", null, 16, 25, 20, 10).getName(), 0);\r\n\t\tnewMap.put(new Staryu(\"Staryu\", null, 14, 25, 20, 10).getName(), 0);\r\n\t\tnewMap.put(new Tentacool(\"Tentacool\", null, 12, 25, 20, 10).getName(), 0);\r\n\t\tnewMap.put(new Zubat(\"Zubat\", null, 10, 25, 20, 10).getName(), 0);\r\n\t\treturn newMap;\r\n\t}", "public MyHashMap() {\n\n }", "@Test\n public void hashMapInitialised()\n {\n Map<Integer, String> strings = MapUtil.<Integer, String>hashMap().keyValue(1, \"Me\").keyValue(2, \"You\");\n // Is this really better than calling strings.put(..)?\n\n assertEquals(\"You\", strings.get(2));\n }", "public static void main(String[] args) {\n\t\tHashMap<String, Integer> map1 = new HashMap<String, Integer> ();\n\t\t\n //2. Creating HashMap with some initial capacity\n\t\tHashMap<String,Integer> map2 = new HashMap<String,Integer> (30);\n\t\t\n\t\t//3. Creating HashMap with some initial capacity and some load factor\n\t\tHashMap<String, Integer> map3 = new HashMap<String, Integer> (30, .60f);\n\t\t\n\t\t//4. Creating HashMap by copying another HashMap\n\t\tHashMap<String, Integer> map4= new HashMap<String, Integer> (map1);\n\t\t\n\t}", "private IMapData<Integer, String> getHashMapData1() {\n List<IKeyValueNode<Integer, String>> creationData = new ArrayList<>();\n List<IKeyValueNode<Integer, String>> data = new ArrayList<>();\n List<Integer> keys = this.createKeys(data);\n List<String> values = this.createValues(data);\n\n return new MapData<>(\n creationData,\n data,\n keys,\n values);\n }", "public OmaHashMap() {\n this.values = new OmaLista[32];\n this.numberOfValues = 0;\n }", "public void buildMap(){\n this.map = new HashMap<String, String>();\n map.put(\"user\", \"user\");\n map.put(\"pw\", \"pass\");\n map.put(\"quit\", \"quit\");\n map.put(\"features\", \"feat\");\n map.put(\"cd\", \"cwd\");\n map.put(\"dir\", \"list\");\n map.put(\"get\", \"retr\");\n }", "public MyHashMap() {\n hashMap = new ArrayList<>();\n }", "public DesignHashmap() {\n\t\ttable = new boolean[buckets][];\n\t}", "@SuppressWarnings(\"unchecked\")\r\n\tpublic HashMap()\r\n\t{\r\n\t\ttable = new MapEntry[7];\r\n\t\tcount = 0;\r\n\t\tmaxCount = table.length - table.length/3;\r\n\t\tDUMMY = new MapEntry<>(null, null);\r\n\t}", "public Map<Integer, Integer> generateMap(int size){\n Map<Integer, Integer> data = new HashMap<>();\n for (int i = 0; i < size; i++){\n data.put(i, i);\n }\n return data;\n }", "void Create(){\n map = new TreeMap<>();\r\n\r\n // Now we split the words up using punction and spaces\r\n String wordArray[] = wordSource.split(\"[{ \\n\\r.,]}}?\");\r\n\r\n // Now we loop through the array\r\n for (String wordArray1 : wordArray) {\r\n String key = wordArray1.toLowerCase();\r\n // If this word is not present in the map then add it\r\n // and set the word count to 1\r\n if (key.length() > 0){\r\n if (!map.containsKey(map)){\r\n map.put(key, 1);\r\n }\r\n else {\r\n int wordCount = map.get(key);\r\n wordCount++;\r\n map.put(key, wordCount);\r\n }\r\n }\r\n } // end of for loop\r\n \r\n // Get all entries into a set\r\n // I think that before this we just have key-value pairs\r\n entrySet = map.entrySet();\r\n \r\n }", "private void createHash() throws IOException\n\t{\n\t\tmap = new HashMap<String, ImageIcon>();\n\t\t\n\t\tfor(int i = 0; i < pokemonNames.length; i++)\n\t\t{\n\t\t\tmap.put(pokemonNames[i], new ImageIcon(getClass().getResource(fileLocations[i])));\n\t\t}\n\t}", "@SuppressWarnings(\"unchecked\")\r\n\tpublic HashMap() {\r\n\t\tdata = (Node<MapEntry<K, V>>[])new Node[INITIAL_SIZE];\r\n\t\tfor(int i = 0; i < data.length; i++)\t\t\t\t\t\t\t//For every element in data...\r\n\t\t\tdata[i] = new Node<MapEntry<K,V>>(new MapEntry<K,V>(null));\t//Add a head node to it.\r\n\t\t\r\n\t\t//TODO: May have to just default as null and in the put method, if the slot is null, then put a head node in it. The post-ceding code after that is logically correct!\r\n\t\r\n\t\tsize = 0;\t//Redundant but helpful to see that the size is 0\r\n\t}", "private static <N extends Node> SortedMap<ImmutableContextSet, SortedSet<N>> createMap() {\n return new ConcurrentSkipListMap<>(ContextSetComparator.reverse());\n }", "@Override\n public HashMap<String, String> get_hashMap() {\n HashMap<String, String> temp = super.get_hashMap();\n\n temp.put(TAG.TYPE, String.valueOf(this.type));\n temp.put(TAG.SIZE, String.valueOf(this.size));\n temp.put(TAG.TAG, this.tag);\n temp.put(TAG.SPEED_BURROW, String.valueOf(this.burrow_speed));\n temp.put(TAG.SPEED_CLIMBING, String.valueOf(this.climbing_speed));\n temp.put(TAG.SPEED_FLYING, String.valueOf(this.flying_speed));\n temp.put(TAG.SPEED_SWIMMING, String.valueOf(this.swimming_speed));\n\n temp.put(TAG.CHALLENGE_RATING, String.valueOf(this.challenge_rating));\n temp.put(TAG.SENSES_VECTOR, String.valueOf(this.senses));\n temp.put(TAG.EXPERIENCE_POINTS, String.valueOf(this.experience_points));\n\n return temp;\n }", "public TimeMap() {\n hashMap = new HashMap<String, List<Data>>();\n }", "public MyHashMap() {\n\n }", "public static void hashMapEx() {\n\t\tString str = \"habiletechE\";\n\t\tstr = str.toLowerCase();\n\t\tchar[] ch = str.toCharArray();\n\t\tint size = ch.length;\n\n\t\tHashMap<Character, Integer> hmap = new HashMap<Character, Integer>();\n\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\tif (!hmap.containsKey(ch[i]))\n\t\t\t\thmap.put(ch[i], 1);\n\t\t\telse {\n\t\t\t\tint val = hmap.get(ch[i]) + 1;\n\t\t\t\thmap.put(ch[i], val);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"Duplicate Charaacters :\");\n\t\tfor (Map.Entry<Character, Integer> hm : hmap.entrySet()) {\n\t\t\tif (hm.getValue() > 1)\n\t\t\t\tSystem.out.println(hm.getKey() + \" \" + hm.getValue());\n\t\t}\n\t}", "Hashi newHashi(int dim);", "public HashMap<String, Integer> getHashMap(){\n\t\tHashMap <String, Integer> hm1 = new HashMap <String, Integer>();\n\t\t//get each line of the book and store it as an arrayList\n\t\twords = wordData.getLines();\n\t \n\t\tfor(int i =0; i<words.size(); i++){\n\t\t\t \n\t\t\tString[] aLine = words.get(i).split(\" \");\n\t\t\t\n\t\t\tfor(int j = 0; j<aLine.length; j++){\n\t\t\t\t\n\t\t\t\t// convert all upper case to lower case & remove all non-alphabetic symbols;\n\t\t\t\t\t\n\t\t\t\tsparsedWords.add(aLine[j].toLowerCase().replaceAll(\"[^\\\\w]\", \"\"));\n\t\t\t}\n\t\t}\n\t\t//put in key and value in hashmap\n\t\tfor(int key = 0; key < sparsedWords.size(); key++){\n\t\t\t\n\t\t\tif (hm1.containsKey(sparsedWords.get(key))){\n\t\t\t\tint count = hm1.get(sparsedWords.get(key));\n\t\t\t\thm1.put(sparsedWords.get(key), count + 1);\n\t\t\t}else{\n\t\t\t\thm1.put(sparsedWords.get(key), 1);\n\t\t\t}\n\t\t}\n\t\treturn hm1;\n\t\t \t\n\t\t}", "@Override\n\tpublic HashMap<Position, Node> generate(){\n\t\tNode tempNode;\n\t\tPosition tempPosition;\n\t\tif(map != null && map.isEmpty()){\n\t\t\tfor(int y=0; y<numNodesY; y++){\n\t\t\t\tfor(int x=0; x<numNodesX; x++){\n\t\t\t\t\ttempPosition = new Position(x*nodeDistance, \n\t\t\t\t\t\t\ty*nodeDistance);\n\t\t\t\t\ttempNode = new Node(field, tempPosition,\n\t\t\t\t\t\t\tnodeSignalStrength,\n\t\t\t\t\t\t\tagentLife,\n\t\t\t\t\t\t\trequestLife);\n\t\t\t\t\tmap.put(tempPosition, tempNode);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn new HashMap<Position, Node>(map);\n\t}", "protected void rehash() {\n // TODO: fill this in.\n //double number of maps, k, each time it is called\n\t\t//use MyBetterMap.makeMaps and MyLinearMap.getEntries\n\t\t//collect entries in the table, resize the table, then put the entries back in\n\t\tList<MyLinearMap<K, V>> newmaps = MyBetterMap.makeMaps(maps.size()*2);\n\t\tfor(MyLinearMap<K, V> curr: this.maps) {\n\t\t\tfor(Entry ent: MyLinearMap.getEntries()) {\n\t\t\t\tnewmaps.put(ent.key, ent.value);\n\t\t\t}\n\t\t}\n\t\tthis.maps = newmaps;\n\t\treturn;\n\t}", "public CountingMap() {\n this( new HashMap<K, Integer>() );\n }", "public MyHashMap() {\n store = new int[1000001]; // Max number of key-value pairs allowed in the HashMap, cant exceed it.\n Arrays.fill(store, -1); // we have to anyways return -1 if key doesn't exists.\n }", "private HashMap name2() {\n\n\t HashMap hm = new HashMap();\n\t hm.put(\"firstName\", \"SIMA\");\n\t hm.put(\"middleName\", \"MISHRA\");\n\t hm.put(\"lastName\", \"ARADHANA\");\n\t hm.put(\"firstYearInOffice\", \"1981\");\n\t hm.put(\"lastYearInOffice\", \"1989\");\n\t return hm;\n\n\t }", "@Test\n\tpublic void testIdentityHashMap() {\n\t\tInteger i1 = new Integer(10);\n\t\tInteger i2 = new Integer(10);\n\n\t\tHashMap m = new HashMap();\n\t\tm.put(i1, \"evyaan\");\n\t\tm.put(i2, \"varun\");\n\n\t\tassertEquals(\"{10=varun}\", m.toString());\n\n\t\tIdentityHashMap im = new IdentityHashMap();\n\t\tim.put(i1, \"evyaan\");\n\t\tim.put(i2, \"varun\");\n\n\t\t// System.out.println(im);\n\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t Map<String,Integer> hashmap= new HashMap<String,Integer>();\r\n\t hashmap.put(\"Hiamsnhu\",12);\r\n\t hashmap.put(\"Khaneja\", 15);\r\n\t int size=hashmap.size();\r\n\t int hash=hashmap.hashCode();\r\n\t System.out.println(size);\r\n\r\n\t}", "private void setUpHashMap(int number)\n {\n switch (number)\n {\n case 1:\n {\n this.hourly.put(\"Today\",new ArrayList<HourlyForecast>());\n break;\n }\n case 2:\n {\n this.hourly.put(\"Today\",new ArrayList<HourlyForecast>());\n this.hourly.put(\"Tomorrow\", new ArrayList<HourlyForecast>());\n break;\n }\n case 3:\n {\n this.hourly.put(\"Today\", new ArrayList<HourlyForecast>());\n this.hourly.put(\"Tomorrow\", new ArrayList<HourlyForecast>());\n this.hourly.put(\"Day After Tomorrow\", new ArrayList<HourlyForecast>());\n break;\n }default:\n break;\n }\n }", "public void initialilzeMapEntry(String file){\n\t\tmap.put(file, new LinkedList<HashMap<Integer, Integer>>());\n\t}", "@Override\n public void create() {\n theMap = new ObjectSet<>(2048, 0.5f);\n generate();\n }", "public MyHashMap() {\r\n data = new Node[DEFAULT_CAPACITY];\r\n }", "private static void initializeMap() {\n\t\tmap = new HashMap<String, MimeTransferEncoding>();\n\t\tfor (MimeTransferEncoding mte : MimeTransferEncoding.values()) {\n\t\t\tmap.put(mte.string, mte);\n\t\t}\n\t}", "public HashMap() {\n this.capacity = 100;\n this.hashMap = new LinkedList[capacity];\n }", "private void initMaps()\r\n\t{\r\n\t\tenergiesForCurrentKOppParity = new LinkedHashMap<Integer, Double>();\r\n\t\tinputBranchWithJ = new LinkedHashMap<Integer, Double>();\r\n\t\tassociatedR = new LinkedHashMap<Integer, Double>();\r\n\t\tassociatedP = new LinkedHashMap<Integer, Double>();\r\n\t\tassociatedQ = new LinkedHashMap<Integer, Double>();\r\n\t\ttriangularP = new LinkedHashMap<Integer, Double>();\r\n\t\ttriangularQ = new LinkedHashMap<Integer, Double>();\r\n\t\ttriangularR = new LinkedHashMap<Integer, Double>();\r\n\t\tupperEnergyValuesWithJ = new LinkedHashMap<Integer, Double>();\r\n\t}", "public HashMap(int bins){\n\t\tthis.numOfBins=bins;\n\t\tthis.size=0;\n\t\tinitializeMap();\n\t}", "private Map<String, Object> createDefaultMap() {\n Map<String, Object> result = new LinkedHashMap<>();\n result.put(\"stream_speed0\", 1);\n result.put(\"stream_start0\", 0);\n result.put(\"stream_end0\", 7);\n result.put(\"stream_speed1\", -2);\n result.put(\"stream_start1\", 15);\n result.put(\"stream_end1\", 19);\n\n result.put(\"fish_quantity\", numFishes);\n result.put(\"fish_reproduction\", 3);\n result.put(\"fish_live\", 10);\n result.put(\"fish_speed\", 2);\n result.put(\"fish_radius\", 4);\n\n result.put(\"shark_quantity\", numSharks);\n result.put(\"shark_live\", 20);\n result.put(\"shark_hungry\", 7);\n result.put(\"shark_speed\", 2);\n result.put(\"shark_radius\", 5);\n\n return result;\n }", "private static <K, V> Map<K, V> newConcurrentHashMap() {\n return new ConcurrentHashMap<K, V>();\n }", "public HashMap toHashMap() {\n HashMap ht = new HashMap();\n if(this.id!=null)\n \tht.put(\"id\",this.id);\n if(this.functionName!=null)\n \tht.put(\"functionName\",this.functionName);\n if(this.functionNameEq!=null)\n \tht.put(\"functionNameEq\",this.functionNameEq);\n if(this.description!=null)\n \tht.put(\"description\",this.description);\n if(this.descriptionEq!=null)\n \tht.put(\"descriptionEq\",this.descriptionEq);\n if(this.createDt!=null)\n \tht.put(\"createDt\",this.createDt);\n if(this.createDtFrom!=null)\n \tht.put(\"createDtFrom\",this.createDtFrom);\n if(this.createDtTo!=null)\n \tht.put(\"createDtTo\",this.createDtTo);\n if(this.isProceed!=null)\n \tht.put(\"isProceed\",this.isProceed);\n if(this.processUserName!=null)\n \tht.put(\"processUserName\",this.processUserName);\n if(this.processUserNameEq!=null)\n \tht.put(\"processUserNameEq\",this.processUserNameEq);\n if(this.processUserId!=null)\n \tht.put(\"processUserId\",this.processUserId);\n\t\treturn ht;\n\t}", "Map<String, String> mo14888a();", "public static void main(String[] args) {\n Map<String, String> map = new HashMap<String, String>();\r\n map.put(\"a\", \"A\");\r\n map.put(\"b\", \"B\");\r\n map.put(\"c\", \"C\");\r\n \r\n \r\n int h = (new TestMap()).hashCode();\r\n \r\n String a = map.get(\"a\");\r\n \r\n \r\n \r\n \r\n for (String o : map.keySet()){\r\n \tSystem.out.println(o);\r\n \tSystem.out.println(map.get(o));\r\n \t\r\n }\r\n \r\n Map<String, String> map2 = new HashMap<String, String>();\r\n map2.putAll(map);\r\n \r\n for (Map.Entry<String, String> o : map2.entrySet()){\r\n \tSystem.out.println(o.getKey());\r\n \tSystem.out.println(o.getValue());\r\n }\r\n \r\n System.out.println(map2.containsValue(\"A\")); \r\n System.out.println(map2.equals(map)); \r\n\r\n\t}", "public Map initMap(){\n\t\tif (map == null){\n\t\t\tmap = createMap();\n\t\t}\n\t\treturn map;\n\t}", "private void populateMaps() {\n\t\t//populate the conversion map.\n\t\tconvertMap.put(SPACE,(byte)0);\n\t\tconvertMap.put(VERTICAL,(byte)1);\n\t\tconvertMap.put(HORIZONTAL,(byte)2);\n\n\t\t//build the hashed numbers based on the training input. 1-9\n\t\tString trainingBulk[] = new String[]{train1,train2,train3,\"\"};\n\t\tbyte[][] trainer = Transform(trainingBulk);\n\t\tfor(int i=0; i < 9 ;++i) {\n\t\t\tint val = hashDigit(trainer, i);\n\t\t\tnumbers.put(val,i+1);\n\t\t}\n\t\t//train Zero\n\t\ttrainingBulk = new String[]{trainz1,trainz2,trainz3,\"\"};\n\t\tint zeroVal = hashDigit(Transform(trainingBulk), 0);\n\t\tnumbers.put(zeroVal,0);\n\n\n\t}", "public static void setHash_profiles() {\n\t\t\r\n\t\tProfilePojo pf1 = new ProfilePojo(1, \"Sonal\");\r\n\t\tProfilePojo pf2 = new ProfilePojo(2, \"Komal\");\r\n\t\tProfilePojo pf3 = new ProfilePojo(3, \"Sanidh\");\r\n\t\tProfilePojo pf4 = new ProfilePojo(4, \"Vanshika\");\r\n\t\thash_profiles.put((long) 1, pf1);\r\n\t\thash_profiles.put((long) 2, pf2);\r\n\t\thash_profiles.put((long) 3, pf3);\r\n\t\thash_profiles.put((long) 4, pf4);\r\n\t\t\r\n\t}", "private static Map<DiscreteState,Double> createMap(int vectSize, int mapSize) {\n\t\tMap<DiscreteState,Double> map = new HashMap<DiscreteState,Double>();\n\t\tint n = (int) Math.min(mapSize, Math.pow(2, vectSize));\n\t\twhile (map.size() < n) {\n\t\t\tdouble[] addition = new double[vectSize];\n\t\t\tfor (int i = 0; i < vectSize; i++) addition[i] = Math.round(Math.random());\n\t\t\tmap.put(new DiscreteState(addition), Math.random());\n\t\t}\n\t\treturn map;\n\t}", "public static final HashMap dict (Object ... pairs) {\r\n HashMap map = new HashMap();\r\n for (int i=0; i<pairs.length; i=i+2) {\r\n map.put(pairs[i], pairs[i+1]);\r\n }\r\n return map;\r\n }", "public static <K, V> Map<K, V> createMap(K key1, V value1, K key2, V value2, K key3, V value3) {\n\t\tMap<K, V> map = new HashMap<K, V>();\n\t\tmap.put(key1, value1);\n\t\tmap.put(key2, value2);\n\t\tmap.put(key3, value3);\n\t\treturn map;\n\t}", "public MyHashMap() {\r\n\t\tloadFactor = DEFAULT_LOAD_FACTOR;\r\n\t\tcapacity = DEFAULT_CAPACITY;\r\n\t\thashMapArray = new LinkedList[capacity];\r\n\t}", "private static Map<String, PropertyInfo> createPropertyMap()\r\n {\r\n Map<String, PropertyInfo> map = New.map();\r\n PropertyInfo samplingTime = new PropertyInfo(\"http://www.opengis.net/def/property/OGC/0/SamplingTime\", Date.class,\r\n TimeKey.DEFAULT);\r\n PropertyInfo lat = new PropertyInfo(\"http://sensorml.com/ont/swe/property/Latitude\", Float.class, LatitudeKey.DEFAULT);\r\n PropertyInfo lon = new PropertyInfo(\"http://sensorml.com/ont/swe/property/Longitude\", Float.class, LongitudeKey.DEFAULT);\r\n PropertyInfo alt = new PropertyInfo(\"http://sensorml.com/ont/swe/property/Altitude\", Float.class, AltitudeKey.DEFAULT);\r\n map.put(samplingTime.getProperty(), samplingTime);\r\n map.put(lat.getProperty(), lat);\r\n map.put(lon.getProperty(), lon);\r\n map.put(alt.getProperty(), alt);\r\n map.put(\"lat\", lat);\r\n map.put(\"lon\", lon);\r\n map.put(\"alt\", alt);\r\n return Collections.unmodifiableMap(map);\r\n }", "public void instantiateTable(){\n hashTable = new LLNodeHash[16];\n }", "private static Map<String, String> m36195a(Rect rect) {\n HashMap hashMap = new HashMap();\n hashMap.put(\"x\", String.valueOf(rect.left));\n hashMap.put(\"y\", String.valueOf(rect.top));\n hashMap.put(\"w\", String.valueOf(rect.right - rect.left));\n hashMap.put(\"h\", String.valueOf(rect.bottom - rect.top));\n return hashMap;\n }", "@SuppressWarnings(\"unchecked\")\r\n\tpublic HashTableMap() {\r\n\t\tK = new LinkedList[10];\r\n\t\tV = new LinkedList[10];\r\n\t}", "Graph<Integer, DefaultEdge> buildMap();", "public GameMapHashMap() {\n HashMap<String, HashMap<String, String>> temporaryMap = new HashMap<>();\n instantiateIndividualRooms();\n\n temporaryMap.put(\"Atrium\", atrium);\n temporaryMap.put(\"Breakfast Nook\", breakfastNook);\n temporaryMap.put(\"Menagerie\", menagerie);\n temporaryMap.put(\"Conservatory\", conservatory);\n temporaryMap.put(\"Panic Room\", panicRoom);\n\n temporaryMap.put(\"Fire Swamps\", fireSwamps);\n temporaryMap.put(\"Hall\", hall);\n temporaryMap.put(\"Dining Room\", diningRoom);\n temporaryMap.put(\"Arcade\", arcade);\n temporaryMap.put(\"Observatory\", observatory);\n\n temporaryMap.put(\"Courtyard\", courtyard);\n temporaryMap.put(\"Library\", library);\n temporaryMap.put(\"Garden\", garden);\n temporaryMap.put(\"Laboratory\", laboratory);\n temporaryMap.put(\"Kitchen\", kitchen);\n\n rooms = Collections.unmodifiableMap(temporaryMap);\n }", "public static void main(String[] args) \r\n {\n TreeMap<Employee, Integer> hashMap = new TreeMap<Employee, Integer>(); \r\n \r\n // Mapping string values to int keys \r\n hashMap.put(new Employee(10,\"uday\"), 10); \r\n hashMap.put(new Employee(11,\"uday\"), 11); \r\n hashMap.put(new Employee(12,\"uday\"), 12); \r\n hashMap.put(new Employee(13,\"uday\"), 13); \r\n \r\n for (Entry<Employee, Integer> e : hashMap.entrySet()) \r\n System.out.println(e.getKey().toString() + \" \" + e.getValue()); \r\n \r\n HashMap<String, Integer> map = new HashMap<>(); \r\n \r\n }", "public static HashMap makeHandRankMap() {\n HashMap cardMap = new HashMap();\n cardMap.put(0, \"High Card\");\n cardMap.put(1, \"One Pair\");\n cardMap.put(2, \"Two Pair\");\n cardMap.put(3, \"Three of a Kind\");\n cardMap.put(4, \"Straight\");\n cardMap.put(5, \"Flush\");\n cardMap.put(6, \"Full House\");\n cardMap.put(7, \"Four of a Kind\");\n cardMap.put(8, \"Straight Flush\");\n cardMap.put(9, \"Royal Flush\");\n\n return cardMap;\n\n\n }", "private static void createTypeMap() {\n\n }", "private HashMap name4() {\n\n\t HashMap hm = new HashMap();\n\t hm.put(\"firstName\", \"HARI\");\n\t hm.put(\"middleName\", \"SHYAMA\");\n\t hm.put(\"lastName\", \"SUNITA\");\n\t hm.put(\"firstYearInOffice\", \"1969\");\n\t hm.put(\"lastYearInOffice\", \"1974\");\n\t return hm;\n\n\t }", "MapBuilder<K,V> hashSize(long size);", "@Override\n\t\tpublic int hashCode() {\n\t\t\treturn countMap.hashCode();\n\t\t}", "private TreeMap<Character, Character> generateMap() {\r\n this.charMap = new TreeMap<Character, Character>();\r\n // generates an array of characters representing the alphabet\r\n char[] alphabet = \"abcdefghijklmnopqrstuvwxyz\".toCharArray();\r\n\r\n for (int i=0; i<26; i++) {\r\n this.charMap.put(alphabet[i], alphabet[(i+key) % 26]);\r\n }\r\n\r\n return this.charMap;\r\n }", "public MyHashMap(int M) {\n\t\tthis.M = M;\n\t\tst = new MyLinkedList[M];\n\t\tfor (int i = 0; i < M; i++)\n\t\t\tst[i] = new MyLinkedList<Key, Value>();\n\t}", "public ScopedMap() {\n\t\tmap = new ArrayList<HashMap<K, V>>();\n\n\t}", "public MyHashMap() {\n\t\tthis(INIT_CAPACITY);\n\t}", "public static HashMap<Long, User> userMapInit() {\n HashMap<Long, User> userMap = new HashMap<Long, User>();\n\n\n User user = UserFactory.getNewUser(\"firstName\", \"secondName\");\n user.addPhone(PhoneService.getPhoneFactory().getNewPhone(\"firstN1\", \"secondN1\", \"88005553535\"));\n user.addPhone(PhoneService.getPhoneFactory().getNewPhone(\"first2\", \"second2\", \"890006662525\"));\n user.addPhone(PhoneService.getPhoneFactory().getNewPhone(\"fir3\", \"sec3\", \"72563698562\"));\n userMap.put(user.getId(), user);\n\n user = UserFactory.getNewUser(\"firstN1\", \"secondN1\");\n user.addPhone(PhoneService.getPhoneFactory().getNewPhone(\"sfg\", \"gdsfg\", \"88005693599\"));\n user.addPhone(PhoneService.getPhoneFactory().getNewPhone(\"asdfdsf\", \"secovbnd2\", \"890006662577\"));\n user.addPhone(PhoneService.getPhoneFactory().getNewPhone(\"bbbbb\", \"nbvnbn\", \"72563698588\"));\n userMap.put(user.getId(), user);\n\n user = UserFactory.getNewUser(\"first2\", \"second2\");\n user.addPhone(PhoneService.getPhoneFactory().getNewPhone(\"sfg\", \"gdsfg\", \"88005693599\"));\n user.addPhone(PhoneService.getPhoneFactory().getNewPhone(\"asdfdsf\", \"secovbnd2\", \"890006662577\"));\n user.addPhone(PhoneService.getPhoneFactory().getNewPhone(\"bb\", \"nb\", \"72563698588\"));\n userMap.put(user.getId(), user);\n\n user = UserFactory.getNewUser(\"fir3\", \"sec3\");\n user.addPhone(PhoneService.getPhoneFactory().getNewPhone(\"asdfdsf\", \"secovbnd2\", \"890006662577\"));\n user.addPhone(PhoneService.getPhoneFactory().getNewPhone(\"firstN1\", \"secondN1\", \"88005553535\"));\n user.addPhone(PhoneService.getPhoneFactory().getNewPhone(\"sfg\", \"gdsfg\", \"88005693599\"));\n userMap.put(user.getId(), user);\n\n return userMap;\n }", "public void makeHash(){\n\t\tString tmp = \"\";\n\t\t\n\t\tfor(int i=0;i<_rows;i++){\n\t\t\tfor(int j=0;j<_cols;j++){\n\t\t\t\ttmp+=String.valueOf(_puzzle[i][j])+\"#\";\n\t\t\t}\n\t\t}\n\t\t_hashCode = tmp;\n\t}", "public HashMap<String, NeonValue> getMap();", "public static <K, V> Map<K, V> createMap(K key1, V value1, K key2, V value2) {\n\t\tif (key1.equals(key2))\n\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\t\"Key1 = Key2, value1 will be overwritten! The createMap method requires unique keys.\");\n\t\tMap<K, V> map = new HashMap<K, V>();\n\t\tmap.put(key1, value1);\n\t\tmap.put(key2, value2);\n\t\treturn map;\n\t}", "private static Map<VOTableVersion,VersionDetail>\n createMap( VersionDetail[] vds ) {\n Map<VOTableVersion,VersionDetail> map =\n new LinkedHashMap<VOTableVersion,VersionDetail>();\n for ( int i = 0; i < vds.length; i++ ) {\n map.put( vds[ i ].version_, vds[ i ] );\n }\n return map;\n }", "private void constructHMap() {\n\t\tfor (int i = 0; i < hMap.length; i++) {\n\t\t\tfor (int j = 0; j < hMap[0].length; j++) {\n\t\t\t\tif (hMap[i][j] == 0) {\n\t\t\t\t\tSkiNode head = new SkiNode(map[i][j], i, j, null);\n\t\t\t\t\tbuildSkiTree(head);\n\t\t\t\t\tupdateSkiTreeLevel(head);\n\t\t\t\t\tif (goodHeads.isEmpty()) {\n\t\t\t\t\t\tgoodHeads.add(new SkiNode(head));\n\t\t\t\t\t} else if (goodHeads.getFirst().level == head.level) {\n\t\t\t\t\t\tgoodHeads.add(new SkiNode(head));\n\t\t\t\t\t} else if (goodHeads.getFirst().level < head.level) {\n\t\t\t\t\t\tgoodHeads.clear();\n\t\t\t\t\t\tgoodHeads.add(new SkiNode(head));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public HashMultiSet() {\r\n\t\tbaseMap = new HashMap<>();\r\n\t}", "public final Map<String, Integer> mo33708h(List<String> list) {\n return (Map) m968r(new C2164bs(this, list));\n }", "MapBuilder<K,V> hashFunction(ToLongFunction<? super K> hashFunction);", "private void createMaps() {\r\n\t\tint SIZE = 100;\r\n\t\tint x = 0, y = -1;\r\n\t\tfor (int i = 0; i < SIZE; i++) {\r\n\t\t\tif (i % 10 == 0) {\r\n\t\t\t\tx = 0;\r\n\t\t\t\ty = y + 1;\r\n\t\t\t}\r\n\t\t\tshipStateMap.put(new Point(x, y), 0);\r\n\t\t\tshipTypeMap.put(new Point(x, y), 0);\r\n\t\t\tx++;\r\n\t\t}\r\n\t}", "@Contract(value = \" -> new\", pure = true)\n @Nonnull\n public static <K, V> Map<K, V> createSoftMap() {\n return Maps.newSoftHashMap();\n }", "public static void main(String[] args) {\n Map<String, Set<Integer>> ms = new HashMap<>(); \n Set<Integer> s1 = new HashSet<>(Arrays.asList(1,2,3));\n Set<Integer> s2 = new HashSet<>(Arrays.asList(4,5,6));\n Set<Integer> s3 = new HashSet<>(Arrays.asList(7,8,9));\n ms.put(\"one\", s1);\n ms.put(\"two\", s2);\n ms.put(\"three\", s3);\n System.out.println(ms); \n // ch07.collections.Ch0706InterfacesVsConcrete$1\n // {one=[1, 2, 3], two=[4, 5, 6], three=[7, 8, 9]}\n\n // this is how LinkedHashMap<Integer,Tuple2<String,LinkedHashMap<Double,String>>>\n // can be initially initialized\n LinkedHashMap<Integer,Tuple2<String,LinkedHashMap<Double,String>>> toc =\n new LinkedHashMap<>();\n System.out.println(toc); // just using toc to get rid of eclipse warning about not using it\n \n \n\n\n\n }", "private void createHisMap(Customer customer)\n {\n hisMap= new HashMap<>();\n idFile.open(\"history.txt\");\n String line=idFile.getNextLine();\n String name = customer.getUsername();\n specificLine=-1;\n int i=0;\n while (line!=null)\n {\n int j=0;\n String[] fields = line.split(\",\");\n if(fields[0].equals(name))\n {\n specificLine=i;\n }\n\n String[] fields2 = fields[1].split(\"%\");\n\n\n while (j<fields2.length)\n {\n if(hisMap.get(fields[0])==null)\n {\n hisMap.put(fields[0],new ArrayList<>());\n hisMap.get(fields[0]).add(fields2[j]);\n\n }\n else\n {\n hisMap.get(fields[0]).add(fields2[j]);\n }\n j++;\n }\n\n line=idFile.getNextLine();\n i++;\n }\n if(specificLine== -1)\n specificLine=i;\n }" ]
[ "0.7719212", "0.7273167", "0.72453505", "0.71623176", "0.7036078", "0.6887203", "0.6842238", "0.68260294", "0.6757364", "0.6723265", "0.671459", "0.6705452", "0.66805506", "0.666522", "0.6585441", "0.65853536", "0.6582218", "0.65084696", "0.6498441", "0.6491153", "0.6466061", "0.6431928", "0.6391482", "0.6338939", "0.63182217", "0.6315638", "0.6313092", "0.6290505", "0.6277322", "0.6260062", "0.6246089", "0.6230119", "0.6223258", "0.621502", "0.62007695", "0.6187314", "0.61624587", "0.6160874", "0.61565244", "0.61542666", "0.6144848", "0.6130755", "0.61097395", "0.6102812", "0.6098558", "0.6083089", "0.6080784", "0.6067835", "0.60538137", "0.60529745", "0.6047044", "0.6038365", "0.60382617", "0.60319394", "0.6030755", "0.60304564", "0.60223037", "0.5991664", "0.5985338", "0.59849745", "0.59735954", "0.5969215", "0.5960316", "0.5950378", "0.59492856", "0.5945406", "0.5941059", "0.5937715", "0.59334326", "0.5933374", "0.5929535", "0.59236383", "0.59168893", "0.5916775", "0.5904221", "0.58958477", "0.589046", "0.58863455", "0.5872894", "0.58672416", "0.5862814", "0.58582944", "0.58578706", "0.58557993", "0.58557445", "0.585468", "0.5852521", "0.58484185", "0.5845671", "0.58443904", "0.58389676", "0.5832444", "0.58156735", "0.58034253", "0.5795983", "0.57882637", "0.57864535", "0.578059", "0.577261", "0.5771795", "0.5771745" ]
0.0
-1
This is just a dummy skill for the soul crystal skill condition, since the Soul Crystal item handler already does everything.
@Override public void useSkill(Creature activeChar, Creature targets) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void skillControl() {\n\t\tif(skillActive) {\r\n\t\t\tif(skillLast > 0)\r\n\t\t\t{\r\n\t\t\t\tskillLast--;\r\n\t\t\t}else if(skillLast == 0) {\r\n\t\t\t\tskillActive = false;\r\n\t\t\t\tthis.hp/=2;\r\n\t\t\t\tthis.maxHp/=2;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\n\tpublic Skills chooseSkill() {\n\t\t\n\t\treturn null;\n\t}", "void doEffect(Skill castSkill, double power, Creature performer, Item target) {\n/* 87 */ if ((!target.isMailBox() && !target.isSpringFilled() && !target.isPuppet() && \n/* 88 */ !target.isUnenchantedTurret() && !target.isEnchantedTurret()) || (target\n/* 89 */ .hasDarkMessenger() && !target.isEnchantedTurret())) {\n/* */ \n/* 91 */ performer.getCommunicator().sendNormalServerMessage(\"The spell fizzles.\", (byte)3);\n/* */ return;\n/* */ } \n/* 94 */ if (target.isUnenchantedTurret() || target.isEnchantedTurret()) {\n/* */ \n/* 96 */ int spirit = Zones.getSpiritsForTile(performer.getTileX(), performer.getTileY(), performer.isOnSurface());\n/* 97 */ String sname = \"no spirits\";\n/* 98 */ int templateId = 934;\n/* 99 */ if (spirit == 4) {\n/* */ \n/* 101 */ templateId = 942;\n/* 102 */ sname = \"There are plenty of air spirits at this height.\";\n/* */ } \n/* 104 */ if (spirit == 2) {\n/* */ \n/* 106 */ templateId = 968;\n/* 107 */ sname = \"Some water spirits were closeby.\";\n/* */ } \n/* 109 */ if (spirit == 3) {\n/* */ \n/* 111 */ templateId = 940;\n/* 112 */ sname = \"Earth spirits are everywhere below ground.\";\n/* */ } \n/* 114 */ if (spirit == 1) {\n/* */ \n/* 116 */ sname = \"Some nearby fire spirits are drawn to your contraption.\";\n/* 117 */ templateId = 941;\n/* */ } \n/* 119 */ if (templateId == 934) {\n/* */ \n/* 121 */ performer.getCommunicator().sendAlertServerMessage(\"There are no spirits nearby. Nothing happens.\", (byte)3);\n/* */ \n/* */ return;\n/* */ } \n/* 125 */ if (target.isUnenchantedTurret()) {\n/* */ \n/* 127 */ performer.getCommunicator().sendSafeServerMessage(sname);\n/* 128 */ target.setTemplateId(templateId);\n/* 129 */ target.setAuxData(performer.getKingdomId());\n/* */ }\n/* 131 */ else if (target.isEnchantedTurret()) {\n/* */ \n/* 133 */ if (target.getTemplateId() != templateId) {\n/* */ \n/* 135 */ performer.getCommunicator().sendAlertServerMessage(\"The nearby spirits ignore your contraption. Nothing happens.\", (byte)3);\n/* */ \n/* */ return;\n/* */ } \n/* */ \n/* 140 */ performer.getCommunicator().sendSafeServerMessage(sname);\n/* */ } \n/* */ } \n/* */ \n/* 144 */ ItemSpellEffects effs = target.getSpellEffects();\n/* 145 */ if (effs == null)\n/* 146 */ effs = new ItemSpellEffects(target.getWurmId()); \n/* 147 */ SpellEffect eff = effs.getSpellEffect(this.enchantment);\n/* 148 */ if (eff == null) {\n/* */ \n/* 150 */ performer.getCommunicator().sendNormalServerMessage(\"You summon nearby spirits into the \" + target\n/* 151 */ .getName() + \".\", (byte)2);\n/* */ \n/* 153 */ eff = new SpellEffect(target.getWurmId(), this.enchantment, (float)power, 20000000);\n/* 154 */ effs.addSpellEffect(eff);\n/* 155 */ Server.getInstance().broadCastAction(performer\n/* 156 */ .getName() + \" looks pleased as \" + performer.getHeSheItString() + \" summons some spirits into the \" + target\n/* 157 */ .getName() + \".\", performer, 5);\n/* 158 */ if (!target.isEnchantedTurret()) {\n/* 159 */ target.setHasCourier(true);\n/* */ \n/* */ }\n/* */ }\n/* 163 */ else if (eff.getPower() > power) {\n/* */ \n/* 165 */ performer.getCommunicator().sendNormalServerMessage(\"You frown as you fail to summon more spirits into the \" + target\n/* 166 */ .getName() + \".\", (byte)3);\n/* */ \n/* 168 */ Server.getInstance().broadCastAction(performer.getName() + \" frowns.\", performer, 5);\n/* */ }\n/* */ else {\n/* */ \n/* 172 */ performer.getCommunicator().sendNormalServerMessage(\"You succeed in summoning more spirits into the \" + this.name + \".\", (byte)2);\n/* */ \n/* */ \n/* 175 */ eff.improvePower(performer, (float)power);\n/* 176 */ if (!target.isEnchantedTurret())\n/* 177 */ target.setHasCourier(true); \n/* 178 */ Server.getInstance().broadCastAction(performer\n/* 179 */ .getName() + \" looks pleased as \" + performer.getHeSheItString() + \" summons some spirits into the \" + target\n/* 180 */ .getName() + \".\", performer, 5);\n/* */ } \n/* */ }", "public abstract SkillData skill();", "private static int calcMagicSkill(Thing caster, Thing spell) {\r\n \t\t// TODO skill modification\r\n \t\tif (caster==null) {\r\n \t\t\treturn (int)(5*Math.pow(spellPowerMultiplier,spell.getLevel()));\r\n \t\t}\r\n \t\tint skill=caster.getStat(spell.getString(\"Order\"));\r\n \t\tint st=(int)(caster.getStat(\"IN\")\r\n \t\t\t\t*(0.85+0.15*caster.getStat(Skill.CASTING))\r\n \t\t\t\t*(0.85+0.15*skill)); \r\n \t\treturn st;\r\n \t}", "public Skills chooseSkill();", "public void Skill() {\n\t\tBuilding ig = new Iglu(this.GetWater());\n\t\tthis.GetWater().GetBuilding().ReplaceBuilding(ig);\n\t}", "private void cs6() {\n\t\t\t\n\t\tif(Method.objIsNotNull(FIREID)){\n\t\t\tstate = \"Made fire\";\n\t\t\tif(ctx.inventory.selectedItem().valid()){\n\t\t\t\tMethod.interactO(FIREID, \"Use\", \"Fire\");\n\t\t\t}else Method.interactInventory(2514, \"Use\",\"Shrimp\");\n\t\t}else\n\t\t if(Method.inventoryContains(2511)){\n\t\t\t System.out.println(\"Has logs in inventory\");\n\t\t\t if(ctx.inventory.selectedItem().valid()){\n\t\t\t\t\tMethod.interactInventory(2511, \"Use\", \"Logs\");\n\t\t\t\t}else Method.interactInventory(590, \"Use\", \"Tinder box\");\n\t\t\t\t\n\t\t }else Method.interactO(9730, \"Chop down\", \"Tree\");\n\t\t\t\n\t\t\t\n\t\t}", "public Skill() {\n\t\tsuper();\n\t}", "@Override\r\n\tpublic void useSkill() {\n\t\tthis.defense+=20;\r\n\t\tthis.maxHp+=(this.maxHp/2);\r\n\t\tthis.hp+=(this.hp/2);\r\n\t\tthis.skillActive = true;\r\n\t\tthis.skillLast = 2;\r\n\t}", "void skill( String key, String value ){\n developer.skills.add( value );\n }", "public skills(){\n\t\tname = \"tempName\";\n\t\tmanaCost =0;\n\t\tskillDmg = 0;\n\t\tcritFactor = 0;\n\t\tcritChance = 0;\n\t\tnoOfTargets = 1;\n\t\thitChance = 0;\n\t\tmyAttribute = null;\n\t\t\n\t\t//instantiates the original values, prob will have no need\n\t\torigSkillDmg = 0;\n\t\torigCritFac = 0;\n\t\torigCritChan = 0;\n\t\torigHitChan =0;\n\t\t\n\t\t//stores the current buffs on the person\n\t\tcurrBuff = null;\n\t}", "public void AddNewSkill()\n\t{\n\t\t\n\t}", "public void setSkill(int skill){\n\t\tskillSelection = skill;\n\t}", "public Shield(String name,int levelRequired){\n\t\tsuper(name,levelRequired);\n\t\titemId = 2;\n\t\tprice = (levelRequired*50)/40*60;\n\t\tsalePrice = (int)(price*0.75);\n\t\tprimaryStat = levelRequired*3/5 + (int)(Math.random()*5+1);\n\t}", "void doNegativeEffect(Skill castSkill, double power, Creature performer, Item target) {\n/* 200 */ performer.getCommunicator().sendNormalServerMessage(\"The \" + target\n/* 201 */ .getName() + \" emits a deep worrying sound of resonance, but stays intact.\", (byte)3);\n/* */ }", "boolean precondition(Skill castSkill, Creature performer, Creature target) {\n/* 76 */ return false;\n/* */ }", "public void whereIsTheSail()\n {\n // code here\n if(sail) // sail is ture/up\n System.out.println(name + \" sail is up.\\n\");\n else // sale is false/down\n System.out.println(name + \" sail is down.\\n\");\n }", "public Skill(String skillName, double skillDamage, int skillManaCost, double skillHeal){\n name = skillName;\n damage = skillDamage;\n manaCost = skillManaCost;\n heal = skillHeal;\n//sets up skills to return as their name.\n }", "public String getSkill() {\n\t\treturn skill;\n\t}", "public void useItem(L2PlayableInstance playable, L2ItemInstance item)\r\n\t{\r\n\t\tif (!(playable instanceof L2PcInstance))\r\n\t\t\treturn;\r\n\r\n\t\tL2PcInstance activeChar = (L2PcInstance) playable;\r\n\t\tL2Object target = activeChar.getTarget();\r\n\t\tif (!(target instanceof L2MonsterInstance))\r\n\t\t{\r\n\t\t\t// Send a System Message to the caster\r\n\t\t\tSystemMessage sm = new SystemMessage(SystemMessageId.INCORRECT_TARGET);\r\n\t\t\tactiveChar.sendPacket(sm);\r\n\r\n\t\t\t// Send a Server->Client packet ActionFailed to the L2PcInstance \r\n\t\t\tactiveChar.sendPacket(ActionFailed.STATIC_PACKET);\r\n\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t// u can use soul crystal only when target hp goes below <50%\r\n\t\tif (((L2MonsterInstance) target).getStatus().getCurrentHp() > ((L2MonsterInstance) target).getMaxHp() / 2.0)\r\n\t\t{\r\n\t\t\tactiveChar.sendPacket(ActionFailed.STATIC_PACKET);\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tint crystalId = item.getItemId();\r\n\r\n\t\t// Soul Crystal Casting section\r\n\t\tL2Skill skill = SkillTable.getInstance().getInfo(2096, 1);\r\n\t\tactiveChar.useMagic(skill, false, true);\r\n\t\t// End Soul Crystal Casting section\r\n\r\n\t\t// Continue execution later\r\n\t\tCrystalFinalizer cf = new CrystalFinalizer(activeChar, target, crystalId);\r\n\t\tThreadPoolManager.getInstance().scheduleEffect(cf, skill.getHitTime());\r\n\r\n\t}", "public void onSkillUse(L2Player player, int skill_id)\n\t{\n\t\tint npcId = getNpcId();\n\t\t// check if the npc and skills used are valid\n\t\tif(!feedableBeasts.contains(npcId))\n\t\t\treturn;\n\t\tif(skill_id != SKILL_GOLDEN_SPICE && skill_id != SKILL_CRYSTAL_SPICE)\n\t\t\treturn;\n\n\t\tint food = GOLDEN_SPICE;\n\t\tif(skill_id == SKILL_CRYSTAL_SPICE)\n\t\t\tfood = CRYSTAL_SPICE;\n\n\t\tint objectId = getObjectId();\n\t\t// display the social action of the beast eating the food.\n\t\tbroadcastPacket(new SocialAction(objectId, 2));\n\n\t\t// if this pet can't grow, it's all done.\n\t\tif(growthCapableMobs.containsKey(npcId))\n\t\t{\n\t\t\t// do nothing if this mob doesn't eat the specified food (food gets consumed but has no effect).\n\t\t\tif(growthCapableMobs.get(npcId).spice[food].length == 0)\n\t\t\t\treturn;\n\n\t\t\t// more value gathering on local variables\n\t\t\tint growthLevel = growthCapableMobs.get(npcId).growth_level;\n\n\t\t\tif(growthLevel > 0)\n\t\t\t\t// check if this is the same player as the one who raised it from growth 0.\n\t\t\t\t// if no, then do not allow a chance to raise the pet (food gets consumed but has no effect).\n\t\t\t\tif(feedInfo.get(objectId) != null && feedInfo.get(objectId) != player.getObjectId())\n\t\t\t\t\treturn;\n\n\t\t\t// Polymorph the mob, with a certain chance, given its current growth level\n\t\t\tif(Rnd.chance(growthCapableMobs.get(npcId).growth_chance))\n\t\t\t\tspawnNext(player, growthLevel, food);\n\t\t}\n\t\telse if(tamedBeasts.contains(npcId))\n\t\t\tif(skill_id == ((L2TamedBeastInstance) this).getFoodType())\n\t\t\t{\n\t\t\t\t((L2TamedBeastInstance) this).onReceiveFood();\n\t\t\t\tFunctions.npcSayCustomMessage(this, mytext[Rnd.get(mytext.length)]);\n\t\t\t}\n\t}", "@Override\n\tprotected String getHurtSound() {\n\t\treturn \"mob.creeper.say\";\n\t}", "boolean precondition(Skill castSkill, Creature performer, Item target) {\n/* 53 */ if (!target.isMailBox() && !target.isSpringFilled() && !target.isUnenchantedTurret() && \n/* 54 */ !target.isPuppet() && !target.isEnchantedTurret()) {\n/* */ \n/* 56 */ performer.getCommunicator().sendNormalServerMessage(\"The spell will not work on that.\", (byte)3);\n/* 57 */ return false;\n/* */ } \n/* */ \n/* */ \n/* 61 */ SpellEffect negatingEffect = EnchantUtil.hasNegatingEffect(target, getEnchantment());\n/* 62 */ if (negatingEffect != null) {\n/* 63 */ EnchantUtil.sendNegatingEffectMessage(getName(), performer, target, negatingEffect);\n/* 64 */ return false;\n/* */ } \n/* 66 */ return true;\n/* */ }", "public int getSkillType() {\n\t\treturn 1;\n\t}", "public abstract boolean hasSkill(Skill skill);", "private static void customItems(ItemDefinition itemDef) {\n\n\t\tswitch (itemDef.id) {\n\n\t\tcase 11864:\n\t\tcase 11865:\n\t\tcase 19639:\n\t\tcase 19641:\n\t\tcase 19643:\n\t\tcase 19645:\n\t\tcase 19647:\n\t\tcase 19649:\n\t\tcase 23073:\n\t\tcase 23075:\n\t\t\titemDef.equipActions[2] = \"Log\";\n\t\t\titemDef.equipActions[1] = \"Check\";\n\t\t\tbreak;\n\n\t\tcase 13136:\n\t\t\titemDef.equipActions[2] = \"Elidinis\";\n\t\t\titemDef.equipActions[1] = \"Kalphite Hive\";\n\t\t\tbreak;\n\t\tcase 2550:\n\t\t\titemDef.equipActions[2] = \"Check\";\n\t\t\tbreak;\n\n\t\tcase 1712:\n\t\tcase 1710:\n\t\tcase 1708:\n\t\tcase 1706:\n\t\t\titemDef.equipActions[1] = \"Edgeville\";\n\t\t\titemDef.equipActions[2] = \"Karamja\";\n\t\t\titemDef.equipActions[3] = \"Draynor\";\n\t\t\titemDef.equipActions[4] = \"Al-Kharid\";\n\t\t\tbreak;\n\n\t\tcase 22000:\n\t\t\titemDef.name = \"Lava partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"A lava partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 22001:\n\t\t\titemDef.name = \"Infernal partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"An Infernal partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 2552:\n\t\tcase 2554:\n\t\tcase 2556:\n\t\tcase 2558:\n\t\tcase 2560:\n\t\tcase 2562:\n\t\tcase 2564:\n\t\tcase 2566: // Ring of duelling\n\t\t\titemDef.equipActions[2] = \"Shantay Pass\";\n\t\t\titemDef.equipActions[1] = \"Clan wars\";\n\t\t\tbreak;\n\n\t\tcase 21307:\n\t\t\titemDef.name = \"Pursuit crate\";\n\t\t\tbreak;\n\n\t\tcase 12792:\n\t\t\titemDef.name = \"Graceful recolor kit\";\n\t\t\tbreak;\n\n\t\tcase 12022:\n\t\t\titemDef.name = \"Bandos Casket\";\n\t\t\titemDef.description = \"100% chance for an item off the Bandos gwds rare drop table.\";\n\t\t\tbreak;\n\n\t\tcase 12024:\n\t\t\titemDef.name = \"Armadyl Casket\";\n\t\t\titemDef.description = \"100% chance for an item off the Armadyl gwds rare drop table.\";\n\t\t\tbreak;\n\n\t\tcase 12026:\n\t\t\titemDef.name = \"Saradomin Casket\";\n\t\t\titemDef.description = \"100% chance for an item off the Saradomin gwds rare drop table.\";\n\t\t\tbreak;\n\n\t\tcase 12028:\n\t\t\titemDef.name = \"Zamorak Casket\";\n\t\t\titemDef.description = \"100% chance for an item off the Zamorak gwds rare drop table.\";\n\t\t\tbreak;\n\n\t\tcase 964:\n\t\t\titemDef.name = \"Pet Petie\";\n\t\t\tbreak;\n\n\t\tcase 20853:\n\t\t\titemDef.name = \"Deep Sea Bait\";\n\t\t\titemDef.stackable = true;\n\t\t\tbreak;\n\n\t\t/*\n\t\t * case 17014: itemDef.name = \"Dragon flail\"; itemDef.modelId = 50083;\n\t\t * itemDef.modelZoom = 1440; itemDef.modelRotation2 = 272;\n\t\t * itemDef.modelRotation1 = 352; itemDef.modelOffset1 = 32;\n\t\t * //itemDef.modelOffset2 = 0; itemDef.maleModel = 50083; itemDef.femaleModel =\n\t\t * 50083; itemDef.anInt164 = -1; itemDef.anInt188 = -1; itemDef.aByte205 = -8;\n\t\t * itemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t * itemDef.inventoryOptions = new String[] { \"Wear\", null, null, null, \"Drop\" };\n\t\t * itemDef.description = \"An Ancient Dragon Flail.\"; break;\n\t\t */\n\n\t\tcase 33272:\n\t\t\titemDef.name = \"Justiciar's Longsword\";\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modelId = 65472;\n\t\t\titemDef.modelZoom = 1726;\n\t\t\titemDef.modelRotation1 = 1576;\n\t\t\titemDef.modelRotation2 = 242;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\t// itemDef.anInt204 = 0;\n\t\t\t// itemDef.aByte205 = -12;\n\t\t\t// itemDef.aByte154 = 0;\n\t\t\titemDef.maleModel = 65465;\n\t\t\titemDef.femaleModel = 65465;\n\t\t\titemDef.description = \"An ancient longsword received from the Trial of Flames.\";\n\t\t\tbreak;\n\n\t\tcase 33168:\n\t\t\titemDef.name = \"Justiciar kiteshield\";\n\t\t\titemDef.modelId = 65471;\n\t\t\titemDef.modelZoom = 1600;\n\t\t\titemDef.modelRotation2 = 250;\n\t\t\titemDef.modelRotation1 = 300;\n\t\t\titemDef.modelOffset1 = -4;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.maleModel = 65473;\n\t\t\titemDef.femaleModel = 65474;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"An ancient kiteshield. Part of the Justiciar set.\";\n\t\t\tbreak;\n\n\t\tcase 2996:\n\t\t\titemDef.name = \"PKP Ticket\";\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.description = \"Exchange this for a PK Point.\";\n\t\t\tbreak;\n\t\tcase 13226:\n\t\t\titemDef.name = \"Herb Sack\";\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.description = \"A sack for storing grimy herbs.\";\n\t\t\tbreak;\n\t\tcase 13346:\n\t\t\titemDef.name = \"Raid Mystery Box\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Open for chances to receive Raid items & other awesome rewards.\";\n\t\t\tbreak;\n\t\tcase 8800:\n\t\t\titemDef.name = \"Donator Tokens\";\n\t\t\titemDef.modelId = 31624;\n\t\t\t// itemDef.stackAmounts = new int[] { 2, 3, 50, 100, 500000, 1000000, 2500000,\n\t\t\t// 10000000, 100000000, 0 };//amount the model will change at\n\t\t\t// itemDef.stackIDs = new int[] { 8801, 8802, 8803, 8804, 8805, 8806, 8807,\n\t\t\t// 8808, 8809, 0 };//new item id to grab the model from\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 853;\n\t\t\titemDef.modelRotation2 = 1885;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8801:\n\t\t\titemDef.name = \"Donator Tokens\";\n\t\t\titemDef.modelId = 15344;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8802:\n\t\t\titemDef.name = \"Donator Tokens\";\n\t\t\titemDef.modelId = 15345;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8803:\n\t\t\titemDef.name = \"Donator Coins\";\n\t\t\titemDef.modelId = 15346;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8804:\n\t\t\titemDef.name = \"Donator Coins\";\n\t\t\titemDef.modelId = 15347;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8805:\n\t\t\titemDef.name = \"Donator Coins\";\n\t\t\titemDef.modelId = 15348;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8806:\n\t\t\titemDef.name = \"Donator Coins\";\n\t\t\titemDef.modelId = 15349;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8807:\n\t\t\titemDef.name = \"Donator Coins\";\n\t\t\titemDef.modelId = 15350;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8808:\n\t\t\titemDef.name = \"Donator Coins\";\n\t\t\titemDef.modelId = 15351;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8809:\n\t\t\titemDef.name = \"Donator Coins\";\n\t\t\titemDef.modelId = 15352;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 15098:\n\t\t\titemDef.name = \"Dice (up to 100)\";\n\t\t\titemDef.description = \"A 100-sided dice.\";\n\t\t\titemDef.modelId = 31223;\n\t\t\titemDef.modelZoom = 1104;\n\t\t\titemDef.modelRotation2 = 215;\n\t\t\titemDef.modelRotation1 = 94;\n\t\t\titemDef.modelOffset2 = -5;\n\t\t\titemDef.modelOffset1 = -18;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Public-roll\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.name = \"Dice (up to 100)\";\n\t\t\titemDef.anInt196 = 15;\n\t\t\titemDef.anInt184 = 25;\n\t\t\tbreak;\n\n\t\tcase 32991:\n\t\t\titemDef.name = \"Divine spirit shield\";\n\t\t\titemDef.description = \"An ethereal shield with an divine sigil attached to it.\";\n\t\t\titemDef.modelId = 50001;\n\t\t\titemDef.maleModel = 50002;\n\t\t\titemDef.femaleModel = 50002;\n\t\t\titemDef.modelZoom = 1616;\n\t\t\titemDef.modelRotation2 = 1050;\n\t\t\titemDef.modelRotation1 = 396;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\tbreak;\n\t\tcase 32992:\n\t\t\titemDef.name = \"Rainbow spirit shield\";\n\t\t\titemDef.description = \"An ethereal shield with all 4 sigils attached to it.\";\n\t\t\titemDef.modelId = 50004;\n\t\t\titemDef.maleModel = 50005;\n\t\t\titemDef.femaleModel = 50005;\n\t\t\titemDef.modelZoom = 1616;\n\t\t\titemDef.modelRotation2 = 1050;\n\t\t\titemDef.modelRotation1 = 396;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 32993:\n\t\t\titemDef.name = \"Divine sigil\";\n\t\t\titemDef.description = \"A sigil in the shape of a divine symbol.\";\n\t\t\titemDef.modelId = 50003;\n\t\t\titemDef.modelZoom = 848;\n\t\t\titemDef.modelRotation1 = 267;\n\t\t\titemDef.modelRotation2 = 138;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33060:\n\t\t\titemDef.name = \"Barrows Sword\";\n\t\t\titemDef.description = \"A sword glowing with otherworldy energy.\";\n\t\t\titemDef.modelId = 22325;\n\t\t\titemDef.maleModel = 50010;\n\t\t\titemDef.femaleModel = 50010;\n\t\t\titemDef.modelZoom = 1616;\n\t\t\titemDef.modelRotation2 = 1050;\n\t\t\titemDef.modelRotation1 = 396;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\tbreak;\n\t\tcase 32994:\n\t\t\titemDef.name = \"Statius's platebody\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42602;\n\t\t\titemDef.maleModel = 35951;\n\t\t\titemDef.femaleModel = 35964;\n\t\t\titemDef.modelZoom = 1312;\n\t\t\titemDef.modelRotation1 = 272;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.modelOffset1 = -2;\n\t\t\titemDef.modelOffset2 = 39;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 32995:\n\t\t\titemDef.name = \"Statius's platelegs\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42590;\n\t\t\titemDef.maleModel = 35947;\n\t\t\titemDef.femaleModel = 35961;\n\t\t\titemDef.modelZoom = 1625;\n\t\t\titemDef.modelRotation1 = 355;\n\t\t\titemDef.modelRotation2 = 2046;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -11;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 32996:\n\t\t\titemDef.name = \"Statius's full helm\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42596;\n\t\t\titemDef.maleModel = 35943;\n\t\t\titemDef.femaleModel = 35958;\n\t\t\titemDef.modelZoom = 789;\n\t\t\titemDef.modelRotation1 = 96;\n\t\t\titemDef.modelRotation2 = 2039;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -7;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 32997:\n\t\t\titemDef.name = \"Statius's warhammer\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42577;\n\t\t\titemDef.maleModel = 35968;\n\t\t\titemDef.femaleModel = 35968;\n\t\t\titemDef.modelZoom = 1360;\n\t\t\titemDef.modelRotation1 = 507;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 7;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 32998:\n\t\t\titemDef.name = \"Vesta's chainbody\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42593;\n\t\t\titemDef.maleModel = 35953;\n\t\t\titemDef.femaleModel = 35965;\n\t\t\titemDef.modelZoom = 1440;\n\t\t\titemDef.modelRotation1 = 545;\n\t\t\titemDef.modelRotation2 = 2;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 32999:\n\t\t\titemDef.name = \"Vesta's plateskirt\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42581;\n\t\t\titemDef.maleModel = 35950;\n\t\t\titemDef.femaleModel = 35960;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.modelOffset2 = 11;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33000:\n\t\t\titemDef.name = \"Vesta's longsword\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42597;\n\t\t\titemDef.maleModel = 35969;\n\t\t\titemDef.femaleModel = 35969;\n\t\t\titemDef.modelZoom = 1744;\n\t\t\titemDef.modelRotation1 = 738;\n\t\t\titemDef.modelRotation2 = 1985;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.maleOffset = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33001:\n\t\t\titemDef.name = \"Vesta's spear\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42599;\n\t\t\titemDef.maleModel = 35973;\n\t\t\titemDef.femaleModel = 35973;\n\t\t\titemDef.modelZoom = 2022;\n\t\t\titemDef.modelRotation1 = 480;\n\t\t\titemDef.modelRotation2 = 15;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.maleOffset = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33002:\n\t\t\titemDef.name = \"Morrigan's leather body\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42578;\n\t\t\titemDef.maleModel = 35954;\n\t\t\titemDef.femaleModel = 35963;\n\t\t\titemDef.modelZoom = 1440;\n\t\t\titemDef.modelRotation1 = 545;\n\t\t\titemDef.modelRotation2 = 2;\n\t\t\titemDef.modelOffset1 = -2;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33003:\n\t\t\titemDef.name = \"Morrigan's leather chaps\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42603;\n\t\t\titemDef.maleModel = 35948;\n\t\t\titemDef.femaleModel = 35959;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 482;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.modelOffset2 = 11;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33004:\n\t\t\titemDef.name = \"Morrigan's coif\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42583;\n\t\t\titemDef.maleModel = 35945;\n\t\t\titemDef.femaleModel = 35956;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 537;\n\t\t\titemDef.modelRotation2 = 5;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33005:\n\t\t\titemDef.name = \"Morrigan's javelin\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42592;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.maleModel = 42613;\n\t\t\titemDef.femaleModel = 42613;\n\t\t\titemDef.modelZoom = 1872;\n\t\t\titemDef.modelRotation1 = 282;\n\t\t\titemDef.modelRotation2 = 2009;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.maleOffset = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33006:\n\t\t\titemDef.name = \"Morrigan's throwing axe\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42582;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.maleModel = 42611;\n\t\t\titemDef.femaleModel = 42611;\n\t\t\titemDef.modelZoom = 976;\n\t\t\titemDef.modelRotation1 = 672;\n\t\t\titemDef.modelRotation2 = 2024;\n\t\t\titemDef.modelOffset1 = -5;\n\t\t\titemDef.maleOffset = -8;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33007:\n\t\t\titemDef.name = \"Zuriels robe top\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42591;\n\t\t\titemDef.maleModel = 35952;\n\t\t\titemDef.femaleModel = 35966;\n\t\t\titemDef.modelZoom = 1373;\n\t\t\titemDef.modelRotation1 = 373;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -7;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33008:\n\t\t\titemDef.name = \"Zuriels robe bottom\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42588;\n\t\t\titemDef.maleModel = 35949;\n\t\t\titemDef.femaleModel = 35962;\n\t\t\titemDef.modelZoom = 1697;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33009:\n\t\t\titemDef.name = \"Zuriels hood\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42604;\n\t\t\titemDef.maleModel = 35944;\n\t\t\titemDef.femaleModel = 35957;\n\t\t\titemDef.modelZoom = 720;\n\t\t\titemDef.modelRotation1 = 28;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33010:\n\t\t\titemDef.name = \"Zuriels staff\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42595;\n\t\t\titemDef.maleModel = 35971;\n\t\t\titemDef.femaleModel = 35971;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 366;\n\t\t\titemDef.modelRotation2 = 3;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33011:\n\t\t\titemDef.name = \"Craw's bow (u)\";\n\t\t\titemDef.description = \"This bow once belonged to a formidable follower of Armadyl.\";\n\t\t\titemDef.modelId = 35777;\n\t\t\titemDef.maleModel = 35768;\n\t\t\titemDef.femaleModel = 35768;\n\t\t\titemDef.modelZoom = 1979;\n\t\t\titemDef.modelRotation1 = 1463;\n\t\t\titemDef.modelRotation2 = 510;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33012:\n\t\t\titemDef.name = \"Craw's bow\";\n\t\t\titemDef.description = \"This bow once belonged to a formidable follower of Armadyl.\";\n\t\t\titemDef.modelId = 35777;\n\t\t\titemDef.maleModel = 35769;\n\t\t\titemDef.femaleModel = 35769;\n\t\t\titemDef.modelZoom = 1979;\n\t\t\titemDef.modelRotation1 = 1463;\n\t\t\titemDef.modelRotation2 = 510;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33013:\n\t\t\titemDef.name = \"Thammaron's sceptre (u)\";\n\t\t\titemDef.description = \"A mighty sceptre used in long forgotten battles.\";\n\t\t\titemDef.modelId = 35776;\n\t\t\titemDef.maleModel = 35772;\n\t\t\titemDef.femaleModel = 35772;\n\t\t\titemDef.modelZoom = 2105;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 1020;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33014:\n\t\t\titemDef.name = \"Thammaron's sceptre\";\n\t\t\titemDef.description = \"A mighty sceptre used in long forgotten battles.\";\n\t\t\titemDef.modelId = 35776;\n\t\t\titemDef.maleModel = 35773;\n\t\t\titemDef.femaleModel = 35773;\n\t\t\titemDef.modelZoom = 2105;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 1020;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33015:\n\t\t\titemDef.name = \"Viggora's chainmace (u)\";\n\t\t\titemDef.description = \"An ancient chainmace with a peculiar mechanism that allows for varying attack styles.\";\n\t\t\titemDef.modelId = 35778;\n\t\t\titemDef.maleModel = 35770;\n\t\t\titemDef.femaleModel = 35770;\n\t\t\titemDef.modelZoom = 1616;\n\t\t\titemDef.modelRotation1 = 252;\n\t\t\titemDef.modelRotation2 = 944;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33016:\n\t\t\titemDef.name = \"Viggora's chainmace\";\n\t\t\titemDef.description = \"An ancient chainmace with a peculiar mechanism that allows for varying attack styles.\";\n\t\t\titemDef.modelId = 35778;\n\t\t\titemDef.maleModel = 35771;\n\t\t\titemDef.femaleModel = 35771;\n\t\t\titemDef.modelZoom = 1616;\n\t\t\titemDef.modelRotation1 = 252;\n\t\t\titemDef.modelRotation2 = 944;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33018:\n\t\t\titemDef.name = \"Amulet of avarice\";\n\t\t\titemDef.description = \"A hauntingly beautiful amulet bearing the shape of a skull.\";\n\t\t\titemDef.modelId = 35779;\n\t\t\titemDef.maleModel = 35766;\n\t\t\titemDef.femaleModel = 35766;\n\t\t\titemDef.modelZoom = 420;\n\t\t\titemDef.modelRotation1 = 191;\n\t\t\titemDef.modelRotation2 = 86;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33019:\n\t\t\titemDef.name = \"Completionist cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\titemDef.modelId = 65270;\n\t\t\titemDef.maleModel = 65297;\n\t\t\titemDef.femaleModel = 65316;\n\t\t\titemDef.modelZoom = 1316;\n\t\t\titemDef.modelRotation1 = 252;\n\t\t\titemDef.modelRotation2 = 1020;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 24;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33020:\n\t\t\titemDef.name = \"Completionist cape (t)\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\titemDef.modelId = 65258;\n\t\t\titemDef.maleModel = 65295;\n\t\t\titemDef.femaleModel = 65328;\n\t\t\titemDef.modelZoom = 1316;\n\t\t\titemDef.modelRotation1 = 252;\n\t\t\titemDef.modelRotation2 = 1020;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 24;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33021:\n\t\t\titemDef.name = \"Torva full helm\";\n\t\t\titemDef.description = \"An ancient warrior's full helm.\";\n\t\t\titemDef.modelId = 62714;\n\t\t\titemDef.maleModel = 62738;\n\t\t\titemDef.femaleModel = 62738;\n\t\t\titemDef.modelZoom = 672;\n\t\t\titemDef.modelRotation1 = 85;\n\t\t\titemDef.modelRotation2 = 1867;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33022:\n\t\t\titemDef.name = \"Torva platebody\";\n\t\t\titemDef.description = \"An ancient warrior's platebody.\";\n\t\t\titemDef.modelId = 62699;\n\t\t\titemDef.maleModel = 62746;\n\t\t\titemDef.femaleModel = 62746;\n\t\t\titemDef.modelZoom = 1506;\n\t\t\titemDef.modelRotation1 = 473;\n\t\t\titemDef.modelRotation2 = 2042;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33023:\n\t\t\titemDef.name = \"Torva platelegs\";\n\t\t\titemDef.description = \"An ancient warrior's platelegs.\";\n\t\t\titemDef.modelId = 62701;\n\t\t\titemDef.maleModel = 62740;\n\t\t\titemDef.femaleModel = 62740;\n\t\t\titemDef.modelZoom = 1740;\n\t\t\titemDef.modelRotation1 = 474;\n\t\t\titemDef.modelRotation2 = 2045;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33024:\n\t\t\titemDef.name = \"Pernix cowl\";\n\t\t\titemDef.description = \"An ancient warrior's cowl.\";\n\t\t\titemDef.modelId = 62693;\n\t\t\titemDef.maleModel = 62739;\n\t\t\titemDef.femaleModel = 62739;\n\t\t\titemDef.modelZoom = 800;\n\t\t\titemDef.modelRotation1 = 532;\n\t\t\titemDef.modelRotation2 = 14;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33025:\n\t\t\titemDef.name = \"Pernix body\";\n\t\t\titemDef.description = \"An ancient warrior's leather body.\";\n\t\t\titemDef.modelId = 62709;\n\t\t\titemDef.maleModel = 62744;\n\t\t\titemDef.femaleModel = 62744;\n\t\t\titemDef.modelZoom = 1378;\n\t\t\titemDef.modelRotation1 = 485;\n\t\t\titemDef.modelRotation2 = 2042;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 7;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33026:\n\t\t\titemDef.name = \"Pernix chaps\";\n\t\t\titemDef.description = \"An ancient warrior's chaps.\";\n\t\t\titemDef.modelId = 62695;\n\t\t\titemDef.maleModel = 62741;\n\t\t\titemDef.femaleModel = 62741;\n\t\t\titemDef.modelZoom = 1740;\n\t\t\titemDef.modelRotation1 = 504;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33027:\n\t\t\titemDef.name = \"Virtus mask\";\n\t\t\titemDef.description = \"An ancient warrior's mask.\";\n\t\t\titemDef.modelId = 62710;\n\t\t\titemDef.maleModel = 62736;\n\t\t\titemDef.femaleModel = 62736;\n\t\t\titemDef.modelZoom = 928;\n\t\t\titemDef.modelRotation1 = 406;\n\t\t\titemDef.modelRotation2 = 2041;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33028:\n\t\t\titemDef.name = \"Virtus robe top\";\n\t\t\titemDef.description = \"An ancient warrior's robe top.\";\n\t\t\titemDef.modelId = 62704;\n\t\t\titemDef.maleModel = 62748;\n\t\t\titemDef.femaleModel = 62748;\n\t\t\titemDef.modelZoom = 1122;\n\t\t\titemDef.modelRotation1 = 488;\n\t\t\titemDef.modelRotation2 = 3;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33029:\n\t\t\titemDef.name = \"Virtus robe legs\";\n\t\t\titemDef.description = \"An ancient warrior's robe legs.\";\n\t\t\titemDef.modelId = 62700;\n\t\t\titemDef.maleModel = 62742;\n\t\t\titemDef.femaleModel = 62742;\n\t\t\titemDef.modelZoom = 1740;\n\t\t\titemDef.modelRotation1 = 498;\n\t\t\titemDef.modelRotation2 = 2045;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33030:\n\t\t\titemDef.name = \"Zaryte bow\";\n\t\t\titemDef.description = \"An ancient warrior's bow.\";\n\t\t\titemDef.modelId = 62692;\n\t\t\titemDef.maleModel = 62750;\n\t\t\titemDef.femaleModel = 62750;\n\t\t\titemDef.modelZoom = 1703;\n\t\t\titemDef.modelRotation1 = 221;\n\t\t\titemDef.modelRotation2 = 404;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -13;\n\t\t\titemDef.maleOffset = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33083:\n\t\t\titemDef.name = \"Tokhaar-kal\";\n\t\t\titemDef.description = \"\tA cape made of ancient, enchanted obsidian.\";\n\t\t\titemDef.modelId = 52073;\n\t\t\titemDef.maleModel = 52072;\n\t\t\titemDef.femaleModel = 52071;\n\t\t\titemDef.modelZoom = 1615;\n\t\t\titemDef.modelRotation1 = 339;\n\t\t\titemDef.modelRotation2 = 192;\n\t\t\titemDef.modelOffset1 = -4;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33089:\n\t\t\titemDef.name = \"Chaotic maul\";\n\t\t\titemDef.description = \"A maul used to claim life from those who don't deserve it.\";\n\t\t\titemDef.modelId = 54286;\n\t\t\titemDef.maleModel = 56294;\n\t\t\titemDef.femaleModel = 56294;\n\t\t\titemDef.modelZoom = 1447;\n\t\t\titemDef.modelRotation1 = 525;\n\t\t\titemDef.modelRotation2 = 350;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = -7;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\tbreak;\n\t\tcase 33094:\n\t\t\titemDef.name = \"Chaotic crossbow\";\n\t\t\titemDef.description = \"A small crossbow, only effective at short distance.\";\n\t\t\titemDef.modelId = 54331;\n\t\t\titemDef.maleModel = 56307;\n\t\t\titemDef.femaleModel = 56307;\n\t\t\titemDef.modelZoom = 1028;\n\t\t\titemDef.modelRotation1 = 249;\n\t\t\titemDef.modelRotation2 = 2021;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -54;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = -7;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\tbreak;\n\t\tcase 33095:\n\t\t\titemDef.name = \"Chaotic staff\";\n\t\t\titemDef.description = \"This staff makes destructive spells more powerful.\";\n\t\t\titemDef.modelId = 54367;\n\t\t\titemDef.maleModel = 56286;\n\t\t\titemDef.femaleModel = 56286;\n\t\t\titemDef.modelZoom = 1711;\n\t\t\titemDef.modelRotation1 = 471;\n\t\t\titemDef.modelRotation2 = 391;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = -7;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\tbreak;\n\t\tcase 33096:\n\t\t\titemDef.name = \"Chaotic kiteshield\";\n\t\t\titemDef.description = \"A large metal shield.\";\n\t\t\titemDef.modelId = 54358;\n\t\t\titemDef.maleModel = 56038;\n\t\t\titemDef.femaleModel = 56038;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 276;\n\t\t\titemDef.modelRotation2 = 1101;\n\t\t\titemDef.modelOffset1 = -5;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33031:\n\t\t\titemDef.name = \"Chaotic rapier\";\n\t\t\titemDef.description = \"A razor-sharp rapier.\";\n\t\t\titemDef.modelId = 54197;\n\t\t\titemDef.maleModel = 56252;\n\t\t\titemDef.femaleModel = 56252;\n\t\t\titemDef.modelZoom = 1425;\n\t\t\titemDef.modelRotation1 = 540;\n\t\t\titemDef.modelRotation2 = 1370;\n\t\t\titemDef.modelOffset1 = 9;\n\t\t\titemDef.modelOffset2 = 13;\n\t\t\titemDef.maleOffset = -12;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = -7;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\tbreak;\n\t\tcase 33032:\n\t\t\titemDef.name = \"Chaotic longsword\";\n\t\t\titemDef.description = \"A razor-sharp longsword.\";\n\t\t\titemDef.modelId = 54204;\n\t\t\titemDef.maleModel = 56237;\n\t\t\titemDef.femaleModel = 56237;\n\t\t\titemDef.modelZoom = 1650;\n\t\t\titemDef.modelRotation1 = 498;\n\t\t\titemDef.modelRotation2 = 1300;\n\t\t\t// itemDef.aByte154 = -14;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = -7;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\tbreak;\n\t\tcase 33097:\n\t\t\titemDef.name = \"Sword of Onyxia\";\n\t\t\titemDef.description = \"A razor-sharp longsword.\";\n\t\t\titemDef.modelId = 53091;\n\t\t\titemDef.maleModel = 53092;\n\t\t\titemDef.femaleModel = 53092;\n\t\t\titemDef.modelZoom = 2007;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33098:\n\t\t\titemDef.name = \"Onyxia longsword\";\n\t\t\titemDef.description = \"A razor-sharp 2h sword.\";\n\t\t\titemDef.modelId = 53093;\n\t\t\titemDef.maleModel = 53094;\n\t\t\titemDef.femaleModel = 53094;\n\t\t\titemDef.modelZoom = 4007;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.maleOffset = -8;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33099:\n\t\t\titemDef.name = \"White scimitar\";\n\t\t\titemDef.description = \"A razor-sharp scimitar.\";\n\t\t\titemDef.modelId = 53097;\n\t\t\titemDef.maleModel = 53098;\n\t\t\titemDef.femaleModel = 53098;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 312;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\t// itemDef.aByte154 = -14;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33100:\n\t\t\titemDef.name = \"White kiteshield\";\n\t\t\titemDef.description = \"a heavy kiteshield.\";\n\t\t\titemDef.modelId = 53095;\n\t\t\titemDef.maleModel = 53096;\n\t\t\titemDef.femaleModel = 53096;\n\t\t\titemDef.modelZoom = 1616;\n\t\t\titemDef.modelRotation1 = 303;\n\t\t\titemDef.modelRotation2 = 180;\n\t\t\t// itemDef.aByte154 = -14;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.modelOffset2 = 7;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33033:\n\t\t\titemDef.name = \"Agility master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 677, 801, 43540, 43543, 43546, 43549, 43550, 43552, 43554, 43558,\n\t\t\t\t\t43560, 43575 };\n\t\t\titemDef.modelId = 50030;\n\t\t\titemDef.maleModel = 50031;\n\t\t\titemDef.femaleModel = 50031;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33034:\n\t\t\titemDef.name = \"Attack master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 7104, 9151, 911, 914, 917, 920, 921, 923, 925, 929, 931, 946 };\n\t\t\titemDef.modelId = 50032;\n\t\t\titemDef.maleModel = 50033;\n\t\t\titemDef.femaleModel = 50033;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33035:\n\t\t\titemDef.name = \"Construction master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 6061, 5945, 6327, 6330, 6333, 6336, 6337, 6339, 6341, 6345, 6347,\n\t\t\t\t\t6362 };\n\t\t\titemDef.modelId = 50034;\n\t\t\titemDef.maleModel = 50035;\n\t\t\titemDef.femaleModel = 50035;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33036:\n\t\t\titemDef.name = \"Cooking master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 920, 920, 51856, 51859, 51862, 51865, 51866, 51868, 51870, 51874,\n\t\t\t\t\t51876, 51891 };\n\t\t\titemDef.modelId = 50036;\n\t\t\titemDef.maleModel = 50037;\n\t\t\titemDef.femaleModel = 50037;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33037:\n\t\t\titemDef.name = \"Crafting master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 9142, 9152, 4511, 4514, 4517, 4520, 4521, 4523, 4525, 4529, 4531,\n\t\t\t\t\t4546 };\n\t\t\titemDef.modelId = 50038;\n\t\t\titemDef.maleModel = 50039;\n\t\t\titemDef.femaleModel = 50039;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33038:\n\t\t\titemDef.name = \"Defence master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 10460, 10473, 41410, 41413, 41416, 41419, 41420, 41422, 41424,\n\t\t\t\t\t41428, 41430, 41445 };\n\t\t\titemDef.modelId = 50040;\n\t\t\titemDef.maleModel = 50041;\n\t\t\titemDef.femaleModel = 50041;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33039:\n\t\t\titemDef.name = \"Farming master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 14775, 14792, 22026, 22029, 22032, 22035, 22036, 22038, 22040,\n\t\t\t\t\t22044, 22046, 22061 };\n\t\t\titemDef.modelId = 50042;\n\t\t\titemDef.maleModel = 50043;\n\t\t\titemDef.femaleModel = 50043;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33040:\n\t\t\titemDef.name = \"Firemaking master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 8125, 9152, 4015, 4018, 4021, 4024, 4025, 4027, 4029, 4033, 4035,\n\t\t\t\t\t4050 };\n\t\t\titemDef.modelId = 50044;\n\t\t\titemDef.maleModel = 50045;\n\t\t\titemDef.femaleModel = 50045;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33041:\n\t\t\titemDef.name = \"Fishing master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 9144, 9152, 38202, 38205, 38208, 38211, 38212, 38214, 38216,\n\t\t\t\t\t38220, 38222, 38237 };\n\t\t\titemDef.modelId = 50046;\n\t\t\titemDef.maleModel = 50047;\n\t\t\titemDef.femaleModel = 50047;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33042:\n\t\t\titemDef.name = \"Fletching master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 6067, 9152, 33670, 33673, 33676, 33679, 33680, 33682, 33684,\n\t\t\t\t\t33688, 33690, 33705 };\n\t\t\titemDef.modelId = 50048;\n\t\t\titemDef.maleModel = 50049;\n\t\t\titemDef.femaleModel = 50049;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33043:\n\t\t\titemDef.name = \"Herblore master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 9145, 9156, 22414, 22417, 22420, 22423, 22424, 22426, 22428,\n\t\t\t\t\t22432, 22434, 22449 };\n\t\t\titemDef.modelId = 50050;\n\t\t\titemDef.maleModel = 50051;\n\t\t\titemDef.femaleModel = 50051;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33044:\n\t\t\titemDef.name = \"Hitpoints master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 818, 951, 8291, 8294, 8297, 8300, 8301, 8303, 8305, 8309, 8311,\n\t\t\t\t\t8319 };\n\t\t\titemDef.modelId = 50052;\n\t\t\titemDef.maleModel = 50053;\n\t\t\titemDef.femaleModel = 50053;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\titemDef.femaleOffset = 4;\n\t\t\tbreak;\n\t\tcase 33045:\n\t\t\titemDef.name = \"Hunter master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 5262, 6020, 8472, 8475, 8478, 8481, 8482, 8484, 8486, 8490, 8492,\n\t\t\t\t\t8507 };\n\t\t\titemDef.modelId = 50054;\n\t\t\titemDef.maleModel = 50055;\n\t\t\titemDef.femaleModel = 50055;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33046:\n\t\t\titemDef.name = \"Magic master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 43569, 43685, 6336, 6339, 6342, 6345, 6346, 6348, 6350, 6354,\n\t\t\t\t\t6356, 6371 };\n\t\t\titemDef.modelId = 50056;\n\t\t\titemDef.maleModel = 50057;\n\t\t\titemDef.femaleModel = 50057;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33047:\n\t\t\titemDef.name = \"Mining master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 36296, 36279, 10386, 10389, 10392, 10395, 10396, 10398, 10400,\n\t\t\t\t\t10404, 10406, 10421 };\n\t\t\titemDef.modelId = 50058;\n\t\t\titemDef.maleModel = 50059;\n\t\t\titemDef.femaleModel = 50059;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33048:\n\t\t\titemDef.name = \"Prayer master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 9163, 9168, 117, 120, 123, 126, 127, 127, 127, 127, 127, 127 };\n\t\t\titemDef.modelId = 50060;\n\t\t\titemDef.maleModel = 50061;\n\t\t\titemDef.femaleModel = 50061;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33049:\n\t\t\titemDef.name = \"Range master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 3755, 3998, 15122, 15125, 15128, 15131, 15132, 15134, 15136,\n\t\t\t\t\t15140, 15142, 15157 };\n\t\t\titemDef.modelId = 50062;\n\t\t\titemDef.maleModel = 50063;\n\t\t\titemDef.femaleModel = 50063;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33050:\n\t\t\titemDef.name = \"Runecrafting master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 9152, 8128, 10318, 10321, 10324, 10327, 10328, 10330, 10332,\n\t\t\t\t\t10336, 10338, 10353 };\n\t\t\titemDef.modelId = 50064;\n\t\t\titemDef.maleModel = 50065;\n\t\t\titemDef.femaleModel = 50065;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33051:\n\t\t\titemDef.name = \"Slayer master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811 };\n\t\t\titemDef.originalModelColors = new int[] { 912, 920 };\n\t\t\titemDef.modelId = 50066;\n\t\t\titemDef.maleModel = 50067;\n\t\t\titemDef.femaleModel = 50067;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33052:\n\t\t\titemDef.name = \"Smithing master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 8115, 9148, 10386, 10389, 10392, 10395, 10396, 10398, 10400,\n\t\t\t\t\t10404, 10406, 10421 };\n\t\t\titemDef.modelId = 50068;\n\t\t\titemDef.maleModel = 50069;\n\t\t\titemDef.femaleModel = 50069;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33053:\n\t\t\titemDef.name = \"Strength master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 935, 931, 27538, 27541, 27544, 27547, 27548, 27550, 27552, 27556,\n\t\t\t\t\t27558, 27573 };\n\t\t\titemDef.modelId = 50070;\n\t\t\titemDef.maleModel = 50071;\n\t\t\titemDef.femaleModel = 50071;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33054:\n\t\t\titemDef.name = \"Thieving master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 11, 0, 58779, 58782, 58785, 58788, 58789, 57891, 58793, 58797,\n\t\t\t\t\t58799, 58814 };\n\t\t\titemDef.modelId = 50072;\n\t\t\titemDef.maleModel = 50073;\n\t\t\titemDef.femaleModel = 50073;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33055:\n\t\t\titemDef.name = \"Woodcutting master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 25109, 24088, 6693, 6696, 6699, 6702, 6703, 6705, 6707, 6711,\n\t\t\t\t\t6713, 6728 };\n\t\t\titemDef.modelId = 50074;\n\t\t\titemDef.maleModel = 50075;\n\t\t\titemDef.femaleModel = 50075;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33057:\n\t\t\titemDef.name = \"Abyssal Scythe\";\n\t\t\titemDef.description = \"\tA Scythe recieved from the Trials of Xeric CUSTOM RAID.\";\n\t\t\titemDef.modelId = 50081;\n\t\t\titemDef.maleModel = 50080;\n\t\t\titemDef.femaleModel = 50080;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.maleOffset = -12;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33090:\n\t\t\titemDef.name = \"Goliath gloves (Black)\";\n\t\t\titemDef.description = \"\tA pair of gloves earned with blood.\";\n\t\t\titemDef.modelId = 50108;\n\t\t\titemDef.maleModel = 50100;\n\t\t\titemDef.femaleModel = 50101;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 539;\n\t\t\titemDef.modelRotation2 = 40;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33091:\n\t\t\titemDef.name = \"Goliath gloves (Red)\";\n\t\t\titemDef.description = \"\tA pair of gloves earned with blood.\";\n\t\t\titemDef.modelId = 50108;\n\t\t\titemDef.maleModel = 50102;\n\t\t\titemDef.femaleModel = 50103;\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 65046, 65051, 65056 };\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 539;\n\t\t\titemDef.modelRotation2 = 40;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33092:\n\t\t\titemDef.name = \"Goliath gloves (White)\";\n\t\t\titemDef.description = \"\tA pair of gloves earned with blood.\";\n\t\t\titemDef.modelId = 50108;\n\t\t\titemDef.maleModel = 50104;\n\t\t\titemDef.femaleModel = 50105;\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 64585, 64590, 64595 };\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 539;\n\t\t\titemDef.modelRotation2 = 40;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33093:\n\t\t\titemDef.name = \"Goliath gloves (Yellow)\";\n\t\t\titemDef.description = \"\tA pair of gloves earned with blood.\";\n\t\t\titemDef.modelId = 50108;\n\t\t\titemDef.maleModel = 50106;\n\t\t\titemDef.femaleModel = 50107;\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 9767, 9772, 9777 };\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 539;\n\t\t\titemDef.modelRotation2 = 40;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 12639:\n\t\tcase 12637:\n\t\tcase 12638:\n\t\t\titemDef.description = \"Provides players with infinite run energy!\";\n\t\t\tbreak;\n\t\tcase 33056:\n\t\t\titemDef.name = \"Events cape (slayer)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 933, 0, 0, 0, 0 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33081:\n\t\t\titemDef.name = \"Events cape (agility)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 669, 43430, 43430, 43430, 43430 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33080:\n\t\t\titemDef.name = \"Events cape (attack)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 9926, 1815, 1815, 1815, 1815 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33059:\n\t\t\titemDef.name = \"Events cape (construction)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 6967, 6343, 6343, 6343, 6343 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33061:\n\t\t\titemDef.name = \"Events cape (cooking)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 1819, 49685, 49685, 49685, 49685 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33062:\n\t\t\titemDef.name = \"Events cape (crafting)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 7994, 4516, 4516, 4516, 4516 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33063:\n\t\t\titemDef.name = \"Events cape (defence)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 39367, 10472, 10472, 10472, 10472 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33064:\n\t\t\titemDef.name = \"Events cape (farming)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 10698, 19734, 19734, 19734, 19734 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33065:\n\t\t\titemDef.name = \"Events cape (firemaking)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 10059, 4922, 4922, 4922, 4922 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33066:\n\t\t\titemDef.name = \"Events cape (fishing)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 10047, 36165, 36165, 36165, 36165 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33067:\n\t\t\titemDef.name = \"Events cape (fletching)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 10047, 31500, 31500, 31500, 31500 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33068:\n\t\t\titemDef.name = \"Events cape (herblore)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 10051, 20889, 20889, 20889, 20889 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33069:\n\t\t\titemDef.name = \"Events cape (hitpoints)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 1836, 8296, 8296, 8296, 8296 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33070:\n\t\t\titemDef.name = \"Events cape (hunter)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 6916, 8477, 8477, 8477, 8477 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33071:\n\t\t\titemDef.name = \"Events cape (magic)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 43556, 6339, 6339, 6339, 6339 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33072:\n\t\t\titemDef.name = \"Events cape (mining)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 34111, 10391, 10391, 10391, 10391 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33073:\n\t\t\titemDef.name = \"Events cape (prayer)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 9927, 2169, 2169, 2169, 2169 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33074:\n\t\t\titemDef.name = \"Events cape (range)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 3626, 20913, 20913, 20913, 20913 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33075:\n\t\t\titemDef.name = \"Events cape (runecrafting)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 10047, 10323, 10323, 10323, 10323 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33076:\n\t\t\titemDef.name = \"Events cape (smithing)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 10044, 5412, 5412, 5412, 5412 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33077:\n\t\t\titemDef.name = \"Events cape (strength)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 1819, 30487, 30487, 30487, 30487 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33078:\n\t\t\titemDef.name = \"Events cape (thieveing)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 8, 57636, 57636, 57636, 57636 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33079:\n\t\t\titemDef.name = \"Events cape (woodcutting)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 26007, 6570, 6570, 6570, 6570 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33101:\n\t\t\titemDef.name = \"Vorkath platebody\";\n\t\t\titemDef.description = \"Vorkath armour.\";\n\t\t\titemDef.modelId = 53100;\n\t\t\titemDef.maleModel = 53099;\n\t\t\titemDef.femaleModel = 53099;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33102:\n\t\t\titemDef.name = \"Vorkath platelegs\";\n\t\t\titemDef.description = \"Vorkath armour.\";\n\t\t\titemDef.modelId = 53102;\n\t\t\titemDef.maleModel = 53101;\n\t\t\titemDef.femaleModel = 53101;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33103:\n\t\t\titemDef.name = \"Vorkath boots\";\n\t\t\titemDef.description = \"Vorkath armour.\";\n\t\t\titemDef.modelId = 53104;\n\t\t\titemDef.maleModel = 53103;\n\t\t\titemDef.femaleModel = 53103;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33104:\n\t\t\titemDef.name = \"Vorkath gloves\";\n\t\t\titemDef.description = \"Vorkath armour.\";\n\t\t\titemDef.modelId = 53106;\n\t\t\titemDef.maleModel = 53105;\n\t\t\titemDef.femaleModel = 53105;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33105:\n\t\t\titemDef.name = \"Vorkath helmet\";\n\t\t\titemDef.description = \"Vorkath armour.\";\n\t\t\titemDef.modelId = 53108;\n\t\t\titemDef.maleModel = 53107;\n\t\t\titemDef.femaleModel = 53107;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33106:\n\t\t\titemDef.name = \"Tekton helmet\";\n\t\t\titemDef.description = \"Tekton armour.\";\n\t\t\titemDef.modelId = 53118;\n\t\t\titemDef.maleModel = 53117;\n\t\t\titemDef.femaleModel = 53117;\n\t\t\titemDef.modelZoom = 724;\n\t\t\titemDef.modelRotation1 = 81;\n\t\t\titemDef.modelRotation2 = 1670;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33107:\n\t\t\titemDef.name = \"Tekton platebody\";\n\t\t\titemDef.description = \"Tekton armour.\";\n\t\t\titemDef.modelId = 53110;\n\t\t\titemDef.maleModel = 53109;\n\t\t\titemDef.femaleModel = 53109;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33108:\n\t\t\titemDef.name = \"Tekton platelegs\";\n\t\t\titemDef.description = \"Tekton armour.\";\n\t\t\titemDef.modelId = 53112;\n\t\t\titemDef.maleModel = 53111;\n\t\t\titemDef.femaleModel = 53111;\n\t\t\titemDef.modelZoom = 1550;\n\t\t\titemDef.modelRotation1 = 344;\n\t\t\titemDef.modelRotation2 = 186;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = 11;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33109:\n\t\t\titemDef.name = \"Tekton gloves\";\n\t\t\titemDef.description = \"Tekton armour.\";\n\t\t\titemDef.modelId = 53116;\n\t\t\titemDef.maleModel = 53115;\n\t\t\titemDef.femaleModel = 53115;\n\t\t\titemDef.modelZoom = 830;\n\t\t\titemDef.modelRotation1 = 536;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33110:\n\t\t\titemDef.name = \"Tekton boots\";\n\t\t\titemDef.description = \"Tekton armour.\";\n\t\t\titemDef.modelId = 53114;\n\t\t\titemDef.maleModel = 53113;\n\t\t\titemDef.femaleModel = 53113;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33111:\n\t\t\titemDef.name = \"Anti-santa scythe\";\n\t\t\titemDef.description = \"Legend says this is the biggest arse scratcher around.\";\n\t\t\titemDef.modelId = 57002;\n\t\t\titemDef.maleModel = 57001;\n\t\t\titemDef.femaleModel = 57001;\n\t\t\titemDef.modelZoom = 3224;\n\t\t\titemDef.modelRotation1 = 539;\n\t\t\titemDef.modelRotation2 = 714;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33112:\n\t\t\titemDef.name = \"Dominion staff\";\n\t\t\titemDef.description = \"Dominion staff.\";\n\t\t\titemDef.modelId = 59029;\n\t\t\titemDef.maleModel = 59305;\n\t\t\titemDef.femaleModel = 59305;\n\t\t\titemDef.modelZoom = 1872;\n\t\t\titemDef.modelRotation1 = 288;\n\t\t\titemDef.modelRotation2 = 1685;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33113:\n\t\t\titemDef.name = \"Dominion sword\";\n\t\t\titemDef.description = \"Dominion sword.\";\n\t\t\titemDef.modelId = 59832;\n\t\t\titemDef.maleModel = 59306;\n\t\t\titemDef.femaleModel = 59306;\n\t\t\titemDef.modelZoom = 1829;\n\t\t\titemDef.modelRotation1 = 513;\n\t\t\titemDef.modelRotation2 = 546;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33114:\n\t\t\titemDef.name = \"Dominion crossbow\";\n\t\t\titemDef.description = \"Dominion crossbow.\";\n\t\t\titemDef.modelId = 59839;\n\t\t\titemDef.maleModel = 59304;\n\t\t\titemDef.femaleModel = 59304;\n\t\t\titemDef.modelZoom = 1490;\n\t\t\titemDef.modelRotation1 = 362;\n\t\t\titemDef.modelRotation2 = 791;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33115:\n\t\t\titemDef.name = \"Dragonfire Shield (e)\";\n\t\t\titemDef.description = \"unamed shield.\";\n\t\t\titemDef.modelId = 53120;\n\t\t\titemDef.maleModel = 53119;\n\t\t\titemDef.femaleModel = 53119;\n\t\t\titemDef.modelZoom = 2022;\n\t\t\titemDef.modelRotation1 = 540;\n\t\t\titemDef.modelRotation2 = 123;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[] { null, \"Wear\", \"Inspect\", \"Empty\", \"Drop\" };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33116:\n\t\t\titemDef.name = \"Zilyana's longbow\";\n\t\t\titemDef.description = \"A bow belonged to Zilyana.\";\n\t\t\titemDef.modelId = 53122;\n\t\t\titemDef.maleModel = 53121;\n\t\t\titemDef.femaleModel = 53121;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 636;\n\t\t\titemDef.modelRotation2 = 1010;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33117:\n\t\t\titemDef.name = \"Black dragon hunter crossbow\";\n\t\t\titemDef.description = \"Black dragon hunter crossbow.\";\n\t\t\titemDef.modelId = 53124;\n\t\t\titemDef.maleModel = 53123;\n\t\t\titemDef.femaleModel = 53123;\n\t\t\titemDef.modelZoom = 1554;\n\t\t\titemDef.modelRotation1 = 636;\n\t\t\titemDef.modelRotation2 = 1010;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33118:\n\t\t\titemDef.name = \"Vorkath blowpipe\";\n\t\t\titemDef.description = \"Vorkath blowpipe.\";\n\t\t\titemDef.modelId = 53126;\n\t\t\titemDef.maleModel = 53125;\n\t\t\titemDef.femaleModel = 53125;\n\t\t\titemDef.modelZoom = 1158;\n\t\t\titemDef.modelRotation1 = 768;\n\t\t\titemDef.modelRotation2 = 189;\n\t\t\titemDef.modelOffset1 = -7;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33119:\n\t\t\titemDef.name = \"Superior twisted bow\";\n\t\t\titemDef.description = \"An upgraded twisted bow.\";\n\t\t\titemDef.modelId = 53128;\n\t\t\titemDef.maleModel = 53127;\n\t\t\titemDef.femaleModel = 53127;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 720;\n\t\t\titemDef.modelRotation2 = 1500;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\titemDef.maleOffset = -4;\n\t\t\titemDef.femaleOffset = -4;\n\t\t\tbreak;\n\t\tcase 33123:\n\t\t\titemDef.name = \"Staff of sliske\";\n\t\t\titemDef.description = \"Staff of sliske.\";\n\t\t\titemDef.modelId = 59234;\n\t\t\titemDef.maleModel = 59233;\n\t\t\titemDef.femaleModel = 59233;\n\t\t\titemDef.modelZoom = 1872;\n\t\t\titemDef.modelRotation1 = 288;\n\t\t\titemDef.modelRotation2 = 1685;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33124:\n\t\t\titemDef.name = \"Twisted crossbow\";\n\t\t\titemDef.description = \"Twisted crossbow.\";\n\t\t\titemDef.modelId = 62777;\n\t\t\titemDef.maleModel = 62776;\n\t\t\titemDef.femaleModel = 62776;\n\t\t\titemDef.modelZoom = 926;\n\t\t\titemDef.modelRotation1 = 432;\n\t\t\titemDef.modelRotation2 = 258;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33125:\n\t\t\titemDef.name = \"Present\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modelId = 2426;\n\t\t\titemDef.modelZoom = 1180;\n\t\t\titemDef.modelRotation1 = 160;\n\t\t\titemDef.modelRotation2 = 172;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -14;\n\t\t\titemDef.modifiedModelColors = new int[] { 22410, 2999 };\n\t\t\titemDef.originalModelColors = new int[] { 933, 24410 };\n\t\t\titemDef.description = \"Santa's stolen present\";\n\t\t\tbreak;\n\t\tcase 33126:\n\t\t\titemDef.name = \"Christmas tree branch\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modelId = 2412;\n\t\t\titemDef.modelZoom = 940;\n\t\t\titemDef.modelRotation1 = 268;\n\t\t\titemDef.modelRotation2 = 152;\n\t\t\titemDef.modelOffset1 = -8;\n\t\t\titemDef.modelOffset2 = -21;\n\t\t\titemDef.modifiedModelColors = new int[] { 11144 };\n\t\t\titemDef.originalModelColors = new int[] { 6047 };\n\t\t\titemDef.description = \"Enter examine here.\";\n\t\t\tbreak;\n\t\tcase 33127:\n\t\t\titemDef.name = \"Kbd gloves\";\n\t\t\titemDef.description = \"Kbd gloves.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 33085 };\n\t\t\titemDef.originalModelColors = new int[] { 1060 };\n\t\t\titemDef.modelId = 53106;\n\t\t\titemDef.maleModel = 53105;\n\t\t\titemDef.femaleModel = 53105;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33128:\n\t\t\titemDef.name = \"Kbd boots\";\n\t\t\titemDef.description = \"Kbd boots.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 33198, 33202, 33206, 33215, 33210 };\n\t\t\titemDef.originalModelColors = new int[] { 1060, 1061, 1063, 1064, 1065 };\n\t\t\titemDef.modelId = 53104;\n\t\t\titemDef.maleModel = 53103;\n\t\t\titemDef.femaleModel = 53103;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33129:\n\t\t\titemDef.name = \"Kbd platelegs\";\n\t\t\titemDef.description = \"Kbd platelegs.\";\n\t\t\titemDef.modelId = 59994;\n\t\t\titemDef.maleModel = 59995;\n\t\t\titemDef.femaleModel = 59995;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33130:\n\t\t\titemDef.name = \"Kbd platebody\";\n\t\t\titemDef.description = \"Kbd platebody.\";\n\t\t\titemDef.modelId = 59998;\n\t\t\titemDef.maleModel = 59999;\n\t\t\titemDef.femaleModel = 59999;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33131:\n\t\t\titemDef.name = \"Kbd helmet\";\n\t\t\titemDef.description = \"Kbd helmet.\";\n\t\t\titemDef.modelId = 59996;\n\t\t\titemDef.maleModel = 59997;\n\t\t\titemDef.femaleModel = 59997;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33132:\n\t\t\titemDef.name = \"Kbd cape\";\n\t\t\titemDef.description = \"Kbd cape.\";\n\t\t\titemDef.modelId = 59992;\n\t\t\titemDef.maleModel = 59993;\n\t\t\titemDef.femaleModel = 59993;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33133:\n\t\t\titemDef.name = \"Anti-imp pet\";\n\t\t\titemDef.description = \"Anti-imp pet.\";\n\t\t\titemDef.modelId = 45294;\n\t\t\titemDef.modelZoom = 1500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33134:\n\t\t\titemDef.name = \"Anti-santa pet\";\n\t\t\titemDef.description = \"Anti-santa pet.\";\n\t\t\titemDef.modelId = 29030;\n\t\t\titemDef.modelZoom = 653;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 1966;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33135:\n\t\t\titemDef.name = \"Bandos mask\";\n\t\t\titemDef.description = \"Bandos helmet.\";\n\t\t\titemDef.modelId = 59987;\n\t\t\titemDef.maleModel = 59991;\n\t\t\titemDef.femaleModel = 59991;\n\t\t\titemDef.modelZoom = 800;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33136:\n\t\t\titemDef.name = \"Armadyl mask\";\n\t\t\titemDef.description = \"Armadyl mask.\";\n\t\t\titemDef.modelId = 59986;\n\t\t\titemDef.maleModel = 59990;\n\t\t\titemDef.femaleModel = 59990;\n\t\t\titemDef.modelZoom = 800;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33137:\n\t\t\titemDef.name = \"Zamorak mask\";\n\t\t\titemDef.description = \"Zamorak mask.\";\n\t\t\titemDef.modelId = 59985;\n\t\t\titemDef.maleModel = 59989;\n\t\t\titemDef.femaleModel = 59989;\n\t\t\titemDef.modelZoom = 800;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33138:\n\t\t\titemDef.name = \"Saradomin mask\";\n\t\t\titemDef.description = \"Saradomin mask.\";\n\t\t\titemDef.modelId = 59984;\n\t\t\titemDef.maleModel = 59988;\n\t\t\titemDef.femaleModel = 59988;\n\t\t\titemDef.modelZoom = 800;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33139:\n\t\t\titemDef.name = \"Zamarok godbow\";\n\t\t\titemDef.description = \"Zamarok godbow.\";\n\t\t\titemDef.modelId = 60560;//60553\n\t\t\titemDef.maleModel = 60560;\n\t\t\titemDef.femaleModel = 60560;\n\t\t\titemDef.modelZoom = 2100;\n\t\t\titemDef.modelRotation1 = 720;\n\t\t\titemDef.modelRotation2 = 1500;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33140:\n\t\t\titemDef.name = \"Saradomin godbow\";\n\t\t\titemDef.description = \"Saradomin godbow.\";\n\t\t\titemDef.modelId = 60555;\n\t\t\titemDef.maleModel = 60554;\n\t\t\titemDef.femaleModel = 60554;\n\t\t\titemDef.modelZoom = 2100;\n\t\t\titemDef.modelRotation1 = 720;\n\t\t\titemDef.modelRotation2 = 1500;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33141:\n\t\t\titemDef.name = \"Bandos godbow\";\n\t\t\titemDef.description = \"Bandos godbow.\";\n\t\t\titemDef.modelId = 60559;\n\t\t\titemDef.maleModel = 60558;\n\t\t\titemDef.femaleModel = 60558;\n\t\t\titemDef.modelZoom = 2100;\n\t\t\titemDef.modelRotation1 = 720;\n\t\t\titemDef.modelRotation2 = 1500;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33142:\n\t\t\titemDef.name = \"Fire cape (purple)\";\n\t\t\titemDef.description = \"Fire cape (purple).\";\n\t\t\titemDef.modelId = 9631;\n\t\t\titemDef.maleModel = 9638;\n\t\t\titemDef.femaleModel = 9640;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33148:\n\t\t\titemDef.name = \"Fire cape (cyan)\";\n\t\t\titemDef.description = \"Fire cape (cyan).\";\n\t\t\titemDef.modelId = 9631;\n\t\t\titemDef.maleModel = 9638;\n\t\t\titemDef.femaleModel = 9640;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33144:\n\t\t\titemDef.name = \"Fire cape (green)\";\n\t\t\titemDef.description = \"Fire cape (green).\";\n\t\t\titemDef.modelId = 9631;\n\t\t\titemDef.maleModel = 9638;\n\t\t\titemDef.femaleModel = 9640;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33145:\n\t\t\titemDef.name = \"Fire cape (red)\";\n\t\t\titemDef.description = \"Fire cape (red).\";\n\t\t\titemDef.modelId = 9631;\n\t\t\titemDef.maleModel = 9638;\n\t\t\titemDef.femaleModel = 9640;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33143:\n\t\t\titemDef.name = \"Infernal cape (blue)\";\n\t\t\titemDef.description = \"Infernal cape (blue).\";\n\t\t\titemDef.modifiedModelColors = new int[] { 5056, 5066, 924, 3005 };\n\t\t\titemDef.originalModelColors = new int[] { 39851, 39851, 39851, 39851 };\n\t\t\titemDef.modelId = 33144;\n\t\t\titemDef.maleModel = 33103;\n\t\t\titemDef.femaleModel = 33111;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33146:\n\t\t\titemDef.name = \"Infernal cape (green)\";\n\t\t\titemDef.description = \"Infernal cape (green).\";\n\t\t\titemDef.modifiedModelColors = new int[] { 5056, 5066, 924, 3005 };\n\t\t\titemDef.originalModelColors = new int[] { 21167, 21167, 21167, 21167 };\n\t\t\titemDef.modelId = 33144;\n\t\t\titemDef.maleModel = 33103;\n\t\t\titemDef.femaleModel = 33111;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33147:\n\t\t\titemDef.name = \"Infernal cape (purple)\";\n\t\t\titemDef.description = \"Infernal cape (purple).\";\n\t\t\titemDef.modifiedModelColors = new int[] { 5056, 5066, 924, 3005 };\n\t\t\titemDef.originalModelColors = new int[] { 53160, 53160, 53160, 53160 };\n\t\t\titemDef.modelId = 33144;\n\t\t\titemDef.maleModel = 33103;\n\t\t\titemDef.femaleModel = 33111;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33150:\n\t\t\titemDef.name = \"Infernal key piece 1\";\n\t\t\titemDef.description = \"Infernal key piece 1.\";\n\t\t\titemDef.modelId = 61001;\n\t\t\titemDef.modelZoom = 1200;\n\t\t\titemDef.modelRotation1 = 534;\n\t\t\titemDef.modelRotation2 = 222;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Combine\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33151:\n\t\t\titemDef.name = \"Infernal key piece 2\";\n\t\t\titemDef.description = \"Infernal key piece 2.\";\n\t\t\titemDef.modelId = 61002;\n\t\t\titemDef.modelZoom = 1200;\n\t\t\titemDef.modelRotation1 = 534;\n\t\t\titemDef.modelRotation2 = 222;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Combine\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33152:\n\t\t\titemDef.name = \"Infernal key piece 3\";\n\t\t\titemDef.description = \"Infernal key piece 3.\";\n\t\t\titemDef.modelId = 61003;\n\t\t\titemDef.modelZoom = 1200;\n\t\t\titemDef.modelRotation1 = 534;\n\t\t\titemDef.modelRotation2 = 222;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Combine\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33153:\n\t\t\titemDef.name = \"Infernal key\";\n\t\t\titemDef.description = \"Infernal key.\";\n\t\t\titemDef.modelId = 61111;\n\t\t\titemDef.modelZoom = 1200;\n\t\t\titemDef.modelRotation1 = 534;\n\t\t\titemDef.modelRotation2 = 222;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\t\t//DOPES ITEMS NIGGAHAHAHAHAHAHAH\n\t\tcase 2749:\n\t\t\titemDef.name = \"Bloody Axe\";\n\t\t\titemDef.description = \"Look at all that blood!\";\n\t\t\titemDef.modelId = 65495;\n\t\t\titemDef.femaleModel = 65495;\n\t\t\titemDef.maleModel = 65495;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 2750:\n\t\t\titemDef.name = \"Bloody Axe Offhand\";\n\t\t\titemDef.description = \"Look at all that blood!\";\n\t\t\titemDef.modelId = 65496;\n\t\t\titemDef.femaleModel = 65496;\n\t\t\titemDef.maleModel = 65496;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33154:\n\t\t\titemDef.name = \"Infernal mystery box\";\n\t\t\titemDef.description = \"Infernal mystery box.\";\n\t\t\titemDef.modelId = 61110;\n\t\t\titemDef.modelZoom = 1180;\n\t\t\titemDef.modelRotation1 = 160;\n\t\t\titemDef.modelRotation2 = 172;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -14;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Open\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33155:\n\t\t\titemDef.name = \"Ethereal sword (red)\";\n\t\t\titemDef.description = \"Ethereal sword (red).\";\n\t\t\titemDef.modelId = 61005;\n\t\t\titemDef.maleModel = 61004;\n\t\t\titemDef.femaleModel = 61004;\n\t\t\titemDef.modelZoom = 1645;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33156:\n\t\t\titemDef.name = \"Ethereal sword (blue)\";\n\t\t\titemDef.description = \"Ethereal sword (blue).\";\n\t\t\titemDef.modelId = 61006;\n\t\t\titemDef.maleModel = 61007;\n\t\t\titemDef.femaleModel = 61007;\n\t\t\titemDef.modelZoom = 1645;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33157:\n\t\t\titemDef.name = \"Ethereal sword (green)\";\n\t\t\titemDef.description = \"Ethereal sword (green).\";\n\t\t\titemDef.modelId = 61008;\n\t\t\titemDef.maleModel = 61009;\n\t\t\titemDef.femaleModel = 61009;\n\t\t\titemDef.modelZoom = 1645;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33158:\n\t\t\titemDef.name = \"Dagon' hai top\";\n\t\t\titemDef.description = \"An elite dark mages robes.\";\n\t\t\titemDef.modelId = 60317;\n\t\t\titemDef.maleModel = 43614;\n\t\t\titemDef.femaleModel = 43689;\n\t\t\titemDef.anInt188 = 44594;\n\t\t\titemDef.anInt164 = 43681;\n\t\t\titemDef.modelZoom = 1697;\n\t\t\titemDef.modelRotation1 = 536;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 7;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33159:\n\t\t\titemDef.name = \"Dagon' hai hat\";\n\t\t\titemDef.description = \"An elite dark mages hat.\";\n\t\t\titemDef.modelId = 60319;\n\t\t\titemDef.maleModel = 60318;\n\t\t\titemDef.femaleModel = 60318;\n\t\t\titemDef.anInt188 = -1;\n\t\t\titemDef.anInt164 = -1;\n\t\t\titemDef.modelZoom = 1373;\n\t\t\titemDef.modelRotation1 = 98;\n\t\t\titemDef.modelRotation2 = 1988;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33160:\n\t\t\titemDef.name = \"Dagon' hai robe\";\n\t\t\titemDef.description = \"An elite dark mages robe.\";\n\t\t\titemDef.modelId = 60321;\n\t\t\titemDef.maleModel = 60320;\n\t\t\titemDef.femaleModel = 60320;\n\t\t\titemDef.anInt188 = -1;\n\t\t\titemDef.anInt164 = -1;\n\t\t\titemDef.modelZoom = 2216;\n\t\t\titemDef.modelRotation1 = 572;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 14;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33161:\n\t\t\titemDef.name = \"Blue infernal cape mix\";\n\t\t\titemDef.description = \"Changes the color of the Infernal Cape to Blue.\";\n\t\t\titemDef.modelId = 8956;\n\t\t\titemDef.modelZoom = 842;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Use\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33162:\n\t\t\titemDef.name = \"Green infernal cape mix\";\n\t\t\titemDef.description = \"Changes the color of the Infernal Cape to Green.\";\n\t\t\titemDef.modelId = 8956;\n\t\t\titemDef.modelZoom = 842;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Use\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33163:\n\t\t\titemDef.name = \"Purple infernal cape mix\";\n\t\t\titemDef.description = \"Changes the color of the Infernal Cape to Purple.\";\n\t\t\titemDef.modelId = 8956;\n\t\t\titemDef.modelZoom = 842;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Use\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33164:\n\t\t\titemDef.name = \"Purple firecape mix\";\n\t\t\titemDef.description = \"Changes the color of the firecape to purple.\";\n\t\t\titemDef.modelId = 8956;\n\t\t\titemDef.modelZoom = 842;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Use\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33165:\n\t\t\titemDef.name = \"Cyan firecape mix\";\n\t\t\titemDef.description = \"Changes the color of the firecape to cyan.\";\n\t\t\titemDef.modelId = 8956;\n\t\t\titemDef.modelZoom = 842;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Use\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33166:\n\t\t\titemDef.name = \"Green firecape mix\";\n\t\t\titemDef.description = \"Changes the color of the firecape to green.\";\n\t\t\titemDef.modelId = 8956;\n\t\t\titemDef.modelZoom = 842;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Use\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33167:\n\t\t\titemDef.name = \"Red firecape mix\";\n\t\t\titemDef.description = \"Changes the color of the firecape to red.\";\n\t\t\titemDef.modelId = 8956;\n\t\t\titemDef.modelZoom = 842;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Use\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33169:\n\t\t\titemDef.name = \"K'ril robe top\";\n\t\t\titemDef.description = \"A top worn by magic-using followers of Zamorak.\";\n\t\t\titemDef.modelId = 62558;\n\t\t\titemDef.maleModel = 62559;\n\t\t\titemDef.femaleModel = 62559;\n\t\t\titemDef.modelZoom = 1358;\n\t\t\titemDef.modelRotation1 = 514;\n\t\t\titemDef.modelRotation2 = 2041;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33170:\n\t\t\titemDef.name = \"K'ril robe bottom\";\n\t\t\titemDef.description = \"A robe worn by magic-using followers of Zamorak.\";\n\t\t\titemDef.modelId = 62553;\n\t\t\titemDef.maleModel = 62554;\n\t\t\titemDef.femaleModel = 62554;\n\t\t\titemDef.modelZoom = 1690;\n\t\t\titemDef.modelRotation1 = 435;\n\t\t\titemDef.modelRotation2 = 9;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 7;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33171:\n\t\t\titemDef.name = \"K'ril hat\";\n\t\t\titemDef.description = \"A hat worn by magic-using followers of Zamorak.\";\n\t\t\titemDef.modelId = 62551;\n\t\t\titemDef.maleModel = 62552;\n\t\t\titemDef.femaleModel = 62552;\n\t\t\titemDef.modelZoom = 1236;\n\t\t\titemDef.modelRotation1 = 118;\n\t\t\titemDef.modelRotation2 = 10;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -12;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33172:\n\t\t\titemDef.name = \"K'ril swords\";\n\t\t\titemDef.description = \"Sheath & Unsheath this sword in the Equipment tab. Hits an enemy twice.\";\n\t\t\titemDef.equipActions[2] = \"Sheath\";\n\t\t\titemDef.modelId = 62556;\n\t\t\titemDef.maleModel = 62557;\n\t\t\titemDef.femaleModel = 62557;\n\t\t\titemDef.modelZoom = 1650;\n\t\t\titemDef.modelRotation1 = 498;\n\t\t\titemDef.modelRotation2 = 1300;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33173:\n\t\t\titemDef.name = \"K'ril swords (sheathed)\";\n\t\t\titemDef.description = \"Sheath & Unsheath this sword in the Equipment tab. Hits an enemy twice.\";\n\t\t\titemDef.equipActions[2] = \"Unsheath\";\n\t\t\titemDef.modelId = 62556;\n\t\t\titemDef.maleModel = 62556;\n\t\t\titemDef.femaleModel = 62556;\n\t\t\titemDef.modelZoom = 1650;\n\t\t\titemDef.modelRotation1 = 498;\n\t\t\titemDef.modelRotation2 = 1300;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33174:\n\t\t\titemDef.name = \"Pet demonic gorilla\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 31241;\n\t\t\titemDef.modelZoom = 16000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33175:\n\t\t\titemDef.name = \"Pet crawling hand\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5071;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33176:\n\t\t\titemDef.name = \"Pet cave bug\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 23854;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33177:\n\t\t\titemDef.name = \"Pet cave crawler\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5066;\n\t\t\titemDef.modelZoom = 2300;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33178:\n\t\t\titemDef.name = \"Pet banshee\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5063;\n\t\t\titemDef.modelZoom = 3200;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33179:\n\t\t\titemDef.name = \"Pet cave slime\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5786;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33180:\n\t\t\titemDef.name = \"Pet rockslug\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5084;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33181:\n\t\t\titemDef.name = \"Pet cockatrice\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5070;\n\t\t\titemDef.modelZoom = 3200;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33182:\n\t\t\titemDef.name = \"Pet pyrefiend\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5083;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33183:\n\t\t\titemDef.name = \"Pet basilisk\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5064;\n\t\t\titemDef.modelZoom = 3000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33184:\n\t\t\titemDef.name = \"Pet infernal mage\";\n\t\t\titemDef.modifiedModelColors = new int[] { -26527, -24618, -25152, -25491, 119 };\n\t\t\titemDef.originalModelColors = new int[] { 924, 148, 0, 924, 924 };\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5047;\n\t\t\titemDef.modelZoom = 3940;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 84;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33185:\n\t\t\titemDef.name = \"Pet bloodveld\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5065;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33186:\n\t\t\titemDef.name = \"Pet jelly\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5081;\n\t\t\titemDef.modelZoom = 3000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33187:\n\t\t\titemDef.name = \"Pet turoth\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5086;\n\t\t\titemDef.modelZoom = 2600;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33188:\n\t\t\titemDef.name = \"Pet aberrant spectre\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5085;\n\t\t\titemDef.modelZoom = 6500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 450;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33189:\n\t\t\titemDef.name = \"Pet dust devil\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5076;\n\t\t\titemDef.modelZoom = 3000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33190:\n\t\t\titemDef.name = \"Pet kurask\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5082;\n\t\t\titemDef.modelZoom = 5000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33191:\n\t\t\titemDef.name = \"Pet skeletal wyvern\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 10350;\n\t\t\titemDef.modelZoom = 1104;\n\t\t\titemDef.modelRotation1 = 27;\n\t\t\titemDef.modelRotation2 = 1634;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33192:\n\t\t\titemDef.name = \"Pet garygoyle\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5078;\n\t\t\titemDef.modelZoom = 4000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33193:\n\t\t\titemDef.name = \"Pet nechryael\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5074;\n\t\t\titemDef.modelZoom = 4000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33194:\n\t\t\titemDef.name = \"Pet abyssal demon\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5062;\n\t\t\titemDef.modelZoom = 5000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33195:\n\t\t\titemDef.name = \"Pet dark beast\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 26395;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33196:\n\t\t\titemDef.name = \"Pet night beast\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32933;\n\t\t\titemDef.modelZoom = 7000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33197:\n\t\t\titemDef.name = \"Pet greater abyssal demon\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32921;\n\t\t\titemDef.modelZoom = 5000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33198:\n\t\t\titemDef.name = \"Pet crushing hand\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32922;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33199:\n\t\t\titemDef.name = \"Pet chasm crawler\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32918;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33200:\n\t\t\titemDef.name = \"Pet screaming banshee\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32823;\n\t\t\titemDef.modelZoom = 5500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33201:\n\t\t\titemDef.name = \"Pet twisted banshee\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32847;\n\t\t\titemDef.modelZoom = 5500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33202:\n\t\t\titemDef.name = \"Pet giant rockslug\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32919;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33203:\n\t\t\titemDef.name = \"Pet cockathrice\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32920;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33204:\n\t\t\titemDef.name = \"Pet flaming pyrelord\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32923;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33205:\n\t\t\titemDef.name = \"Pet monstrous basilisk\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32924;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33206:\n\t\t\titemDef.name = \"Pet malevolent mage\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32929;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33207:\n\t\t\titemDef.name = \"Pet insatiable bloodveld\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32926;\n\t\t\titemDef.modelZoom = 5000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33208:\n\t\t\titemDef.name = \"Pet insatiable mutated bloodveld\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32925;\n\t\t\titemDef.modelZoom = 5000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33209:\n\t\t\titemDef.name = \"Pet vitreous jelly\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32852;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33210:\n\t\t\titemDef.name = \"Pet vitreous warped jelly\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32917;\n\t\t\titemDef.modelZoom = 6000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33211:\n\t\t\titemDef.name = \"Pet cave abomination\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32935;\n\t\t\titemDef.modelZoom = 5500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33212:\n\t\t\titemDef.name = \"Pet abhorrent spectre\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32930;\n\t\t\titemDef.modelZoom = 6500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33213:\n\t\t\titemDef.name = \"pet repugnant spectre\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32926;\n\t\t\titemDef.modelZoom = 6500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33214:\n\t\t\titemDef.name = \"Pet choke devil\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32927;\n\t\t\titemDef.modelZoom = 6000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33215:\n\t\t\titemDef.name = \"Pet king kurask\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32934;\n\t\t\titemDef.modelZoom = 8000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33217:\n\t\t\titemDef.name = \"Pet nuclear smoke devil\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32928;\n\t\t\titemDef.modelZoom = 5500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33218:\n\t\t\titemDef.name = \"Pet marble gargoyle\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34251;\n\t\t\titemDef.modelZoom = 8000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33219:\n\t\t\titemDef.name = \"Pet nechryarch\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32932;\n\t\t\titemDef.modelZoom = 6500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33220:\n\t\t\titemDef.name = \"Pet Patrity\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32035;\n\t\t\titemDef.modelZoom = 653;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1535;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33221:\n\t\t\titemDef.name = \"Pet xarpus\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35383;\n\t\t\titemDef.modelZoom = 14000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33222:\n\t\t\titemDef.name = \"Pet nyclocas vasilias\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35182;\n\t\t\titemDef.modelZoom = 12000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33223:\n\t\t\titemDef.name = \"Pet pestilent bloat\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35404;\n\t\t\titemDef.modelZoom = 8500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33224:\n\t\t\titemDef.name = \"Pet maiden of sugadinti\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35385;\n\t\t\titemDef.modelZoom = 8500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33225:\n\t\t\titemDef.name = \"Pet lizardman shaman\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 4039;\n\t\t\titemDef.modelZoom = 8500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33226:\n\t\t\titemDef.name = \"Pet abyssal sire\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 29477;\n\t\t\titemDef.modelZoom = 9000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33227:\n\t\t\titemDef.name = \"Pet black demon\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 31984;\n\t\t\titemDef.modelZoom = 1104;\n\t\t\titemDef.modelRotation1 = 144;\n\t\t\titemDef.modelRotation2 = 1826;\n\t\t\titemDef.modelOffset1 = 7;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 11802:\n\t\tcase 11804:\n\t\tcase 11806:\n\t\tcase 11808:\n\t\t\titemDef.equipActions[2] = \"Sheath\";\n\t\t\tbreak;// godsword sheathing operating\n\n\t\tcase 33228:\n\t\t\titemDef.name = \"Pet greater demon\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32015;\n\t\t\titemDef.modelZoom = 902;\n\t\t\titemDef.modelRotation1 = 216;\n\t\t\titemDef.modelRotation2 = 138;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.modelOffset2 = -16;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33229:\n\t\t\titemDef.name = \"Armadyl godsword (sheathed)\";\n\t\t\titemDef.description = \"Armadyl godsword (sheathed)\";\n\t\t\titemDef.equipActions[2] = \"Unsheath\";\n\t\t\titemDef.modelId = 28075;\n\t\t\titemDef.maleModel = 62683;\n\t\t\titemDef.femaleModel = 62683;\n\t\t\titemDef.modelZoom = 1957;\n\t\t\titemDef.modelRotation1 = 498;\n\t\t\titemDef.modelRotation2 = 494;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33230:\n\t\t\titemDef.name = \"Bandos godsword (sheathed)\";\n\t\t\titemDef.description = \"Bandos godsword (sheathed)\";\n\t\t\titemDef.equipActions[2] = \"Unsheath\";\n\t\t\titemDef.modelId = 28059;\n\t\t\titemDef.maleModel = 62684;\n\t\t\titemDef.femaleModel = 62684;\n\t\t\titemDef.modelZoom = 1957;\n\t\t\titemDef.modelRotation1 = 498;\n\t\t\titemDef.modelRotation2 = 494;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33231:\n\t\t\titemDef.name = \"Saradomin godsword (sheathed)\";\n\t\t\titemDef.description = \"Saradomin godsword (sheathed)\";\n\t\t\titemDef.equipActions[2] = \"Unsheath\";\n\t\t\titemDef.modelId = 28070;\n\t\t\titemDef.maleModel = 62685;\n\t\t\titemDef.femaleModel = 62685;\n\t\t\titemDef.modelZoom = 1957;\n\t\t\titemDef.modelRotation1 = 498;\n\t\t\titemDef.modelRotation2 = 494;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33232:\n\t\t\titemDef.name = \"Zamorak godsword (sheathed)\";\n\t\t\titemDef.description = \"Zamorak godsword (sheathed)\";\n\t\t\titemDef.equipActions[2] = \"Unsheath\";\n\t\t\titemDef.modelId = 28060;\n\t\t\titemDef.maleModel = 62686;\n\t\t\titemDef.femaleModel = 62686;\n\t\t\titemDef.modelZoom = 1957;\n\t\t\titemDef.modelRotation1 = 498;\n\t\t\titemDef.modelRotation2 = 494;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33233:\n\t\t\titemDef.name = \"Pet revenant imp\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34156;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33234:\n\t\t\titemDef.name = \"Pet revenant goblin\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34262;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33235:\n\t\t\titemDef.name = \"Pet revenant pyrefiend\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34142;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33236:\n\t\t\titemDef.name = \"Pet revenant hobgoblin\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34157;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33237:\n\t\t\titemDef.name = \"Pet revenant cyclops\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34155;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33238:\n\t\t\titemDef.name = \"Pet revenant hellhound\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34143;\n\t\t\titemDef.modelZoom = 3500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33239:\n\t\t\titemDef.name = \"Pet revenant demon\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32015;\n\t\t\titemDef.modifiedModelColors = new int[] { 1690, 910, 912, 1814, 1938 };\n\t\t\titemDef.originalModelColors = new int[] { 43078, 43078, 43078, 43078, 43078, 43078 };\n\t\t\titemDef.modelZoom = 902;\n\t\t\titemDef.modelRotation1 = 216;\n\t\t\titemDef.modelRotation2 = 138;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.modelOffset2 = -16;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33240:\n\t\t\titemDef.name = \"Pet revenant ork\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34154;\n\t\t\titemDef.modelZoom = 3500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33242:\n\t\t\titemDef.name = \"Pet revenant dark beast\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34158;\n\t\t\titemDef.modelZoom = 6500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33243:\n\t\t\titemDef.name = \"Pet revenant knight\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34145;\n\t\t\titemDef.modelZoom = 3000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33244:\n\t\t\titemDef.name = \"Pet revenant dragon\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34163;\n\t\t\titemDef.modelZoom = 7500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33245:\n\t\t\titemDef.name = \"Pet glob\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 26074;\n\t\t\titemDef.modelZoom = 10000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33246:\n\t\t\titemDef.name = \"Pet ice queen\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 104;\n\t\t\titemDef.modifiedModelColors = new int[] { 41, 61, 4550, 12224, 25238, 6798 };\n\t\t\titemDef.originalModelColors = new int[] { -22052, -26150, -24343, -22052, -22052, -23327 };\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33247:\n\t\t\titemDef.name = \"Pet enraged tarn\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60322;\n\t\t\titemDef.modelZoom = 6500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33248:\n\t\t\titemDef.name = \"Pet jaltok-jad\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 33012;\n\t\t\titemDef.modelZoom = 12000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33249:\n\t\t\titemDef.name = \"Pet rune dragon\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34668;\n\t\t\titemDef.modelZoom = 2541;\n\t\t\titemDef.modelRotation1 = 83;\n\t\t\titemDef.modelRotation2 = 1826;\n\t\t\titemDef.modelOffset1 = -97;\n\t\t\titemDef.modelOffset2 = 9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33271:\n\t\t\titemDef.name = \"Moo\";\n\t\t\titemDef.description = \"cow goes moo.\";\n\t\t\titemDef.modelId = 23889;\n\t\t\titemDef.modelZoom = 2541;\n\t\t\titemDef.modelRotation1 = 83;\n\t\t\titemDef.modelRotation2 = 1826;\n\t\t\titemDef.modelOffset1 = -97;\n\t\t\titemDef.modelOffset2 = 9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33250:\n\t\t\titemDef.name = \"Swift gloves (Black)\";\n\t\t\titemDef.description = \"Watch my speedy hands!\";\n\t\t\titemDef.modelId = 62655;\n\t\t\titemDef.maleModel = 62657;\n\t\t\titemDef.femaleModel = 62658;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33251:\n\t\t\titemDef.name = \"Swift gloves (Red)\";\n\t\t\titemDef.description = \"Watch my speedy hands!\";\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 65046, 65051, 65056 };\n\t\t\titemDef.modelId = 62655;\n\t\t\titemDef.maleModel = 62659;\n\t\t\titemDef.femaleModel = 62660;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33252:\n\t\t\titemDef.name = \"Swift gloves (White)\";\n\t\t\titemDef.description = \"Watch my speedy hands!\";\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 64585, 64590, 64595 };\n\t\t\titemDef.modelId = 62655;\n\t\t\titemDef.maleModel = 62661;\n\t\t\titemDef.femaleModel = 62662;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33253:\n\t\t\titemDef.name = \"Swift gloves (Yellow)\";\n\t\t\titemDef.description = \"Watch my speedy hands!\";\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 9767, 9772, 9777 };\n\t\t\titemDef.modelId = 62655;\n\t\t\titemDef.maleModel = 62663;\n\t\t\titemDef.femaleModel = 62664;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33254:\n\t\t\titemDef.name = \"Spellcaster gloves (Black)\";\n\t\t\titemDef.description = \"\tSome pretty fantastical gloves.\";\n\t\t\titemDef.modelId = 62656;\n\t\t\titemDef.maleModel = 62665;\n\t\t\titemDef.femaleModel = 62666;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33255:\n\t\t\titemDef.name = \"Spellcaster gloves (Red)\";\n\t\t\titemDef.description = \"\tSome pretty fantastical gloves.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 65046, 65051, 65056 };\n\t\t\titemDef.modelId = 62656;\n\t\t\titemDef.maleModel = 62667;\n\t\t\titemDef.femaleModel = 62668;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33256:\n\t\t\titemDef.name = \"Spellcaster gloves (White)\";\n\t\t\titemDef.description = \"\tSome pretty fantastical gloves.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 64585, 64590, 64595 };\n\t\t\titemDef.modelId = 62656;\n\t\t\titemDef.maleModel = 62669;\n\t\t\titemDef.femaleModel = 62670;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33257:\n\t\t\titemDef.name = \"Spellcaster gloves (Yellow)\";\n\t\t\titemDef.description = \"\tSome pretty fantastical gloves.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 9767, 9772, 9777 };\n\t\t\titemDef.modelId = 62656;\n\t\t\titemDef.maleModel = 62671;\n\t\t\titemDef.femaleModel = 62672;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33258:\n\t\t\titemDef.name = \"Tekton longsword\";\n\t\t\titemDef.description = \"Tekton longsword.\";\n\t\t\titemDef.modelId = 62682;\n\t\t\titemDef.maleModel = 62681;\n\t\t\titemDef.femaleModel = 62681;\n\t\t\titemDef.modelZoom = 1445;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33259:\n\t\t\titemDef.name = \"Pet wyrm\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 36922;\n\t\t\titemDef.modelZoom = 2547;\n\t\t\titemDef.modelRotation1 = 97;\n\t\t\titemDef.modelRotation2 = 1820;\n\t\t\titemDef.modelOffset1 = -7;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33260:\n\t\t\titemDef.name = \"Pet drake\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 36160;\n\t\t\titemDef.modelZoom = 6500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33261:\n\t\t\titemDef.name = \"Pet wyrm\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 36922;\n\t\t\titemDef.modelZoom = 2547;\n\t\t\titemDef.modelRotation1 = 97;\n\t\t\titemDef.modelRotation2 = 1820;\n\t\t\titemDef.modelOffset1 = -7;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33262:\n\t\t\titemDef.name = \"Valentines Balloon\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 62766;\n\t\t\titemDef.maleModel = 62767;\n\t\t\titemDef.femaleModel = 62767;\n\t\t\titemDef.modelZoom = 2200;\n\t\t\titemDef.modelRotation1 = 270;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33263:\n\t\t\titemDef.name = \"Cupid bow\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 62768;\n\t\t\titemDef.maleModel = 62769;\n\t\t\titemDef.femaleModel = 62769;\n\t\t\titemDef.modelZoom = 1072;\n\t\t\titemDef.modelRotation1 = 127;\n\t\t\titemDef.modelRotation2 = 103;\n\t\t\titemDef.modelOffset1 = -5;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33264:\n\t\t\titemDef.name = \"Halo and horns\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 62771;\n\t\t\titemDef.maleModel = 62770;\n\t\t\titemDef.femaleModel = 62770;\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation1 = 228;\n\t\t\titemDef.modelRotation2 = 141;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33265:\n\t\t\titemDef.name = \"Heart\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 62782;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33266:\n\t\t\titemDef.name = \"Valentines mystery box\";\n\t\t\titemDef.description = \"You make me hard.\";\n\t\t\titemDef.modelId = 62773;\n\t\t\titemDef.modelZoom = 464;\n\t\t\titemDef.modelRotation1 = 423;\n\t\t\titemDef.modelRotation2 = 1928;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Open\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33267:\n\t\t\titemDef.name = \"Staff of adoration\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 62774;\n\t\t\titemDef.maleModel = 62775;\n\t\t\titemDef.femaleModel = 62775;\n\t\t\titemDef.modelZoom = 1579;\n\t\t\titemDef.modelRotation1 = 660;\n\t\t\titemDef.modelRotation2 = 48;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33268:\n\t\t\titemDef.name = \"Valentines crossbow\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 62778;\n\t\t\titemDef.maleModel = 62779;\n\t\t\titemDef.femaleModel = 62779;\n\t\t\titemDef.modelZoom = 1200;\n\t\t\titemDef.modelRotation1 = 432;\n\t\t\titemDef.modelRotation2 = 258;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33269:\n\t\t\titemDef.name = \"Onyxia Mystery Box\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 2426;\n\t\t\titemDef.modelZoom = 1180;\n\t\t\titemDef.modelRotation1 = 160;\n\t\t\titemDef.modelRotation2 = 172;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -14;\n\t\t\titemDef.modifiedModelColors = new int[] { 22410, 2999 };\n\t\t\titemDef.originalModelColors = new int[] { 2130, 38693 };\n\t\t\titemDef.description = \"Chances at several unqiue items found only in this box! (ex: Tekton Armor)\";\n\t\t\tbreak;\n\t\tcase 33270:\n\t\t\titemDef.name = \"Dragon Hunter Box\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 2426;\n\t\t\titemDef.modelZoom = 1180;\n\t\t\titemDef.modelRotation1 = 160;\n\t\t\titemDef.modelRotation2 = 172;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -14;\n\t\t\titemDef.modifiedModelColors = new int[] { 22410, 2999 };\n\t\t\titemDef.originalModelColors = new int[] { 926, 1050 };\n\t\t\titemDef.description = \"Chances for items that give bonuses toward dragons. (ex: Dragonhunter Lance)\";\n\t\t\tbreak;\n\t\tcase 33273:\n\t\t\titemDef.name = \"Ancient sword\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60201;\n\t\t\titemDef.maleModel = 60200;\n\t\t\titemDef.femaleModel = 60200;\n\t\t\titemDef.modelZoom = 1900;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33274:\n\t\t\titemDef.name = \"Armadyl staff\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60203;\n\t\t\titemDef.maleModel = 60202;\n\t\t\titemDef.femaleModel = 60202;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33275:\n\t\t\titemDef.name = \"Bork axe\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60205;\n\t\t\titemDef.maleModel = 60204;\n\t\t\titemDef.femaleModel = 60204;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33276:\n\t\t\titemDef.name = \"Bree bow\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60207;\n\t\t\titemDef.maleModel = 60206;\n\t\t\titemDef.femaleModel = 60206;\n\t\t\titemDef.modelZoom = 1700;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33277:\n\t\t\titemDef.name = \"Infernal staff\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60209;\n\t\t\titemDef.maleModel = 60208;\n\t\t\titemDef.femaleModel = 60208;\n\t\t\titemDef.modelZoom = 2200;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33278:\n\t\t\titemDef.name = \"Infernal longsword\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60211;\n\t\t\titemDef.maleModel = 60210;\n\t\t\titemDef.femaleModel = 60210;\n\t\t\titemDef.modelZoom = 1900;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33279:\n\t\t\titemDef.name = \"Necrolord staff\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60213;\n\t\t\titemDef.maleModel = 60212;\n\t\t\titemDef.femaleModel = 60212;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33280:\n\t\t\titemDef.name = \"Insert name here\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60215;\n\t\t\titemDef.maleModel = 60214;\n\t\t\titemDef.femaleModel = 60214;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33281:\n\t\t\titemDef.name = \"Infernal bow\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60219;\n\t\t\titemDef.maleModel = 60218;\n\t\t\titemDef.femaleModel = 60218;\n\t\t\titemDef.modelZoom = 3334;\n\t\t\titemDef.modelRotation1 = 533;\n\t\t\titemDef.modelRotation2 = 1294;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33282:\n\t\t\titemDef.name = \"Infernal warhammer\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60221;\n\t\t\titemDef.maleModel = 60220;\n\t\t\titemDef.femaleModel = 60220;\n\t\t\titemDef.modelZoom = 2512;\n\t\t\titemDef.modelRotation1 = 317;\n\t\t\titemDef.modelRotation2 = 1988;\n\t\t\titemDef.modelOffset1 = -8;\n\t\t\titemDef.modelOffset2 = 45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33283:\n\t\t\titemDef.name = \"Imbued Porazdir's heart\";\n\t\t\titemDef.modelId = 32298;\n\t\t\titemDef.modelZoom = 1168;\n\t\t\titemDef.modelRotation1 = 96;\n\t\t\titemDef.modelRotation2 = 1690;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 60826, 59796, 54544, 58904, 54561 };\n\t\t\titemDef.originalModelColors = new int[] { 13263, 13014, 13243, 13000, 13275 };\n\t\t\titemDef.inventoryOptions = new String[] { \"Invigorate\", null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Boosts your strength for a period of time.\";\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33284:\n\t\t\titemDef.name = \"Imbued Justiciar's heart\";\n\t\t\titemDef.modelId = 32298;\n\t\t\titemDef.modelZoom = 1168;\n\t\t\titemDef.modelRotation1 = 96;\n\t\t\titemDef.modelRotation2 = 1690;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 60826, 59796, 54544, 58904, 54561 };\n\t\t\titemDef.originalModelColors = new int[] { 31661, 31418, 31661, 31167, 31445 };\n\t\t\titemDef.inventoryOptions = new String[] { \"Invigorate\", null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Boosts your Defence for a period of time.\";\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32285:\n\t\t\titemDef.name = \"Imbued Derwen's heart\";\n\t\t\titemDef.modelId = 32298;\n\t\t\titemDef.modelZoom = 1168;\n\t\t\titemDef.modelRotation1 = 96;\n\t\t\titemDef.modelRotation2 = 1690;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 60826, 59796, 54544, 58904, 54561 };\n\t\t\titemDef.originalModelColors = new int[] { 926, 930, 936, 940, 950 };\n\t\t\titemDef.inventoryOptions = new String[] { \"Invigorate\", null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Boosts your Attack for a period of time.\";\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32286:\n\t\t\titemDef.name = \"Bronze fishing rod\";\n\t\t\titemDef.description = \"Used for Bait and Fly fishing.\";\n\t\t\titemDef.modelId = 36128;\n\t\t\titemDef.maleModel = 36317;\n\t\t\titemDef.femaleModel = 36312;\n\t\t\titemDef.modelZoom = 1853;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 59499, 24 };\n\t\t\titemDef.originalModelColors = new int[] { 5652, 9152 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32287:\n\t\t\titemDef.name = \"Iron fishing rod\";\n\t\t\titemDef.description = \"Used for Bait and Fly fishing.\";\n\t\t\titemDef.modelId = 36128;\n\t\t\titemDef.maleModel = 36317;\n\t\t\titemDef.femaleModel = 36312;\n\t\t\titemDef.modelZoom = 1853;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 59499, 24 };\n\t\t\titemDef.originalModelColors = new int[] { 33, 9152 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32288:\n\t\t\titemDef.name = \"Steel fishing rod\";\n\t\t\titemDef.description = \"Used for Bait and Fly fishing.\";\n\t\t\titemDef.modelId = 36128;\n\t\t\titemDef.maleModel = 36317;\n\t\t\titemDef.femaleModel = 36312;\n\t\t\titemDef.modelZoom = 1853;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 59499, 24 };\n\t\t\titemDef.originalModelColors = new int[] { 61, 9152 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32289:\n\t\t\titemDef.name = \"Black fishing rod\";\n\t\t\titemDef.description = \"Used for Bait and Fly fishing.\";\n\t\t\titemDef.modelId = 36128;\n\t\t\titemDef.maleModel = 36317;\n\t\t\titemDef.femaleModel = 36312;\n\t\t\titemDef.modelZoom = 1853;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 59499, 24 };\n\t\t\titemDef.originalModelColors = new int[] { 0, 9152 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32290:\n\t\t\titemDef.name = \"Mithril fishing rod\";\n\t\t\titemDef.description = \"Used for Bait and Fly fishing.\";\n\t\t\titemDef.modelId = 36128;\n\t\t\titemDef.maleModel = 36317;\n\t\t\titemDef.femaleModel = 36312;\n\t\t\titemDef.modelZoom = 1853;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 59499, 24 };\n\t\t\titemDef.originalModelColors = new int[] { 43297, 9152 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32291:\n\t\t\titemDef.name = \"Adamant fishing rod\";\n\t\t\titemDef.description = \"Used for Bait and Fly fishing.\";\n\t\t\titemDef.modelId = 36128;\n\t\t\titemDef.maleModel = 36317;\n\t\t\titemDef.femaleModel = 36312;\n\t\t\titemDef.modelZoom = 1853;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 59499, 24 };\n\t\t\titemDef.originalModelColors = new int[] { 21662, 9152 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32292:\n\t\t\titemDef.name = \"Rune fishing rod\";\n\t\t\titemDef.description = \"Used for Bait and Fly fishing.\";\n\t\t\titemDef.modelId = 36128;\n\t\t\titemDef.maleModel = 36317;\n\t\t\titemDef.femaleModel = 36312;\n\t\t\titemDef.modelZoom = 1853;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 59499, 24 };\n\t\t\titemDef.originalModelColors = new int[] { 36133, 9152 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32293:\n\t\t\titemDef.name = \"Dragon fishing rod\";\n\t\t\titemDef.description = \"Used for Bait and Fly fishing. Can also be used for Deep sea fishing.\";\n\t\t\titemDef.modelId = 36128;\n\t\t\titemDef.maleModel = 36317;\n\t\t\titemDef.femaleModel = 36312;\n\t\t\titemDef.modelZoom = 1853;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 59499, 24 };\n\t\t\titemDef.originalModelColors = new int[] { 924, 9152 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32294:\n\t\t\titemDef.name = \"Raw eel\";\n\t\t\titemDef.description = \"Slimy\";\n\t\t\titemDef.modelId = 6856;\n\t\t\titemDef.modelZoom = 1440;\n\t\t\titemDef.modelRotation1 = 296;\n\t\t\titemDef.modelRotation2 = 352;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = 42;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32295:\n\t\t\titemDef.name = \"Burnt eel\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 6856;\n\t\t\titemDef.modelZoom = 1440;\n\t\t\titemDef.modelRotation1 = 296;\n\t\t\titemDef.modelRotation2 = 352;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = 42;\n\t\t\titemDef.modifiedModelColors = new int[] { 8485, 14622, 12589 };\n\t\t\titemDef.originalModelColors = new int[] { 8724, 3226, 9754 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32296:\n\t\t\titemDef.name = \"Eel\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Eat\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 6856;\n\t\t\titemDef.modelZoom = 1440;\n\t\t\titemDef.modelRotation1 = 296;\n\t\t\titemDef.modelRotation2 = 352;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = 42;\n\t\t\titemDef.modifiedModelColors = new int[] { 8485, 14622, 8386, 12589 };\n\t\t\titemDef.originalModelColors = new int[] { 8088, 6032, 57, 2960 };\n\t\t\titemDef.description = \"None\";\n\t\t\tbreak;\n\n\t\tcase 32297:\n\t\t\titemDef.name = \"Raw baron shark\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 2594;\n\t\t\titemDef.modelZoom = 1860;\n\t\t\titemDef.modelRotation1 = 344;\n\t\t\titemDef.modelRotation2 = 12;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = 12;\n\t\t\titemDef.modifiedModelColors = new int[] { 103, 103 };\n\t\t\titemDef.originalModelColors = new int[] { 7756, 5349 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32298:\n\t\t\titemDef.name = \"Burnt baron shark\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 2594;\n\t\t\titemDef.modelZoom = 1860;\n\t\t\titemDef.modelRotation1 = 344;\n\t\t\titemDef.modelRotation2 = 12;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = 12;\n\t\t\titemDef.modifiedModelColors = new int[] { 61, 103 };\n\t\t\titemDef.originalModelColors = new int[] { 28, 41 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32299:\n\t\t\titemDef.name = \"Baron shark\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Eat\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 2594;\n\t\t\titemDef.modelZoom = 1860;\n\t\t\titemDef.modelRotation1 = 344;\n\t\t\titemDef.modelRotation2 = 12;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = 12;\n\t\t\titemDef.modifiedModelColors = new int[] { 61, 103 };\n\t\t\titemDef.originalModelColors = new int[] { 8109, 4795 };\n\t\t\titemDef.description = \"None\";\n\t\t\tbreak;\n\n\t\tcase 32300:\n\t\t\titemDef.name = \"Raw cavefish\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60223;\n\t\t\titemDef.modelZoom = 1284;\n\t\t\titemDef.modelRotation1 = 499;\n\t\t\titemDef.modelRotation2 = 1907;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32301:\n\t\t\titemDef.name = \"Burnt cavefish\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60227;\n\t\t\titemDef.modelZoom = 1284;\n\t\t\titemDef.modelRotation1 = 499;\n\t\t\titemDef.modelRotation2 = 1907;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32302:\n\t\t\titemDef.name = \"Cavefish\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Eat\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 60228;\n\t\t\titemDef.modelZoom = 1284;\n\t\t\titemDef.modelRotation1 = 499;\n\t\t\titemDef.modelRotation2 = 1907;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.description = \"None\";\n\t\t\tbreak;\n\n\t\tcase 32303:\n\t\t\titemDef.name = \"Dragonfire visage (e)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 26456;\n\t\t\titemDef.modelZoom = 1697;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 152;\n\t\t\titemDef.modelOffset1 = -5;\n\t\t\titemDef.modelOffset2 = -5;\n\t\t\titemDef.modifiedModelColors = new int[] { 45, 41, 33, 24, 20, 57, 22, 37 };\n\t\t\titemDef.originalModelColors = new int[] { 0, 1, 2, 3, 4, 5, 6, 7 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33285:\n\t\t\titemDef.name = \"Easter Mystery Box\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 61110;\n\t\t\titemDef.modelZoom = 1180;\n\t\t\titemDef.modelRotation1 = 160;\n\t\t\titemDef.modelRotation2 = 172;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -14;\n\t\t\t// itemDef.modifiedModelColors = new int[] {22410, 2999};\n\t\t\t// itemDef.originalModelColors = new int[] {35321, 350};\n\t\t\titemDef.description = \"Chances for all sorts of Easter Items!\";\n\t\t\tbreak;\n\n\t\tcase 33286:\n\t\t\titemDef.name = \"Easter Cape\";\n\t\t\titemDef.inventoryOptions = new String[] { null, \"wear\", null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 9631;\n\t\t\titemDef.maleModel = 9638;\n\t\t\titemDef.femaleModel = 9640;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"An Easter Cape.\";\n\t\t\tbreak;\n\n\t\tcase 33287:\n\t\t\titemDef.name = \"Pet Easter Bunny\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 37239;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1931;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"You've captured the Easter bunny!\";\n\t\t\tbreak;\n\n\t\tcase 33288:\n\t\t\titemDef.name = \"Pet Choco\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 37239;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1931;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"mmm... a chocolate bunny\";\n\t\t\titemDef.modifiedModelColors = new int[] { 2378 };\n\t\t\titemDef.originalModelColors = new int[] { 7079 };\n\t\t\tbreak;\n\n\t\tcase 33289:\n\t\t\titemDef.name = \"Pet Milkie\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 37239;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1931;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"mmm... a chocolate bunny\";\n\t\t\titemDef.modifiedModelColors = new int[] { 2378 };\n\t\t\titemDef.originalModelColors = new int[] { 6040 };\n\t\t\tbreak;\n\n\t\tcase 33290:\n\t\t\titemDef.name = \"Pet Goldie\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 37239;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1931;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"oh wow... a rare golden bunny!\";\n\t\t\titemDef.modifiedModelColors = new int[] { 2378 };\n\t\t\titemDef.originalModelColors = new int[] { 9152 };\n\t\t\tbreak;\n\n\t\tcase 33291:\n\t\t\titemDef.name = \"Pet Blue\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 37239;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1931;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"A blue bunny... kinda looks like the easter bunny!\";\n\t\t\titemDef.modifiedModelColors = new int[] { 2378 };\n\t\t\titemDef.originalModelColors = new int[] { 35321 };\n\t\t\tbreak;\n\n\t\tcase 33292:\n\t\t\titemDef.name = \"Crazed bunny\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 23901;\n\t\t\titemDef.modelZoom = 500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1931;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"What a bloody mess...\";\n\t\t\titemDef.modifiedModelColors = new int[] { 5413, 5417, 5421 };\n\t\t\titemDef.originalModelColors = new int[] { 935, 111, 127 };\n\t\t\tbreak;\n\n\t\tcase 33293:\n\t\t\titemDef.name = \"Peter Rabbit\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 28602;\n\t\t\titemDef.modelZoom = 500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1931;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"Hi Peter!\";\n\t\t\tbreak;\n\n\t\tcase 33294:\n\t\t\titemDef.name = \"Chocolate Chicken\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 35150;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1731;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"a chocolate chicken\";\n\t\t\titemDef.modifiedModelColors = new int[] { 947 };\n\t\t\titemDef.originalModelColors = new int[] { 8128 };\n\t\t\tbreak;\n\n\t\tcase 33295:\n\t\t\titemDef.name = \"Chocolate Chicken\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 35150;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1731;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"a chocolate chicken\";\n\t\t\titemDef.modifiedModelColors = new int[] { 947, 8301 };\n\t\t\titemDef.originalModelColors = new int[] { 8128, 25511 };\n\t\t\tbreak;\n\n\t\tcase 33296:\n\t\t\titemDef.name = \"Chocolate Chicken\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 35150;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1731;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"a chocolate chicken\";\n\t\t\titemDef.modifiedModelColors = new int[] { 947, 8301 };\n\t\t\titemDef.originalModelColors = new int[] { 8128, 38835 };\n\t\t\tbreak;\n\n\t\tcase 33297:\n\t\t\titemDef.name = \"Chocolate Chicken\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 35150;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1731;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"a chocolate chicken\";\n\t\t\titemDef.modifiedModelColors = new int[] { 947, 8301 };\n\t\t\titemDef.originalModelColors = new int[] { 8128, 947 };\n\t\t\tbreak;\n\n\t\tcase 33305:\n\t\t\titemDef.name = \"$10 bond\";\n\t\t\titemDef.description = \"$10 bond.\";\n\t\t\titemDef.modelId = 29210;\n\t\t\titemDef.modelZoom = 2300;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.modifiedTextureColors = new int[] { 84, 84, 84, 84, 84, 84, 84 };\n\t\t\titemDef.originalTextureColors = new int[] { 22451, 20416, 22181, 22449, 22305, 21435, 22464 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Redeem\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33306:\n\t\t\titemDef.name = \"$25 bond\";\n\t\t\titemDef.description = \"$25 bond.\";\n\t\t\titemDef.modelId = 29210;\n\t\t\titemDef.modelZoom = 2300;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.modifiedTextureColors = new int[] { 87, 87, 87, 87, 87, 87, 87 };\n\t\t\titemDef.originalTextureColors = new int[] { 22451, 20416, 22181, 22449, 22305, 21435, 22464 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Redeem\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33307:\n\t\t\titemDef.name = \"$50 bond\";\n\t\t\titemDef.description = \"$50 bond.\";\n\t\t\titemDef.modelId = 29210;\n\t\t\titemDef.modelZoom = 2300;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.modifiedTextureColors = new int[] { 65, 65, 65, 65, 65, 65, 65 };\n\t\t\titemDef.originalTextureColors = new int[] { 22451, 20416, 22181, 22449, 22305, 21435, 22464 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Redeem\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33308:\n\t\t\titemDef.name = \"$100 bond\";\n\t\t\titemDef.description = \"$25 bond.\";\n\t\t\titemDef.modelId = 29210;\n\t\t\titemDef.modelZoom = 2300;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.modifiedTextureColors = new int[] { 75, 75, 75, 75, 75, 75, 75 };\n\t\t\titemDef.originalTextureColors = new int[] { 22451, 20416, 22181, 22449, 22305, 21435, 22464 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Redeem\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33309:\n\t\t\titemDef.name = \"$200 bond\";\n\t\t\titemDef.description = \"$200 bond.\";\n\t\t\titemDef.modelId = 29210;\n\t\t\titemDef.modelZoom = 2300;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.modifiedTextureColors = new int[] { 88, 88, 88, 88, 88, 88, 88 };\n\t\t\titemDef.originalTextureColors = new int[] { 22451, 20416, 22181, 22449, 22305, 21435, 22464 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Redeem\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33310:\n\t\t\titemDef.name = \"$500 bond\";\n\t\t\titemDef.description = \"$500 bond.\";\n\t\t\titemDef.modelId = 29210;\n\t\t\titemDef.modelZoom = 2300;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.modifiedTextureColors = new int[] { 85, 85, 85, 85, 85, 85, 85 };\n\t\t\titemDef.originalTextureColors = new int[] { 22451, 20416, 22181, 22449, 22305, 21435, 22464 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Redeem\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33311:\n\t\t\titemDef.name = \"$1000 bond\";\n\t\t\titemDef.description = \"$1000 bond.\";\n\t\t\titemDef.modelId = 29210;\n\t\t\titemDef.modelZoom = 2300;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.modifiedTextureColors = new int[] { 86, 86, 86, 86, 86, 86, 86 };\n\t\t\titemDef.originalTextureColors = new int[] { 22451, 20416, 22181, 22449, 22305, 21435, 22464 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Redeem\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33312:\n\t\t\titemDef.name = \"Armadyl battlestaff\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60332;\n\t\t\titemDef.maleModel = 60333;\n\t\t\titemDef.femaleModel = 60333;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 225;\n\t\t\titemDef.modelRotation2 = 1994;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\n\t\tcase 33313:\n\t\t\titemDef.name = \"Colossal platebody\";\n\t\t\titemDef.description = \"Colossal platebody.\";\n\t\t\titemDef.modelId = 60323;\n\t\t\titemDef.maleModel = 60324;\n\t\t\titemDef.femaleModel = 60324;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33314:\n\t\t\titemDef.name = \"Colossal platelegs\";\n\t\t\titemDef.description = \"Colossal platelegs.\";\n\t\t\titemDef.modelId = 60325;\n\t\t\titemDef.maleModel = 60326;\n\t\t\titemDef.femaleModel = 60326;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33315:\n\t\t\titemDef.name = \"Colossal boots\";\n\t\t\titemDef.description = \"Colossal boots.\";\n\t\t\titemDef.modelId = 60329;\n\t\t\titemDef.maleModel = 60329;\n\t\t\titemDef.femaleModel = 60329;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33316:\n\t\t\titemDef.name = \"Colossal gloves\";\n\t\t\titemDef.description = \"Colossal gloves.\";\n\t\t\titemDef.modelId = 60330;\n\t\t\titemDef.maleModel = 60331;\n\t\t\titemDef.femaleModel = 60331;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33317:\n\t\t\titemDef.name = \"Colossal helmet\";\n\t\t\titemDef.description = \"Colossal helmet.\";\n\t\t\titemDef.modelId = 60327;\n\t\t\titemDef.maleModel = 60328;\n\t\t\titemDef.femaleModel = 60328;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\n\t\tcase 33318:\n\t\t\titemDef.name = \"Polypore staff\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60334;\n\t\t\titemDef.maleModel = 60335;\n\t\t\titemDef.femaleModel = 60335;\n\t\t\titemDef.modelZoom = 3750;\n\t\t\titemDef.modelRotation1 = 1454;\n\t\t\titemDef.modelRotation2 = 997;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\n\t\tcase 33319:\n\t\t\titemDef.name = \"Ganodermic platebody\";\n\t\t\titemDef.description = \"Ganodermic platebody.\";\n\t\t\titemDef.modelId = 60338;\n\t\t\titemDef.maleModel = 60339;\n\t\t\titemDef.femaleModel = 60339;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33320:\n\t\t\titemDef.name = \"Ganodermic platelegs\";\n\t\t\titemDef.description = \"Ganodermic platelegs.\";\n\t\t\titemDef.modelId = 60340;\n\t\t\titemDef.maleModel = 60341;\n\t\t\titemDef.femaleModel = 60341;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33321:\n\t\t\titemDef.name = \"Ganodermic helmet\";\n\t\t\titemDef.description = \"Ganodermic helmet.\";\n\t\t\titemDef.modelId = 60336;\n\t\t\titemDef.maleModel = 60337;\n\t\t\titemDef.femaleModel = 60337;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\n\t\tcase 33322:\n\t\t\titemDef.name = \"Grotesque platebody\";\n\t\t\titemDef.description = \"Grosteq platebody.\";\n\t\t\titemDef.modelId = 60347;\n\t\t\titemDef.maleModel = 60348;\n\t\t\titemDef.femaleModel = 60348;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33323:\n\t\t\titemDef.name = \"Grotesque platelegs\";\n\t\t\titemDef.description = \"Grosteq platelegs.\";\n\t\t\titemDef.modelId = 60349;\n\t\t\titemDef.maleModel = 60350;\n\t\t\titemDef.femaleModel = 60350;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33324:\n\t\t\titemDef.name = \"Grotesque helmet\";\n\t\t\titemDef.description = \"Grosteqc helmet.\";\n\t\t\titemDef.modelId = 60345;\n\t\t\titemDef.maleModel = 60346;\n\t\t\titemDef.femaleModel = 60346;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\n\t\tcase 33325:\n\t\t\titemDef.name = \"Grotesque cape\";\n\t\t\titemDef.description = \"Grosteq cape.\";\n\t\t\titemDef.modelId = 60351;\n\t\t\titemDef.maleModel = 60352;\n\t\t\titemDef.femaleModel = 60352;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33326:\n\t\t\titemDef.name = \"Stunning Hammer\";\n\t\t\titemDef.description = \"Has a chance to stun an enemy.\";\n\t\t\titemDef.modelId = 60353;\n\t\t\titemDef.maleModel = 60354;\n\t\t\titemDef.femaleModel = 60354;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1985;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\n\t\tcase 33327:\n\t\t\titemDef.name = \"Stunning Katagon platebody\";\n\t\t\titemDef.description = \"has a chance to stun an enemy.\";\n\t\t\titemDef.modelId = 60356;\n\t\t\titemDef.maleModel = 60357;\n\t\t\titemDef.femaleModel = 60357;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33328:\n\t\t\titemDef.name = \"Stunning Katagon platelegs\";\n\t\t\titemDef.description = \"has a chance to stun an enemy.\";\n\t\t\titemDef.modelId = 60358;\n\t\t\titemDef.maleModel = 60359;\n\t\t\titemDef.femaleModel = 60359;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33329:\n\t\t\titemDef.name = \"Stunning Katagon helmet\";\n\t\t\titemDef.description = \"has a chance to stun an enemy.\";\n\t\t\titemDef.modelId = 60360;\n\t\t\titemDef.maleModel = 60361;\n\t\t\titemDef.femaleModel = 60361;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\n\t\tcase 33331:\n\t\t\titemDef.name = \"Ancient platebody\";\n\t\t\titemDef.description = \"Ancient platebody.\";\n\t\t\titemDef.modelId = 60366;\n\t\t\titemDef.maleModel = 60367;\n\t\t\titemDef.femaleModel = 60367;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33332:\n\t\t\titemDef.name = \"Ancient platelegs\";\n\t\t\titemDef.description = \"Ancient platelegs.\";\n\t\t\titemDef.modelId = 60368;\n\t\t\titemDef.maleModel = 60369;\n\t\t\titemDef.femaleModel = 60369;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33334:\n\t\t\titemDef.name = \"Ancient boots\";\n\t\t\titemDef.description = \"Ancient boots.\";\n\t\t\titemDef.modelId = 60372;\n\t\t\titemDef.maleModel = 60372;\n\t\t\titemDef.femaleModel = 60372;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33335:\n\t\t\titemDef.name = \"Ancient gloves\";\n\t\t\titemDef.description = \"Ancient gloves.\";\n\t\t\titemDef.modelId = 60370;\n\t\t\titemDef.maleModel = 60371;\n\t\t\titemDef.femaleModel = 60371;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33336:\n\t\t\titemDef.name = \"Ancient helmet\";\n\t\t\titemDef.description = \"Ancient helmet.\";\n\t\t\titemDef.modelId = 60364;\n\t\t\titemDef.maleModel = 60365;\n\t\t\titemDef.femaleModel = 60365;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\n\t\tcase 33341:\n\t\t\titemDef.name = \"Vanguard helmet\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60391;\n\t\t\titemDef.maleModel = 60392;\n\t\t\titemDef.femaleModel = 60392;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\n\t\tcase 33342:\n\t\t\titemDef.name = \"Vanguard platebody\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60393;\n\t\t\titemDef.maleModel = 60394;\n\t\t\titemDef.femaleModel = 60394;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33343:\n\t\t\titemDef.name = \"Vanguard platelegs\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60395;\n\t\t\titemDef.maleModel = 60396;\n\t\t\titemDef.femaleModel = 60396;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33344:\n\t\t\titemDef.name = \"Vanguard boots\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60398;\n\t\t\titemDef.maleModel = 60398;\n\t\t\titemDef.femaleModel = 60398;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33345:\n\t\t\titemDef.name = \"Vanguard gloves\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60373;\n\t\t\titemDef.maleModel = 60397;\n\t\t\titemDef.femaleModel = 60397;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33346:\n\t\t\titemDef.name = \"Celestial staff of light\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60401;\n\t\t\titemDef.maleModel = 60402;\n\t\t\titemDef.femaleModel = 60402;\n\t\t\titemDef.modelZoom = 3200;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 101 };\n\t\t\titemDef.originalModelColors = new int[] { 12 };\n\t\t\titemDef.maleOffset = -6;\n\t\t\titemDef.femaleOffset = -6;\n\t\t\tbreak;\n\n\t\tcase 33347:\n\t\t\titemDef.name = \"Hood of sorrow\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60438;\n\t\t\titemDef.maleModel = 60403;\n\t\t\titemDef.femaleModel = 60403;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33348:\n\t\t\titemDef.name = \"Celestial robe top\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60404;\n\t\t\titemDef.maleModel = 60405;\n\t\t\titemDef.femaleModel = 60405;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33349:\n\t\t\titemDef.name = \"Celestial robe legs\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60406;\n\t\t\titemDef.maleModel = 60407;\n\t\t\titemDef.femaleModel = 60407;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33350:\n\t\t\titemDef.name = \"Primal 2h sword\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60408;\n\t\t\titemDef.maleModel = 60409;\n\t\t\titemDef.femaleModel = 60409;\n\t\t\titemDef.modelZoom = 1701;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.modelRotation2 = 1529;\n\t\t\titemDef.modelRotation1 = 1713;\n\t\t\titemDef.modelRotationY = 898;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\titemDef.maleOffset = -7;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33353:\n\t\t\titemDef.name = \"Primal longsword\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60417;\n\t\t\titemDef.maleModel = 60418;\n\t\t\titemDef.femaleModel = 60418;\n\t\t\titemDef.modelZoom = 1616;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.modelRotation2 = 1793;\n\t\t\titemDef.modelRotation1 = 1473;\n\t\t\titemDef.modelRotationY = 1121;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\titemDef.maleOffset = -7;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33354:\n\t\t\titemDef.name = \"Primal maul\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60419;\n\t\t\titemDef.maleModel = 60420;\n\t\t\titemDef.femaleModel = 60420;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 525;\n\t\t\titemDef.modelRotation2 = 350;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\titemDef.maleOffset = -7;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33359:\n\t\t\titemDef.name = \"Primal rapier\";\n\t\t\titemDef.description = \"Good for fighting the ...\";\n\t\t\titemDef.modelId = 60433;\n\t\t\titemDef.maleModel = 60433;\n\t\t\titemDef.femaleModel = 60433;\n\t\t\titemDef.modelZoom = 1300;\n\t\t\titemDef.modelRotation1 = 1401;\n\t\t\titemDef.modelRotation2 = 1724;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.modelOffset2 = 15;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\titemDef.maleOffset = -7;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33360:\n\t\t\titemDef.name = \"Primal spear\";\n\t\t\titemDef.description = \"Good for fighting the Corperal Beast.\";\n\t\t\titemDef.modelId = 60434;\n\t\t\titemDef.maleModel = 60435;\n\t\t\titemDef.femaleModel = 60435;\n\t\t\titemDef.modelZoom = 1711;\n\t\t\titemDef.modelRotation1 = 485;\n\t\t\titemDef.modelRotation2 = 391;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.femaleOffset = -10;\n\t\t\titemDef.maleOffset = -10;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33361:\n\t\t\titemDef.name = \"Primal warhammer\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60436;\n\t\t\titemDef.maleModel = 60437;\n\t\t\titemDef.femaleModel = 60437;\n\t\t\titemDef.modelZoom = 1330;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 148;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\titemDef.maleOffset = -7;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33362:\n\t\t\titemDef.name = \"Chitin helmet\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60445;\n\t\t\titemDef.maleModel = 60446;\n\t\t\titemDef.femaleModel = 60446;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33364:\n\t\t\titemDef.name = \"Chitin platebody\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60447;\n\t\t\titemDef.maleModel = 60448;\n\t\t\titemDef.femaleModel = 60448;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33365:\n\t\t\titemDef.name = \"Chitin platelegs\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60449;\n\t\t\titemDef.maleModel = 60450;\n\t\t\titemDef.femaleModel = 60450;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33366:\n\t\t\titemDef.name = \"Chitin cape\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60443;\n\t\t\titemDef.maleModel = 60444;\n\t\t\titemDef.femaleModel = 60444;\n\t\t\titemDef.modelZoom = 1500;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = -4;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33367:\n\t\t\titemDef.name = \"Supreme void helmet\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60467;\n\t\t\titemDef.maleModel = 60464;\n\t\t\titemDef.femaleModel = 60464;\n\t\t\titemDef.modelZoom = 900;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33368:\n\t\t\titemDef.name = \"Supreme void robe top\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60468;\n\t\t\titemDef.maleModel = 60465;\n\t\t\titemDef.femaleModel = 60465;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33369:\n\t\t\titemDef.name = \"Supreme void robe\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60469;\n\t\t\titemDef.maleModel = 60466;\n\t\t\titemDef.femaleModel = 60466;\n\t\t\titemDef.modelZoom = 1900;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33370:\n\t\t\titemDef.name = \"Korasi's sword\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60471;\n\t\t\titemDef.maleModel = 60470;\n\t\t\titemDef.femaleModel = 60470;\n\t\t\titemDef.modelZoom = 1744;\n\t\t\titemDef.modelRotation1 = 330;\n\t\t\titemDef.modelRotation2 = 1505;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = -4;\n\t\t\titemDef.femaleOffset = -4;\n\t\t\tbreak;\n\n\t\tcase 33371:\n\t\t\titemDef.name = \"Spiked slayer helmet\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60475;\n\t\t\titemDef.maleModel = 60476;\n\t\t\titemDef.femaleModel = 60476;\n\t\t\titemDef.modelZoom = 800;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33372:\n\t\t\titemDef.name = \"Slayer platebody\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60478;\n\t\t\titemDef.maleModel = 60479;\n\t\t\titemDef.femaleModel = 60479;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33373:\n\t\t\titemDef.name = \"Slayer platelegs\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60474;\n\t\t\titemDef.maleModel = 60477;\n\t\t\titemDef.femaleModel = 60477;\n\t\t\titemDef.modelZoom = 1900;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33374:\n\t\t\titemDef.name = \"Slayer boots\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60472;\n\t\t\titemDef.maleModel = 60473;\n\t\t\titemDef.femaleModel = 60473;\n\t\t\titemDef.modelZoom = 789;\n\t\t\titemDef.modelRotation1 = 164;\n\t\t\titemDef.modelRotation2 = 156;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33375:\n\t\t\titemDef.name = \"Blood Justiciar helmet\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60482;\n\t\t\titemDef.maleModel = 60483;\n\t\t\titemDef.femaleModel = 60483;\n\t\t\titemDef.modelZoom = 800;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33376:\n\t\t\titemDef.name = \"Blood Justiciar platebody\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60484;\n\t\t\titemDef.maleModel = 60485;\n\t\t\titemDef.femaleModel = 60485;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33377:\n\t\t\titemDef.name = \"Blood justiciar platelegs\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60486;\n\t\t\titemDef.maleModel = 60487;\n\t\t\titemDef.femaleModel = 60487;\n\t\t\titemDef.modelZoom = 1900;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33378:\n\t\t\titemDef.name = \"Blood justiciar boots\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60488;\n\t\t\titemDef.maleModel = 60488;\n\t\t\titemDef.femaleModel = 60488;\n\t\t\titemDef.modelZoom = 789;\n\t\t\titemDef.modelRotation1 = 164;\n\t\t\titemDef.modelRotation2 = 156;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33379:\n\t\t\titemDef.name = \"Blood justiciar gloves\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60489;\n\t\t\titemDef.maleModel = 60490;\n\t\t\titemDef.femaleModel = 60490;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33380:\n\t\t\titemDef.name = \"Blood scythe of vitur\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60480;\n\t\t\titemDef.maleModel = 60481;\n\t\t\titemDef.femaleModel = 60481;\n\t\t\titemDef.modelZoom = 3850;\n\t\t\titemDef.modelRotation1 = 727;\n\t\t\titemDef.modelRotation2 = 997;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33381:\n\t\t\titemDef.name = \"Skiller cape\";\n\t\t\titemDef.description = \"Skiller cape.\";\n\t\t\titemDef.modelId = 60494;\n\t\t\titemDef.maleModel = 60493;\n\t\t\titemDef.femaleModel = 60492;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33382:\n\t\t\titemDef.name = \"Justiciar faceguard (zamorak)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35751;\n\t\t\titemDef.maleModel = 35349;\n\t\t\titemDef.femaleModel = 35361;\n\t\t\titemDef.modelZoom = 777;\n\t\t\titemDef.modelRotation1 = 22;\n\t\t\titemDef.modelRotation2 = 1972;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 4550 };\n\t\t\titemDef.originalModelColors = new int[] { 926, 926, 926, 926 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33383:\n\t\t\titemDef.name = \"Justiciar faceguard (guthix)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35751;\n\t\t\titemDef.maleModel = 35349;\n\t\t\titemDef.femaleModel = 35361;\n\t\t\titemDef.modelZoom = 777;\n\t\t\titemDef.modelRotation1 = 22;\n\t\t\titemDef.modelRotation2 = 1972;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 4550 };\n\t\t\titemDef.originalModelColors = new int[] { 21939, 21945, 21952, 21954 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33384:\n\t\t\titemDef.name = \"Justiciar faceguard (saradomin)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35751;\n\t\t\titemDef.maleModel = 35349;\n\t\t\titemDef.femaleModel = 35361;\n\t\t\titemDef.modelZoom = 777;\n\t\t\titemDef.modelRotation1 = 22;\n\t\t\titemDef.modelRotation2 = 1972;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 4550 };\n\t\t\titemDef.originalModelColors = new int[] { 43929, 43929, 43929, 43929 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33385:\n\t\t\titemDef.name = \"Justiciar faceguard (ancient)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35751;\n\t\t\titemDef.maleModel = 35349;\n\t\t\titemDef.femaleModel = 35361;\n\t\t\titemDef.modelZoom = 777;\n\t\t\titemDef.modelRotation1 = 22;\n\t\t\titemDef.modelRotation2 = 1972;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 4550 };\n\t\t\titemDef.originalModelColors = new int[] { -10854, -10860, -10872, -10874 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33387:\n\t\t\titemDef.name = \"Justiciar faceguard (bandos)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35751;\n\t\t\titemDef.maleModel = 35349;\n\t\t\titemDef.femaleModel = 35361;\n\t\t\titemDef.modelZoom = 777;\n\t\t\titemDef.modelRotation1 = 22;\n\t\t\titemDef.modelRotation2 = 1972;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 4550 };\n\t\t\titemDef.originalModelColors = new int[] { 7062, 7062, 7062, 7062 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33389:\n\t\t\titemDef.name = \"Justiciar faceguard (armadyl)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35751;\n\t\t\titemDef.maleModel = 35349;\n\t\t\titemDef.femaleModel = 35361;\n\t\t\titemDef.modelZoom = 777;\n\t\t\titemDef.modelRotation1 = 22;\n\t\t\titemDef.modelRotation2 = 1972;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 4550 };\n\t\t\titemDef.originalModelColors = new int[] { 10467, 10474, 10482, 10484 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33390:\n\t\t\titemDef.name = \"Justiciar chestguard (zamorak)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35750;\n\t\t\titemDef.maleModel = 35359;\n\t\t\titemDef.femaleModel = 35368;\n\t\t\titemDef.modelZoom = 1310;\n\t\t\titemDef.modelRotation1 = 432;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 926, 926, 926, 926 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33391:\n\t\t\titemDef.name = \"Justiciar chestguard (guthix)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35750;\n\t\t\titemDef.maleModel = 35359;\n\t\t\titemDef.femaleModel = 35368;\n\t\t\titemDef.modelZoom = 1310;\n\t\t\titemDef.modelRotation1 = 432;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 21939, 21945, 21952, 21954 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33392:\n\t\t\titemDef.name = \"Justiciar chestguard (saradomin)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35750;\n\t\t\titemDef.maleModel = 35359;\n\t\t\titemDef.femaleModel = 35368;\n\t\t\titemDef.modelZoom = 1310;\n\t\t\titemDef.modelRotation1 = 432;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 43929, 43929, 43929, 43929 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33393:\n\t\t\titemDef.name = \"Justiciar chestguard (ancient)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35750;\n\t\t\titemDef.maleModel = 35359;\n\t\t\titemDef.femaleModel = 35368;\n\t\t\titemDef.modelZoom = 1310;\n\t\t\titemDef.modelRotation1 = 432;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { -10854, -10860, -10872, -10874 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33394:\n\t\t\titemDef.name = \"Justiciar chestguard (bandos)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35750;\n\t\t\titemDef.maleModel = 35359;\n\t\t\titemDef.femaleModel = 35368;\n\t\t\titemDef.modelZoom = 1310;\n\t\t\titemDef.modelRotation1 = 432;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 7062, 7062, 7062, 7062 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33395:\n\t\t\titemDef.name = \"Justiciar chestguard (armadyl)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35750;\n\t\t\titemDef.maleModel = 35359;\n\t\t\titemDef.femaleModel = 35368;\n\t\t\titemDef.modelZoom = 1310;\n\t\t\titemDef.modelRotation1 = 432;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 10467, 10474, 10482, 10484 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33396:\n\t\t\titemDef.name = \"Justiciar legguards (zamorak)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35752;\n\t\t\titemDef.maleModel = 35356;\n\t\t\titemDef.femaleModel = 35357;\n\t\t\titemDef.modelZoom = 1720;\n\t\t\titemDef.modelRotation1 = 468;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 926, 926, 926, 926 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33397:\n\t\t\titemDef.name = \"Justiciar legguards (guthix)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35752;\n\t\t\titemDef.maleModel = 35356;\n\t\t\titemDef.femaleModel = 35357;\n\t\t\titemDef.modelZoom = 1720;\n\t\t\titemDef.modelRotation1 = 468;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 21939, 21945, 21952, 21954 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33398:\n\t\t\titemDef.name = \"Justiciar legguards (saradomin)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35752;\n\t\t\titemDef.maleModel = 35356;\n\t\t\titemDef.femaleModel = 35357;\n\t\t\titemDef.modelZoom = 1720;\n\t\t\titemDef.modelRotation1 = 468;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 43929, 43929, 43929, 43929 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33399:\n\t\t\titemDef.name = \"Justiciar legguards (ancient)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35752;\n\t\t\titemDef.maleModel = 35356;\n\t\t\titemDef.femaleModel = 35357;\n\t\t\titemDef.modelZoom = 1720;\n\t\t\titemDef.modelRotation1 = 468;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { -10854, -10860, -10872, -10874 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33400:\n\t\t\titemDef.name = \"Justiciar legguards (bandos)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35752;\n\t\t\titemDef.maleModel = 35356;\n\t\t\titemDef.femaleModel = 35357;\n\t\t\titemDef.modelZoom = 1720;\n\t\t\titemDef.modelRotation1 = 468;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 7062, 7062, 7062, 7062 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33401:\n\t\t\titemDef.name = \"Justiciar legguards (armadyl)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35752;\n\t\t\titemDef.maleModel = 35356;\n\t\t\titemDef.femaleModel = 35357;\n\t\t\titemDef.modelZoom = 1720;\n\t\t\titemDef.modelRotation1 = 468;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 10467, 10474, 10482, 10484 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33402:\n\t\t\titemDef.name = \"Pet andy\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 50169;\n\t\t\titemDef.modelZoom = 1500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33403:\n\t\t\titemDef.name = \"Pet mod divine\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 14283;\n\t\t\titemDef.modelZoom = 3500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33404:\n\t\t\titemDef.name = \"Celestial fairy\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60491;\n\t\t\titemDef.modelZoom = 3500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.originalTextureColors = new int[] { 947 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 78 };\n\t\t\titemDef.modifiedModelColors = new int[] { 937, 11200 };\n\t\t\titemDef.originalModelColors = new int[] { 42663, 41883 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33405:\n\t\t\titemDef.name = \"Lava partyhat (red)\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"A lava partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 33406:\n\t\t\titemDef.name = \"Lava partyhat (green)\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"A lava partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 33407:\n\t\t\titemDef.name = \"Lava partyhat (cyan)\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"A lava partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 33408:\n\t\t\titemDef.name = \"Lava partyhat (purple)\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"A lava partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 33409:\n\t\t\titemDef.name = \"Infernal partyhat (blue)\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"An Infernal partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 33410:\n\t\t\titemDef.name = \"Infernal partyhat (green)\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"An Infernal partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 33411:\n\t\t\titemDef.name = \"Infernal partyhat (purple)\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"An Infernal partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 33412:\n\t\t\titemDef.name = \"Infernal partyhat (rainbow)\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"An Infernal partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 33413:\n\t\t\titemDef.name = \"Celestial partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"none.\";\n\t\t\tbreak;\n\n\t\tcase 33414:\n\t\t\titemDef.name = \"Blood partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"none.\";\n\t\t\tbreak;\n\n\t\tcase 33415:\n\t\t\titemDef.name = \"Shadow partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"none.\";\n\t\t\tbreak;\n\n\t\tcase 33416:\n\t\t\titemDef.name = \"Light blue partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"none.\";\n\t\t\tbreak;\n\n\t\tcase 33417:\n\t\t\titemDef.name = \"Easter partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"none.\";\n\t\t\tbreak;\n\n\t\tcase 33418:\n\t\t\titemDef.name = \"Dark sparkle partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"none.\";\n\t\t\tbreak;\n\n\t\tcase 33419:\n\t\t\titemDef.name = \"Rainbow partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"none.\";\n\t\t\tbreak;\n\n\t\tcase 33420:\n\t\t\titemDef.name = \"Fire partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"none.\";\n\t\t\tbreak;\n\n\t\tcase 33421:\n\t\t\titemDef.name = \"Pet star sprite\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60506;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33422:\n\t\t\titemDef.name = \"Stargaze Box\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 61110;\n\t\t\titemDef.modelZoom = 1180;\n\t\t\titemDef.modelRotation1 = 160;\n\t\t\titemDef.modelRotation2 = 172;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -14;\n\t\t\t// itemDef.modifiedModelColors = new int[] {22410, 2999};\n\t\t\t// itemDef.originalModelColors = new int[] {35321, 350};\n\t\t\titemDef.description = \"none\";\n\t\t\tbreak;\n\n\t\tcase 33423:\n\t\t\titemDef.name = \"Star Dust\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Exchange\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modelId = 60496;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 279;\n\t\t\titemDef.modelRotation2 = 1994;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 47;\n\t\t\t// itemDef.modifiedModelColors = new int[] {22410, 2999};\n\t\t\t// itemDef.originalModelColors = new int[] {35321, 350};\n\t\t\titemDef.description = \"none\";\n\t\t\tbreak;\n\n\t\tcase 33424:\n\t\t\titemDef.name = \"Blood twisted bow\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32799;\n\t\t\titemDef.maleModel = 32674;\n\t\t\titemDef.femaleModel = 32674;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 720;\n\t\t\titemDef.modelRotation2 = 1500;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.originalTextureColors = new int[] { 10318, 10334 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 66, 66 };\n\t\t\titemDef.modifiedModelColors = new int[] { 14236, 13223 };\n\t\t\titemDef.originalModelColors = new int[] { 926, 926 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33425:\n\t\t\titemDef.name = \"Celestial crow\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60507;\n\t\t\titemDef.modelZoom = 1000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.originalTextureColors = new int[] { 10382 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 78 };\n\t\t\titemDef.modifiedModelColors = new int[] { 10378, 10502 };\n\t\t\titemDef.originalModelColors = new int[] { 0, 0 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33426:\n\t\t\titemDef.name = \"Celestial penguin\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60508;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.originalTextureColors = new int[] { 10343 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 78 };\n\t\t\titemDef.modifiedModelColors = new int[] { 16, 12, 20, 24, 8, 10332, 10337 };\n\t\t\titemDef.originalModelColors = new int[] { 0, 0, 0, 0, 0, 0, 0 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33427:\n\t\t\titemDef.name = \"Celestial snake\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60509;\n\t\t\titemDef.modelZoom = 1800;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.originalTextureColors = new int[] { 10644, 10512 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 78, 78 };\n\t\t\titemDef.modifiedModelColors = new int[] { 10413, 10405, 10524 };\n\t\t\titemDef.originalModelColors = new int[] { 0, 0, 0 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33428:\n\t\t\titemDef.name = \"Celestial scorpion\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60510;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.originalTextureColors = new int[] { 142 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 78 };\n\t\t\titemDef.modifiedModelColors = new int[] { 4884, 4636, 3974, 4525, 4645 };\n\t\t\titemDef.originalModelColors = new int[] { 0, 0, 0, 0, 0 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33429:\n\t\t\titemDef.name = \"Armadyl dye\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60513;\n\t\t\titemDef.modelZoom = 809;\n\t\t\titemDef.modelRotation1 = 90;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 30814, 30809, 30799, 30804 };\n\t\t\titemDef.originalModelColors = new int[] { 10467, 10474, 10482, 10484 };\n\t\t\tbreak;\n\n\t\tcase 33430:\n\t\t\titemDef.name = \"Guthix dye\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60513;\n\t\t\titemDef.modelZoom = 809;\n\t\t\titemDef.modelRotation1 = 90;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 30814, 30809, 30799, 30804 };\n\t\t\titemDef.originalModelColors = new int[] { 21939, 21945, 21952, 21954 };\n\t\t\tbreak;\n\n\t\tcase 33431:\n\t\t\titemDef.name = \"Zamorak dye\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60513;\n\t\t\titemDef.modelZoom = 809;\n\t\t\titemDef.modelRotation1 = 90;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 30814, 30809, 30799, 30804 };\n\t\t\titemDef.originalModelColors = new int[] { 926, 926, 926, 926 };\n\t\t\tbreak;\n\n\t\tcase 33432:\n\t\t\titemDef.name = \"Ancient dye\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60513;\n\t\t\titemDef.modelZoom = 809;\n\t\t\titemDef.modelRotation1 = 90;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 30814, 30809, 30799, 30804 };\n\t\t\titemDef.originalModelColors = new int[] { -10854, -10860, -10872, -10874 };\n\t\t\tbreak;\n\n\t\tcase 33433:\n\t\t\titemDef.name = \"Bandos dye\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60513;\n\t\t\titemDef.modelZoom = 809;\n\t\t\titemDef.modelRotation1 = 90;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 30814, 30809, 30799, 30804 };\n\t\t\titemDef.originalModelColors = new int[] { 7062, 7062, 7062, 7062 };\n\t\t\tbreak;\n\n\t\tcase 33434:\n\t\t\titemDef.name = \"Saradomin dye\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60513;\n\t\t\titemDef.modelZoom = 809;\n\t\t\titemDef.modelRotation1 = 90;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 30814, 30809, 30799, 30804 };\n\t\t\titemDef.originalModelColors = new int[] { 43929, 43929, 43929, 43929 };\n\t\t\tbreak;\n\n\t\tcase 33435:\n\t\t\titemDef.name = \"Celestial egg\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 7171;\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelRotation2 = 16;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.originalTextureColors = new int[] { 476 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 78 };\n\t\t\titemDef.inventoryOptions = new String[] { \"Hatch\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = true;\n\t\t\tbreak;\n\n\t\tcase 33436:\n\t\t\titemDef.name = \"Elite void top (placeholder)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 10586;\n\t\t\titemDef.maleModel = 10687;\n\t\t\titemDef.anInt188 = 10681;\n\t\t\titemDef.femaleModel = 10694;\n\t\t\titemDef.anInt164 = 10688;\n\t\t\titemDef.modelZoom = 1221;\n\t\t\titemDef.modelRotation1 = 459;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\t// itemDef.originalTextureColors = new int [] { 695};\n\t\t\t// itemDef.modifiedTextureColors = new int [] { 66};\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33437:\n\t\t\titemDef.name = \"Elite void robe (placeholder)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60528;\n\t\t\titemDef.maleModel = 60526;\n\t\t\titemDef.femaleModel = 60527;\n\t\t\titemDef.modelZoom = 2105;\n\t\t\titemDef.modelRotation1 = 525;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\t// itemDef.originalTextureColors = new int [] { 695};\n\t\t\t// itemDef.modifiedTextureColors = new int [] { 66};\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33438:\n\t\t\titemDef.name = \"Blood chest\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60516;\n\t\t\titemDef.modelZoom = 2640;\n\t\t\titemDef.modelRotation1 = 114;\n\t\t\titemDef.modelRotation2 = 1883;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33439:\n\t\t\titemDef.name = \"Blood bird\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60517;\n\t\t\titemDef.modelZoom = 2768;\n\t\t\titemDef.modelRotation1 = 141;\n\t\t\titemDef.modelRotation2 = 1790;\n\t\t\titemDef.modelOffset1 = -8;\n\t\t\titemDef.modelOffset2 = -13;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\titemDef.originalTextureColors = new int[] { 1946, 2983, 6084, 2735, 5053, 6082, 4013, 2733, 4011, 2880,\n\t\t\t\t\t8150 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66 };\n\t\t\tbreak;\n\n\t\tcase 33440:\n\t\t\titemDef.name = \"Blood Death\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60441;\n\t\t\titemDef.modelZoom = 16000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33442:\n\t\t\titemDef.name = \"10 Min XP boost (25%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Claim\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33446:\n\t\t\titemDef.name = \"10 Min XP boost (50%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Claim\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33450:\n\t\t\titemDef.name = \"10 Min XP boost (75%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Claim\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33454:\n\t\t\titemDef.name = \"10 Min XP boost (100%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33458:\n\t\t\titemDef.name = \"10 Min XP boost (150%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33462:\n\t\t\titemDef.name = \"10 Min XP boost (200%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33443:\n\t\t\titemDef.name = \"30 Min XP boost (25%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33447:\n\t\t\titemDef.name = \"30 Min XP boost (50%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33451:\n\t\t\titemDef.name = \"30 Min XP boost (75%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33455:\n\t\t\titemDef.name = \"30 Min XP boost (100%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33459:\n\t\t\titemDef.name = \"30 Min XP boost (150%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33463:\n\t\t\titemDef.name = \"30 Min XP boost (200%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33444:\n\t\t\titemDef.name = \"60 Min XP boost (25%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33448:\n\t\t\titemDef.name = \"60 Min XP boost (50%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33452:\n\t\t\titemDef.name = \"60 Min XP boost (75%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33456:\n\t\t\titemDef.name = \"60 Min XP boost (100%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33460:\n\t\t\titemDef.name = \"60 Min XP boost (150%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33464:\n\t\t\titemDef.name = \"60 Min XP boost (200%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33445:\n\t\t\titemDef.name = \"120 Min XP boost (25%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33449:\n\t\t\titemDef.name = \"120 Min XP boost (50%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33453:\n\t\t\titemDef.name = \"120 Min XP boost (75%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33457:\n\t\t\titemDef.name = \"120 Min XP boost (100%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33461:\n\t\t\titemDef.name = \"120 Min XP boost (150%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33465:\n\t\t\titemDef.name = \"120 Min XP boost (200%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33466:\n\t\t\titemDef.name = \"Deathtouched dart\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60534;\n\t\t\titemDef.maleModel = 60533;\n\t\t\titemDef.femaleModel = 60533;\n\t\t\titemDef.modelZoom = 1053;\n\t\t\titemDef.modelRotation1 = 471;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33467:\n\t\t\titemDef.name = \"Justiciar boots\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60535;\n\t\t\titemDef.maleModel = 60535;\n\t\t\titemDef.femaleModel = 60535;\n\t\t\titemDef.modelZoom = 789;\n\t\t\titemDef.modelRotation1 = 164;\n\t\t\titemDef.modelRotation2 = 156;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33468:\n\t\t\titemDef.name = \"Justiciar gloves\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 31022;\n\t\t\titemDef.maleModel = 31006;\n\t\t\titemDef.femaleModel = 31013;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 636;\n\t\t\titemDef.modelRotation2 = 2015;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 123, 70 };\n\t\t\titemDef.originalModelColors = new int[] { 6736, 59441 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33469:\n\t\t\titemDef.name = \"Magic mushroom\";\n\t\t\titemDef.description = \"offers a 10% droprate increase while this pet follows you.\";\n\t\t\titemDef.modelId = 60532;\n\t\t\titemDef.modelZoom = 3000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 6;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33470:\n\t\t\titemDef.name = \"Twisted staff\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60538;\n\t\t\titemDef.maleModel = 60539;\n\t\t\titemDef.femaleModel = 60539;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33471:\n\t\t\titemDef.name = \"Cowboy hat\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60540;\n\t\t\titemDef.maleModel = 60541;\n\t\t\titemDef.femaleModel = 60541;\n\t\t\titemDef.modelZoom = 800;\n\t\t\titemDef.modelRotation1 = 108;\n\t\t\titemDef.modelRotation2 = 1535;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33472:\n\t\t\titemDef.name = \"Stick\";\n\t\t\titemDef.description = \"Careful of that chub.\";\n\t\t\titemDef.modelId = 60545;\n\t\t\titemDef.maleModel = 60545;\n\t\t\titemDef.femaleModel = 60545;\n\t\t\titemDef.modelZoom = 3000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33473:\n\t\t\titemDef.name = \"#1 Tob cape\";\n\t\t\titemDef.description = \"Reward to the first to complete tob solo and in a team.\";\n\t\t\titemDef.modelId = 60551;\n\t\t\titemDef.maleModel = 60550;\n\t\t\titemDef.femaleModel = 60550;\n\t\t\titemDef.modelZoom = 2295;\n\t\t\titemDef.modelRotation1 = 367;\n\t\t\titemDef.modelRotation2 = 1212;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = 8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33474:\n\t\t\titemDef.name = \"Supreme void upgrade kit\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 4847;\n\t\t\titemDef.modelZoom = 1310;\n\t\t\titemDef.modelRotation1 = 163;\n\t\t\titemDef.modelRotation2 = 73;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { -32709, 10295, 10304, 10287, 10275, 10283 };\n\t\t\titemDef.originalModelColors = new int[] { 10, 10, 10, 10, 10, 10 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33475:\n\t\t\titemDef.name = \"Hunter's penguin\";\n\t\t\titemDef.description = \"the one and only's pet.\";\n\t\t\titemDef.modelId = 60548;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 6;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33476:\n\t\t\titemDef.name = \"Chef Harambe\";\n\t\t\titemDef.description = \"I like to dip my balls in a deep fryer.\";\n\t\t\titemDef.modelId = 60921;\n\t\t\titemDef.modelZoom = 5000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 6;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33477:\n\t\t\titemDef.name = \"Void knight champion jr\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60463;\n\t\t\titemDef.modelZoom = 14000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 6;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33478:\n\t\t\titemDef.name = \"Custom pet token\";\n\t\t\titemDef.description = \"Trade this to corey after filling out a form on the forums post custom pets\";\n\t\t\titemDef.modelId = 13838;\n\t\t\titemDef.modelZoom = 530;\n\t\t\titemDef.modelRotation1 = 415;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33479:\n\t\t\titemDef.name = \"Mr jaycorr\";\n\t\t\titemDef.description = \"The autistic one.\";\n\t\t\titemDef.modelId = 60592;\n\t\t\titemDef.modelZoom = 7500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33480:\n\t\t\titemDef.name = \"Broom broom\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60593;\n\t\t\titemDef.maleModel = 60593;\n\t\t\titemDef.femaleModel = 60593;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33481:\n\t\t\titemDef.name = \"Test\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35751;\n\t\t\titemDef.maleModel = 35349;\n\t\t\titemDef.femaleModel = 35361;\n\t\t\titemDef.modelZoom = 777;\n\t\t\titemDef.modelRotation1 = 22;\n\t\t\titemDef.modelRotation2 = 1972;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 11773:\n\t\tcase 11771:\n\t\tcase 11770:\n\t\tcase 11772:\n\t\t\titemDef.anInt196 += 45;\n\t\t\tbreak;\n\t\tcase 22610:\n\t\t\titemDef.name = \"Vesta's spear (deg)\";\n\t\t\tbreak;\n\t\tcase 22614:\n\t\t\titemDef.name = \"Vesta's longsword (deg)\";\n\t\t\tbreak;\n\t\tcase 22616:\n\t\t\titemDef.name = \"Vesta's chainbody (deg)\";\n\t\t\tbreak;\n\t\tcase 22619:\n\t\t\titemDef.name = \"Vesta's plateskirt (deg)\";\n\t\t\tbreak;\n\t\tcase 22622:\n\t\t\titemDef.name = \"Statius's warhammer (deg)\";\n\t\t\tbreak;\n\t\tcase 22625:\n\t\t\titemDef.name = \"Statius's full helm (deg)\";\n\t\t\tbreak;\n\t\tcase 22628:\n\t\t\titemDef.name = \"Statius's platebody (deg)\";\n\t\t\tbreak;\n\t\tcase 22631:\n\t\t\titemDef.name = \"Statius's platelegs (deg)\";\n\t\t\tbreak;\n\t\tcase 22638:\n\t\t\titemDef.name = \"Morrigan's coif (deg)\";\n\t\t\tbreak;\n\t\tcase 22641:\n\t\t\titemDef.name = \"Morrigan's leather body (deg)\";\n\t\t\tbreak;\n\t\tcase 22644:\n\t\t\titemDef.name = \"Morrigan's leather chaps (deg)\";\n\t\t\tbreak;\n\t\tcase 22647:\n\t\t\titemDef.name = \"Zuriel's staff (deg)\";\n\t\t\tbreak;\n\t\tcase 22650:\n\t\t\titemDef.name = \"Zuriel's hood (deg)\";\n\t\t\tbreak;\n\t\tcase 22653:\n\t\t\titemDef.name = \"Zuriel's robe top (deg)\";\n\t\t\tbreak;\n\t\tcase 22656:\n\t\t\titemDef.name = \"Zuriel's robe bottom (deg)\";\n\t\t\tbreak;\n\n\t\tcase 13303:\n\t\t\titemDef.name = \"Event Key (Tarn)\";\n\t\t\titemDef.description = \"Use this to open the Event Boss chest.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 8128 };\n\t\t\titemDef.originalModelColors = new int[] { 933 };\n\t\t\tbreak;\n\t\tcase 13302:\n\t\t\titemDef.name = \"Event Key (Graardor)\";\n\t\t\titemDef.description = \"Use this to open the Event Boss chest.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 8128 };\n\t\t\titemDef.originalModelColors = new int[] { 933 };\n\t\t\tbreak;\n\t\tcase 13305:\n\t\t\titemDef.name = \"Tastey-Looking Key\";\n\t\t\titemDef.description = \"Use this to open the Event Boss chest.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 8128 };\n\t\t\titemDef.originalModelColors = new int[] { 933 };\n\t\t\tbreak;\n\t\tcase 2697:\n\t\t\titemDef.name = \"$10 Scroll\";\n\t\t\titemDef.description = \"Get donor status at a cheaper cost!\";\n\t\t\tbreak;\n\t\tcase 2698:\n\t\t\titemDef.name = \"$50 Scroll\";\n\t\t\titemDef.description = \"Read this scroll to be rewarded with the Super Donator status.\";\n\t\t\tbreak;\n\t\tcase 2699:\n\t\t\titemDef.name = \"$100 Donator\";\n\t\t\titemDef.description = \"Read this scroll to be rewarded with the Extreme Donator status.\";\n\t\t\tbreak;\n\t\tcase 2700:\n\t\t\titemDef.name = \"$5 Scroll\";\n\t\t\titemDef.description = \"Read this scroll to be rewarded with the Legendary Donator status.\";\n\t\t\tbreak;\n\t\tcase 1464:\n\t\t\titemDef.name = \"Vote ticket\";\n\t\t\titemDef.description = \"This ticket can be exchanged for a voting point.\";\n\t\t\tbreak;\n\n\t\tcase 11739:\n\t\t\titemDef.name = \"Daily reward box\";\n\t\t\titemDef.description = \"Open this box for a daily reward.\";\n\t\t\tbreak;\n\n\t\tcase 13066:// super set\n\t\tcase 12873:// barrows\n\t\tcase 12875:\n\t\tcase 12877:\n\t\tcase 12879:\n\t\tcase 12881:\n\t\tcase 12883:\n\t\tcase 12789:// clue box\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\tbreak;\n\t\t}\n\t\t\n\t}", "private void cs5() {\n\t\t\tif(ctx.widgets.widget(519).component(1).text().contains(\"You get some\")){\n\t\t\t\tctx.widgets.widget(519).component(2).click();\n\t\t\t}\n\t\t\tif(ctx.inventory.selectedItem().valid()){\n\t\t\t\tMethod.interactInventory(2511, \"Use\", \"Logs\");\n\t\t\t}else Method.interactInventory(590, \"Use\", \"Tinder box\");\n\t\t\t\n\t\t}", "@Override\n\tpublic void skill1(Fightable f) {\n\t\tsuper.setDamage(super.getStrength()*3);\n\t\tsuper.setAtkRange((int)(super.getDamage()/5));\n\t\t\n\t\tthis.attack(f, 2);\n\t}", "public SysSkillConferpo()\n {\n }", "private void addSkill(Skill skill) {\n Species.Characteristic att = skill.getGoverningAtt();\n int ability = character.getSpecies().getCharacteristicValue(att);\n skill.setAbility(ability);\n\n skillList.add(skill);\n }", "@Override\n public boolean applyThis() {\n Unit source = (Unit) ref.getSourceObj();\n Ref REF = ref.getCopy();\n Condition conditions = new OrConditions(\n DC_ConditionMaster\n .getSelectiveTargetingTemplateConditions(SELECTIVE_TARGETING_TEMPLATES.MY_ITEM),\n DC_ConditionMaster\n .getSelectiveTargetingTemplateConditions(SELECTIVE_TARGETING_TEMPLATES.MY_WEAPON));\n if (!new SelectiveTargeting(conditions).select(REF)) {\n ref.getActive().setCancelled(true);\n return false;\n }\n HeroItem item = (HeroItem) REF.getTargetObj();\n conditions = new Conditions(\n // ++ Max distance?\n new DistanceCondition(ref.getActive().getIntParam(PARAMS.RANGE, false) + \"\"),\n // new NumericCondition(\"{match_c_n_of_actions}\", \"1\"),\n new CanActCondition(KEYS.MATCH),\n new NotCondition(ConditionMaster.getSelfFilterCondition()),\n DC_ConditionMaster\n .getSelectiveTargetingTemplateConditions(SELECTIVE_TARGETING_TEMPLATES.ANY_ALLY));\n // non-immobile, ++facing?\n if (!new SelectiveTargeting(conditions).select(REF)) {\n ref.getActive().setCancelled(true);\n return false;\n }\n\n Unit unit = (Unit) REF.getTargetObj();\n\n boolean result = roll(source, unit, item);\n if (item instanceof QuickItem) {\n QuickItem quickItem = (QuickItem) item;\n source.removeQuickItem(quickItem);\n if (result) {\n unit.addQuickItem(quickItem);\n } else {\n dropped(item, unit);\n }\n\n } else {\n source.unequip(item, null);\n if (result) {\n unit.addItemToInventory(item); // TODO equip in hand if\n }\n// possible? spend AP?\n else {\n dropped(item, unit);\n }\n\n }\n // ref.getObj(KEYS.ITEM);\n return true;\n }", "void skillsComplete( String key ) {\n //do nothing\n }", "@Override\n public void applyDefaults(DynamicSkill skill, String prefix) {\n skill.checkDefault(prefix + DAMAGE, 1, 0);\n skill.checkDefault(prefix + DURATION, 5, 2);\n skill.checkDefault(prefix + FREQUENCY, 1, 0);\n if (!skill.isSet(LETHAL)) skill.setValue(LETHAL, 0);\n }", "public static /* synthetic */ void ResetHyperSP(LittleEndianAccessor a2, MapleClient a3, MapleCharacter a4) {\n if (a3 == null || a4 == null) {\n return;\n }\n a4.updateTick(a2.readInt());\n int n2 = a2.readShort();\n if (n2 < 1 || n2 > 3) {\n n2 = 3;\n }\n if (n2 > 0) {\n HashMap<ISkill, SkillEntry> hashMap;\n MapleQuestStatus mapleQuestStatus = a4.getQuestNAdd(MapleQuest.getInstance(7965));\n int n3 = 1000000;\n n3 = 100000;\n if (mapleQuestStatus.getCustomData() != null && !mapleQuestStatus.getCustomData().equals(InventoryException.ALLATORIxDEMO(\"Q\"))) {\n switch (Integer.valueOf(mapleQuestStatus.getCustomData())) {\n case 1: {\n n3 = 1000000;\n break;\n }\n case 2: {\n n3 = 2000000;\n break;\n }\n case 3: {\n n3 = 5000000;\n break;\n }\n default: {\n n3 = 10000000;\n }\n }\n }\n HashMap<ISkill, SkillEntry> hashMap2 = new HashMap<ISkill, SkillEntry>(a4.getSkills());\n HashMap<ISkill, SkillEntry> hashMap3 = new HashMap<ISkill, SkillEntry>();\n int n4 = 0;\n int n5 = 0;\n int n6 = 0;\n for (Map.Entry entry : hashMap2.entrySet()) {\n ISkill iSkill;\n ISkill iSkill2 = (ISkill)entry.getKey();\n if (iSkill2 == null || !iSkill2.isHyperSkill() || a4.getSkillLevel((ISkill)entry.getKey()) != 1) continue;\n if (iSkill2.getHyper() == 1) {\n iSkill = iSkill2;\n ++n4;\n } else if (iSkill2.getHyper() == 2) {\n iSkill = iSkill2;\n ++n5;\n } else {\n if (iSkill2.getHyper() == 3) {\n ++n6;\n }\n iSkill = iSkill2;\n }\n HashMap<ISkill, SkillEntry> hashMap4 = hashMap3;\n if (iSkill.canBeLearnedBy(a4.getJob())) {\n hashMap4.put((ISkill)entry.getKey(), new SkillEntry(0, ((SkillEntry)entry.getValue()).masterlevel, ((SkillEntry)entry.getValue()).expiration));\n continue;\n }\n hashMap4.put((ISkill)entry.getKey(), new SkillEntry(0, 0, -1L));\n }\n if (!hashMap3.isEmpty() && a4.getMeso() >= n3) {\n MapleCharacter mapleCharacter = a4;\n MapleCharacter mapleCharacter2 = a4;\n mapleCharacter2.gainMeso(-n3, true, true);\n mapleCharacter2.changeSkillLevel(hashMap3);\n a3.sendPacket(MaplePacketCreator.sendHyperSkillResetResult(true, a4.getId()));\n a4.gainHSP(0, n4);\n mapleCharacter.gainHSP(1, n5);\n mapleCharacter.gainHSP(2, n6);\n if (mapleQuestStatus.getStatus() == 0) {\n mapleQuestStatus.setStatus((byte)1);\n }\n a4.addQuestPoint(7965, 1L);\n a4.updateQuest(mapleQuestStatus, true);\n hashMap = hashMap2;\n } else {\n a3.sendPacket(MaplePacketCreator.sendHyperSkillResetResult(false, a4.getId()));\n hashMap = hashMap2;\n }\n hashMap.clear();\n hashMap3.clear();\n }\n a3.sendPacket(MaplePacketCreator.enableActions());\n }", "@Test\n public void checkStockWithoutProduction () {\n\n player.playRole(new Trader(stockGlobal,1));\n assertEquals(true,stockGlobal.getStockResource(TypeWare.INDIGO)==initialIndigoInStock);\n\n }", "public boolean canAttackWithItem() {\n/* 215 */ return false;\n/* */ }", "public Shield(String name, int levelRequired, int primaryStat){\n\t\tsuper(name,levelRequired,primaryStat);\n\t\titemId = 2;\n\t\tprice = (levelRequired*50)/40*60;\n\t\tsalePrice = (int)(price*0.75);\n\t}", "@Test\n public void test_BoostOnDies() {\n addCard(Zone.HAND, playerA, \"Silumgar Scavenger\", 1); // {4}{B}\n addCard(Zone.BATTLEFIELD, playerA, \"Swamp\", 5);\n //\n addCard(Zone.BATTLEFIELD, playerA, \"Balduvian Bears\", 1);\n\n // cast and exploit\n castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, \"Silumgar Scavenger\");\n setChoice(playerA, true); // yes, exploit\n addTarget(playerA, \"Balduvian Bears\");\n\n checkPermanentCounters(\"boost\", 1, PhaseStep.BEGIN_COMBAT, playerA, \"Silumgar Scavenger\", CounterType.P1P1, 1);\n checkAbility(\"boost\", 1, PhaseStep.BEGIN_COMBAT, playerA, \"Silumgar Scavenger\", HasteAbility.class, true);\n\n setStopAt(1, PhaseStep.END_TURN);\n setStrictChooseMode(true);\n execute();\n }", "@Deprecated\n/* */ protected static boolean performAttack(int pos, boolean aiming, Creature performer, Skills performerSkills, Creature defender, Skills defenderSkills, Item attWeapon, Item defPrimWeapon, double attBonus, double defBonus, Skill attackerFightSkill, Skill defenderFightSkill, int counter) {\n/* 829 */ boolean shieldBlocked = false;\n/* 830 */ boolean done = false;\n/* 831 */ Skill primWeaponSkill = null;\n/* 832 */ Skill defPrimWeaponSkill = null;\n/* 833 */ Item defShield = null;\n/* 834 */ Skill defShieldSkill = null;\n/* 835 */ int skillnum = -10;\n/* 836 */ boolean dryrun = false;\n/* */ \n/* 838 */ if (performer.isPlayer()) {\n/* */ \n/* 840 */ if (defender.isPlayer() || defender.isReborn()) {\n/* */ \n/* */ \n/* 843 */ dryrun = true;\n/* */ }\n/* 845 */ else if (defender.isKingdomGuard() || (defender\n/* 846 */ .isSpiritGuard() && defender.getKingdomId() == performer.getKingdomId())) {\n/* 847 */ dryrun = true;\n/* */ } \n/* 849 */ } else if (performer.isKingdomGuard() || (performer\n/* 850 */ .isSpiritGuard() && defender.getKingdomId() == performer.getKingdomId())) {\n/* 851 */ dryrun = true;\n/* 852 */ } if ((defender.isPlayer() && !defender.hasLink()) || (performer.isPlayer() && !performer.hasLink()))\n/* 853 */ dryrun = true; \n/* 854 */ if (defender.getStatus().getStunned() > 0.0F) {\n/* */ \n/* 856 */ defBonus -= 20.0D;\n/* 857 */ attBonus += 20.0D;\n/* */ } \n/* 859 */ if (attWeapon != null)\n/* */ {\n/* 861 */ if (attWeapon.isBodyPart()) {\n/* */ \n/* */ \n/* */ try {\n/* 865 */ skillnum = 10052;\n/* 866 */ primWeaponSkill = performerSkills.getSkill(skillnum);\n/* */ }\n/* 868 */ catch (NoSuchSkillException nss) {\n/* */ \n/* 870 */ if (skillnum != -10)\n/* 871 */ primWeaponSkill = performerSkills.learn(skillnum, 1.0F); \n/* */ } \n/* 873 */ if (performer.isPlayer() && defender.isPlayer())\n/* */ {\n/* 875 */ if (primWeaponSkill.getKnowledge(0.0D) >= 20.0D) {\n/* 876 */ dryrun = true;\n/* */ }\n/* */ }\n/* */ } else {\n/* */ \n/* */ \n/* */ try {\n/* 883 */ skillnum = attWeapon.getPrimarySkill();\n/* 884 */ primWeaponSkill = performerSkills.getSkill(skillnum);\n/* */ }\n/* 886 */ catch (NoSuchSkillException nss) {\n/* */ \n/* 888 */ if (skillnum != -10) {\n/* 889 */ primWeaponSkill = performerSkills.learn(skillnum, 1.0F);\n/* */ }\n/* */ } \n/* */ } \n/* */ }\n/* */ \n/* */ \n/* 896 */ skillnum = -10;\n/* 897 */ if (defPrimWeapon != null)\n/* */ {\n/* 899 */ if (defPrimWeapon.isBodyPart()) {\n/* */ \n/* */ \n/* */ try {\n/* 903 */ skillnum = 10052;\n/* 904 */ defPrimWeaponSkill = defenderSkills.getSkill(skillnum);\n/* */ }\n/* 906 */ catch (NoSuchSkillException nss) {\n/* */ \n/* 908 */ if (skillnum != -10)\n/* 909 */ defPrimWeaponSkill = defenderSkills.learn(skillnum, 1.0F); \n/* */ } \n/* 911 */ if (performer.isPlayer() && defender.isPlayer())\n/* */ {\n/* 913 */ if (defPrimWeaponSkill.getKnowledge(0.0D) >= 20.0D) {\n/* 914 */ dryrun = true;\n/* */ }\n/* */ }\n/* */ } else {\n/* */ \n/* */ \n/* */ try {\n/* 921 */ skillnum = defPrimWeapon.getPrimarySkill();\n/* 922 */ defPrimWeaponSkill = defenderSkills.getSkill(skillnum);\n/* */ }\n/* 924 */ catch (NoSuchSkillException nss) {\n/* */ \n/* 926 */ if (skillnum != -10) {\n/* 927 */ defPrimWeaponSkill = defenderSkills.learn(skillnum, 1.0F);\n/* */ }\n/* */ } \n/* */ } \n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 939 */ Skill attStrengthSkill = null;\n/* */ \n/* */ try {\n/* 942 */ attStrengthSkill = performerSkills.getSkill(102);\n/* */ }\n/* 944 */ catch (NoSuchSkillException nss) {\n/* */ \n/* 946 */ attStrengthSkill = performerSkills.learn(102, 1.0F);\n/* 947 */ logger.log(Level.WARNING, performer.getName() + \" had no strength. Weird.\");\n/* */ } \n/* */ \n/* 950 */ double bonus = 0.0D;\n/* 951 */ if (primWeaponSkill != null) {\n/* */ \n/* 953 */ float mod = getMod(performer, defender, primWeaponSkill);\n/* 954 */ bonus = Math.max(-20.0D, primWeaponSkill.skillCheck(\n/* 955 */ Math.abs(primWeaponSkill.getKnowledge(0.0D) - attWeapon.getCurrentQualityLevel()), attBonus, (mod == 0.0F || dryrun), \n/* 956 */ (float)(long)Math.max(1.0F, counter * mod)));\n/* */ } \n/* */ \n/* */ \n/* 960 */ skillnum = -10;\n/* 961 */ defShield = defender.getShield();\n/* 962 */ if (defShield != null) {\n/* */ \n/* */ try {\n/* */ \n/* 966 */ skillnum = defShield.getPrimarySkill();\n/* 967 */ defShieldSkill = defenderSkills.getSkill(skillnum);\n/* */ }\n/* 969 */ catch (NoSuchSkillException nss) {\n/* */ \n/* 971 */ if (skillnum != -10) {\n/* 972 */ defShieldSkill = defenderSkills.learn(skillnum, 1.0F);\n/* */ }\n/* */ } \n/* */ }\n/* 976 */ if (aiming) {\n/* */ \n/* 978 */ if (pos == 1) {\n/* */ \n/* 980 */ bonus = -60.0D;\n/* */ }\n/* 982 */ else if (pos == 29) {\n/* */ \n/* 984 */ bonus = -80.0D;\n/* */ }\n/* 986 */ else if (pos == 2) {\n/* */ \n/* 988 */ bonus = -40.0D;\n/* */ }\n/* 990 */ else if (pos == 3) {\n/* */ \n/* 992 */ bonus = -30.0D;\n/* */ }\n/* 994 */ else if (pos == 4) {\n/* */ \n/* 996 */ bonus = -30.0D;\n/* */ }\n/* 998 */ else if (pos == 34) {\n/* */ \n/* 1000 */ bonus = -30.0D;\n/* */ } \n/* 1002 */ pos = getRealPosition(pos);\n/* */ } else {\n/* */ \n/* */ \n/* */ try {\n/* */ \n/* 1008 */ pos = defender.getBody().getRandomWoundPos();\n/* */ }\n/* 1010 */ catch (Exception ex) {\n/* */ \n/* 1012 */ logger.log(Level.WARNING, \"Problem getting a Random Wound Position for \" + defender.getName() + \": due to \" + ex\n/* 1013 */ .getMessage(), ex);\n/* */ } \n/* */ } \n/* 1016 */ if (performer.getEnemyPresense() > 1200 && defender.isPlayer())\n/* 1017 */ bonus += 20.0D; \n/* 1018 */ double attCheck = 0.0D;\n/* 1019 */ boolean defFumbleShield = false;\n/* 1020 */ boolean defFumbleParry = false;\n/* */ \n/* 1022 */ boolean crit = false;\n/* */ \n/* 1024 */ if (defender.isPlayer()) {\n/* */ \n/* 1026 */ int critChance = attWeapon.getDamagePercent();\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 1032 */ if (Server.rand.nextInt(100 - Math.min(3, critChance)) == 0)\n/* */ {\n/* 1034 */ crit = true;\n/* */ }\n/* */ } \n/* */ \n/* */ \n/* 1039 */ if (attWeapon.isBodyPartAttached()) {\n/* */ \n/* 1041 */ float mod = getMod(performer, defender, attackerFightSkill);\n/* */ \n/* 1043 */ attCheck = attackerFightSkill.skillCheck(defenderFightSkill\n/* 1044 */ .getKnowledge(defBonus) / Math.min(5, defender.getAttackers()), bonus, (mod == 0.0F || dryrun), \n/* 1045 */ (float)(long)Math.max(1.0F, counter * mod));\n/* */ }\n/* */ else {\n/* */ \n/* 1049 */ float mod = getMod(performer, defender, attackerFightSkill);\n/* 1050 */ attCheck = attackerFightSkill.skillCheck(defenderFightSkill\n/* 1051 */ .getKnowledge(defBonus) / Math.min(5, defender.getAttackers()), attWeapon, bonus, (mod == 0.0F || dryrun), \n/* 1052 */ (float)(long)Math.max(1.0F, counter * mod));\n/* */ } \n/* 1054 */ byte type = (performer.getTemplate()).combatDamageType;\n/* 1055 */ if (attWeapon.isWeaponSword()) {\n/* */ \n/* 1057 */ if (Server.rand.nextInt(2) == 0) {\n/* 1058 */ type = 1;\n/* */ } else {\n/* 1060 */ type = 2;\n/* */ } \n/* 1062 */ } else if (attWeapon.isWeaponSlash()) {\n/* 1063 */ type = 1;\n/* 1064 */ } else if (attWeapon.isWeaponPierce()) {\n/* 1065 */ type = 2;\n/* 1066 */ } else if (attWeapon.isBodyPart()) {\n/* */ \n/* 1068 */ if (attWeapon.getTemplateId() == 17) {\n/* 1069 */ type = 3;\n/* 1070 */ } else if (attWeapon.getTemplateId() == 12) {\n/* 1071 */ type = 0;\n/* */ } \n/* */ } \n/* 1074 */ String attString = getAttackString(performer, attWeapon, type);\n/* */ \n/* */ \n/* */ \n/* */ \n/* 1079 */ double defCheck = 0.0D;\n/* 1080 */ double damage = getWeaponDamage(attWeapon, attStrengthSkill);\n/* */ \n/* 1082 */ if (performer.getDeity() != null && performer.getDeity().isWarrior() && \n/* 1083 */ performer.getFaith() >= 40.0F && performer.getFavor() >= 20.0F)\n/* 1084 */ damage = Math.min(4000.0D, damage * 1.25D); \n/* 1085 */ if (performer.getEnemyPresense() > 1200 && defender.isPlayer()) {\n/* 1086 */ damage *= Math.min(4000.0F, 1.15F);\n/* */ }\n/* */ \n/* 1089 */ if (defShield != null || crit) {\n/* */ \n/* 1091 */ if (!crit)\n/* */ {\n/* 1093 */ if (pos == 9) {\n/* */ \n/* 1095 */ shieldBlocked = true;\n/* */ }\n/* 1097 */ else if (defender.getStatus().getStamina() >= 300 && !defender.isMoving()) {\n/* */ \n/* 1099 */ defCheck = 0.0D;\n/* 1100 */ if (defShieldSkill != null) {\n/* */ \n/* 1102 */ float mod = getMod(performer, defender, defShieldSkill);\n/* 1103 */ defCheck = defShieldSkill.skillCheck(attCheck, defShield, defBonus, (mod == 0.0F || dryrun), (float)(long)mod);\n/* */ } \n/* */ \n/* */ \n/* 1107 */ defCheck += (defShield.getSizeY() + defShield.getSizeZ()) / 10.0D;\n/* */ \n/* */ \n/* 1110 */ defender.getStatus().modifyStamina(-300.0F);\n/* */ } \n/* */ }\n/* 1113 */ if (defCheck > 0.0D || shieldBlocked) {\n/* */ \n/* 1115 */ shieldBlocked = true;\n/* 1116 */ if (defender.isPlayer()) {\n/* 1117 */ defShield.setDamage(defShield.getDamage() + 0.001F * (float)damage * defShield.getDamageModifier());\n/* */ }\n/* */ }\n/* 1120 */ else if (defCheck < -90.0D) {\n/* */ \n/* 1122 */ defFumbleShield = true;\n/* */ } \n/* */ } \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 1134 */ if (!shieldBlocked || crit) {\n/* */ \n/* 1136 */ boolean parryPrimWeapon = true;\n/* 1137 */ defCheck = 0.0D;\n/* 1138 */ if (!crit && !defender.isMoving()) {\n/* */ \n/* 1140 */ int parryTime = 100;\n/* 1141 */ if (defender.getFightStyle() == 2) {\n/* 1142 */ parryTime = 40;\n/* 1143 */ } else if (defender.getFightStyle() == 1) {\n/* 1144 */ parryTime = 160;\n/* */ } \n/* 1146 */ if (WurmCalendar.currentTime > defender.lastParry + Server.rand.nextInt(parryTime) && \n/* 1147 */ defPrimWeapon != null && !defPrimWeapon.isWeaponAxe())\n/* */ {\n/* 1149 */ if (!defPrimWeapon.isBodyPart() || defPrimWeapon.getAuxData() == 100) {\n/* */ \n/* 1151 */ if (defender.getStatus().getStamina() >= 300) {\n/* */ \n/* 1153 */ if (defPrimWeaponSkill != null) {\n/* */ \n/* 1155 */ float mod = getMod(performer, defender, defPrimWeaponSkill);\n/* 1156 */ defCheck = defPrimWeaponSkill.skillCheck((attCheck * defender\n/* 1157 */ .getAttackers() + defPrimWeapon.getWeightGrams() / 200.0D) / \n/* 1158 */ getWeaponParryBonus(defPrimWeapon), defPrimWeapon, defBonus, (mod == 0.0F || dryrun), (float)(long)mod);\n/* */ \n/* 1160 */ defender.lastParry = WurmCalendar.currentTime;\n/* 1161 */ defender.getStatus().modifyStamina(-300.0F);\n/* */ } \n/* 1163 */ if (defCheck < -90.0D)\n/* */ {\n/* 1165 */ defFumbleParry = true;\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ }\n/* 1182 */ else if (defCheck < 0.0D && Server.rand.nextInt(50) == 0)\n/* */ {\n/* 1184 */ defCheck = secondaryParry(performer, attCheck, defender, defenderSkills, defCheck, defBonus, dryrun);\n/* */ \n/* 1186 */ if (defCheck < -90.0D) {\n/* */ \n/* 1188 */ defFumbleParry = true;\n/* */ }\n/* 1190 */ else if (defCheck > 0.0D) {\n/* 1191 */ parryPrimWeapon = false;\n/* */ }\n/* */ \n/* */ }\n/* */ \n/* */ } \n/* 1197 */ } else if (defender.getStatus().getStamina() >= 300) {\n/* */ \n/* 1199 */ if (defPrimWeaponSkill != null) {\n/* */ \n/* */ \n/* */ \n/* */ \n/* 1204 */ float mod = getMod(performer, defender, defPrimWeaponSkill);\n/* 1205 */ defCheck = defPrimWeaponSkill.skillCheck(Math.min(100, 80 * defender.getAttackers()), defBonus, (mod == 0.0F || dryrun), (float)(long)mod);\n/* */ \n/* 1207 */ defender.lastParry = WurmCalendar.currentTime;\n/* 1208 */ defender.getStatus().modifyStamina(-300.0F);\n/* */ } \n/* 1210 */ if (defCheck < 0.0D && Server.rand.nextInt(50) == 0) {\n/* */ \n/* 1212 */ defCheck = secondaryParry(performer, attCheck, defender, defenderSkills, defCheck, defBonus, dryrun);\n/* */ \n/* 1214 */ if (defCheck < -90.0D) {\n/* */ \n/* 1216 */ defFumbleParry = true;\n/* */ }\n/* 1218 */ else if (defCheck > 0.0D) {\n/* 1219 */ parryPrimWeapon = false;\n/* */ } \n/* */ } \n/* */ } \n/* */ }\n/* */ } \n/* 1225 */ if (defCheck <= 0.0D || defFumbleShield || crit) {\n/* */ \n/* */ \n/* */ \n/* 1229 */ if (!defFumbleShield && !defFumbleParry && !crit)\n/* */ {\n/* 1231 */ if (defender.getStatus().getStamina() >= 300) {\n/* */ \n/* 1233 */ defender.getStatus().modifyStamina(-300.0F);\n/* 1234 */ Skill defenderBodyControl = null;\n/* */ \n/* */ try {\n/* 1237 */ defenderBodyControl = defenderSkills.getSkill(104);\n/* */ }\n/* 1239 */ catch (NoSuchSkillException nss) {\n/* */ \n/* 1241 */ defenderBodyControl = defenderSkills.learn(104, 1.0F);\n/* 1242 */ logger.log(Level.WARNING, defender.getName() + \" no body control?\");\n/* */ } \n/* 1244 */ if (defenderBodyControl != null) {\n/* */ \n/* 1246 */ float mod = getMod(performer, defender, defenderBodyControl);\n/* 1247 */ defCheck = defenderBodyControl.skillCheck(attCheck, 0.0D, (mod == 0.0F || dryrun), (float)(long)mod);\n/* */ } else {\n/* */ \n/* 1250 */ logger.log(Level.WARNING, defender.getName() + \" has no body control!\");\n/* */ } \n/* */ } } \n/* 1253 */ if (defCheck <= 0.0D || crit) {\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 1261 */ Item armour = null;\n/* */ \n/* */ \n/* 1264 */ float armourMod = defender.getArmourMod();\n/* 1265 */ float evasionChance = ArmourTemplate.calculateGlanceRate(defender.getArmourType(), armour, type, armourMod);\n/* 1266 */ if (!performer.isPlayer() && !defender.isPlayer() && !defender.isUnique())\n/* 1267 */ armourMod = 1.0F; \n/* 1268 */ if (armourMod == 1.0F) {\n/* */ \n/* */ try {\n/* */ \n/* 1272 */ byte bodyPosition = ArmourTemplate.getArmourPosition((byte)pos);\n/* 1273 */ armour = defender.getArmour(bodyPosition);\n/* 1274 */ armourMod = ArmourTemplate.calculateDR(armour, type);\n/* 1275 */ if (defender.isPlayer())\n/* 1276 */ armour.setDamage(armour.getDamage() + \n/* 1277 */ Math.min(1.0F, (float)(damage * armourMod / 80.0D) * armour\n/* */ \n/* 1279 */ .getDamageModifier() * \n/* 1280 */ ArmourTemplate.getArmourDamageModFor(armour, type))); \n/* 1281 */ checkEnchantDestruction(attWeapon, armour, defender);\n/* 1282 */ evasionChance = ArmourTemplate.calculateGlanceRate(null, armour, type, armourMod);\n/* */ }\n/* 1284 */ catch (NoArmourException nsi) {\n/* */ \n/* */ \n/* 1287 */ evasionChance = 1.0F - defender.getArmourMod();\n/* */ }\n/* 1289 */ catch (NoSpaceException nsp) {\n/* */ \n/* 1291 */ logger.log(Level.WARNING, defender.getName() + \" no armour space on loc \" + pos);\n/* */ } \n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 1299 */ if (!attWeapon.isBodyPart() || attWeapon.getAuxData() == 100)\n/* */ {\n/* 1301 */ if (performer.isPlayer())\n/* 1302 */ attWeapon.setDamage(attWeapon.getDamage() + (float)(damage * (2.1D - armourMod) / 1000.0D) * attWeapon\n/* 1303 */ .getDamageModifier()); \n/* */ }\n/* 1305 */ if (defender.isUnique()) {\n/* */ \n/* 1307 */ evasionChance = 0.5F;\n/* 1308 */ damage *= armourMod;\n/* */ } \n/* 1310 */ if (Server.rand.nextFloat() < evasionChance) {\n/* */ \n/* 1312 */ if (aiming || performer.spamMode())\n/* 1313 */ performer.getCommunicator().sendNormalServerMessage(\"Your attack glances off \" + defender\n/* 1314 */ .getNameWithGenus() + \"'s armour.\"); \n/* 1315 */ if (defender.spamMode()) {\n/* 1316 */ defender.getCommunicator().sendNormalServerMessage(\"The attack to the \" + defender\n/* 1317 */ .getBody().getWoundLocationString(pos) + \" glances off your armour.\");\n/* */ }\n/* */ }\n/* 1320 */ else if (damage > (5.0F + Server.rand.nextFloat() * 5.0F) || crit) {\n/* */ \n/* 1322 */ if (crit)\n/* */ {\n/* 1324 */ armourMod = 1.0F;\n/* */ }\n/* */ \n/* */ \n/* 1328 */ Battle battle = performer.getBattle();\n/* 1329 */ boolean dead = false;\n/* 1330 */ if (defender.getStaminaSkill().getKnowledge(0.0D) < 2.0D) {\n/* */ \n/* 1332 */ defender.die(false, \"Combat Stam Check Fail\");\n/* 1333 */ dead = true;\n/* */ } else {\n/* */ \n/* 1336 */ dead = addWound(performer, defender, type, pos, damage, armourMod, attString, battle, 0.0F, 0.0F, false, false, false, false);\n/* */ } \n/* 1338 */ if (!dead && attWeapon.getSpellDamageBonus() > 0.0F)\n/* */ {\n/* 1340 */ if (damage * attWeapon.getSpellDamageBonus() / 300.0D > (Server.rand.nextFloat() * 5.0F) || crit) {\n/* 1341 */ dead = defender.addWoundOfType(performer, (byte)4, (byte)pos, false, armourMod, false, damage * attWeapon\n/* 1342 */ .getSpellDamageBonus() / 300.0D, 0.0F, 0.0F, false, false);\n/* */ }\n/* */ }\n/* 1345 */ if (!dead && attWeapon.getWeaponSpellDamageBonus() > 0.0F)\n/* */ {\n/* 1347 */ if (damage * attWeapon.getWeaponSpellDamageBonus() / 300.0D > (Server.rand.nextFloat() * 5.0F))\n/* */ {\n/* 1349 */ dead = defender.addWoundOfType(performer, (byte)6, 1, true, armourMod, false, damage * attWeapon\n/* 1350 */ .getWeaponSpellDamageBonus() / 300.0D, Server.rand\n/* 1351 */ .nextInt((int)attWeapon.getWeaponSpellDamageBonus()), 0.0F, false, false);\n/* */ }\n/* */ }\n/* 1354 */ if (armour != null)\n/* */ {\n/* 1356 */ if (armour.getSpellPainShare() > 0.0F)\n/* */ {\n/* 1358 */ if (performer.isUnique()) {\n/* 1359 */ defender.getCommunicator().sendNormalServerMessage(performer\n/* 1360 */ .getNameWithGenus() + \" ignores the effects of the \" + armour.getName() + \".\");\n/* */ \n/* */ \n/* */ }\n/* 1364 */ else if (damage * armour.getSpellPainShare() / 300.0D > 5.0D) {\n/* */ \n/* 1366 */ addBounceWound(defender, performer, type, pos, damage * armour\n/* 1367 */ .getSpellPainShare() / 300.0D, armourMod, 0.0F, 0.0F, false, true);\n/* */ } \n/* */ }\n/* */ }\n/* */ \n/* */ \n/* */ \n/* 1374 */ if (dead) {\n/* */ \n/* 1376 */ performer.getCommunicator().sendSafeServerMessage(defender.getNameWithGenus() + \" is dead!\");\n/* 1377 */ if (battle != null)\n/* 1378 */ battle.addCasualty(performer, defender); \n/* 1379 */ done = true;\n/* */ \n/* */ \n/* */ }\n/* 1383 */ else if (!defender.hasNoServerSound()) {\n/* 1384 */ SoundPlayer.playSound(defender.getHitSound(), defender, 1.6F);\n/* */ }\n/* */ \n/* */ } else {\n/* */ \n/* 1389 */ if (aiming || performer.spamMode())\n/* */ {\n/* 1391 */ performer.getCommunicator().sendNormalServerMessage(defender\n/* 1392 */ .getNameWithGenus() + \" takes no real damage from the hit to the \" + defender\n/* 1393 */ .getBody().getWoundLocationString(pos) + \".\");\n/* */ }\n/* 1395 */ if (defender.spamMode()) {\n/* 1396 */ defender.getCommunicator().sendNormalServerMessage(\"You take no real damage from the blow to the \" + defender\n/* */ \n/* 1398 */ .getBody().getWoundLocationString(pos) + \".\");\n/* */ }\n/* */ } \n/* */ } else {\n/* */ \n/* 1403 */ String sstring = \"sound.combat.miss.light\";\n/* 1404 */ if (attCheck < -80.0D) {\n/* 1405 */ sstring = \"sound.combat.miss.heavy\";\n/* 1406 */ } else if (attCheck < -40.0D) {\n/* 1407 */ sstring = \"sound.combat.miss.med\";\n/* 1408 */ } SoundPlayer.playSound(sstring, defender, 1.6F);\n/* 1409 */ if (aiming || performer.spamMode())\n/* */ {\n/* 1411 */ performer.getCommunicator().sendNormalServerMessage(defender\n/* 1412 */ .getNameWithGenus() + \" \" + getParryString(defCheck) + \" evades the blow to the \" + defender\n/* 1413 */ .getBody().getWoundLocationString(pos) + \".\");\n/* */ }\n/* 1415 */ if (defender.spamMode()) {\n/* 1416 */ defender.getCommunicator().sendNormalServerMessage(\"You \" + \n/* 1417 */ getParryString(defCheck) + \" evade the blow to the \" + defender\n/* 1418 */ .getBody().getWoundLocationString(pos) + \".\");\n/* */ }\n/* */ } \n/* */ } else {\n/* */ \n/* 1423 */ defender.lastParry = WurmCalendar.currentTime;\n/* 1424 */ Item weapon = defPrimWeapon;\n/* 1425 */ if (!parryPrimWeapon)\n/* 1426 */ weapon = defender.getLefthandWeapon(); \n/* 1427 */ if (aiming || performer.spamMode())\n/* */ {\n/* 1429 */ performer.getCommunicator().sendNormalServerMessage(defender\n/* 1430 */ .getNameWithGenus() + \" \" + getParryString(defCheck) + \" parries with \" + weapon.getNameWithGenus() + \".\");\n/* */ }\n/* */ \n/* */ \n/* 1434 */ if (defender.spamMode())\n/* */ {\n/* 1436 */ defender.getCommunicator().sendNormalServerMessage(\"You \" + \n/* 1437 */ getParryString(defCheck) + \" parry with your \" + weapon.getName() + \".\");\n/* */ }\n/* */ \n/* 1440 */ if (!weapon.isBodyPart() || weapon.getAuxData() == 100) {\n/* */ \n/* 1442 */ if (defender.isPlayer())\n/* */ {\n/* 1444 */ if (weapon.isWeaponSword()) {\n/* 1445 */ weapon.setDamage(weapon.getDamage() + 0.001F * (float)damage * weapon.getDamageModifier());\n/* */ } else {\n/* 1447 */ weapon.setDamage(weapon.getDamage() + 0.005F * (float)damage * weapon.getDamageModifier());\n/* */ } } \n/* 1449 */ if (performer.isPlayer())\n/* */ {\n/* 1451 */ if (!attWeapon.isBodyPart() || attWeapon.getAuxData() == 100) {\n/* 1452 */ attWeapon\n/* 1453 */ .setDamage(attWeapon.getDamage() + 0.001F * (float)damage * attWeapon.getDamageModifier());\n/* */ }\n/* */ }\n/* */ } \n/* 1457 */ String sstring = \"sound.combat.parry1\";\n/* 1458 */ int x = Server.rand.nextInt(3);\n/* 1459 */ if (x == 0) {\n/* 1460 */ sstring = \"sound.combat.parry2\";\n/* 1461 */ } else if (x == 1) {\n/* 1462 */ sstring = \"sound.combat.parry3\";\n/* 1463 */ } SoundPlayer.playSound(sstring, defender, 1.6F);\n/* 1464 */ checkEnchantDestruction(attWeapon, weapon, defender);\n/* */ }\n/* */ \n/* */ } else {\n/* */ \n/* 1469 */ if (performer.spamMode()) {\n/* */ \n/* 1471 */ if (aiming) {\n/* 1472 */ performer.getCommunicator().sendNormalServerMessage(defender\n/* 1473 */ .getNameWithGenus() + \" raises \" + defender.getHisHerItsString() + \" shield and parries.\");\n/* */ } else {\n/* 1475 */ performer.getCommunicator().sendNormalServerMessage(\"You try to \" + attString + \" \" + defender\n/* 1476 */ .getNameWithGenus() + \" but \" + defender.getHeSheItString() + \" raises \" + defender\n/* 1477 */ .getHisHerItsString() + \" shield and parries.\");\n/* */ } \n/* 1479 */ } else if (aiming) {\n/* 1480 */ performer.getCommunicator().sendNormalServerMessage(defender\n/* 1481 */ .getNameWithGenus() + \" raises \" + defender.getHisHerItsString() + \" shield and parries.\");\n/* 1482 */ } if (defender.spamMode())\n/* 1483 */ defender.getCommunicator().sendNormalServerMessage(performer\n/* 1484 */ .getNameWithGenus() + \" tries to \" + attString + \" you but you raise your shield and parry.\"); \n/* 1485 */ if (defShield.isWood()) {\n/* 1486 */ Methods.sendSound(defender, \"sound.combat.shield.wood\");\n/* */ } else {\n/* 1488 */ Methods.sendSound(defender, \"sound.combat.shield.metal\");\n/* 1489 */ } checkEnchantDestruction(attWeapon, defShield, defender);\n/* */ } \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 1510 */ return done;\n/* */ }", "@Override\n protected void initLevelUpSkills() {\n List<Integer> beginnerSkills = new ArrayList<Integer>();\n beginnerSkills.add(SkillFactory.MEGAHORN);\n beginnerSkills.add(SkillFactory.TACKLE);\n beginnerSkills.add(SkillFactory.TAIL_WHIP);\n beginnerSkills.add(SkillFactory.WATER_GUN);\n beginnerSkills.add(SkillFactory.WATER_SPORT);\n levelUpSkills.put(0, beginnerSkills);\n levelUpSkills.put(5, new ArrayList<Integer>(Arrays.asList(SkillFactory.TAIL_WHIP)));\n levelUpSkills.put(7, new ArrayList<Integer>(Arrays.asList(SkillFactory.WATER_GUN)));\n levelUpSkills.put(11, new ArrayList<Integer>(Arrays.asList(SkillFactory.WATER_SPORT)));\n levelUpSkills.put(13, new ArrayList<Integer>(Arrays.asList(SkillFactory.FOCUS_ENERGY)));\n levelUpSkills.put(18, new ArrayList<Integer>(Arrays.asList(SkillFactory.RAZOR_SHELL)));\n levelUpSkills.put(21, new ArrayList<Integer>(Arrays.asList(SkillFactory.FURY_CUTTER)));\n levelUpSkills.put(26, new ArrayList<Integer>(Arrays.asList(SkillFactory.WATER_PULSE)));\n levelUpSkills.put(29, new ArrayList<Integer>(Arrays.asList(SkillFactory.REVENGE)));\n levelUpSkills.put(34, new ArrayList<Integer>(Arrays.asList(SkillFactory.AQUA_JET)));\n //39 ENCORE\n levelUpSkills.put(46, new ArrayList<Integer>(Arrays.asList(SkillFactory.AQUA_TAIL)));\n //51 RETALIATE\n levelUpSkills.put(58, new ArrayList<Integer>(Arrays.asList(SkillFactory.SWORDS_DANCE)));\n levelUpSkills.put(63, new ArrayList<Integer>(Arrays.asList(SkillFactory.HYDRO_PUMP)));\n initEvolutionSkills();\n }", "void updateSkill(Skill skill);", "public void rewardSkills(final boolean send) {\n boolean update = false;\n if (AllSettingsConfig.AUTO_LEARN_SKILLS) {\n for (SkillLearn skillLearn : SkillAcquireHolder.getInstance().getNormalSkillsClassId(this).values()) {\n final SkillEntry sk = SkillTable.getInstance().getSkillEntry(skillLearn.getId(), skillLearn.getLevel());\n if (sk == null || !sk.getTemplate().getCanLearn(getPlayerClassComponent().getClassId()) || (!AllSettingsConfig.AUTO_LEARN_FORGOTTEN_SKILLS && skillLearn.isClicked())) {\n continue;\n }\n if (getSkillLevel(sk.getId()) < sk.getLevel())\n addSkill(sk, true);\n }\n update = true;\n/*\n\t\t\tint unLearnable = 0;\n\t\t\tCollection<SkillLearn> skills = SkillAcquireHolder.getInstance().getAvailableSkills(this, AcquireType.NORMAL);\n\t\t\twhile(skills.size() > unLearnable) {\n\t\t\t\tunLearnable = 0;\n\t\t\t\tfor(final SkillLearn s : skills) {\n\t\t\t\t\tfinal SkillEntry sk = SkillTable.getInstance().getSkillEntry(s.getId(), s.getLevel());\n\t\t\t\t\tif(sk == null || !sk.getTemplate().getCanLearn(getPlayerClassComponent().getClassId()) || (!AllSettingsConfig.AUTO_LEARN_FORGOTTEN_SKILLS && s.isClicked())) {\n\t\t\t\t\t\tunLearnable++;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\taddSkill(sk, true);\n\t\t\t\t}\n\t\t\t\tskills = SkillAcquireHolder.getInstance().getAvailableSkills(this, AcquireType.NORMAL);\n\t\t\t}\n\t\t\tupdate = true;*/\n } else\n // Скиллы дающиеся бесплатно не требуют изучения\n {\n for (final SkillLearn skill : SkillAcquireHolder.getInstance().getAvailableSkills(this, AcquireType.NORMAL)) {\n if (skill.getCost() == 0 && skill.getItemId() == 0) {\n final SkillEntry sk = SkillTable.getInstance().getSkillEntry(skill.getId(), skill.getLevel());\n addSkill(sk, true);\n if (!getShortCutComponent().getAllShortCuts().isEmpty() && sk.getLevel() > 1) {\n getShortCutComponent().getAllShortCuts().stream().filter(sc -> sc.getId() == sk.getId() && sc.getType() == ShortCut.TYPE_SKILL).forEach(sc -> {\n final ShortCut newsc = new ShortCut(sc.getSlot(), sc.getPage(), sc.getType(), sc.getId(), sk.getLevel(), 1);\n sendPacket(new ShortCutRegister(this, newsc));\n getShortCutComponent().registerShortCut(newsc);\n });\n }\n update = true;\n }\n }\n }\n if (isTransformed()) {\n update = true;\n //Генерируем новые скилы трансформации и выдаем их.\n getTransformation().addGiveAllSkills(getLevel());\n }\n if (send && update) {\n sendPacket(new SkillList(this));\n }\n\n updateStats();\n }", "public boolean meetsRequirement(String sId, String sName, CCode sColor, Type sType, int sLevel, int sCost, Trigger sTrigger, int sPower, int sSoul, String sTrait, String sAbility) {\n \n \t\tboolean isMet = true;\n \n \t\tif (!id.isEmpty()) {\n \n \t\t\tString[] parts = sId.split(\" \");\n \n \t\t\tfor (int i = 0; i < sameID.length; i++) {\n \t\t\t\tisMet = true;\n \t\t\t\tfor (int j = 0; j < parts.length; j++) {\n \t\t\t\t\tisMet = isMet && sameID[i].toLowerCase().contains(parts[j].toLowerCase());\n \t\t\t\t\t/*\n \t\t\t\t\t * if (sameID[i].toLowerCase()\n \t\t\t\t\t * .contains(parts[j].toLowerCase()))\n \t\t\t\t\t * System.out.println(sameID[i] + \"???\" + parts[j]);\n \t\t\t\t\t */\n \t\t\t\t}\n \t\t\t\tif (isMet) {\n \t\t\t\t\tbreak;\n \t\t\t\t}\n \n \t\t\t}\n \t\t\tisMet = true;\n \t\t\tfor (int j = 0; j < parts.length; j++) {\n \t\t\t\tisMet = isMet && id.toLowerCase().contains(parts[j].toLowerCase());\n \t\t\t\t/*\n \t\t\t\t * if (id.toLowerCase().contains(parts[j].toLowerCase()))\n \t\t\t\t * System.out.println(id + \"::CONTAINS::\" + parts[j]);\n \t\t\t\t */\n \t\t\t}\n \n \t\t\t/*\n \t\t\t * if (isMet) { for (int i = 0; i < sameID.length; i++) {\n \t\t\t * System.out.print(\"[(\" + i + \")\" + sameID[i] + \"]\"); }\n \t\t\t * System.out.println(); }\n \t\t\t */\n \t\t}\n \n \t\tif (!sName.isEmpty()) {\n \t\t\tisMet = isMet && (cardName.toLowerCase().contains(sName.toLowerCase()) || cardName_e.toLowerCase().contains(sName.toLowerCase()));\n \t\t}\n \n \t\tif (sColor != null && sColor != CCode.ALL) {\n \t\t\tisMet = isMet && (sColor == c);\n \t\t}\n \n \t\tif (sType != null && sType != CardAssociation.Type.ALL) {\n \t\t\tisMet = isMet && (sType == t);\n \t\t}\n \n \t\tif (sLevel > -1) {\n \t\t\tisMet = isMet && (sLevel == level);\n \t\t}\n \n \t\tif (sCost > -1) {\n \t\t\tisMet = isMet && (sCost == cost);\n \t\t}\n \n \t\tif (sTrigger != null && sTrigger != Trigger.ALL) {\n \t\t\tisMet = isMet && (sTrigger == trigger);\n \t\t}\n \n \t\tif (sPower > -1) {\n \t\t\tisMet = isMet && (sPower == power);\n \t\t}\n \n \t\tif (sSoul > -1) {\n \t\t\tisMet = isMet && (sSoul == soul);\n \t\t}\n \n \t\tif (!sTrait.isEmpty()) {\n \t\t\tisMet = isMet && (trait1.toLowerCase().contains(sTrait) || trait2.toLowerCase().contains(sTrait) || trait1_e.toLowerCase().contains(sTrait) || trait2_e.toLowerCase().contains(sTrait));\n \t\t}\n \n \t\tif (!sAbility.isEmpty()) {\n \n \t\t\tString[] parts = sAbility.split(\" \");\n \n \t\t\tfor (int i = 0; i < parts.length; i++) {\n \t\t\t\tisMet = isMet && (getEffects().toLowerCase().contains(parts[i].toLowerCase()) || getEffects_e().toLowerCase().contains(parts[i].toLowerCase()));\n \t\t\t}\n \t\t}\n \n \t\treturn isMet;\n \t}", "@Test\n public void testNormalCase() {\n addCard(Zone.BATTLEFIELD, playerA, \"Mountain\", 1);\n addCard(Zone.HAND, playerA, \"Lightning Bolt\");\n addCard(Zone.BATTLEFIELD, playerB, \"Dryad Militant\");\n\n\n castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, \"Lightning Bolt\", playerB);\n setStopAt(1, PhaseStep.BEGIN_COMBAT);\n execute();\n \n assertLife(playerB, 17);\n assertExileCount(\"Lightning Bolt\", 1);\n }", "public Skills getChosenSkill();", "@Test\n public void bestowEnchantmentWillNotBeTapped() {\n addCard(Zone.BATTLEFIELD, playerA, \"Forest\", 6);\n addCard(Zone.BATTLEFIELD, playerA, \"Silent Artisan\");\n\n addCard(Zone.HAND, playerA, \"Boon Satyr\");\n\n // Enchantment {1}{W}\n // Creatures your opponents control enter the battlefield tapped.\n addCard(Zone.BATTLEFIELD, playerB, \"Imposing Sovereign\");\n\n castSpell(1, PhaseStep.POSTCOMBAT_MAIN, playerA, \"Boon Satyr using bestow\", \"Silent Artisan\");\n\n setStrictChooseMode(true);\n setStopAt(1, PhaseStep.END_TURN);\n execute();\n\n // because Boon Satyr is no creature on the battlefield, evolve may not trigger\n assertPermanentCount(playerA, \"Silent Artisan\", 1);\n assertPowerToughness(playerA, \"Silent Artisan\", 7, 7);\n // because cast with bestow, Boon Satyr may not be tapped\n assertTapped(\"Boon Satyr\", false);\n\n }", "public Ability getConfigurationSkill() {\n\n\n if (frameworkAbility.hasAdvantage(advantageCosmic.advantageName) || frameworkAbility.hasAdvantage(advantageNoSkillRollRequired.advantageName)) {\n return null;\n } else {\n ParameterList pl = frameworkAbility.getPowerParameterList();\n Ability skill = null;\n\n Object o = pl.getParameterValue(\"Skill\");\n if (o instanceof AbilityAlias) {\n skill = ((AbilityAlias) o).getAliasReferent();\n } else if (o instanceof Ability) {\n skill = (Ability) o;\n }\n\n return skill;\n }\n }", "protected String getHurtSound()\n {\n return \"mob.spider.say\";\n }", "public void setSkillEnable(int healthPointMax){\n if(healthPointMax >= 200000){\n if(skill1.getEnable() == false){\n setSkillPending(0);\n skill1.setEnable(true);\n skill1.setCanUse(true);\n }\n if(skill2.getEnable() == false){\n setSkillPending(1);\n skill2.setEnable(true);\n skill2.setCanUse(true);\n }\n if(skill3.getEnable() == false){\n setSkillPending(2);\n skill3.setEnable(true);\n skill3.setCanUse(true);\n }\n if(skill4.getEnable() == false){\n setSkillPending(3);\n skill4.setEnable(true);\n skill4.setCanUse(true);\n }\n }\n else if(healthPointMax >= 50000){\n if(skill1.getEnable() == false){\n setSkillPending(0);\n skill1.setEnable(true);\n skill1.setCanUse(true);\n }\n if(skill2.getEnable() == false){\n setSkillPending(1);\n skill2.setEnable(true);\n skill2.setCanUse(true);\n }\n if(skill3.getEnable() == false){\n setSkillPending(2);\n skill3.setEnable(true);\n skill3.setCanUse(true);\n }\n }\n else if(healthPointMax >= 10000){\n if(skill1.getEnable() == false){\n setSkillPending(0);\n skill1.setEnable(true);\n skill1.setCanUse(true);\n }\n if(skill2.getEnable() == false){\n setSkillPending(1);\n skill2.setEnable(true);\n skill2.setCanUse(true);\n }\n }\n else if(healthPointMax >= 500){\n if(skill1.getEnable() == false){\n setSkillPending(0);\n skill1.setEnable(true);\n skill1.setCanUse(true);\n }\n }\n }", "private void m6600Q() {\n this.f5397Q = new C1290d(this, (C1296Ua) null);\n IntentFilter intentFilter = new IntentFilter();\n intentFilter.addAction(\"com.android.bbksoundrecorder.intent.action.RECORDER_STATE\");\n intentFilter.addAction(\"com.android.bbksoundrecorder.intent.action.HANDLE_ERROR\");\n intentFilter.addAction(\"android.intent.action.USER_SWITCHED\");\n C0900b.m4902a(this.f5389I).mo4900a(this.f5397Q, intentFilter);\n }", "@Override\n\tpublic ArrayList<Unit> useSkill() {\n\t\tArrayList<Unit> canExit = new ArrayList<Unit>();\n\t\tGameBoard gameBoard = GameController.gameBoard;\n\t\tfor (int i = 0; i < gameBoard.getWidth(); i++) {\n\t\t\tfor (int j = 0; j < gameBoard.getHeight(); j++) {\n\t\t\t\tif (gameBoard.getUnit(i, j) instanceof Defender) {\n\t\t\t\t\tdef = (Defender) gameBoard.getUnit(i, j);\n\t\t\t\t\tif (def.getCaptureUnit() == null) {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tif (def.getCaptureUnit() instanceof Silva) {\n\t\t\t\t\t\tfor (Unit u: gameBoard.getAdjacentUnit(i, j)) {\n\t\t\t\t\t\t\tif (u instanceof Empty) {\n\t\t\t\t\t\t\t\tcanExit.add(u);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn canExit;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn canExit;\n\t}", "static void weapon(char item)\r\n {\r\n \tString pClass = MainApp.playerClass;\r\n \tif(MainApp.alreadyEquipped == false)\r\n\t\t{\r\n\t\t\tif(pClass == \"Warrior\")\r\n\t\t\t{\r\n\t \t\tif(item == '0')\r\n\t \t\t{\r\n\t \t\t\tMainApp.playerStats[0] += 5;\r\n\t \t\t\tMainApp.alreadyEquipped = true;\r\n\t \t\t\t//System.out.print(\"Warrior Equipped!\");\r\n\t \t\t}\r\n\t \t\t//System.out.print(\"Post Equip Warrior\");\r\n\t\t\t}\r\n\t\t\tif(pClass == \"Archer\")\r\n\t\t\t{\r\n\t\t\t\tif(item == '&')\r\n\t \t\t{\r\n\t \t\t\tMainApp.playerStats[0] += 5;\r\n\t \t\t\tMainApp.alreadyEquipped = true;\r\n\t \t\t\t//System.out.print(\"Archer Equipped!\");\r\n\t \t\t}\r\n\t\t\t\t//System.out.print(\"Post Equip Archer\");\r\n\t\t\t}\r\n\t\t\tif(pClass == \"Rogue\")\r\n\t\t\t{\r\n\t\t\t\tif(item == '!')\r\n\t \t\t{\r\n\t \t\t\tMainApp.playerStats[0] += 5;\r\n\t \t\t\tMainApp.alreadyEquipped = true;\r\n\t \t\t\t//System.out.print(\"Rogue Equipped!\");\r\n\t \t\t}\r\n\t\t\t\t//System.out.print(\"Post Equip Rogue\");\r\n\t\t\t}\r\n\t }\r\n }", "protected String getHurtSound()\n {\n return null;\n }", "protected String getHurtSound()\n {\n return null;\n }", "@Override\n protected void initLevelUpSkills() {\n List<Integer> beginnerSkills = new ArrayList<Integer>();\n //TODO: CONVERSION 2\n beginnerSkills.add(SkillFactory.TACKLE);\n beginnerSkills.add(SkillFactory.CONVERSION);\n beginnerSkills.add(SkillFactory.SHARPEN);\n levelUpSkills.put(0, beginnerSkills);\n levelUpSkills.put(7, new ArrayList<Integer>(Arrays.asList(SkillFactory.PSYBEAM)));\n levelUpSkills.put(12, new ArrayList<Integer>(Arrays.asList(SkillFactory.AGILITY)));\n levelUpSkills.put(18, new ArrayList<Integer>(Arrays.asList(SkillFactory.RECOVER)));\n //TODO: MAGNET RISE 23\n levelUpSkills.put(29, new ArrayList<Integer>(Arrays.asList(SkillFactory.SIGNAL_BEAM)));\n //TODO: RECYCLE 34\n levelUpSkills.put(40, new ArrayList<Integer>(Arrays.asList(SkillFactory.DISCHARGE)));\n levelUpSkills.put(45, new ArrayList<Integer>(Arrays.asList(SkillFactory.LOCK_ON)));\n levelUpSkills.put(50, new ArrayList<Integer>(Arrays.asList(SkillFactory.TRI_ATTACK)));\n //TODO: MAGIC COAT 56\n levelUpSkills.put(62, new ArrayList<Integer>(Arrays.asList(SkillFactory.ZAP_CANNON)));\n }", "@Override\n public void applyDefaults(DynamicSkill skill, String prefix) { }", "public boolean canAttackWithItem() {\n/* 253 */ return false;\n/* */ }", "public void use(Player player){\r\n\t\t\tif(this.getEffect()==\"HEAL\"){\r\n\t\t\t\tplayer.heal(this.getValue());\r\n\t\t\t}\r\n\t\t\tif(this.getEffect() == \"BOOK\"){ \r\n\t\t\t\tplayer.increaseSkill(this.getValue(), 1); \r\n\t\t\t}\r\n\t\t\tif(this.getEffect() == \"RESSURECTION\"){\r\n\t\t\t\ttry {TrackLog.writeLog(\"I think I should keep this one, migth save my life some days\");} \r\n\t\t\t\tcatch (IOException e) {e.printStackTrace();}\r\n\t\t\t}\r\n\t\t}", "@Override\r\n\tpublic void specialAbility() {\n\t}", "void kiemTraThangHopLi() {\n }", "@Override\n public void chew() {\n MessageUtility.logSound(name,\"Bleats and Stomps its legs, then chews\");\n }", "@Override\n public void beforeFirstLogic() {\n }", "@Override\n\tpublic void requestLaw() {\n\t\tSystem.out.println(\"xiaoming-requestLaw\");\n\t}", "public ItemSwordAndShield(Item.ToolMaterial mat)\n/* 21: */ {\n/* 22:20 */ super(mat, \"\");\n/* 23:21 */ if (mat == Item.ToolMaterial.IRON) {\n/* 24:22 */ this.isIron = true;\n/* 25: */ } else {\n/* 26:24 */ this.isIron = false;\n/* 27: */ }\n/* 28: */ }", "private void adminGiveAllSkills(Player activeChar)\r\n\t{\r\n\t\tGameObject target = activeChar.getTarget();\r\n\t\tPlayer player = null;\r\n\t\tif(target != null && target.isPlayer())\r\n\t\t\tplayer = (Player) target;\r\n\t\telse\r\n\t\t{\r\n\t\t\tactiveChar.sendPacket(SystemMsg.INVALID_TARGET);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tint unLearnable = 0;\r\n\t\tint skillCounter = 0;\r\n\t\tCollection<SkillLearn> skills = SkillAcquireHolder.getInstance().getAvailableSkills(player, AcquireType.NORMAL);\r\n\t\twhile(skills.size() > unLearnable)\r\n\t\t{\r\n\t\t\tunLearnable = 0;\r\n\t\t\tfor(SkillLearn s : skills)\r\n\t\t\t{\r\n\t\t\t\tSkill sk = SkillTable.getInstance().getInfo(s.getId(), s.getLevel());\r\n\t\t\t\tif(sk == null || !sk.getCanLearn(player.getClassId()))\r\n\t\t\t\t{\r\n\t\t\t\t\tunLearnable++;\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\tif(player.getSkillLevel(sk.getId()) == -1)\r\n\t\t\t\t\tskillCounter++;\r\n\t\t\t\tplayer.addSkill(sk, true);\r\n\t\t\t}\r\n\t\t\tskills = SkillAcquireHolder.getInstance().getAvailableSkills(player, AcquireType.NORMAL);\r\n\t\t}\r\n\r\n\t\tplayer.sendMessage(new CustomMessage(\"l2r.gameserver.handler.admincommands.impl.adminskill.message22\", player, skillCounter));\r\n\t\tplayer.sendPacket(new SkillList(player));\r\n\t\tactiveChar.sendMessage(new CustomMessage(\"l2r.gameserver.handler.admincommands.impl.adminskill.message23\", activeChar, skillCounter, player.getName()));\r\n\t}", "public void specialEffect() {\n if (getDefense() > 0) {\n setDefense(0);\n setCurrentHealth(currentHealth + 50);\n }\n\n }", "@Inject(\n at = @At(\"HEAD\"),\n method = \"tick\",\n cancellable = true)\n\n private void removeWeakenedIfPCEnchant(CallbackInfo ci) {\n if ((Object) this instanceof PlayerEntity) {\n PlayerEntity entity = (PlayerEntity) (Object) this;\n ItemStack mainHand = getMainHandStack();\n\n if (EnchantmentHelper.getLevel(EnchantsRegistry.WEAKENING, mainHand) >= 1\n || mainHand.getItem() == ItemRegistry.getItem(\"sword_nameless_blade\").asItem()) {\n this.removeStatusEffect(StatusEffects.WEAKNESS);\n }\n }\n }", "@Test\n public void testUpgradeSkill_03() {\n System.out.println(\"upgradeSkill\");\n \n Skill s = mock(Skill.class);\n when(s.getName()).thenReturn(\"Java\");\n when(s.getType()).thenReturn(\"Technical\");\n when(s.getCost()).thenReturn(2);\n when(s.getLevel()).thenReturn(4);\n when(s.getCostFormula()).thenReturn(Skill.PLUS_2);\n \n SkillsList instance = new SkillsList();\n instance.add(s);\n instance.upgradeSkill(\"C\");\n int result = instance.get(\"Java\").getLevel();\n assertTrue(result==4);\n }", "public Observant() {\n super(ID, 1, CardType.SKILL, CardRarity.UNCOMMON, CardTarget.SELF);\n }", "public abstract boolean captchalogue(SylladexItem item);", "@Test\n public void useEffect() {\n \t//should normally run useItem method, but for testing it is not needed here.\n \tHealthEffect bombEff = (HealthEffect) bomb.getEffect().get(0);\n \tbombEff.applyEffect(com);\n \tAssert.assertTrue(com.getHealth() == baseHP - 700);\n \tSpecial heal = new Special(SpecialType.HEALTHBLESS);\n \theal.getEffect().get(0).applyEffect(com);\n \tAssert.assertTrue(com.getHealth() == baseHP);\n }", "@Override\n protected void initLevelUpSkills() {\n List<Integer> beginnerSkills = new ArrayList<Integer>();\n beginnerSkills.add(SkillFactory.TACKLE);\n beginnerSkills.add(SkillFactory.LEER);\n levelUpSkills.put(0, beginnerSkills);\n levelUpSkills.put(5, new ArrayList<Integer>(Arrays.asList(SkillFactory.EMBER)));\n levelUpSkills.put(8, new ArrayList<Integer>(Arrays.asList(SkillFactory.WORK_UP)));\n levelUpSkills.put(11, new ArrayList<Integer>(Arrays.asList(SkillFactory.HEADBUTT)));\n levelUpSkills.put(15, new ArrayList<Integer>(Arrays.asList(SkillFactory.NOBLE_ROAR)));\n levelUpSkills.put(20, new ArrayList<Integer>(Arrays.asList(SkillFactory.TAKE_DOWN)));\n levelUpSkills.put(23, new ArrayList<Integer>(Arrays.asList(SkillFactory.FIRE_FANG)));\n levelUpSkills.put(28, new ArrayList<Integer>(Arrays.asList(SkillFactory.ENDEAVOR)));\n levelUpSkills.put(33, new ArrayList<Integer>(Arrays.asList(SkillFactory.ECHOED_VOICE)));\n levelUpSkills.put(36, new ArrayList<Integer>(Arrays.asList(SkillFactory.FLAMETHROWER)));\n levelUpSkills.put(39, new ArrayList<Integer>(Arrays.asList(SkillFactory.CRUNCH)));\n levelUpSkills.put(43, new ArrayList<Integer>(Arrays.asList(SkillFactory.HYPER_VOICE)));\n levelUpSkills.put(46, new ArrayList<Integer>(Arrays.asList(SkillFactory.INCINERATE)));\n levelUpSkills.put(50, new ArrayList<Integer>(Arrays.asList(SkillFactory.OVERHEAT)));\n }", "@Override\n\tvoid startProduction() {\n\t\tSystem.out.println(\"Begin sweat shirt producton\");\n\n\t}", "public void setStaticLevel(int skill, int level) {\r\n setStaticLevel(skill, level, true);\r\n }", "private void courseEffects() {\n\t\t\n\t}", "public sword ( )\r\n\t{\r\n\t\t// TODO Auto-generated constructor stub\r\n\t\tsuper();\r\n\t\tthis.setDamageBuff (3);\r\n\t\tthis.setDurability (15);\r\n\t\tthis.setWeaponName (\"Sword\");\r\n\t}", "@Test\n public void testUpgradeSkill_04() {\n System.out.println(\"upgradeSkill\");\n \n Skill s = mock(Skill.class);\n when(s.getName()).thenReturn(\"Java\");\n when(s.getType()).thenReturn(\"Technical\");\n when(s.getCost()).thenReturn(2);\n when(s.getLevel()).thenReturn(10);\n when(s.getCostFormula()).thenReturn(Skill.PLUS_2);\n \n SkillsList instance = new SkillsList();\n instance.add(s);\n instance.upgradeSkill(\"Java\");\n int result = instance.get(\"Java\").getLevel();\n assertTrue(result==10);\n }", "public static void main(String[] args) {\n playerTest();\n unlockedChunks = new ArrayList<Integer>();\n unlockedChunks.add(1);\n currentSkills = new int[Constant.NUMBER_OF_Skills];\n currentSkills[0] = 2;\n currentSkills[1] = 2;\n currentSkills[2] = 2;\n completedQuests = new ArrayList<String>();\n\n ArrayList<Integer> chunks = new ArrayList<Integer>();\n chunks.add(1);\n Item item = new Item(\"Test Item\", chunks);\n\n UnlockedItemDatabase.addToDB(item);\n\n ArrayList<String> itemReqs = new ArrayList();\n itemReqs.add(\"Test Item 2\");\n ArrayList<String> itemReqs2 = new ArrayList();\n QuestStep q1= new QuestStep(1,\"step 1\",itemReqs,1);\n QuestStep q2 = new QuestStep(2,\"step 2\", itemReqs2, 2);\n ArrayList<QuestStep> steps = new ArrayList();\n steps.add(q1);\n steps.add(q2);\n int[] skillReqs = new int[Constant.NUMBER_OF_Skills];\n skillReqs[0] = 1;\n skillReqs[1] = 1;\n skillReqs[2] = 1;\n ArrayList<String> questReqs = new ArrayList();\n Quest quest = new Quest(\"Quest 1\",steps,1,skillReqs,0,questReqs);\n System.out.println();\n System.out.println(\"Quest: \" + quest.getName() + \" has a completable section: \" + quest.isCompletable(unlockedChunks, currentSkills,completedQuests));\n }", "public Weapon(){\n \n name = \"Claw\"; // will be treated as a sword\n type = 'R';\n advType = 'G';\n disType = 'B';\n mt = 4;\n hit = 85;\n crit = 0;\n wt = 1;\n isMagic = true;\n \n }", "protected void sequence_Condition(ISerializationContext context, Condition semanticObject) {\n\t\tgenericSequencer.createSequence(context, semanticObject);\n\t}", "@Override\n public void onSmelting(EntityPlayer player, ItemStack item) \n {\n \n }", "void skillsFound( String key ) {\n developer.skills = new ArrayList<>();\n }", "@Test\n public void testUpgradeSkill_01() {\n System.out.println(\"upgradeSkill\");\n \n// Skill s = mock(Skill.class);\n// when(s.getName()).thenReturn(\"Java\");\n// when(s.getType()).thenReturn(\"Technical\");\n// when(s.getCost()).thenReturn(2);\n// when(s.getLevel()).thenReturn(4);\n// when(s.getCostFormula()).thenReturn(Skill.PLUS_2);\n Skill s = new Skill(\"Java\",\"Technical\",2,4,Skill.PLUS_2);\n \n SkillsList instance = new SkillsList();\n instance.add(s);\n instance.upgradeSkill(\"Java\");\n int result = instance.get(\"Java\").getLevel();\n assertTrue(result==5);\n }", "public void toSelectingWeapon() {\n }", "public void SimulateLogic() {\n int ix;\n if (IPin[LT].getLevel() == 5) { // Lamp test\n for (ix = 0; ix < 7; ix++) {\n OPin[ix].Level = 5;\n }\n return;\n }\n if (IPin[BI].getLevel() == 5) { // Blank input\n for (ix = 0; ix < 7; ix++) {\n OPin[ix].Level = 0;\n }\n return;\n }\n if (IPin[LE].getLevel() == 5) { // Latch enable\n ActVal = 0;\n if (IPin[A].getLevel() == 5) ActVal += 1;\n if (IPin[B].getLevel() == 5) ActVal += 2;\n if (IPin[C].getLevel() == 5) ActVal += 4;\n if (IPin[D].getLevel() == 5) ActVal += 8;\n }\n\n for (ix = 0; ix < 7; ix++) {\n OPin[ix].Level = SegLev[ActVal] [ix];\n }\n }", "public Sheep()\n {\n super(\"Sheep\",3,2,0); \n \n // tagline = \"Whatever\";\n maxHealth = 5;\n currentHealth = maxHealth;\n equip(new Cloth());\n equip(new SheepClaws());\n \n \n \n engaged = false;\n aggression = 1;\n special = 0;\n hostileRange = 2;\n }", "@Override\n public void onCrafting(EntityPlayer player, ItemStack item, IInventory craftMatrix) \n {\n if (item.itemID == mod_TFmaterials.RubyPickaxe.itemID)\n {\n \t//player.addStat(mod_TFmaterials.RubyPickAchieve, 1);\n \tplayer.addStat(mod_TFmaterials.RubyPickAchieve, 1);\n }\n }", "public static void Skills(Player player) {\n\t\t\r\n\t\tItemStack H = new ItemStack(Material.POTION);\r\n\t\tItemMeta HM = H.getItemMeta();\r\n\t\tHM.setDisplayName(ChatColor.RED + \"Health: \");\r\n\t}", "protected String getHurtSound() {\r\n\t\treturn \"mob.chicken.hurt\";\r\n\t}", "public void getAttackedByDarknessMagicBook(IEquipableItem item){item.strongAttackTo(this.getOwner());}", "@Test\n public void playerWithoutProduction (){\n player.playRole(new Trader(stockGlobal,1));\n assertEquals(true,player.getInventory().getDoublons()==0);\n\n }", "private void levelSoulCrystals(final L2Character attacker)\n\t{\n\t\t// Only L2PcInstance can absorb a soul\n\t\tif (!(attacker instanceof L2PcInstance) && !(attacker instanceof L2Summon))\n\t\t{\n\t\t\tresetAbsorbList();\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tfinal int maxAbsorbLevel = getAbsorbLevel();\n\t\tint minAbsorbLevel = 0;\n\t\t\n\t\t// If this is not a valid L2Attackable, clears the absorbersList and just return\n\t\tif (maxAbsorbLevel == 0)\n\t\t{\n\t\t\tresetAbsorbList();\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t// All boss mobs with maxAbsorbLevel 13 have minAbsorbLevel of 12 else 10\n\t\tif (maxAbsorbLevel > 10)\n\t\t{\n\t\t\tminAbsorbLevel = maxAbsorbLevel > 12 ? 12 : 10;\n\t\t}\n\t\t\n\t\t// Init some useful vars\n\t\tboolean isSuccess = true;\n\t\tboolean doLevelup = true;\n\t\tfinal boolean isBossMob = maxAbsorbLevel > 10 ? true : false;\n\t\t\n\t\tfinal L2NpcTemplate.AbsorbCrystalType absorbType = getTemplate().absorbType;\n\t\t\n\t\tL2PcInstance killer = attacker instanceof L2Summon ? ((L2Summon) attacker).getOwner() : (L2PcInstance) attacker;\n\t\t\n\t\t// If this mob is a boss, then skip some checkings\n\t\tif (!isBossMob)\n\t\t{\n\t\t\t// Fail if this L2Attackable isn't absorbed or there's no one in its absorbersList\n\t\t\tif (!isAbsorbed() /* || absorbersList == null */)\n\t\t\t{\n\t\t\t\tresetAbsorbList();\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\t// Fail if the killer isn't in the absorbersList of this L2Attackable and mob is not boss\n\t\t\tAbsorberInfo ai = absorbersList.get(killer);\n\t\t\tif (ai == null || ai.absorber.getObjectId() != killer.getObjectId())\n\t\t\t{\n\t\t\t\tisSuccess = false;\n\t\t\t}\n\t\t\t\n\t\t\t// Check if the soul crystal was used when HP of this L2Attackable wasn't higher than half of it\n\t\t\tif (ai != null && ai.absorbedHP > getMaxHp() / 2.0)\n\t\t\t{\n\t\t\t\tisSuccess = false;\n\t\t\t}\n\t\t\t\n\t\t\tif (!isSuccess)\n\t\t\t{\n\t\t\t\tresetAbsorbList();\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\tai = null;\n\t\t}\n\t\t\n\t\t// ********\n\t\tString[] crystalNFO = null;\n\t\tString crystalNME = \"\";\n\t\t\n\t\tfinal int dice = Rnd.get(100);\n\t\tint crystalQTY = 0;\n\t\tint crystalLVL = 0;\n\t\tint crystalOLD = 0;\n\t\tint crystalNEW = 0;\n\t\t\n\t\t// ********\n\t\t// Now we have four choices:\n\t\t// 1- The Monster level is too low for the crystal. Nothing happens.\n\t\t// 2- Everything is correct, but it failed. Nothing happens. (57.5%)\n\t\t// 3- Everything is correct, but it failed. The crystal scatters. A sound event is played. (10%)\n\t\t// 4- Everything is correct, the crystal level up. A sound event is played. (32.5%)\n\t\t\n\t\tList<L2PcInstance> players = new ArrayList<>();\n\t\t\n\t\tif (absorbType == L2NpcTemplate.AbsorbCrystalType.FULL_PARTY && killer.isInParty())\n\t\t{\n\t\t\tplayers = killer.getParty().getPartyMembers();\n\t\t}\n\t\telse if (absorbType == L2NpcTemplate.AbsorbCrystalType.PARTY_ONE_RANDOM && killer.isInParty())\n\t\t{\n\t\t\t// This is a naive method for selecting a random member. It gets any random party member and\n\t\t\t// then checks if the member has a valid crystal. It does not select the random party member\n\t\t\t// among those who have crystals, only. However, this might actually be correct (same as retail).\n\t\t\tplayers.add(killer.getParty().getPartyMembers().get(Rnd.get(killer.getParty().getMemberCount())));\n\t\t}\n\t\telse\n\t\t{\n\t\t\tplayers.add(killer);\n\t\t}\n\t\t\n\t\tfor (final L2PcInstance player : players)\n\t\t{\n\t\t\tif (player == null)\n\t\t\t{\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\tcrystalQTY = 0;\n\t\t\t\n\t\t\tL2ItemInstance[] inv = player.getInventory().getItems();\n\t\t\tfor (final L2ItemInstance item : inv)\n\t\t\t{\n\t\t\t\tfinal int itemId = item.getItemId();\n\t\t\t\tfor (final int id : SoulCrystal.SoulCrystalTable)\n\t\t\t\t{\n\t\t\t\t\t// Find any of the 39 possible crystals.\n\t\t\t\t\tif (id == itemId)\n\t\t\t\t\t{\n\t\t\t\t\t\tcrystalQTY++;\n\t\t\t\t\t\t// Keep count but make sure the player has no more than 1 crystal\n\t\t\t\t\t\tif (crystalQTY > 1)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisSuccess = false;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Validate if the crystal has already leveled\n\t\t\t\t\t\tif (id != SoulCrystal.RED_NEW_CRYSTAL && id != SoulCrystal.GRN_NEW_CYRSTAL && id != SoulCrystal.BLU_NEW_CRYSTAL)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\ttry\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tif (item.getItem().getName().contains(\"Grade\"))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t// Split the name of the crystal into 'name' & 'level'\n\t\t\t\t\t\t\t\t\tcrystalNFO = item.getItem().getName().trim().replace(\" Grade \", \"-\").split(\"-\");\n\t\t\t\t\t\t\t\t\t// Set Level to 13\n\t\t\t\t\t\t\t\t\tcrystalLVL = 13;\n\t\t\t\t\t\t\t\t\t// Get Name\n\t\t\t\t\t\t\t\t\tcrystalNME = crystalNFO[0].toLowerCase();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t// Split the name of the crystal into 'name' & 'level'\n\t\t\t\t\t\t\t\t\tcrystalNFO = item.getItem().getName().trim().replace(\" Stage \", \"\").split(\"-\");\n\t\t\t\t\t\t\t\t\t// Get Level\n\t\t\t\t\t\t\t\t\tcrystalLVL = Integer.parseInt(crystalNFO[1].trim());\n\t\t\t\t\t\t\t\t\t// Get Name\n\t\t\t\t\t\t\t\t\tcrystalNME = crystalNFO[0].toLowerCase();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t// Allocate current and levelup ids' for higher level crystals\n\t\t\t\t\t\t\t\tif (crystalLVL > 9)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tfor (final int[] element : SoulCrystal.HighSoulConvert)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t// Get the next stage above 10 using array.\n\t\t\t\t\t\t\t\t\t\tif (id == element[0])\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tcrystalNEW = element[1];\n\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tcrystalNEW = id + 1;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tcatch (final NumberFormatException nfe)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tLOGGER.warn(\"An attempt to identify a soul crystal failed, \" + \"verify the names have not changed in etcitem table.\", nfe);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tplayer.sendMessage(\"There has been an error handling your soul crystal.\" + \" Please notify your server admin.\");\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tisSuccess = false;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tcatch (final Exception e)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t\tisSuccess = false;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tcrystalNME = item.getItem().getName().toLowerCase().trim();\n\t\t\t\t\t\t\tcrystalNEW = id + 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Done\n\t\t\t\t\t\tcrystalOLD = id;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (!isSuccess)\n\t\t\t\t{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tinv = null;\n\t\t\t\n\t\t\t// If the crystal level is way too high for this mob, say that we can't increase it\n\t\t\tif (crystalLVL < minAbsorbLevel || crystalLVL >= maxAbsorbLevel)\n\t\t\t{\n\t\t\t\tdoLevelup = false;\n\t\t\t}\n\t\t\t\n\t\t\t// The player doesn't have any crystals with him get to the next player.\n\t\t\tif (crystalQTY < 1 || crystalQTY > 1 || !isSuccess || !doLevelup)\n\t\t\t{\n\t\t\t\t// Too many crystals in inventory.\n\t\t\t\tif (crystalQTY > 1)\n\t\t\t\t{\n\t\t\t\t\tplayer.sendPacket(new SystemMessage(SystemMessageId.SOUL_CRYSTAL_ABSORBING_FAILED_RESONATION));\n\t\t\t\t}\n\t\t\t\t// The soul crystal stage of the player is way too high\n\t\t\t\t// Like L2OFF message must not appear if char hasn't crystal on inventory\n\t\t\t\telse if (!doLevelup && crystalQTY > 0)\n\t\t\t\t{\n\t\t\t\t\tplayer.sendPacket(new SystemMessage(SystemMessageId.SOUL_CRYSTAL_ABSORBING_REFUSED));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tcrystalQTY = 0;\n\t\t\t\t\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\t/*\n\t\t\t * TODO: Confirm boss chance for crystal level up and for crystal breaking. It is known that bosses with FULL_PARTY crystal level ups have 100% success rate, but this is not the case for the other bosses (one-random or last-hit). While not confirmed, it is most reasonable that crystals leveled up at\n\t\t\t * bosses will never break. Also, the chance to level up is guessed as around 70% if not higher.\n\t\t\t */\n\t\t\tfinal int chanceLevelUp = isBossMob ? 70 : SoulCrystal.LEVEL_CHANCE;\n\t\t\t\n\t\t\t// If succeeds or it is a full party absorb, level up the crystal.\n\t\t\tif (absorbType == L2NpcTemplate.AbsorbCrystalType.FULL_PARTY && doLevelup || dice <= chanceLevelUp)\n\t\t\t{\n\t\t\t\t// Give staged crystal\n\t\t\t\texchangeCrystal(player, crystalOLD, crystalNEW, false);\n\t\t\t}\n\t\t\t\n\t\t\t// If true and not a last-hit mob, break the crystal.\n\t\t\telse if (!isBossMob && dice >= 100.0 - SoulCrystal.BREAK_CHANCE)\n\t\t\t{\n\t\t\t\t// Remove current crystal an give a broken open.\n\t\t\t\tif (crystalNME.startsWith(\"red\"))\n\t\t\t\t{\n\t\t\t\t\texchangeCrystal(player, crystalOLD, SoulCrystal.RED_BROKEN_CRYSTAL, true);\n\t\t\t\t}\n\t\t\t\telse if (crystalNME.startsWith(\"gre\"))\n\t\t\t\t{\n\t\t\t\t\texchangeCrystal(player, crystalOLD, SoulCrystal.GRN_BROKEN_CYRSTAL, true);\n\t\t\t\t}\n\t\t\t\telse if (crystalNME.startsWith(\"blu\"))\n\t\t\t\t{\n\t\t\t\t\texchangeCrystal(player, crystalOLD, SoulCrystal.BLU_BROKEN_CRYSTAL, true);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tresetAbsorbList();\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tplayer.sendPacket(new SystemMessage(SystemMessageId.SOUL_CRYSTAL_ABSORBING_FAILED));\n\t\t\t}\n\t\t}\n\t\t\n\t\tkiller = null;\n\t\tplayers = null;\n\t\tcrystalNFO = null;\n\t\tcrystalNME = null;\n\t}", "@Override\n\tpublic void skill2(Fightable f) {\n\t\tsuper.setDamage(super.getStrength()*2);\n\t\tsuper.setAtkRange((int)(super.getDamage()/10));\n\t\t\n\t\tthis.attack(f, 3);\n\t}", "private void runRiotPointsPurchase2(String championName) {\r\n if (championName.equals(\"Blitzcrank\")) {\r\n playSound(\"./data/Blitzcrank.wav\");\r\n } else if (championName.equals(\"Darius\")) {\r\n playSound(\"./data/Darius.wav\");\r\n } else if (championName.equals(\"Syndra\")) {\r\n playSound(\"./data/Syndra.wav\");\r\n } else if (championName.equals(\"Lucian\")) {\r\n playSound(\"./data/Lucian.wav\");\r\n } else if (championName.equals(\"Akali\")) {\r\n playSound(\"./data/Akali.wav\");\r\n } else if (championName.equals(\"Sejuani\")) {\r\n playSound(\"./data/Sejuani.wav\");\r\n } else if (championName.equals(\"Fiddlesticks\")) {\r\n playSound(\"./data/Fiddlesticks.wav\");\r\n }\r\n }", "@java.lang.Override\n public int getSkillId() {\n return skillId_;\n }", "public void kill(int sq) {\n\t\tif(sq==1)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Single Fighter\");\r\n\t\t}\r\n\t\telse if(sq>1 && sq<=4)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Supporter\");\t\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Invalid squad\");\r\n\t\t}}", "@Override\n\tpublic List<SkillRequirement> findListOfSkillReq(Skill skill) {\n\t\treturn null;\n\t}", "@Override\r\n \tpublic List<Skill> getCurrentlySelected(CDOMObject owner, PlayerCharacter pc)\r\n \t{\r\n \t\treturn Collections.emptyList();\r\n \t}", "public static void train(Thing caster, Thing s) {\r\n \t\tint cl = caster.getStat(RPG.ST_LEVEL);\r\n \t\tint level=s.getStat(\"SpellSkill\");\r\n \t\tint cost=s.getStat(\"SpellCost\");\r\n \t\tif (Rand.d(cl) <= level)\r\n \t\t\treturn;\r\n \r\n \t\tint learning = caster.getStat(RPG.ST_IN) * caster.getStat(RPG.ST_IN);\r\n \t\tint difficulty = level * level * cost;\r\n \r\n \t\tif (RPG.test(learning, difficulty)) {\r\n \t\t\ts.incStat(\"SpellSkill\", 1);\r\n \t\t}\r\n \t}" ]
[ "0.59408766", "0.5934592", "0.5830421", "0.57768357", "0.5722892", "0.5669183", "0.5650828", "0.5644465", "0.5593149", "0.5529449", "0.5522286", "0.54699326", "0.5445962", "0.54331046", "0.54315656", "0.5419847", "0.5408983", "0.54044807", "0.53931975", "0.5384302", "0.53832155", "0.5380381", "0.53799427", "0.5363632", "0.5362432", "0.535307", "0.5318718", "0.53136516", "0.5312536", "0.5308682", "0.52684456", "0.5268347", "0.52662784", "0.5265154", "0.5243868", "0.5242048", "0.52389604", "0.5216802", "0.5207646", "0.519977", "0.5192472", "0.5190041", "0.5170865", "0.5161449", "0.51424116", "0.513988", "0.5131805", "0.51248777", "0.51239544", "0.51084757", "0.510092", "0.5097568", "0.5092405", "0.508976", "0.508976", "0.50887203", "0.5084724", "0.5081862", "0.506715", "0.5055498", "0.50493", "0.50487167", "0.5044557", "0.50407547", "0.50395584", "0.50354147", "0.50324625", "0.502767", "0.5025491", "0.50228983", "0.5021436", "0.5020537", "0.5011208", "0.5006837", "0.50011283", "0.49921477", "0.49873406", "0.49854982", "0.4985298", "0.49852857", "0.4984841", "0.49789166", "0.49743927", "0.49739274", "0.4955978", "0.4949042", "0.49428445", "0.49416602", "0.49398157", "0.49387693", "0.4938154", "0.49364007", "0.4935096", "0.49326837", "0.49300846", "0.49247128", "0.49180454", "0.49177235", "0.49158114", "0.49085182" ]
0.5266696
32
HiveDeserializer is used to deserialize the data from hadoop Writable to a custom java object that can be of any type that the developer wants. HiveDeserializer also provides the ObjectInspector which can be used to inspect the internal structure of the object (that is returned by deserialize function). All deserializers should extend the abstract class AbstractDeserializer. The interface is necessary for SerDes to be able to implement both Serializer and Deserializer.
public interface Deserializer extends SerDe { /** * Deserialize an object out of a Writable blob. In most cases, the return * value of this function will be constant since the function will reuse the * returned object. If the client wants to keep a copy of the object, the * client needs to clone the returned deserialized value by calling * ObjectInspectorUtils.getStandardObject(). * * @param blob * The Writable object containing a serialized object * @return A Java object representing the contents in the blob. */ Object deserialize(Writable blob) throws SerDeException; /** * Get the object inspector that can be used to navigate through the internal * structure of the Object returned from deserialize(...). */ ObjectInspector getObjectInspector() throws SerDeException; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Object deserialize(Writable blob) throws SerDeException;", "public abstract Object deserialize(Object object);", "public void deserialize() {\n\t\t\n\t}", "ObjectInspector getObjectInspector() throws SerDeException;", "@Override\r\n\tprotected Object readObject() throws IOException, SerializeException {\r\n\t\treturn AdvancedDeserializerUtil.readObject(super.readObject());\r\n\t}", "private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {\n Schema schema = new Schema.Parser().parse((String) in.readObject());\n DatumReader<T> reader = new GenericDatumReader<>(schema);\n Decoder decoder = DecoderFactory.get().binaryDecoder(in, null);\n avroObject = reader.read(avroObject, decoder);\n }", "T deserialize(InputStream stream) throws IOException;", "public interface RandomDeserializer<T> {\n\n /**\n * This is where all the magic happens, given a json part (only the useful part of the json for the specific deserializer) the deserializer is able to create the required object.\n *\n * @author andreahuang\n *\n */\n T deserialize(JsonObject json, DynamicDeserializerFactory deserializerFactory) throws ClassNotFoundException;\n}", "public void deserialize () throws IOException {\n\t\turl_avro=getClass().getClassLoader().getResource(\"StudentActivity.avro\").getFile();\n\t\t\n\t\t// create a schema\n\t\tSchema schema = new Schema.Parser().parse(new File(url_avsc));\n\t\t// create a record using schema\n\t\tGenericRecord AvroRec = new GenericData.Record(schema);\n\t\tFile AvroFile = new File(url_avro);\n\t\tDatumReader<GenericRecord> datumReader = new GenericDatumReader<GenericRecord>(schema);\n\t\tDataFileReader<GenericRecord> dataFileReader = new DataFileReader<GenericRecord>(AvroFile, datumReader);\n\t\tSystem.out.println(\"Deserialized data is :\");\n\t\twhile (dataFileReader.hasNext()) {\n\t\t\tAvroRec = dataFileReader.next(AvroRec);\n\t\t\tSystem.out.println(AvroRec);\n\t\t}\n\t}", "public JsonDeserializer<?> modifyDeserializer(DeserializationConfig config, BeanDescription beanDesc, JsonDeserializer<?> deserializer)\n/* */ {\n/* 90 */ return deserializer;\n/* */ }", "T deserialize(JsonObject json, DynamicDeserializerFactory deserializerFactory) throws ClassNotFoundException;", "public abstract T deserialize(String serial);", "protected PartitionedEvent deserialize(Object object) throws IOException {\n if (object instanceof byte[]) {\n return serializer.deserialize((byte[]) object);\n } else if (object instanceof PartitionedEvent) {\n return (PartitionedEvent) object;\n } else {\n throw new IllegalStateException(String.format(\"Unsupported event class '%s', expect byte array or PartitionedEvent!\", object == null ? null : object.getClass().getCanonicalName()));\n }\n }", "public T deserialize() throws IOException {\n FileInputStream fileInputStream = new FileInputStream(this.mFile);\n DataInputStream dataInputStream = new DataInputStream(fileInputStream);\n T deserialize = this.mCodec.deserialize(dataInputStream);\n $closeResource(null, dataInputStream);\n $closeResource(null, fileInputStream);\n return deserialize;\n }", "@Override\n public void deserialize(ConsumerRecord<byte[], byte[]> record, Collector<RowData> collector)\n throws Exception {\n\n if (keyDeserialization == null && !hasMetadata) {\n deserializeWithDirtyHandle(record.value(), DirtyType.VALUE_DESERIALIZE_ERROR,\n valueDeserialization, new MetricsCollector<>(collector, metricData));\n return;\n }\n\n // buffer key(s)\n if (keyDeserialization != null) {\n deserializeWithDirtyHandle(record.key(), DirtyType.KEY_DESERIALIZE_ERROR,\n keyDeserialization, keyCollector);\n }\n\n // project output while emitting values\n outputCollector.inputRecord = record;\n outputCollector.physicalKeyRows = keyCollector.buffer;\n outputCollector.outputCollector = new MetricsCollector<>(collector, metricData);\n\n if (record.value() == null && upsertMode) {\n // collect tombstone messages in upsert mode by hand\n outputCollector.collect(null);\n } else {\n deserializeWithDirtyHandle(record.value(), DirtyType.VALUE_DESERIALIZE_ERROR,\n valueDeserialization, outputCollector);\n }\n keyCollector.buffer.clear();\n }", "@Test\n public void testDeSerialize() throws Exception {\n\n\n StructObjectInspector soi = (StructObjectInspector) instance.getObjectInspector();\n\n StructField sfr = soi.getStructFieldRef(\"stuff\");\n\n assertEquals(sfr.getFieldObjectInspector().getCategory(), ObjectInspector.Category.UNION);\n\n UnionObjectInspector uoi = (UnionObjectInspector) sfr.getFieldObjectInspector();\n\n // first, string\n Writable w = new Text(\"{\\\"country\\\":\\\"Switzerland\\\",\\\"stuff\\\":\\\"Italian\\\"}\");\n JSONObject result = (JSONObject) instance.deserialize(w);\n Object val = soi.getStructFieldData(result, sfr) ;\n assertEquals(\"Italian\", uoi.getField(val));\n\n uoi.getTypeName();\n\n // now, int\n w = new Text(\"{\\\"country\\\":\\\"Switzerland\\\",\\\"stuff\\\":2}\");\n result = (JSONObject) instance.deserialize(w);\n val = soi.getStructFieldData(result, sfr) ;\n assertEquals(\"2\", val);\n assertEquals(0, uoi.getTag(val));\n\n // now, struct\n w = new Text(\"{\\\"country\\\":\\\"Switzerland\\\",\\\"stuff\\\": { \\\"a\\\": \\\"OK\\\" } }\");\n result = (JSONObject) instance.deserialize(w);\n val = soi.getStructFieldData(result, sfr) ;\n assertTrue(val instanceof JSONObject);\n assertEquals(3, uoi.getTag(val));\n\n // now, array\n w = new Text(\"{\\\"country\\\":\\\"Switzerland\\\",\\\"stuff\\\": [ 1, 2 ] }\");\n result = (JSONObject) instance.deserialize(w);\n val = soi.getStructFieldData(result, sfr) ;\n assertTrue(val instanceof JSONArray);\n assertEquals(2, uoi.getTag(val));\n }", "public static Object toFlinkObject(ObjectInspector inspector, Object data, HiveShim hiveShim) {\n if (data == null || inspector instanceof VoidObjectInspector) {\n return null;\n }\n\n if (inspector instanceof PrimitiveObjectInspector) {\n if (inspector instanceof BooleanObjectInspector\n || inspector instanceof StringObjectInspector\n || inspector instanceof ByteObjectInspector\n || inspector instanceof ShortObjectInspector\n || inspector instanceof IntObjectInspector\n || inspector instanceof LongObjectInspector\n || inspector instanceof FloatObjectInspector\n || inspector instanceof DoubleObjectInspector\n || inspector instanceof BinaryObjectInspector) {\n\n PrimitiveObjectInspector poi = (PrimitiveObjectInspector) inspector;\n return poi.getPrimitiveJavaObject(data);\n } else if (inspector instanceof DateObjectInspector) {\n PrimitiveObjectInspector poi = (PrimitiveObjectInspector) inspector;\n return hiveShim.toFlinkDate(poi.getPrimitiveJavaObject(data));\n } else if (inspector instanceof TimestampObjectInspector) {\n PrimitiveObjectInspector poi = (PrimitiveObjectInspector) inspector;\n return hiveShim.toFlinkTimestamp(poi.getPrimitiveJavaObject(data));\n } else if (inspector instanceof HiveCharObjectInspector) {\n HiveCharObjectInspector oi = (HiveCharObjectInspector) inspector;\n return oi.getPrimitiveJavaObject(data).getValue();\n } else if (inspector instanceof HiveVarcharObjectInspector) {\n HiveVarcharObjectInspector oi = (HiveVarcharObjectInspector) inspector;\n return oi.getPrimitiveJavaObject(data).getValue();\n } else if (inspector instanceof HiveDecimalObjectInspector) {\n HiveDecimalObjectInspector oi = (HiveDecimalObjectInspector) inspector;\n return oi.getPrimitiveJavaObject(data).bigDecimalValue();\n } else if (inspector instanceof HiveIntervalYearMonthObjectInspector) {\n HiveIntervalYearMonthObjectInspector oi =\n (HiveIntervalYearMonthObjectInspector) inspector;\n HiveIntervalYearMonth hiveIntervalYearMonth = oi.getPrimitiveJavaObject(data);\n return Period.of(\n hiveIntervalYearMonth.getYears(), hiveIntervalYearMonth.getMonths(), 0);\n } else if (inspector instanceof HiveIntervalDayTimeObjectInspector) {\n HiveIntervalDayTimeObjectInspector oi =\n (HiveIntervalDayTimeObjectInspector) inspector;\n HiveIntervalDayTime hiveIntervalDayTime = oi.getPrimitiveJavaObject(data);\n return Duration.ofSeconds(\n hiveIntervalDayTime.getTotalSeconds(), hiveIntervalDayTime.getNanos());\n }\n }\n\n if (inspector instanceof ListObjectInspector) {\n ListObjectInspector listInspector = (ListObjectInspector) inspector;\n List<?> list = listInspector.getList(data);\n if (list == null) {\n return null;\n }\n\n // flink expects a specific array type (e.g. Integer[] instead of Object[]), so we have\n // to get the element class\n ObjectInspector elementInspector = listInspector.getListElementObjectInspector();\n Object[] result =\n (Object[])\n Array.newInstance(\n HiveTypeUtil.toFlinkType(elementInspector).getConversionClass(),\n list.size());\n for (int i = 0; i < list.size(); i++) {\n result[i] = toFlinkObject(elementInspector, list.get(i), hiveShim);\n }\n return result;\n }\n\n if (inspector instanceof MapObjectInspector) {\n MapObjectInspector mapInspector = (MapObjectInspector) inspector;\n Map<?, ?> map = mapInspector.getMap(data);\n if (map == null) {\n return null;\n }\n\n Map<Object, Object> result = CollectionUtil.newHashMapWithExpectedSize(map.size());\n for (Map.Entry<?, ?> entry : map.entrySet()) {\n result.put(\n toFlinkObject(\n mapInspector.getMapKeyObjectInspector(), entry.getKey(), hiveShim),\n toFlinkObject(\n mapInspector.getMapValueObjectInspector(),\n entry.getValue(),\n hiveShim));\n }\n return result;\n }\n\n if (inspector instanceof StructObjectInspector) {\n StructObjectInspector structInspector = (StructObjectInspector) inspector;\n\n List<? extends StructField> fields = structInspector.getAllStructFieldRefs();\n\n Row row = new Row(fields.size());\n // StandardStructObjectInspector.getStructFieldData in Hive-1.2.1 only accepts array or\n // list as data\n if (!data.getClass().isArray()\n && !(data instanceof List)\n && (inspector instanceof StandardStructObjectInspector)) {\n data = new Object[] {data};\n }\n for (int i = 0; i < row.getArity(); i++) {\n row.setField(\n i,\n toFlinkObject(\n fields.get(i).getFieldObjectInspector(),\n structInspector.getStructFieldData(data, fields.get(i)),\n hiveShim));\n }\n return row;\n }\n throw new FlinkHiveUDFException(\n String.format(\"Unwrap does not support ObjectInspector '%s' yet\", inspector));\n }", "public static BinaryMessageDecoder<LargeObjectAvro> getDecoder() {\n return DECODER;\n }", "@Override\n public RedisBase deserialize(JsonParser jsonParser, DeserializationContext ctxt) throws IOException, JsonProcessingException {\n ObjectCodec codec = jsonParser.getCodec();\n\n // Parse \"object\" node into Jackson's tree model\n JsonNode jsonNode = codec.readTree(jsonParser);\n if (jsonNode.isNull()) {\n return null;\n }\n\n checkJsonObjectField(jsonParser, jsonNode, MODE_FIELD_NAME);\n checkJsonObjectField(jsonParser, jsonNode, ROLE_FIELD_NAME);\n\n // Get value of the \"mode\" and \"role\" property\n String mode = jsonNode.get(MODE_FIELD_NAME).asText();\n String role = jsonNode.get(ROLE_FIELD_NAME).asText();\n\n // Check the \"mode\" and \"role\" property and map \"object\" to the suitable class\n RedisBaseType form = RedisBaseType.form(mode, role);\n Class<? extends RedisBase> redisClazz = form.getRedisClazz();\n return codec.treeToValue(jsonNode, redisClazz);\n }", "Object deserialize(InputStream input, Class type, String format,\r\n String contentEncoding);", "Object deserialize(Class objClass, InputStream stream) throws IOException;", "@Override\n public <T> T deSerialize( final byte[] data, final ClassLoader loader )\n throws IOException, ClassNotFoundException\n {\n if ( data == null )\n {\n return null;\n }\n\n final byte[] deccrypted = decrypt(data);\n return serializer.deSerialize(deccrypted, loader);\n }", "private Object deserialize(byte[] data) throws IOException, ClassNotFoundException {\n\t\tByteArrayInputStream in = new ByteArrayInputStream(data);\n\t ObjectInputStream is = new ObjectInputStream(in);\n\t\treturn (Object) is.readObject();\n\t}", "void readObject(InputSerializer in) throws java.io.IOException;", "private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException\r\n\t{\r\n\t\tthis.deserialize(in);\r\n\t}", "InputStream deserialize(InputStream toDeserialize);", "public BaseType deserialize(ArrayView data) throws IOException {\n return deserialize(data.getReader());\n }", "@Test\n public void testDeSerialize() throws Exception {\n Writable w = new Text(\"{ \\\"ts\\\":\\\"2014-08-25T00:24:27.41103928Z\\\", \\\"t\\\":36529, \\\"Request\\\":{ \\\"path\\\":\\\"/foo/bar\\\", \\\"query\\\":{\\\"baz\\\": [\\\"ban\\\"]}, \\\"headers\\\":{ \\\"Accept\\\":[\\\"image/webp,*/*;q=0.8\\\"], \\\"Accept-Encoding\\\":[\\\"identity\\\"], \\\"Accept-Language\\\":[\\\"en-US,en;q=0.8\\\"], \\\"Connection\\\":[\\\"keep-alive\\\"], \\\"Referer\\\":[\\\"http://foo.com/bar\\\"], \\\"User-Agent\\\":[\\\"Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.153 Safari/537.36\\\"] }, \\\"ip\\\":\\\"10.0.0.1\\\" } }\");\n\n JSONObject result = (JSONObject) instance.deserialize(w);\n \n StructObjectInspector soi = (StructObjectInspector) instance.getObjectInspector();\n \n StructField tSF = soi.getStructFieldRef(\"t\");\n assertEquals(36529, ((JavaStringIntObjectInspector)tSF.getFieldObjectInspector()).get(soi.getStructFieldData(result, tSF )));\n assertEquals(\"2014-08-25T00:24:27.41103928Z\"\n , soi.getStructFieldData(result, soi.getStructFieldRef(\"ts\")));\n \n StructField requestSF = soi.getStructFieldRef(\"request\");\n \n Object request = soi.getStructFieldData(result, requestSF);\n \n StructObjectInspector requestOI = (StructObjectInspector) requestSF.getFieldObjectInspector();\n \n assertEquals(3, requestOI.getAllStructFieldRefs().size());\n \n\n StructField headersSF = requestOI.getStructFieldRef(\"headers\");\n Object headers = requestOI.getStructFieldData(request, headersSF);\n \n assertTrue(headersSF.getFieldObjectInspector().getCategory() == Category.STRUCT);\n StructObjectInspector headersOI = (StructObjectInspector) headersSF.getFieldObjectInspector();\n \n // now get the user agent with the mapping\n StructField useragentSF = headersOI.getStructFieldRef(\"useragent\");\n Object useragent = requestOI.getStructFieldData(headers, useragentSF);\n ListObjectInspector useragentOI = (ListObjectInspector) useragentSF.getFieldObjectInspector();\n assertEquals(useragentOI.getCategory(), Category.LIST);\n \n // get value\n List d = useragentOI.getList(useragent);\n assertEquals(d.size(),1);\n }", "protected abstract DBObject parse(InputStream is) throws DeserializationException;", "@SuppressWarnings(\"unchecked\")\n\tprivate IMonitoringRecordDeserializer createDeserializer(final String deserializerClassName, final Configuration configuration,\n\t\t\tfinal IProjectContext projectContext) {\n\t\tfinal Class<? extends IMonitoringRecordDeserializer> deserializerClass;\n\t\tIMonitoringRecordDeserializer localDeserializer = null;\n\n\t\ttry {\n\t\t\tdeserializerClass = (Class<? extends IMonitoringRecordDeserializer>) Class.forName(deserializerClassName);\n\t\t\tfinal Constructor<? extends IMonitoringRecordDeserializer> constructor = deserializerClass\n\t\t\t\t\t.getConstructor(Configuration.class, IProjectContext.class);\n\t\t\tlocalDeserializer = constructor.newInstance(configuration, projectContext);\n\t\t} catch (final ClassNotFoundException e) {\n\t\t\tLOGGER.error(\"The deserializer class '{}' was not found.\", deserializerClassName);\n\t\t} catch (final NoSuchMethodException e) {\n\t\t\tLOGGER.error(\"The deserializer class '{}' does not provide a suitable constructor.\", deserializerClassName);\n\t\t} catch (final InstantiationException e) {\n\t\t\tthis.logInstantiationFailed(deserializerClassName, e);\n\t\t} catch (final IllegalAccessException e) {\n\t\t\tthis.logInstantiationFailed(deserializerClassName, e);\n\t\t} catch (final IllegalArgumentException e) {\n\t\t\tthis.logInstantiationFailed(deserializerClassName, e);\n\t\t} catch (final InvocationTargetException e) {\n\t\t\tthis.logInstantiationFailed(deserializerClassName, e);\n\t\t}\n\n\t\treturn localDeserializer;\n\t}", "@SuppressWarnings(\"unchecked\")\n @Override\n public JsonDeserializer<Object> getContentDeserializer() {\n return (JsonDeserializer<Object>) _valueDeserializer;\n }", "public Object readObject() throws ClassNotFoundException, IOException;", "private Object deserializeList(Object datum, Schema fileSchema, Schema recordSchema,\n ListTypeInfo columnType) throws AvroSerdeException {\n if(recordSchema.getType().equals(Schema.Type.FIXED)) {\n // We're faking out Hive to work through a type system impedance mismatch.\n // Pull out the backing array and convert to a list.\n GenericData.Fixed fixed = (GenericData.Fixed) datum;\n List<Byte> asList = new ArrayList<Byte>(fixed.bytes().length);\n for(int j = 0; j < fixed.bytes().length; j++) {\n asList.add(fixed.bytes()[j]);\n }\n return asList;\n } else if(recordSchema.getType().equals(Schema.Type.BYTES)) {\n // This is going to be slow... hold on.\n ByteBuffer bb = (ByteBuffer)datum;\n List<Byte> asList = new ArrayList<Byte>(bb.capacity());\n byte[] array = bb.array();\n for(int j = 0; j < array.length; j++) {\n asList.add(array[j]);\n }\n return asList;\n } else { // An actual list, deser its values\n List listData = (List) datum;\n Schema listSchema = recordSchema.getElementType();\n List<Object> listContents = new ArrayList<Object>(listData.size());\n for(Object obj : listData) {\n listContents.add(worker(obj, fileSchema == null ? null : fileSchema.getElementType(), listSchema,\n columnType.getListElementTypeInfo()));\n }\n return listContents;\n }\n }", "Object deserialize() throws SQLException {\n\ttry {\n\t ByteArrayInputStream bi = new ByteArrayInputStream(data);\n\t ObjectInputStream is = new ObjectInputStream(bi);\n\n\t return is.readObject();\n\t} catch (Exception e) {\n\t throw Trace.error(Trace.SERIALIZATION_FAILURE, e.getMessage());\n\t}\n }", "@Override\n public void deserialize(ByteBuffer buf) {\n }", "@JsonDeserialize(as = FactionLeaderboardImpl.class)\npublic interface FactionLeaderboard extends Leaderboard {\n}", "public static BinaryMessageDecoder<VehicleInfoAvro> getDecoder() {\n return DECODER;\n }", "public abstract Object decode(InputStream is) ;", "T deserializeData(R r) throws SQLException;", "@SuppressWarnings(\"unchecked\")\n public BaseType deserialize(InputStream stream) throws IOException {\n processHeader(stream);\n\n // Decode the object type and look up its serializer.\n byte type = (byte) stream.read();\n if (type < 0) {\n throw new EOFException();\n }\n\n val si = this.serializersById.get(type);\n ensureCondition(si != null, \"No serializer found for object type %s.\", type);\n\n // Deserialize contents.\n return (BaseType) si.serializer.deserializeContents(stream);\n }", "@Test\n\tpublic void deserializePrivateFieldsWithoutAnyGetterSetter() throws JsonProcessingException\n\t{\t\n\t\tString jsonToDeserialized = \"{\\r\\n\" + \n\t\t\t\t\" \\\"firstName\\\": \\\"Amod\\\",\\r\\n\" + \n\t\t\t\t\" \\\"lastName\\\" : \\\"Mahajan\\\"\\r\\n\" + \n\t\t\t\t\"}\\r\\n\" + \n\t\t\t\t\"\";\n\t\tObjectMapper objectMapper = new ObjectMapper();\n\t\tEmployee_PrivateFieldsWithoutAnyGetterSetterMethods employee_PrivateFieldsWithoutAnyGetterSetterMethods = \n\t\t\t\tobjectMapper.readValue(jsonToDeserialized, Employee_PrivateFieldsWithoutAnyGetterSetterMethods.class);\n\t\tSystem.out.println(employee_PrivateFieldsWithoutAnyGetterSetterMethods);\n\t\t\n\t}", "private Object deserializeStruct(GenericData.Record datum, Schema fileSchema, StructTypeInfo columnType)\n throws AvroSerdeException {\n List<TypeInfo> innerFieldTypes = columnType.getAllStructFieldTypeInfos();\n List<String> innerFieldNames = columnType.getAllStructFieldNames();\n List<Object> innerObjectRow = new ArrayList<Object>(innerFieldTypes.size());\n\n return workerBase(innerObjectRow, fileSchema, innerFieldNames, innerFieldTypes, datum);\n }", "public interface JSONDeserializer<T> {\n\t\n\t/**\n\t * Deserialize a json string\n\t * @param json object to deserialize\n\t * @return JSON representation as {@link JsonObject}\n\t */\n\tJsonObject deserialise(String json);\n\t\n\t/**\n\t * Unmarshall 'meta' section of the response\n\t * @param meta section represented as {@link JsonObject}\n\t * @return object of generic type T\n\t */\n\tT unmarshallMeta(JsonObject meta);\n\t\n\t/**\n\t * Unmarshall 'response' section of the response\n\t * @param response section represented as {@link JsonObject}\n\t * @return list of objects of generic type T\n\t */\n\tCollection<T> unmarshallResponse(JsonObject response);\n\n}", "public TargetType deserialize(BufferView data) throws IOException {\n return deserialize(data.getReader());\n }", "public static BinaryMessageDecoder<AvroRide> getDecoder() {\n return DECODER;\n }", "@Test\n @DisplayName(\"Tests deserializing a connector.\")\n @SneakyThrows(IOException.class)\n void testDeserialization() {\n String connectorJson = Files.readString(Paths.get(\"src/test/resources/connector-reference.json\"));\n\n TestConnector testConnector = (TestConnector) connectorObjectMapper.readValue(connectorJson, Connector.class);\n\n assertEquals(TestConnector.CONNECTOR_ID, testConnector.getId());\n assertEquals(\"connector-name\", testConnector.getName());\n assertEquals(1, testConnector.getIntParam());\n assertEquals(2, testConnector.getIntegerParam());\n assertEquals(Long.MIN_VALUE, testConnector.getLongParam());\n assertEquals(Long.MAX_VALUE, testConnector.getLongObjectParam());\n assertEquals(Boolean.TRUE, testConnector.isBooleanParam());\n assertEquals(Boolean.FALSE, testConnector.getBooleanObjectParam());\n assertEquals(\"string-param\", testConnector.getStringParam());\n assertEquals(\"TestSecurityProvider.decrypt()\", testConnector.getSecuredStringParam());\n }", "void deserialize(@NotNull InputStream in) throws IOException;", "@Override\n public void deserialize(byte[] array) throws IOException {\n throw new UnsupportedOperationException(\"Not implemented\");\n\n }", "private void parse() {\n if (getFields() == null) {\n List<? extends StructField> fieldRefs =\n ((StructObjectInspector)getInspector()).getAllStructFieldRefs();\n setFields(new LazyObject[fieldRefs.size()]);\n for (int i = 0; i < getFields().length; i++) {\n String hbaseColumnFamily = hbaseColumnFamilies.get(i);\n String hbaseColumnQualifier = hbaseColumnQualifiers.get(i);\n\n ObjectInspector fieldObjectInspector = fieldRefs.get(i).getFieldObjectInspector();\n if (hbaseColumnQualifier == null && !HBaseSerDe.isSpecialColumn(hbaseColumnFamily)) {\n // a column family\n getFields()[i] = new LazyHBaseCellMap(\n (LazyMapObjectInspector) fieldObjectInspector);\n continue;\n }\n if(fieldObjectInspector instanceof LazyListObjectInspector) {\n \tgetFields()[i] = new LazyJsonArray((LazyListObjectInspector)fieldObjectInspector);\n \tcontinue;\n }\n\n getFields()[i] = LazyFactory.createLazyObject(fieldRefs.get(i).getFieldObjectInspector());\n }\n setFieldInited(new boolean[getFields().length]);\n }\n Arrays.fill(getFieldInited(), false);\n setParsed(true);\n }", "@PostDeserialize\r\n\tprivate void deserializeHook() {\n\t\tfovx *= DEG2RAD;\r\n\t\tfovy *= DEG2RAD;\r\n\t}", "void decodeObject();", "public void testSerializeUnserialize()\n {\n DataSourceStatus status = new DataSourceStatus();\n status.setCompletionPercentage(25);\n status.setErrorRecords(1);\n status.setMessage(\"Bună ziua\");\n status.setProcessedRecords(250);\n status.setRunning(false);\n status.setTotalRecords(1000);\n DataSourceConfiguration configuration = new DataSourceConfiguration();\n List<String> queryTerms = Arrays.asList(\n \"wheat\", \"cheese\", \"grâu\", \"brânză\");\n configuration.getParameterMap().put(\"queryTerms\", queryTerms);\n DataSourceDescription description = new DataSourceDescription(\n configuration, status);\n DataSourceDescriptionSerializer serializer = \n new DataSourceDescriptionSerializer();\n String json = serializer.serialize(description);\n DataSourceDescription description2 = serializer.unserialize(json);\n assertEquals(queryTerms, description2.getConfiguration()\n .getParameterMap().get(\"queryTerms\"));\n assertEquals(description.getStatus().getCompletionPercentage(), \n description2.getStatus().getCompletionPercentage());\n assertEquals(description.getStatus().getErrorRecords(), \n description2.getStatus().getErrorRecords());\n assertEquals(description.getStatus().getMessage(), \n description2.getStatus().getMessage());\n assertEquals(description.getStatus().getProcessedRecords(), \n description.getStatus().getProcessedRecords());\n assertEquals(description.getStatus().getTotalRecords(), \n description2.getStatus().getTotalRecords());\n }", "public void deserialize(RevisionDataInput dataInput, ReaderType target) throws IOException {\n deserialize(dataInput.getBaseStream(), target);\n }", "protected abstract Object read ();", "SessionSerializationMetadata deserialize( byte[] data ) throws IOException, ClassNotFoundException;", "Object decodeObject(Object value);", "public void deserialize(ArrayView data, ReaderType target) throws IOException {\n deserialize(data.getReader(), target);\n }", "private static void decodeWritable(Writable obj,\n String newValue) throws IOException {\n if (newValue == null) {\n throw new HadoopIllegalArgumentException(\n \"Invalid argument, newValue is null\");\n }\n Base64 decoder = new Base64(0, null, true);\n DataInputBuffer buf = new DataInputBuffer();\n byte[] decoded = decoder.decode(newValue);\n buf.reset(decoded, decoded.length);\n obj.readFields(buf);\n }", "public static HiveObjectConversion getConversion(\n ObjectInspector inspector, LogicalType dataType, HiveShim hiveShim) {\n if (inspector instanceof PrimitiveObjectInspector) {\n HiveObjectConversion conversion;\n if (inspector instanceof BooleanObjectInspector\n || inspector instanceof StringObjectInspector\n || inspector instanceof ByteObjectInspector\n || inspector instanceof ShortObjectInspector\n || inspector instanceof IntObjectInspector\n || inspector instanceof LongObjectInspector\n || inspector instanceof FloatObjectInspector\n || inspector instanceof DoubleObjectInspector\n || inspector instanceof BinaryObjectInspector\n || inspector instanceof VoidObjectInspector) {\n conversion = IdentityConversion.INSTANCE;\n } else if (inspector instanceof DateObjectInspector) {\n conversion = hiveShim::toHiveDate;\n } else if (inspector instanceof TimestampObjectInspector) {\n conversion = hiveShim::toHiveTimestamp;\n } else if (inspector instanceof HiveCharObjectInspector) {\n conversion =\n o ->\n o == null\n ? null\n : new HiveChar(\n (String) o, ((CharType) dataType).getLength());\n } else if (inspector instanceof HiveVarcharObjectInspector) {\n conversion =\n o ->\n o == null\n ? null\n : new HiveVarchar(\n (String) o, ((VarCharType) dataType).getLength());\n } else if (inspector instanceof HiveDecimalObjectInspector) {\n conversion = o -> o == null ? null : HiveDecimal.create((BigDecimal) o);\n } else if (inspector instanceof HiveIntervalYearMonthObjectInspector) {\n conversion =\n o -> {\n if (o == null) {\n return null;\n } else {\n Period period = (Period) o;\n return new HiveIntervalYearMonth(\n period.getYears(), period.getMonths());\n }\n };\n } else if (inspector instanceof HiveIntervalDayTimeObjectInspector) {\n conversion =\n o -> {\n if (o == null) {\n return null;\n } else {\n Duration duration = (Duration) o;\n return new HiveIntervalDayTime(\n duration.getSeconds(), duration.getNano());\n }\n };\n } else {\n throw new FlinkHiveUDFException(\n \"Unsupported primitive object inspector \" + inspector.getClass().getName());\n }\n // if the object inspector prefers Writable objects, we should add an extra conversion\n // for that\n // currently this happens for constant arguments for UDFs\n if (((PrimitiveObjectInspector) inspector).preferWritable()) {\n conversion = new WritableHiveObjectConversion(conversion, hiveShim);\n }\n return conversion;\n }\n\n if (inspector instanceof ListObjectInspector) {\n HiveObjectConversion eleConvert =\n getConversion(\n ((ListObjectInspector) inspector).getListElementObjectInspector(),\n ((ArrayType) dataType).getElementType(),\n hiveShim);\n return o -> {\n if (o == null) {\n return null;\n }\n Object[] array = (Object[]) o;\n List<Object> result = new ArrayList<>();\n\n for (Object ele : array) {\n result.add(eleConvert.toHiveObject(ele));\n }\n return result;\n };\n }\n\n if (inspector instanceof MapObjectInspector) {\n MapObjectInspector mapInspector = (MapObjectInspector) inspector;\n MapType kvType = (MapType) dataType;\n\n HiveObjectConversion keyConversion =\n getConversion(\n mapInspector.getMapKeyObjectInspector(), kvType.getKeyType(), hiveShim);\n HiveObjectConversion valueConversion =\n getConversion(\n mapInspector.getMapValueObjectInspector(),\n kvType.getValueType(),\n hiveShim);\n\n return o -> {\n if (o == null) {\n return null;\n }\n Map<Object, Object> map = (Map) o;\n Map<Object, Object> result = CollectionUtil.newHashMapWithExpectedSize(map.size());\n\n for (Map.Entry<Object, Object> entry : map.entrySet()) {\n result.put(\n keyConversion.toHiveObject(entry.getKey()),\n valueConversion.toHiveObject(entry.getValue()));\n }\n return result;\n };\n }\n\n if (inspector instanceof StructObjectInspector) {\n StructObjectInspector structInspector = (StructObjectInspector) inspector;\n\n List<? extends StructField> structFields = structInspector.getAllStructFieldRefs();\n\n List<RowType.RowField> rowFields = ((RowType) dataType).getFields();\n\n HiveObjectConversion[] conversions = new HiveObjectConversion[structFields.size()];\n for (int i = 0; i < structFields.size(); i++) {\n conversions[i] =\n getConversion(\n structFields.get(i).getFieldObjectInspector(),\n rowFields.get(i).getType(),\n hiveShim);\n }\n\n return o -> {\n if (o == null) {\n return null;\n }\n Row row = (Row) o;\n List<Object> result = new ArrayList<>(row.getArity());\n for (int i = 0; i < row.getArity(); i++) {\n result.add(conversions[i].toHiveObject(row.getField(i)));\n }\n return result;\n };\n }\n\n throw new FlinkHiveUDFException(\n String.format(\n \"Flink doesn't support convert object conversion for %s yet\", inspector));\n }", "@Override\n public Class<? extends AbstractSerDe> getSerDeClass() {\n return AzureEntitySerDe.class;\n }", "public static Descriptor deserialize(final ByteBuffer bi) throws MdsException {\n if(!bi.hasRemaining()) return Missing.NEW;\n final ByteBuffer b = bi.slice().order(bi.order());\n switch(b.get(Descriptor._clsB)){\n case Descriptor_A.CLASS:\n return Descriptor_A.deserialize(b);\n case Descriptor_APD.CLASS:\n return Descriptor_APD.deserialize(b);\n case Descriptor_CA.CLASS:\n return Descriptor_CA.deserialize(b);\n case Descriptor_D.CLASS:\n return Descriptor_S.deserialize(b);\n case Descriptor_R.CLASS:\n return Descriptor_R.deserialize(b);\n case Descriptor_S.CLASS:\n return Descriptor_S.deserialize(b);\n case Descriptor_XD.CLASS:\n return Descriptor_XS.deserialize(b);\n case Descriptor_XS.CLASS:\n return Descriptor_XS.deserialize(b);\n }\n System.out.println(new String(b.array()));\n throw new MdsException(String.format(\"Unsupported class %s\", Descriptor.getDClassName(b.get(Descriptor._clsB))), 0);\n }", "@Override\n\tpublic Object deserialize(byte[] bytes) throws SerializationException {\n\t\tif(bytes==null || bytes.length==0) {\n\t\t\treturn null;\n\t\t}\n\t\treturn deserializingConverter.convert(bytes);\n\t}", "public static java.lang.Object decodeObject(com.webobjects.foundation.NSCoder coder){\n return null; //TODO codavaj!!\n }", "@Override\n public Object deserializeWithType(JsonParser p, DeserializationContext ctxt,\n TypeDeserializer typeDeserializer)\n throws IOException\n {\n return typeDeserializer.deserializeTypedFromArray(p, ctxt);\n }", "@Override\n\tpublic Dog deserialize(JsonElement json, Type typeOfT,\n\t\t\tJsonDeserializationContext context) throws JsonParseException {\n\t\tJsonObject obj = json.getAsJsonObject();\n\t\tJsonPrimitive name = (JsonPrimitive) obj.get(\"name\");\n\t\tJsonPrimitive ferocity = (JsonPrimitive) obj.get(\"ferocity\");\n\t\treturn Dog.create(name.getAsString(), ferocity.getAsInt());\n\t}", "@Override\n public <T> T deserializeValue(byte[] value,Class<T> toClass,RedisSerializer bySerializer)\n {\n if(value==null) return null;\n Object object=bySerializer.deserialize(value);\n if(object==null) return null;\n\n try\n {\n return objectMapper.readValue(object.toString(),toClass);\n }\n catch(IOException e)\n {\n e.printStackTrace();\n return null;\n }\n }", "public JsonDeserializer<?> modifyArrayDeserializer(DeserializationConfig config, ArrayType valueType, BeanDescription beanDesc, JsonDeserializer<?> deserializer)\n/* */ {\n/* 134 */ return deserializer;\n/* */ }", "@Override\n\tpublic League deserialize(JsonParser p, DeserializationContext ctxt) throws IOException, JsonProcessingException {\n\t\tJsonNode jsonNode=p.getCodec().readTree(p);\n\t\tString leagueId=jsonNode.get(\"league_id\").asText();\n\t\tString leagueName=jsonNode.get(\"league_name\").asText();\n\t\tleague=new League();\n\t\tleague.setLeagueId(leagueId);\n\t\tleague.setLeagueName(leagueName);\n\t\t\n\t\treturn league;\n\t}", "public Object read() throws IOException, RecordIOException;", "public <T> T deserialize(Class<T> type, InputStream is) throws SerializationException;", "public final EObject ruleDataField() throws RecognitionException {\n EObject current = null;\n\n Token lv_hidden_0_0=null;\n Token lv_name_3_0=null;\n EObject lv_primitiveType_1_0 = null;\n\n EObject lv_complexType_2_0 = null;\n\n\n\n \tenterRule();\n\n try {\n // InternalMappingDsl.g:5924:2: ( ( ( (lv_hidden_0_0= 'hide' ) )? ( ( (lv_primitiveType_1_0= rulePrimitiveType ) ) | ( (lv_complexType_2_0= rulePossiblyImportedComplexType ) ) )? ( (lv_name_3_0= RULE_ID ) ) ) )\n // InternalMappingDsl.g:5925:2: ( ( (lv_hidden_0_0= 'hide' ) )? ( ( (lv_primitiveType_1_0= rulePrimitiveType ) ) | ( (lv_complexType_2_0= rulePossiblyImportedComplexType ) ) )? ( (lv_name_3_0= RULE_ID ) ) )\n {\n // InternalMappingDsl.g:5925:2: ( ( (lv_hidden_0_0= 'hide' ) )? ( ( (lv_primitiveType_1_0= rulePrimitiveType ) ) | ( (lv_complexType_2_0= rulePossiblyImportedComplexType ) ) )? ( (lv_name_3_0= RULE_ID ) ) )\n // InternalMappingDsl.g:5926:3: ( (lv_hidden_0_0= 'hide' ) )? ( ( (lv_primitiveType_1_0= rulePrimitiveType ) ) | ( (lv_complexType_2_0= rulePossiblyImportedComplexType ) ) )? ( (lv_name_3_0= RULE_ID ) )\n {\n // InternalMappingDsl.g:5926:3: ( (lv_hidden_0_0= 'hide' ) )?\n int alt140=2;\n int LA140_0 = input.LA(1);\n\n if ( (LA140_0==73) ) {\n alt140=1;\n }\n switch (alt140) {\n case 1 :\n // InternalMappingDsl.g:5927:4: (lv_hidden_0_0= 'hide' )\n {\n // InternalMappingDsl.g:5927:4: (lv_hidden_0_0= 'hide' )\n // InternalMappingDsl.g:5928:5: lv_hidden_0_0= 'hide'\n {\n lv_hidden_0_0=(Token)match(input,73,FOLLOW_73); \n\n \t\t\t\t\tnewLeafNode(lv_hidden_0_0, grammarAccess.getDataFieldAccess().getHiddenHideKeyword_0_0());\n \t\t\t\t\n\n \t\t\t\t\tif (current==null) {\n \t\t\t\t\t\tcurrent = createModelElement(grammarAccess.getDataFieldRule());\n \t\t\t\t\t}\n \t\t\t\t\tsetWithLastConsumed(current, \"hidden\", true, \"hide\");\n \t\t\t\t\n\n }\n\n\n }\n break;\n\n }\n\n // InternalMappingDsl.g:5940:3: ( ( (lv_primitiveType_1_0= rulePrimitiveType ) ) | ( (lv_complexType_2_0= rulePossiblyImportedComplexType ) ) )?\n int alt141=3;\n int LA141_0 = input.LA(1);\n\n if ( ((LA141_0>=75 && LA141_0<=84)) ) {\n alt141=1;\n }\n else if ( (LA141_0==RULE_ID) ) {\n int LA141_2 = input.LA(2);\n\n if ( (LA141_2==RULE_ID||LA141_2==29||LA141_2==32) ) {\n alt141=2;\n }\n }\n switch (alt141) {\n case 1 :\n // InternalMappingDsl.g:5941:4: ( (lv_primitiveType_1_0= rulePrimitiveType ) )\n {\n // InternalMappingDsl.g:5941:4: ( (lv_primitiveType_1_0= rulePrimitiveType ) )\n // InternalMappingDsl.g:5942:5: (lv_primitiveType_1_0= rulePrimitiveType )\n {\n // InternalMappingDsl.g:5942:5: (lv_primitiveType_1_0= rulePrimitiveType )\n // InternalMappingDsl.g:5943:6: lv_primitiveType_1_0= rulePrimitiveType\n {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getDataFieldAccess().getPrimitiveTypePrimitiveTypeParserRuleCall_1_0_0());\n \t\t\t\t\t\n pushFollow(FOLLOW_7);\n lv_primitiveType_1_0=rulePrimitiveType();\n\n state._fsp--;\n\n\n \t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getDataFieldRule());\n \t\t\t\t\t\t}\n \t\t\t\t\t\tset(\n \t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\"primitiveType\",\n \t\t\t\t\t\t\tlv_primitiveType_1_0,\n \t\t\t\t\t\t\t\"de.fhdo.ddmm.data.DataDsl.PrimitiveType\");\n \t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\n\n }\n\n\n }\n\n\n }\n break;\n case 2 :\n // InternalMappingDsl.g:5961:4: ( (lv_complexType_2_0= rulePossiblyImportedComplexType ) )\n {\n // InternalMappingDsl.g:5961:4: ( (lv_complexType_2_0= rulePossiblyImportedComplexType ) )\n // InternalMappingDsl.g:5962:5: (lv_complexType_2_0= rulePossiblyImportedComplexType )\n {\n // InternalMappingDsl.g:5962:5: (lv_complexType_2_0= rulePossiblyImportedComplexType )\n // InternalMappingDsl.g:5963:6: lv_complexType_2_0= rulePossiblyImportedComplexType\n {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getDataFieldAccess().getComplexTypePossiblyImportedComplexTypeParserRuleCall_1_1_0());\n \t\t\t\t\t\n pushFollow(FOLLOW_7);\n lv_complexType_2_0=rulePossiblyImportedComplexType();\n\n state._fsp--;\n\n\n \t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getDataFieldRule());\n \t\t\t\t\t\t}\n \t\t\t\t\t\tset(\n \t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\"complexType\",\n \t\t\t\t\t\t\tlv_complexType_2_0,\n \t\t\t\t\t\t\t\"de.fhdo.ddmm.data.DataDsl.PossiblyImportedComplexType\");\n \t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\n\n }\n\n\n }\n\n\n }\n break;\n\n }\n\n // InternalMappingDsl.g:5981:3: ( (lv_name_3_0= RULE_ID ) )\n // InternalMappingDsl.g:5982:4: (lv_name_3_0= RULE_ID )\n {\n // InternalMappingDsl.g:5982:4: (lv_name_3_0= RULE_ID )\n // InternalMappingDsl.g:5983:5: lv_name_3_0= RULE_ID\n {\n lv_name_3_0=(Token)match(input,RULE_ID,FOLLOW_2); \n\n \t\t\t\t\tnewLeafNode(lv_name_3_0, grammarAccess.getDataFieldAccess().getNameIDTerminalRuleCall_2_0());\n \t\t\t\t\n\n \t\t\t\t\tif (current==null) {\n \t\t\t\t\t\tcurrent = createModelElement(grammarAccess.getDataFieldRule());\n \t\t\t\t\t}\n \t\t\t\t\tsetWithLastConsumed(\n \t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\"name\",\n \t\t\t\t\t\tlv_name_3_0,\n \t\t\t\t\t\t\"org.eclipse.xtext.common.Terminals.ID\");\n \t\t\t\t\n\n }\n\n\n }\n\n\n }\n\n\n }\n\n\n \tleaveRule();\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "private void readObject(ObjectInputStream s) throws InvalidObjectException {\n throw new InvalidObjectException(\"Deserialization via serialization delegate\");\n }", "public Object decode(Object pObject) throws DecoderException {\n if (pObject == null) {\n return null;\n } else if (pObject instanceof byte[]) {\n return decode((byte[])pObject);\n } else if (pObject instanceof String) {\n return decode((String)pObject);\n } else {\n throw new DecoderException(\"Objects of type \" +\n pObject.getClass().getName() + \" cannot be quoted-printable decoded\"); \n \n }\n }", "public void deserialize( final SerializerInputStream in )\n throws SerializationException\n {\n final ScriptingClassLoader classLoader = vm.getClassLoader();\n in.readByte(); // skip version\n name = in.readString();\n final int propCount = in.readInt();\n if( propCount > 0 )\n {\n properties = new Hashtable( propCount );\n for( int i = 0; i < propCount; i++ )\n {\n final String name = in.readString();\n final String className = in.readString();\n final ScriptingClass clazz;\n if(\n className.equals( name ) ||\n ( classLoader.getAlias( name ) != null &&\n className.equals( classLoader.getAlias( name ) ) )\n )\n {\n clazz = this;\n }\n else\n {\n try\n {\n clazz = classLoader.load( className );\n }\n catch( ScriptingClassNotFoundException e )\n {\n throw new SerializationException(\n Constants.ERR_SCL_CLASS_NOT_FOUND,\n e\n );\n }\n }\n properties.put( name, clazz );\n }\n }\n else\n {\n properties = null;\n }\n final int methodCount = in.readInt();\n if( methodCount > 0 )\n {\n methods = new Hashtable( methodCount );\n for( int i = 0; i < methodCount; i++ )\n {\n final String name = in.readString();\n final Method method = new MethodImpl( this );\n method.deserialize( in );\n methods.put( name, method );\n }\n }\n else\n {\n methods = null;\n }\n final int ancestorCount = in.readInt();\n if( ancestorCount > 0 )\n {\n ancestors = new Vector( ancestorCount );\n for( int i = 0; i < ancestorCount; i++ )\n {\n final String name = in.readString();\n ScriptingClass clazz;\n try\n {\n clazz = classLoader.load( name );\n }\n catch( ScriptingClassNotFoundException e )\n {\n throw new SerializationException(\n Constants.ERR_SCL_CLASS_NOT_FOUND,\n e\n );\n }\n ancestors.addElement( clazz );\n }\n }\n else\n {\n ancestors = null;\n }\n }", "public TargetType deserialize(RevisionDataInput dataInput) throws IOException {\n return deserialize(dataInput.getBaseStream());\n }", "@JsonDeserialize(as=MetricFilterImpl.class)\npublic interface MetricFilter {\n public List<String> getAllowedInstanceIds();\n public void setAllowedInstanceIds(List<String> allowedInstanceIds);\n public List<String> getAllowedMetricNames();\n public void setAllowedMetricNames(List<String> allowedMetricNames);\n public boolean checkMetric(Metric metric);\n public void createAllowedInstanceIdsHashSet();\n public void createAllowedMetricNamesHashSet();\n public String toString();\n}", "public abstract DeserializerFactory withConfig(DeserializerFactoryConfig deserializerFactoryConfig);", "public void deserialize(JoyBuffer in) {\n\t\t\n\t}", "public JsonDeserializer<?> modifyMapDeserializer(DeserializationConfig config, MapType type, BeanDescription beanDesc, JsonDeserializer<?> deserializer)\n/* */ {\n/* 158 */ return deserializer;\n/* */ }", "public Object deserialize(List<String> columnNames, List<TypeInfo> columnTypes,\n Writable writable, Schema readerSchema) throws AvroSerdeException {\n if(!(writable instanceof AvroGenericRecordWritable)) {\n throw new AvroSerdeException(\"Expecting a AvroGenericRecordWritable\");\n }\n\n if(row == null || row.size() != columnNames.size()) {\n row = new ArrayList<Object>(columnNames.size());\n } else {\n row.clear();\n }\n\n AvroGenericRecordWritable recordWritable = (AvroGenericRecordWritable) writable;\n GenericRecord r = recordWritable.getRecord();\n Schema fileSchema = recordWritable.getFileSchema();\n writerTimezone = recordWritable.getWriterTimezone();\n writerProleptic = recordWritable.getWriterProleptic();\n writerZoneConversionLegacy = recordWritable.getWriterZoneConversionLegacy(); \n\n UID recordReaderId = recordWritable.getRecordReaderID();\n //If the record reader (from which the record is originated) is already seen and valid,\n //no need to re-encode the record.\n if(!noEncodingNeeded.contains(recordReaderId)) {\n SchemaReEncoder reEncoder = null;\n //Check if the record record is already encoded once. If it does\n //reuse the encoder.\n if(reEncoderCache.containsKey(recordReaderId)) {\n reEncoder = reEncoderCache.get(recordReaderId); //Reuse the re-encoder\n } else if (!r.getSchema().equals(readerSchema)) { //Evolved schema?\n //Create and store new encoder in the map for re-use\n reEncoder = new SchemaReEncoder(r.getSchema(), readerSchema);\n reEncoderCache.put(recordReaderId, reEncoder);\n } else{\n LOG.debug(\"Adding new valid RRID :\" + recordReaderId);\n noEncodingNeeded.add(recordReaderId);\n }\n if(reEncoder != null) {\n if (!warnedOnce) {\n LOG.warn(\"Received different schemas. Have to re-encode: \" +\n r.getSchema().toString(false) + \"\\nSIZE\" + reEncoderCache + \" ID \" + recordReaderId);\n warnedOnce = true;\n }\n r = reEncoder.reencode(r);\n }\n }\n\n workerBase(row, fileSchema, columnNames, columnTypes, r);\n return row;\n }", "public static Object deserialize(byte[] data) throws IOException, ClassNotFoundException {\n\t\tObjectInputStream ois = new ObjectInputStream(new ByteArrayInputStream(data));\n\t\treturn ois.readObject();\n\t}", "public interface IDeserializer extends IPropertyAware {\n\n /**\n * \n *\n * @param src\n * @throws IOException\n * @throws MIOException\n */\n public void parse(Source src) throws IOException, MIOException;\n\n /**\n * \n *\n * @param handler\n */\n public void setMapHandler(IMapHandler handler);\n\n /**\n * Indicates if this deserializer is used by another deserializer.\n * <p>\n * If a deserializer is a subordinate it MUST NOT call \n * {@link IMapHandler#startTopicMap()} and \n * {@link IMapHandler#endTopicMap()}.\n * </p>\n * <p>\n * By default, every deserializer assumes that it is not a subordinate.\n * </p>\n *\n * @param subordinate <tt>true</tt> to indicate that this deserializer\n * is a subordinate, otherwise <tt>false</tt>.\n */\n public void setSubordinate(boolean subordinate);\n\n /**\n * \n *\n * @param ctx\n */\n public void setIRIContext(IRIContext ctx);\n\n /**\n * \n *\n * @return\n */\n public IRIContext getIRIContext();\n\n}", "@Override\n\tpublic Persona decode(Reader reader) throws DecodeException, IOException {\n\t\tPersona persona = new Persona();\n\t\t\n\t\ttry {\n\t\t\tJSONStringer json = new JSONStringer();\n\t\t\t\n\t\t\tjson.object();\n\t\t\tString codigo = json.key(\"codigo\").value(persona.getCodigo()).toString();\n\t\t\tString nombre = json.key(\"nombre\").value(persona.getNombre()).toString();\n\t\t\tString apellido = json.key(\"apellido\").value(persona.getApellido()).toString();\n\t\t\tString dni = json.key(\"DNI\").value(persona.getDni()).toString();\n\t\t\t\n\t\t\tpersona.setCodigo(codigo);\n\t\t\tpersona.setNombre(nombre);\n\t\t\tpersona.setApellido(apellido);\n\t\t\tpersona.setDni(dni);\n\t\t\treturn persona;\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\t\n\t}", "public Object decode(Object value) {\n\t\treturn decode(value, null, this.filter);\n\t}", "public void deserialize(InputStream stream, ReaderType target) throws IOException {\n processHeader(stream);\n deserializeContents(stream, target);\n }", "@Override\n public <T> T deserializeValue(byte[] value,Class<T> toClass,RedisSerializer bySerializer)\n {\n if(value==null) return null;\n return (T)bySerializer.deserialize(value);\n }", "public JsonDeserializer<?> modifyReferenceDeserializer(DeserializationConfig config, ReferenceType type, BeanDescription beanDesc, JsonDeserializer<?> deserializer)\n/* */ {\n/* 112 */ return deserializer;\n/* */ }", "GeneratedMessage deserialize(InputStream in) throws IOException, InstantiationException, IllegalAccessException, ClassNotFoundException;", "protected PastContent deserialize(byte[] bytes, Endpoint endpoint, PastContentDeserializer pcd) throws IOException, ClassNotFoundException {\n \n SimpleInputBuffer sib = new SimpleInputBuffer(bytes);\n short type = sib.readShort();\n return pcd.deserializePastContent(sib, endpoint, type); \n }", "@SuppressWarnings(\"PMD.CloseResource\") // PMD does not understand Closer\n protected static <S extends Serializable> S deserializeObject(\n Path inputFile, Class<S> outputClass) {\n try {\n // Awkward nested try blocks required because we refuse to throw IOExceptions.\n try (Closer closer = Closer.create()) {\n FileInputStream fis = closer.register(new FileInputStream(inputFile.toFile()));\n BufferedInputStream bis = closer.register(new BufferedInputStream(fis));\n // Allows us to peek at the beginning of the stream and then push the bytes back in for\n // downstream consumers to read.\n PushbackInputStream pbCompressed =\n new PushbackInputStream(bis, DEFAULT_HEADER_LENGTH_BYTES);\n Format f = detectFormat(pbCompressed);\n if (f == Format.GZIP) {\n InputStream gis = closer.register(new GZIPInputStream(pbCompressed));\n // Update format after decompression\n PushbackInputStream pbUncompressed =\n new PushbackInputStream(gis, DEFAULT_HEADER_LENGTH_BYTES);\n return deserializeObject(pbUncompressed, outputClass);\n } else if (f == Format.LZ4) {\n InputStream lis = closer.register(new LZ4FrameInputStream(pbCompressed));\n // Update format after decompression\n PushbackInputStream pbUncompressed =\n new PushbackInputStream(lis, DEFAULT_HEADER_LENGTH_BYTES);\n return deserializeObject(pbUncompressed, outputClass);\n } else {\n return deserializeObject(pbCompressed, outputClass);\n }\n }\n } catch (Exception e) {\n throw new BatfishException(\n String.format(\n \"Failed to deserialize object of type %s from file %s\",\n outputClass.getCanonicalName(), inputFile),\n e);\n }\n }", "private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException\n {\n // TODO - temp?\n }", "public BackendService decode(ProtoReader hVar) throws IOException {\n C30726a aVar = new C30726a();\n long a = hVar.mo40516a();\n while (true) {\n int b = hVar.mo40518b();\n if (b != -1) {\n FieldEncoding c = hVar.mo40519c();\n aVar.addUnknownField(b, c, c.rawProtoAdapter().decode(hVar));\n } else {\n hVar.mo40517a(a);\n return aVar.build();\n }\n }\n }", "protected StdScalarDeserializer(Class<?> vc) { super(vc); }", "public interface Converter {\n\n /**\n * @param data data bytes that are serialized to disk.\n * @param converterKey Converter key.\n * @param <T> Type.\n * @return Deserialized object of type <T>.\n */\n <T> T deserialize(byte[] data, String converterKey);\n\n /**\n * @param object Object to be serialized into byte[].\n */\n byte[] serialize(Object object);\n\n /**\n * @return Converter key of a given object. Null if cannot be determined.\n */\n String mapping(Object object);\n\n /**\n * @return Converter key of a given class. Null if cannot be determined.\n */\n String mapping(Class<?> clazz);\n\n /**\n * @return return the type for a given converter key.\n */\n Class mapType(String converterKey);\n}", "public HiveOutputDescription readOutputDescription() {\n String value = conf.get(getOutputDescriptionKey());\n HiveOutputDescription hod = null;\n if (value != null) {\n hod = new HiveOutputDescription();\n Writables.readFieldsFromEncodedStr(value, hod);\n }\n return hod;\n }", "public Object read();", "void deserialize(byte[] data, RedisSession session, SessionSerializationMetadata metadata) throws IOException, ClassNotFoundException;", "public Object decode(Object obj) throws DecoderException {\n/* 341 */ if (obj == null)\n/* 342 */ return null; \n/* 343 */ if (obj instanceof byte[])\n/* 344 */ return decode((byte[])obj); \n/* 345 */ if (obj instanceof String) {\n/* 346 */ return decode((String)obj);\n/* */ }\n/* 348 */ throw new DecoderException(\"Objects of type \" + obj.getClass().getName() + \" cannot be URL decoded\");\n/* */ }", "public JsonDeserializer<?> modifyEnumDeserializer(DeserializationConfig config, JavaType type, BeanDescription beanDesc, JsonDeserializer<?> deserializer)\n/* */ {\n/* 104 */ return deserializer;\n/* */ }", "public interface Serializer {\n\n /**\n * Serializes the given object to the given output stream.\n *\n * @param <T> the object type\n * @param obj the object to serialize\n * @param type the class type\n * @param os the output stream\n *\n * @throws SerializationException if serialization fails\n */\n public <T> void serialize(T obj, Class<T> type, OutputStream os) throws SerializationException;\n\n /**\n * Deserializes an object of the given type from the given input stream.\n *\n * @param <T> the object type\n * @param type the class type\n * @param is the input stream\n *\n * @return the object\n *\n * @throws SerializationException if serialization fails\n */\n public <T> T deserialize(Class<T> type, InputStream is) throws SerializationException;\n\n}" ]
[ "0.659941", "0.6111718", "0.58095616", "0.572879", "0.5694705", "0.5546422", "0.5464408", "0.5452853", "0.54491425", "0.54464376", "0.53970146", "0.5388397", "0.5364505", "0.5324612", "0.53021574", "0.519225", "0.5177138", "0.51603806", "0.5160111", "0.51458985", "0.5132856", "0.5041335", "0.5020559", "0.49728042", "0.4948928", "0.49453616", "0.4937884", "0.49368927", "0.49199688", "0.49060538", "0.4881647", "0.487721", "0.48715544", "0.4869348", "0.4867429", "0.48646575", "0.48447546", "0.48210827", "0.48079085", "0.47725114", "0.4756278", "0.4744732", "0.47357604", "0.47331366", "0.47316834", "0.47249103", "0.472402", "0.46926546", "0.4680325", "0.46795434", "0.4673895", "0.46715355", "0.46702862", "0.46624064", "0.46610826", "0.46608388", "0.46567532", "0.46524143", "0.46518657", "0.46461126", "0.46320736", "0.46318555", "0.46144348", "0.45973045", "0.45942247", "0.45824143", "0.45750275", "0.45655885", "0.45639163", "0.4558463", "0.4555468", "0.45534718", "0.45505577", "0.4550253", "0.4547048", "0.45346424", "0.45319712", "0.45285723", "0.4524416", "0.45200643", "0.45159605", "0.45147875", "0.45119077", "0.45118675", "0.45112526", "0.4508624", "0.44984505", "0.44919106", "0.44896498", "0.44806784", "0.44770026", "0.44691527", "0.4468687", "0.44669107", "0.44607636", "0.44595435", "0.4451726", "0.4448076", "0.4445918", "0.44319913" ]
0.69347715
0
Deserialize an object out of a Writable blob. In most cases, the return value of this function will be constant since the function will reuse the returned object. If the client wants to keep a copy of the object, the client needs to clone the returned deserialized value by calling ObjectInspectorUtils.getStandardObject().
Object deserialize(Writable blob) throws SerDeException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface Deserializer extends SerDe {\n\n /**\n * Deserialize an object out of a Writable blob. In most cases, the return\n * value of this function will be constant since the function will reuse the\n * returned object. If the client wants to keep a copy of the object, the\n * client needs to clone the returned deserialized value by calling\n * ObjectInspectorUtils.getStandardObject().\n *\n * @param blob\n * The Writable object containing a serialized object\n * @return A Java object representing the contents in the blob.\n */\n Object deserialize(Writable blob) throws SerDeException;\n\n /**\n * Get the object inspector that can be used to navigate through the internal\n * structure of the Object returned from deserialize(...).\n */\n ObjectInspector getObjectInspector() throws SerDeException;\n\n}", "public abstract Object deserialize(Object object);", "public Object readObject() throws IOException, ClassNotFoundException {\n if (objectInputStream == null) {\n objectInputStream = new ObjectInputStream(byteArrayInputStream);\n }\n return objectInputStream.readObject();\n }", "@Override\r\n\tprotected Object readObject() throws IOException, SerializeException {\r\n\t\treturn AdvancedDeserializerUtil.readObject(super.readObject());\r\n\t}", "Object deserialize(Class objClass, InputStream stream) throws IOException;", "public Object readObject() throws ClassNotFoundException, IOException;", "void readObject(InputSerializer in) throws java.io.IOException;", "private void readObject() {}", "private void readObject() {}", "private void readObject() {}", "public Object read();", "@Override\n\tpublic Object readObject() {\n\t\treturn super.readObject();\n\t}", "protected abstract Object read ();", "public OffloadableObject(final T object) {\n this.object = object;\n deserialized = true;\n }", "Blob deserializeBlob(String path) {\n Blob newBlob = null;\n File pathy = new File(path);\n try {\n FileInputStream f = new FileInputStream(pathy);\n ObjectInputStream objn = new ObjectInputStream(f);\n newBlob = (Blob) objn.readObject();\n } catch (IOException e) {\n String msg = \"IOException while loading.\";\n return null;\n } catch (ClassNotFoundException e) {\n String msg = \"ClassNotFoundException while loading myCat.\";\n System.out.println(msg);\n }\n return newBlob;\n\n }", "public abstract <T> T readObject();", "com.google.protobuf.ByteString getObj();", "T deserialize(InputStream stream) throws IOException;", "private void readObject() {\n }", "public Serializable readObject(){\n Serializable loadedObject = null;\n try {\n FileInputStream fileIn = new FileInputStream(name);\n ObjectInputStream in = new ObjectInputStream(fileIn);\n loadedObject = (Serializable) in.readObject();\n in.close();\n fileIn.close();\n System.out.println(\"Data loaded from: \"+ name);\n } \n catch (IOException i) {\n System.out.println(\"File not found.\");\n } \n catch (ClassNotFoundException c) {\n System.out.println(\"Class not found\");\n }\n return loadedObject;\n }", "void decodeObject();", "private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {\n Schema schema = new Schema.Parser().parse((String) in.readObject());\n DatumReader<T> reader = new GenericDatumReader<>(schema);\n Decoder decoder = DecoderFactory.get().binaryDecoder(in, null);\n avroObject = reader.read(avroObject, decoder);\n }", "private static Object getObject(byte[] byteArr) throws IOException, ClassNotFoundException {\n\t\tObject object = SerializationUtils.deserialize(byteArr);\n\t\tByteArrayInputStream bis = new ByteArrayInputStream(byteArr);\n\t\tObjectInput in = new ObjectInputStream(bis);\n\t\t//return in.readObject();\n\t\treturn object;\n\t}", "public abstract org.omg.CORBA.Object read_Object();", "ObjectInspector getObjectInspector() throws SerDeException;", "protected PartitionedEvent deserialize(Object object) throws IOException {\n if (object instanceof byte[]) {\n return serializer.deserialize((byte[]) object);\n } else if (object instanceof PartitionedEvent) {\n return (PartitionedEvent) object;\n } else {\n throw new IllegalStateException(String.format(\"Unsupported event class '%s', expect byte array or PartitionedEvent!\", object == null ? null : object.getClass().getCanonicalName()));\n }\n }", "@SuppressWarnings(\"unchecked\")\n\tpublic static <T extends Serializable> T deserializeObject(final byte[] str) {\n\t\tfinal ObjectInputStream in;\n\t\tfinal ByteArrayInputStream inputStream = new ByteArrayInputStream(str);\n\t\tfinal T ret;\n\n\t\ttry {\n\t\t\tin = new ObjectInputStream(inputStream);\n\n\t\t\tret = (T) in.readObject();\n\t\t} catch (final Exception e) {\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\n\t\treturn ret;\n\t}", "String objectRead();", "private Object deserialize(byte[] data) throws IOException, ClassNotFoundException {\n\t\tByteArrayInputStream in = new ByteArrayInputStream(data);\n\t ObjectInputStream is = new ObjectInputStream(in);\n\t\treturn (Object) is.readObject();\n\t}", "public static Object deserializeObject(byte[] data) throws IOException {\n\t\tif (data == null || data.length < 1) {\n\t\t\treturn null;\n\t\t}\n\t\tObject object = null;\n\t\ttry {\n\t\t\tObjectInputStream objectStream = new ObjectInputStream(new ByteArrayInputStream(data));\n\t\t\tobject = objectStream.readObject();\n\t\t\tobjectStream.close();\n\t\t} catch (ClassNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn object;\n\t}", "public Serializable getObject() throws OpenwireException {\n if (object == null && getContent() != null) {\n try {\n Buffer content = getContent();\n InputStream is = new ByteArrayInputStream(content);\n if (isCompressed()) {\n is = new InflaterInputStream(is);\n }\n DataInputStream dataIn = new DataInputStream(is);\n ClassLoadingAwareObjectInputStream objIn = new ClassLoadingAwareObjectInputStream(dataIn);\n try {\n object = (Serializable)objIn.readObject();\n } catch (ClassNotFoundException ce) {\n throw new OpenwireException(\"Failed to build body from content. Serializable class not available to broker. Reason: \" + ce, ce);\n } finally {\n dataIn.close();\n }\n } catch (IOException e) {\n throw new OpenwireException(\"Failed to build body from bytes. Reason: \" + e, e);\n }\n }\n return this.object;\n }", "Object read(Object inputObject, Settings settings);", "public abstract T deserialize(String serial);", "InputStream deserialize(InputStream toDeserialize);", "private Object deserializeObject(String filename)\n throws FileNotFoundException, IOException, ClassNotFoundException\n {\n if (filename == null)\n {\n throw new NullPointerException(\"filename\");\n }\n if (filename.isEmpty())\n {\n throw new IllegalArgumentException(\"filename\");\n }\n synchronized(filename)\n {\n FileInputStream fileIn = new FileInputStream(filename);\n ObjectInputStream in = new ObjectInputStream(fileIn);\n Object result = in.readObject();\n in.close();\n fileIn.close();\n return result;\n }\n }", "public void deserialize() {\n\t\t\n\t}", "public static Object readObject(ChannelBuffer buffer, int length)\n\t{\n\t\tChannelBuffer objBuffer = buffer.readSlice(length);\n\t\tObject obj = null;\n\t\ttry{\n\t\t\tobj = OBJECT_DECODER.decode(objBuffer);\n\t\t}catch(Exception e){\n\t\t\tLOG.error(\"Error occurred while trying to read string from buffer: {}\",e);\n\t\t}\n\t\treturn obj;\n\t}", "public T deserialize() throws IOException {\n FileInputStream fileInputStream = new FileInputStream(this.mFile);\n DataInputStream dataInputStream = new DataInputStream(fileInputStream);\n T deserialize = this.mCodec.deserialize(dataInputStream);\n $closeResource(null, dataInputStream);\n $closeResource(null, fileInputStream);\n return deserialize;\n }", "@java.lang.Override\n public java.lang.String getObject() {\n java.lang.Object ref = object_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n object_ = s;\n return s;\n }\n }", "public Object readObject() {\n Object fromServer = null;\n\n try {\n fromServer = inputStream.readObject();\n } catch(InvalidClassException e) {\n GenericIO.writelnString(Thread.currentThread().getName()\n + \" - could not deserialize the read object!\");\n e.printStackTrace();\n System.exit(1);\n } catch(IOException e) {\n GenericIO.writelnString(Thread.currentThread().getName()\n + \" - error reading an object from the socket's input stream!\");\n e.printStackTrace();\n System.exit(1);\n } catch(ClassNotFoundException e) {\n GenericIO.writelnString(Thread.currentThread().getName()\n + \" - the read object's data type is unknown!\");\n e.printStackTrace();\n System.exit(1);\n }\n\n return fromServer;\n }", "Object loadObject() throws Exception;", "@java.lang.Override\n public com.google.protobuf.ByteString getObjectBytes() {\n java.lang.Object ref = object_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);\n object_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public abstract Blob readBlob(User user);", "protected O bytesToObject(byte[] data) throws OBException,\r\n InstantiationException, IllegalAccessException, IllegalIdException {\r\n O res = type.newInstance();\r\n try {\r\n res.load(data);\r\n } catch (IOException e) {\r\n throw new OBException(e);\r\n }\r\n return res;\r\n }", "public Object read() throws IOException, RecordIOException;", "public static <T extends Serializable> T clone(final T object) {\n\t\treturn SerializationUtils.deserializeObject(SerializationUtils.serializeObject(object));\n\t}", "DataObject loadObject(XMLStreamReader reader) throws XMLStreamException, IllegalStateException;", "public com.google.protobuf.ByteString getObj() {\n return obj_;\n }", "public com.google.protobuf.ByteString getObjectBytes() {\n java.lang.Object ref = object_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);\n object_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "Object deserialize() throws SQLException {\n\ttry {\n\t ByteArrayInputStream bi = new ByteArrayInputStream(data);\n\t ObjectInputStream is = new ObjectInputStream(bi);\n\n\t return is.readObject();\n\t} catch (Exception e) {\n\t throw Trace.error(Trace.SERIALIZATION_FAILURE, e.getMessage());\n\t}\n }", "public static Object deserialize(byte[] objectStream) {\n ByteArrayInputStream bais = null;\n try {\n bais = new ByteArrayInputStream(objectStream);\n ObjectInputStream ois = new ObjectInputStream(bais);\n return ois.readObject();\n } catch (IOException | ClassNotFoundException e) {\n throw new RuntimeException(e);\n } finally {\n if (bais != null) {\n try {\n bais.close();\n } catch (IOException ex) {\n }\n }\n }\n }", "public com.google.protobuf.ByteString getObj() {\n return obj_;\n }", "public static Object safeDeserialize(Object value, String cacheContext,SerializationBitSet flag) throws IOException, ClassNotFoundException\n {\n if (value != null && value instanceof byte[])\n {\n if(flag!=null && flag.IsBitSet((byte)SerializationBitSetConstant.BinaryData)) return value; \n \n ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream((byte[]) value);\n ObjectInput objectInput = new ObjectInputStream(byteArrayInputStream, cacheContext);\n flag.UnsetBit((byte)SerializationBitSetConstant.Flattened);\n return objectInput.readObject();\n \n }\n return value;\n }", "@SuppressWarnings(\"unchecked\")\n protected static <T> T cloneWithSerialization(final T obj) {\n\n ObjectOutputStream objectsOut = null;\n ObjectInputStream ois = null;\n try {\n try {\n final ByteArrayOutputStream bytesOut = new ByteArrayOutputStream();\n objectsOut = new ObjectOutputStream(bytesOut);\n\n objectsOut.writeObject(obj);\n objectsOut.flush();\n\n final byte[] bytes = bytesOut.toByteArray();\n\n ois = new ObjectInputStream(new ByteArrayInputStream(bytes));\n\n return (T) ois.readObject();\n } finally {\n if (objectsOut != null)\n objectsOut.close();\n if (ois != null)\n ois.close();\n }\n } catch (ClassNotFoundException ex) {\n throw new AssertionError(ex);\n } catch (IOException ex) {\n throw new AssertionError(ex);\n }\n }", "public @NotNull T read(@NotNull final JsonObject object) throws JsonException;", "public static Object read(Object obj) {\n if (obj instanceof byte[] byteArray) {\n return SafeEncoder.encode(byteArray);\n }\n if (obj instanceof List) {\n return ((List<?>) obj).stream().map(Jupiter::read).toList();\n }\n\n return obj;\n }", "private static Object deepClone(Object object) {\n try {\n ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();\n ObjectOutputStream objectOutputStream = new ObjectOutputStream(byteArrayOutputStream);\n objectOutputStream.writeObject(object);\n ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream(byteArrayOutputStream.toByteArray());\n ObjectInputStream objectInputStream = new ObjectInputStream(byteArrayInputStream);\n return objectInputStream.readObject();\n }\n catch (Exception e) {\n return null;\n }\n }", "@Override\n public <T> T deSerialize( final byte[] data, final ClassLoader loader )\n throws IOException, ClassNotFoundException\n {\n if ( data == null )\n {\n return null;\n }\n\n final byte[] deccrypted = decrypt(data);\n return serializer.deSerialize(deccrypted, loader);\n }", "public void deserialize(JoyBuffer in) {\n\t\t\n\t}", "public static java.lang.Object decodeObject(com.webobjects.foundation.NSCoder coder){\n return null; //TODO codavaj!!\n }", "public Storable readStorable() throws IOException {\n Storable storable;\n String s = readString();\n\n if (s.equals(\"NULL\"))\n return null;\n\n if (s.equals(\"REF\")) {\n int ref = readInt();\n return (Storable) retrieve(ref);\n }\n\n storable = (Storable) makeInstance(s);\n map(storable);\n storable.read(this);\n return storable;\n }", "private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException\n {\n // TODO - temp?\n }", "void decode2(DataBuffer buffer, T object);", "protected O bytesToObject(ByteBuffer data) throws OBException,\r\n InstantiationException, IllegalAccessException, IllegalIdException {\r\n return bytesToObject(data.array());\r\n }", "private void readObject(ObjectInputStream s) throws InvalidObjectException {\n throw new InvalidObjectException(\"Deserialization via serialization delegate\");\n }", "private Object readObject(String path)\n throws IOException, ClassNotFoundException {\n InputStream file = new FileInputStream(path);\n InputStream buffer = new BufferedInputStream(file);\n ObjectInput input = new ObjectInputStream(buffer);\n Object inputObj = input.readObject();\n input.close();\n return inputObj;\n }", "private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException\r\n\t{\r\n\t\tthis.deserialize(in);\r\n\t}", "protected abstract Geometry decode(Object o);", "Object decodeObject(Object value);", "@Override\n public void deserialize(ByteBuffer buf) {\n }", "Object deserialize(InputStream input, Class type, String format,\r\n String contentEncoding);", "public Object getObject() {\n\t\ttry {\n\t\t\tByteArrayInputStream istream = new ByteArrayInputStream(mStoredObjectArray);\n\t\t\tObjectInputStream p;\n\t\t\tObject toReturn = null;\n\t\t\tif (mIsJython) {\n\t\t\t} else {\n\t\t\t\t\n\t\t\t\ttoReturn = null;\n\t\t\t}\n\t\t\tistream.close();\n\t\t\treturn toReturn;\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t}", "@Override\n public <T> T deserializeValue(byte[] value,Class<T> toClass,RedisSerializer bySerializer)\n {\n if(value==null) return null;\n Object object=bySerializer.deserialize(value);\n if(object==null) return null;\n\n try\n {\n return objectMapper.readValue(object.toString(),toClass);\n }\n catch(IOException e)\n {\n e.printStackTrace();\n return null;\n }\n }", "public synchronized final Object readObject() {\n\t\tif (!inQueue.isEmpty())\n\t\t\treturn inQueue.dequeue();\n\t\telse return null;\n\t}", "public java.lang.String getObject() {\n java.lang.Object ref = object_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n object_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "@SuppressWarnings(\"PMD.CloseResource\") // PMD does not understand Closer\n protected static <S extends Serializable> S deserializeObject(\n Path inputFile, Class<S> outputClass) {\n try {\n // Awkward nested try blocks required because we refuse to throw IOExceptions.\n try (Closer closer = Closer.create()) {\n FileInputStream fis = closer.register(new FileInputStream(inputFile.toFile()));\n BufferedInputStream bis = closer.register(new BufferedInputStream(fis));\n // Allows us to peek at the beginning of the stream and then push the bytes back in for\n // downstream consumers to read.\n PushbackInputStream pbCompressed =\n new PushbackInputStream(bis, DEFAULT_HEADER_LENGTH_BYTES);\n Format f = detectFormat(pbCompressed);\n if (f == Format.GZIP) {\n InputStream gis = closer.register(new GZIPInputStream(pbCompressed));\n // Update format after decompression\n PushbackInputStream pbUncompressed =\n new PushbackInputStream(gis, DEFAULT_HEADER_LENGTH_BYTES);\n return deserializeObject(pbUncompressed, outputClass);\n } else if (f == Format.LZ4) {\n InputStream lis = closer.register(new LZ4FrameInputStream(pbCompressed));\n // Update format after decompression\n PushbackInputStream pbUncompressed =\n new PushbackInputStream(lis, DEFAULT_HEADER_LENGTH_BYTES);\n return deserializeObject(pbUncompressed, outputClass);\n } else {\n return deserializeObject(pbCompressed, outputClass);\n }\n }\n } catch (Exception e) {\n throw new BatfishException(\n String.format(\n \"Failed to deserialize object of type %s from file %s\",\n outputClass.getCanonicalName(), inputFile),\n e);\n }\n }", "protected Object readObject(String fileName) throws IOException, ClassNotFoundException {\r\n\t\tObject o = null;\r\n\t\tFileInputStream fis = new FileInputStream(fileName);\r\n\t\tObjectInputStream ois = new ObjectInputStream(fis);\r\n\t\to = ois.readObject();\r\n\t\tois.close();\r\n\t\tfis.close();\r\n\t\t\r\n\t\treturn (o);\r\n\t}", "private void readObject(final ObjectInputStream in) throws IOException, ClassNotFoundException {\n\t\tname = in.readUTF();\n\t\tdesc = (String[]) in.readObject();\n\t\tmembers = (Members) in .readObject();\n\t\tbanlist = (List<UUID>) in .readObject();\n\t\tterritoryIds = (List<String>) in .readObject();\n\t\tinvite = in.readBoolean();\n\t}", "private void readObject(ObjectInputStream os) throws IOException, ClassNotFoundException {\n \t// rebuild this object\n \tos.defaultReadObject();\n \tthis.stat = new EdgeStat(this.edgeId);\n \tthis.curPackets = new ArrayList<ITransmissible>();\n }", "public abstract Object decode(InputStream is) ;", "@java.lang.Override\n public com.google.protobuf2.Any getObject() {\n return object_ == null ? com.google.protobuf2.Any.getDefaultInstance() : object_;\n }", "@Override\r\n public Object fromBinaryJava(byte[] bytes, Class<?> clazz) {\r\n return JSON.parseObject(bytes, clazz);\r\n }", "abstract Object read(@NonNull JsonReader reader) throws IOException;", "public static Object deserializeObject(ByteBuffer bb) {\n String className = deserializeString(bb);\n int numFields = deserializeInteger(bb);\n try {\n Class<?> c = Class.forName(className);\n Object o = c.newInstance();\n\n HashMap<String, Object> fieldTypeMap = new HashMap<>();\n Field[] fields = c.getFields();\n for (Field f: fields) {\n fieldTypeMap.put(f.getName(), f.getType());\n }\n for (int i = 0; i < numFields; i++) {\n String fieldName = deserializeString(bb);\n Object val;\n if (fieldTypeMap.get(fieldName).equals(String.class)) {\n val = deserializeString(bb);\n } else if (fieldTypeMap.get(fieldName).equals(Integer.class)) {\n val = deserializeInteger(bb);\n } else if (fieldTypeMap.get(fieldName).equals(List.class)) {\n val = deserializeList(bb);\n } else if (fieldTypeMap.get(fieldName).equals(Day.class)) {\n val = deserializeDayEnum(bb);\n } else {\n val = Deserializer.deserializeObject(bb);\n }\n try {\n o.getClass().getDeclaredField(fieldName).set(o, val);\n } catch (NoSuchFieldException e) {\n e.printStackTrace();\n }\n }\n return c.cast(o);\n } catch (ClassNotFoundException | IllegalAccessException | InstantiationException e) {\n e.printStackTrace();\n }\n return null;\n }", "private void readObjectNoData() throws ObjectStreamException {}", "public static Object objectLoader(String filename) throws IOException, ClassNotFoundException {\r\n\t\t// Creat file input stream\r\n\t\tFileInputStream fileInStr = new FileInputStream(filename);\r\n\t\t// Create object input steam\r\n\t\tObjectInputStream objInStr = new ObjectInputStream(fileInStr);\r\n\t\tObject obj = (Object) objInStr.readObject();\r\n\t\t// Closing all streams\r\n\t\tobjInStr.close();\r\n\t\tfileInStr.close();\r\n\t\tSystem.out.printf(\"Deserialized data - \" + filename); // Printing message plus file name that was saved\r\n\t\treturn obj;\r\n\t}", "@SuppressWarnings(\"unchecked\")\n static <T> T reserialize(T object) {\n checkNotNull(object);\n ByteArrayOutputStream bytes = new ByteArrayOutputStream();\n try {\n ObjectOutputStream out = new ObjectOutputStream(bytes);\n out.writeObject(object);\n ObjectInputStream in = new ObjectInputStream(new ByteArrayInputStream(bytes.toByteArray()));\n return (T) in.readObject();\n } catch (IOException | ClassNotFoundException e) {\n throw new RuntimeException(e);\n }\n }", "@SuppressWarnings(\"unchecked\")\n public BaseType deserialize(InputStream stream) throws IOException {\n processHeader(stream);\n\n // Decode the object type and look up its serializer.\n byte type = (byte) stream.read();\n if (type < 0) {\n throw new EOFException();\n }\n\n val si = this.serializersById.get(type);\n ensureCondition(si != null, \"No serializer found for object type %s.\", type);\n\n // Deserialize contents.\n return (BaseType) si.serializer.deserializeContents(stream);\n }", "public static Object deserialize(byte[] data) throws IOException, ClassNotFoundException {\n\t\tObjectInputStream ois = new ObjectInputStream(new ByteArrayInputStream(data));\n\t\treturn ois.readObject();\n\t}", "public TargetType deserialize(BufferView data) throws IOException {\n return deserialize(data.getReader());\n }", "public EncogPersistedObject readObject(final String name) {\r\n\r\n\t\t// did we find the object?\r\n\t\tif (advance(name)) {\r\n\t\t\tfinal String objectType = this.in.getTag().getName();\r\n\t\t\tfinal Persistor persistor = PersistorUtil\r\n\t\t\t\t\t.createPersistor(objectType);\r\n\r\n\t\t\tif (persistor == null) {\r\n\t\t\t\tthrow new PersistError(\"Do not know how to load: \" + objectType);\r\n\t\t\t}\r\n\t\t\treturn persistor.load(this.in);\r\n\t\t} else {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "private void readObject(ObjectInputStream paramObjectInputStream) throws IOException, ClassNotFoundException {\n/* 91 */ paramObjectInputStream.defaultReadObject();\n/* 92 */ this.types = null;\n/* */ }", "public <T> T deserialize(Class<T> type, InputStream is) throws SerializationException;", "private static Object deserialize(String path) {\n Object e = null;\n try {\n discAccesses++;\n FileInputStream fileIn = new FileInputStream(path);\n ObjectInputStream in = new ObjectInputStream(fileIn);\n e = in.readObject();\n in.close();\n fileIn.close();\n } catch (IOException | ClassNotFoundException i) {\n throw new Error(\"No serialized object for path \" + path);\n }\n return e;\n }", "protected abstract Object toObject(ByteBuffer content, Type targetType) throws BeanConversionException;", "protected Object readReference(long offset) {\n assert referenceMessageSize != 0 : \"References are not in use\";\n // Is there a way to compute the element offset once and just\n // arithmetic?\n return UnsafeRefArrayAccess.lpRefElement(references, UnsafeRefArrayAccess.calcRefElementOffset(offset));\n }", "private Object copy ( Object record )\n\t{\n\t try\n {\n ByteArrayOutputStream baos = new ByteArrayOutputStream ();\n ObjectOutputStream oos = new ObjectOutputStream (baos);\n oos.writeObject (record);\n \n ByteArrayInputStream bais = new ByteArrayInputStream ( baos.toByteArray () );\n ObjectInputStream ois = new ObjectInputStream (bais);\n return ois.readObject ();\n }\n catch (Exception e)\n {\n throw new RuntimeException (\"Cannot copy record \" + record.getClass() + \" via serialization \" );\n }\n\t}", "protected final <T> T openGsonObject(Class<T> objectType, ResourceType type, String path) {\n InputStream inputStream = this.openFileStream(type, path);\n if (inputStream == null) {\n return null;\n }\n try {\n try {\n Reader reader = new InputStreamReader(inputStream, \"UTF-8\");\n if (this.gson == null) {\n GsonBuilder gsonBuilder = new GsonBuilder();\n gsonBuilder.registerTypeAdapter(Vector3.class, new Vector3Deserializer());\n gsonBuilder.registerTypeAdapter(BlockFace.class, new BlockFaceDeserializer());\n gsonBuilder.registerTypeAdapter(BlockModelState.VariantList.class, new VariantListDeserializer());\n gsonBuilder.registerTypeAdapter(BlockModelState.Condition.class, new ConditionalDeserializer());\n this.gson = gsonBuilder.create();\n }\n T result = this.gson.fromJson(reader, objectType);\n if (result == null) {\n throw new IOException(\"Failed to parse JSON for \" + objectType.getSimpleName() + \" at \" + path);\n }\n return result;\n } finally {\n inputStream.close();\n }\n } catch (JsonSyntaxException ex) {\n System.out.println(\"Failed to parse GSON for \" + objectType.getSimpleName() + \" at \" + path + \": \" + ex.getMessage());\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n return null;\n }", "public static LargeObjectAvro fromByteBuffer(\n java.nio.ByteBuffer b) throws java.io.IOException {\n return DECODER.decode(b);\n }", "@java.lang.Override\n public com.google.protobuf2.AnyOrBuilder getObjectOrBuilder() {\n return getObject();\n }" ]
[ "0.7245315", "0.71392524", "0.66463304", "0.6183103", "0.6181333", "0.6179921", "0.6154319", "0.6115205", "0.6115205", "0.6115205", "0.60271186", "0.5993128", "0.5945941", "0.5928535", "0.5871544", "0.58593386", "0.5841483", "0.58263755", "0.58005494", "0.57814395", "0.57777166", "0.5775045", "0.5758589", "0.57544523", "0.575388", "0.575016", "0.57480186", "0.5742146", "0.5697969", "0.56955326", "0.568749", "0.5668286", "0.56672233", "0.56646", "0.5640465", "0.5637952", "0.5637472", "0.56296456", "0.56232965", "0.5588855", "0.55787027", "0.5558101", "0.5553095", "0.55432737", "0.55306756", "0.549382", "0.5451224", "0.54373735", "0.5410581", "0.5400546", "0.5391978", "0.53915924", "0.5390349", "0.5388859", "0.5351245", "0.5350982", "0.53504", "0.53271705", "0.5304566", "0.5303572", "0.5299146", "0.52892387", "0.5288258", "0.5284818", "0.5279673", "0.5278601", "0.52717847", "0.5269184", "0.52683985", "0.5267336", "0.52534735", "0.52433896", "0.52383935", "0.5233345", "0.5222219", "0.52194476", "0.5208093", "0.5206879", "0.519795", "0.51973355", "0.51958746", "0.5194626", "0.5165244", "0.51629966", "0.5155124", "0.5142363", "0.51381797", "0.5126474", "0.5123449", "0.5113168", "0.5112147", "0.51109344", "0.5110886", "0.50957274", "0.5084107", "0.5083773", "0.5074564", "0.5064298", "0.505494", "0.5047429" ]
0.8410762
0
Get the object inspector that can be used to navigate through the internal structure of the Object returned from deserialize(...).
ObjectInspector getObjectInspector() throws SerDeException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getInspector() {\r\n return inspector;\r\n }", "public interface Deserializer extends SerDe {\n\n /**\n * Deserialize an object out of a Writable blob. In most cases, the return\n * value of this function will be constant since the function will reuse the\n * returned object. If the client wants to keep a copy of the object, the\n * client needs to clone the returned deserialized value by calling\n * ObjectInspectorUtils.getStandardObject().\n *\n * @param blob\n * The Writable object containing a serialized object\n * @return A Java object representing the contents in the blob.\n */\n Object deserialize(Writable blob) throws SerDeException;\n\n /**\n * Get the object inspector that can be used to navigate through the internal\n * structure of the Object returned from deserialize(...).\n */\n ObjectInspector getObjectInspector() throws SerDeException;\n\n}", "public com.google.protobuf.ByteString getObj() {\n return obj_;\n }", "public com.google.protobuf.ByteString getObj() {\n return obj_;\n }", "public ObjectInfo getObjectInfo();", "@java.lang.Override\n public java.lang.String getObject() {\n java.lang.Object ref = object_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n object_ = s;\n return s;\n }\n }", "com.google.protobuf.ByteString getObj();", "public java.lang.String getObject() {\n java.lang.Object ref = object_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n object_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getObject() {\n return mObject;\n }", "private InspectorInterface createInspector() {\n Inspector inspector = new Inspector(parent);\n com.cosylab.vdct.DataProvider.getInstance().addInspectableListener(inspector);\n return inspector;\n}", "@java.lang.Override\n public com.google.protobuf.ByteString getObjectBytes() {\n java.lang.Object ref = object_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);\n object_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "ObjectBuilderInspector getObjectBuilderInspector() {\n return objectBuilderInspector;\n }", "public InspectorInterface getActiveInspector() {\n return (InspectorInterface)inspectors.firstElement();\n}", "public com.google.protobuf.ByteString getObjectBytes() {\n java.lang.Object ref = object_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);\n object_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public abstract Object deserialize(Object object);", "String objectRead();", "@java.lang.Override\n public com.google.protobuf2.AnyOrBuilder getObjectOrBuilder() {\n return getObject();\n }", "public ObjectSerialization getObjSerial() {\n\t\treturn objSerial;\n\t}", "@java.lang.Override\n public com.google.protobuf2.Any getObject() {\n return object_ == null ? com.google.protobuf2.Any.getDefaultInstance() : object_;\n }", "public JsonObject getObject() {\n return obj;\n }", "@Override\n\tpublic Object retrieveSerializedObject() {\n\t\treturn explanation;\n\t}", "public Object getObject() {\n return this.object;\n }", "public com.vmware.converter.ManagedObjectReference getObj() {\r\n return obj;\r\n }", "@Override\r\n\tprotected Object readObject() throws IOException, SerializeException {\r\n\t\treturn AdvancedDeserializerUtil.readObject(super.readObject());\r\n\t}", "@Override\n public List<List<Integer>> getObjectInfo() {\n List<List<Integer>> currObjectConfig = getVisualInfoFromPieces(OBJECT_INFO_IDENTIFIER);\n return Collections.unmodifiableList(currObjectConfig);\n }", "public Object getObject() {\n\t\treturn object;\n\t}", "public Object getObject() {\r\n\t\treturn this.object;\r\n\t}", "public Object getObject()\n {\n return m_object;\n }", "public ObjectReference getObject();", "public ObjectProperties getObjectProperties();", "GameObject getObject();", "public com.google.protobuf2.Any getObject() {\n if (objectBuilder_ == null) {\n return object_ == null ? com.google.protobuf2.Any.getDefaultInstance() : object_;\n } else {\n return objectBuilder_.getMessage();\n }\n }", "public Object getParsedObject() {\n\t\treturn parsedObject;\n\t}", "public Object getObject();", "public Object getObject() ;", "public JsonObject getRawObject() {\n return mRawObject;\n }", "public String getSerializedObj() {\r\n String serializedObject = null;\r\n // serialize the object\r\n // format = file content,size,name\r\n File f = this.fileObject;\r\n serializedObject = f.getBody()+\",\"+f.getFileSize()+\",\"+f.getName();\r\n return serializedObject;\r\n }", "public JsonObject getRawObject() {\n return rawObject;\n }", "Object getObjectField();", "public Object getObject() {\r\n/* 109 */ return this.object;\r\n/* */ }", "public void deserialize() {\n\t\t\n\t}", "com.google.protobuf2.Any getObject();", "Object getObject();", "Object getObject();", "Object getObject();", "Object getObject();", "com.google.protobuf2.AnyOrBuilder getObjectOrBuilder();", "private void readObject() {}", "private void readObject() {}", "private void readObject() {}", "@Override\n\tpublic Object readObject() {\n\t\treturn super.readObject();\n\t}", "public void requestInspectorFor(Inspectable object) {\n\n // search for it\n InspectorInterface inspector = null;\n Enumeration e = inspectors.elements();\n while (e.hasMoreElements()) {\n inspector = (InspectorInterface)e.nextElement();\n if (inspector.getInspectedObject()==object) {\n inspector.setVisible(true);\n return;\n }\n }\n\n // search for first unfrozen\n e = inspectors.elements();\n while (e.hasMoreElements()) {\n inspector = (InspectorInterface)e.nextElement();\n if (!inspector.isFrozen()) {\n inspector.inspectObject(object);\n return;\n }\n }\n\n // otherwise create a new instance\n inspector = createInspector();\n inspectors.addElement(inspector);\n inspector.inspectObject(object);\n inspector.setVisible(true); // bug fix\n}", "public NetObject getObject();", "public java.lang.String getSer() {\n java.lang.Object ref = ser_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n ser_ = s;\n }\n return s;\n }\n }", "public boolean isInspected(Inspectable object) {\n\n InspectorInterface inspector = null;\n Enumeration e = inspectors.elements();\n while (e.hasMoreElements()) {\n inspector = (InspectorInterface)e.nextElement();\n if (inspector.getInspectedObject()==object)\n return true;\n }\n\n return false;\n}", "public static ReflectionResponse<Map<String, String>> getPrintableFields(Object object, Class<?>... toStringExceptions) {\n return getPrintableFields(object, true, toStringExceptions);\n }", "public Object readObject() throws ClassNotFoundException, IOException;", "public com.google.protobuf2.AnyOrBuilder getObjectOrBuilder() {\n if (objectBuilder_ != null) {\n return objectBuilder_.getMessageOrBuilder();\n } else {\n return object_ == null ?\n com.google.protobuf2.Any.getDefaultInstance() : object_;\n }\n }", "Objet getObjetAlloue();", "public String getNameForReflection() {\n return this.mNameForReflection;\n }", "public static Object deepClone(Serializable obj)\n\t{\n\t\tif (obj == null)\n\t\t\treturn null;\n\t\t\n\t try\n\t {\n\t \tByteArrayOutputStream b = new ByteArrayOutputStream();\n\t \tObjectOutputStream out = new ObjectOutputStream(b);\n\t \tout.writeObject(obj);\n\t \tByteArrayInputStream byteIn = new ByteArrayInputStream(b.toByteArray());\n\t \tObjectInputStream objIn = new ObjectInputStream(byteIn);\n\t \treturn objIn.readObject();\n\t } catch (Exception e)\n\t {\n\t \tlog.debug(e.getClass().getName() + \" exception thrown while cloning object of type \" + obj.getClass().getName(), e);\n\t \treturn null;\n\t }\n\t}", "void decodeObject();", "private static Object deepClone(Object object) {\n try {\n ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();\n ObjectOutputStream objectOutputStream = new ObjectOutputStream(byteArrayOutputStream);\n objectOutputStream.writeObject(object);\n ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream(byteArrayOutputStream.toByteArray());\n ObjectInputStream objectInputStream = new ObjectInputStream(byteArrayInputStream);\n return objectInputStream.readObject();\n }\n catch (Exception e) {\n return null;\n }\n }", "private void readObject() {\n }", "Object deserialize(Writable blob) throws SerDeException;", "public void printType() {\n System.out.println(\"Type: \" + objRef.getClass().getName());\n }", "public static ReflectionResponse<String> getPrettyPrintStringRepresentation(Object object, boolean useToString, Class<?>... toStringExceptions) {\n ReflectionResponse<String> response = getStringRepresentation(object, useToString, toStringExceptions);\n if (!response.hasResult()) {\n return response;\n }\n StringBuilder stringBuilder = new StringBuilder();\n char[] chars = response.getValue().replace(\"\\n\", \"\").replaceAll(\"(?<=[,{\\\\[}\\\\]]) \", \"\").toCharArray();\n int depth = 0;\n for (char c : chars) {\n if (stringBuilder.length() > 0 && stringBuilder.charAt(stringBuilder.length() - 1) == '\\n') {\n for (int i2 = 0; i2 < depth; i2++) {\n stringBuilder.append(\" \");\n }\n }\n if ((c == '}' || c == ']')) {\n stringBuilder.append('\\n');\n depth--;\n for (int i2 = 0; i2 < depth; i2++) {\n stringBuilder.append(\" \");\n }\n }\n stringBuilder.append(c);\n if (c == '{' || c == '[') {\n stringBuilder.append('\\n');\n depth++;\n }\n if (c == ',') {\n stringBuilder.append('\\n');\n }\n }\n return new ReflectionResponse<>(stringBuilder.toString());\n }", "public IDfPersistentObject getObject() {\n\t\treturn object;\n\t}", "public Byte getObjectType() {\n return objectType;\n }", "@Override\n\tpublic String toString() {\n\t\treturn \"Object [name = \" + name.get() + \", typ = \" + typ.get() + \"]\";\n\t}", "public java.lang.String getSer() {\n java.lang.Object ref = ser_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n ser_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "private void serializeSerializable(final Serializable object, final StringBuffer buffer)\n {\n String className;\n Class<?> c;\n Field[] fields;\n int i, max;\n Field field;\n String key;\n Object value;\n StringBuffer fieldBuffer;\n int fieldCount;\n\n this.history.add(object);\n c = object.getClass();\n className = c.getSimpleName();\n buffer.append(\"O:\");\n buffer.append(className.length());\n buffer.append(\":\\\"\");\n buffer.append(className);\n buffer.append(\"\\\":\");\n\n fieldBuffer = new StringBuffer();\n fieldCount = 0;\n while (c != null)\n {\n fields = c.getDeclaredFields();\n for (i = 0, max = fields.length; i < max; i++)\n {\n field = fields[i];\n if (Modifier.isStatic(field.getModifiers())) continue;\n if (Modifier.isVolatile(field.getModifiers())) continue;\n\n try\n {\n field.setAccessible(true);\n key = field.getName();\n value = field.get(object);\n serializeObject(key, fieldBuffer);\n this.history.remove(this.history.size() - 1);\n serializeObject(value, fieldBuffer);\n fieldCount++;\n }\n catch (final SecurityException e)\n {\n // Field is just ignored when this exception is thrown\n }\n catch (final IllegalArgumentException e)\n {\n // Field is just ignored when this exception is thrown\n }\n catch (final IllegalAccessException e)\n {\n // Field is just ignored when this exception is thrown\n }\n }\n c = c.getSuperclass();\n }\n buffer.append(fieldCount);\n buffer.append(\":{\");\n buffer.append(fieldBuffer);\n buffer.append(\"}\");\n }", "@Override\n public String toString() {\n return metaObject.getType().toString();\n }", "@Override\n public String toString() {\n return ObjectContracts.toString(this, \"objectType\", \"name\", \"atPath\");\n }", "public Object obj()\n\t{\n\t\treturn object;\n\t}", "public interface FS2MetaSnapshot {\r\n\r\n Date createdOn();\r\n\r\n String createdBy();\r\n \r\n void dump(PrintStream printStream);\r\n\r\n // obtain a single header\r\n String[] getHeader(String key);\r\n\r\n // get the set of all header names\r\n Set<String> getHeaderNames();\r\n\r\n // set of key/value pairs providing metadata for this object\r\n FS2ObjectHeaders getHeaders();\r\n\r\n URI getURI();\r\n\r\n // when was this snapshot taken?\r\n Date snapshotTime();\r\n\r\n // TODO add these later... should be pluggable config...\r\n // boolean isEncrypted();\r\n // boolean isCompressed();\r\n\r\n // JSON representation of this snapshot\r\n String toJSON();\r\n\r\n}", "@Test\n public void testDeSerialize() throws Exception {\n Writable w = new Text(\"{ \\\"ts\\\":\\\"2014-08-25T00:24:27.41103928Z\\\", \\\"t\\\":36529, \\\"Request\\\":{ \\\"path\\\":\\\"/foo/bar\\\", \\\"query\\\":{\\\"baz\\\": [\\\"ban\\\"]}, \\\"headers\\\":{ \\\"Accept\\\":[\\\"image/webp,*/*;q=0.8\\\"], \\\"Accept-Encoding\\\":[\\\"identity\\\"], \\\"Accept-Language\\\":[\\\"en-US,en;q=0.8\\\"], \\\"Connection\\\":[\\\"keep-alive\\\"], \\\"Referer\\\":[\\\"http://foo.com/bar\\\"], \\\"User-Agent\\\":[\\\"Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.153 Safari/537.36\\\"] }, \\\"ip\\\":\\\"10.0.0.1\\\" } }\");\n\n JSONObject result = (JSONObject) instance.deserialize(w);\n \n StructObjectInspector soi = (StructObjectInspector) instance.getObjectInspector();\n \n StructField tSF = soi.getStructFieldRef(\"t\");\n assertEquals(36529, ((JavaStringIntObjectInspector)tSF.getFieldObjectInspector()).get(soi.getStructFieldData(result, tSF )));\n assertEquals(\"2014-08-25T00:24:27.41103928Z\"\n , soi.getStructFieldData(result, soi.getStructFieldRef(\"ts\")));\n \n StructField requestSF = soi.getStructFieldRef(\"request\");\n \n Object request = soi.getStructFieldData(result, requestSF);\n \n StructObjectInspector requestOI = (StructObjectInspector) requestSF.getFieldObjectInspector();\n \n assertEquals(3, requestOI.getAllStructFieldRefs().size());\n \n\n StructField headersSF = requestOI.getStructFieldRef(\"headers\");\n Object headers = requestOI.getStructFieldData(request, headersSF);\n \n assertTrue(headersSF.getFieldObjectInspector().getCategory() == Category.STRUCT);\n StructObjectInspector headersOI = (StructObjectInspector) headersSF.getFieldObjectInspector();\n \n // now get the user agent with the mapping\n StructField useragentSF = headersOI.getStructFieldRef(\"useragent\");\n Object useragent = requestOI.getStructFieldData(headers, useragentSF);\n ListObjectInspector useragentOI = (ListObjectInspector) useragentSF.getFieldObjectInspector();\n assertEquals(useragentOI.getCategory(), Category.LIST);\n \n // get value\n List d = useragentOI.getList(useragent);\n assertEquals(d.size(),1);\n }", "@Override\n public String toString() {\n return stringBuilder.toString() + OBJECT_SUFFIX;\n }", "public String toString()\r\n\t{\r\n\t\tStringBuffer OutString = new StringBuffer();\r\n\t\t// Open tag\r\n\t\tOutString.append(\"<\");\r\n\t\t// Add the object's type\r\n\t\tOutString.append(getType());\r\n\t\t// attach the ID if required.\r\n\t\tif (DEBUG)\r\n\t\t\tOutString.append(getObjID());\r\n\t\t// add the class attribute if required; default: don't.\r\n\t\tif (getIncludeClassAttribute() == true)\r\n\t\t\tOutString.append(getClassAttribute());\r\n\t\t// Add any transformation information,\r\n\t\t// probably the minimum is the x and y values.\r\n\t\t// again this is new to Java 1.4;\r\n\t\t// this function returns a StringBuffer.\r\n\t\tOutString.append(getAttributes());\r\n\t\t// close the tag.\r\n\t\tOutString.append(\">\");\r\n\t\tOutString.append(\"&\"+entityReferenceName+\";\");\r\n\t\t// close tag\r\n\t\tOutString.append(\"</\");\r\n\t\tOutString.append(getType());\r\n\t\tOutString.append(\">\");\r\n\r\n\t\treturn OutString.toString();\r\n\t}", "public Serializable readObject(){\n Serializable loadedObject = null;\n try {\n FileInputStream fileIn = new FileInputStream(name);\n ObjectInputStream in = new ObjectInputStream(fileIn);\n loadedObject = (Serializable) in.readObject();\n in.close();\n fileIn.close();\n System.out.println(\"Data loaded from: \"+ name);\n } \n catch (IOException i) {\n System.out.println(\"File not found.\");\n } \n catch (ClassNotFoundException c) {\n System.out.println(\"Class not found\");\n }\n return loadedObject;\n }", "public static BinaryMessageDecoder<BirthInfo> getDecoder() {\n return DECODER;\n }", "@java.lang.Override\n public java.lang.String getO() {\n java.lang.Object ref = o_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n o_ = s;\n return s;\n }\n }", "public Object getObject() {\n return getObject(null);\n }", "@Override\n\tpublic String toString() {\n\t\treturn toJSON().toString();\n\t}", "public Object getObject() {\n return getSource();\n }", "public ObjectImage getObjectImage ()\r\n {\r\n return recoverable_.getObjectImage ();\r\n }", "String parseObjectToJson(Object obj);", "public Serializable getObject() throws OpenwireException {\n if (object == null && getContent() != null) {\n try {\n Buffer content = getContent();\n InputStream is = new ByteArrayInputStream(content);\n if (isCompressed()) {\n is = new InflaterInputStream(is);\n }\n DataInputStream dataIn = new DataInputStream(is);\n ClassLoadingAwareObjectInputStream objIn = new ClassLoadingAwareObjectInputStream(dataIn);\n try {\n object = (Serializable)objIn.readObject();\n } catch (ClassNotFoundException ce) {\n throw new OpenwireException(\"Failed to build body from content. Serializable class not available to broker. Reason: \" + ce, ce);\n } finally {\n dataIn.close();\n }\n } catch (IOException e) {\n throw new OpenwireException(\"Failed to build body from bytes. Reason: \" + e, e);\n }\n }\n return this.object;\n }", "public Object getObject() {\n\t\treturn this.currentAction.getObject();\n\t}", "public T getObject()\n\t{\n\t\treturn object;\n\t}", "public MWC.GUI.Editable.EditorType getInfo()\n\t{\n\t\tif (_myEditor == null)\n\t\t\t_myEditor = new InvestigateInfo(this);\n\n\t\treturn _myEditor;\n\t}", "@Override\n public Class<Object> getObjectType() {\n return Object.class;\n }", "public Object readObject() throws IOException, ClassNotFoundException {\n if (objectInputStream == null) {\n objectInputStream = new ObjectInputStream(byteArrayInputStream);\n }\n return objectInputStream.readObject();\n }", "public String serialize() {\n switch (type) {\n case LIST:\n return serializeList();\n\n case OBJECT:\n return serializeMap();\n\n case UNKNOWN:\n return serializeUnknown();\n }\n return \"\";\n }", "@Test\n public void testDeSerialize() throws Exception {\n\n\n StructObjectInspector soi = (StructObjectInspector) instance.getObjectInspector();\n\n StructField sfr = soi.getStructFieldRef(\"stuff\");\n\n assertEquals(sfr.getFieldObjectInspector().getCategory(), ObjectInspector.Category.UNION);\n\n UnionObjectInspector uoi = (UnionObjectInspector) sfr.getFieldObjectInspector();\n\n // first, string\n Writable w = new Text(\"{\\\"country\\\":\\\"Switzerland\\\",\\\"stuff\\\":\\\"Italian\\\"}\");\n JSONObject result = (JSONObject) instance.deserialize(w);\n Object val = soi.getStructFieldData(result, sfr) ;\n assertEquals(\"Italian\", uoi.getField(val));\n\n uoi.getTypeName();\n\n // now, int\n w = new Text(\"{\\\"country\\\":\\\"Switzerland\\\",\\\"stuff\\\":2}\");\n result = (JSONObject) instance.deserialize(w);\n val = soi.getStructFieldData(result, sfr) ;\n assertEquals(\"2\", val);\n assertEquals(0, uoi.getTag(val));\n\n // now, struct\n w = new Text(\"{\\\"country\\\":\\\"Switzerland\\\",\\\"stuff\\\": { \\\"a\\\": \\\"OK\\\" } }\");\n result = (JSONObject) instance.deserialize(w);\n val = soi.getStructFieldData(result, sfr) ;\n assertTrue(val instanceof JSONObject);\n assertEquals(3, uoi.getTag(val));\n\n // now, array\n w = new Text(\"{\\\"country\\\":\\\"Switzerland\\\",\\\"stuff\\\": [ 1, 2 ] }\");\n result = (JSONObject) instance.deserialize(w);\n val = soi.getStructFieldData(result, sfr) ;\n assertTrue(val instanceof JSONArray);\n assertEquals(2, uoi.getTag(val));\n }", "public static String dump(Object object) {\n return dump(object, null, 0);\n }", "public java.lang.String getObjectFile() {\n java.lang.Object ref = objectFile_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n objectFile_ = s;\n return s;\n }\n }", "public static Object referenceMacro_GetReferent_118_0(final ReferenceMacroContext _context) {\n return SModelOperations.getModelName(((SModel) _context.getVariable(\"model\"))) + \".EditorAspectDescriptorImpl\";\n }", "public static java.lang.Object decodeObject(com.webobjects.foundation.NSCoder coder){\n return null; //TODO codavaj!!\n }", "public String serialize(Object object) {\n\t\treturn serialize(object, false);\n\t}" ]
[ "0.62357485", "0.606717", "0.59986955", "0.5948008", "0.5843195", "0.58230406", "0.5768205", "0.57415694", "0.5663686", "0.5657013", "0.56113195", "0.55963326", "0.5581712", "0.5556903", "0.554119", "0.5465338", "0.543383", "0.54004204", "0.53893095", "0.53837246", "0.5364121", "0.5330196", "0.5324382", "0.53237903", "0.5279723", "0.5277243", "0.5254197", "0.5249925", "0.5226328", "0.5222852", "0.51877177", "0.5172578", "0.5167223", "0.51650035", "0.5122565", "0.5110675", "0.5109906", "0.50972015", "0.50839865", "0.504941", "0.5044836", "0.50407726", "0.5022255", "0.5022255", "0.5022255", "0.5022255", "0.5021461", "0.49977416", "0.49977416", "0.49977416", "0.49913314", "0.4986562", "0.4984245", "0.4977157", "0.4972123", "0.49527973", "0.4941669", "0.49286017", "0.49276823", "0.49264562", "0.49228507", "0.49159244", "0.4915531", "0.49106774", "0.49105018", "0.49042982", "0.48988962", "0.48908207", "0.4884454", "0.4869947", "0.48691562", "0.48659155", "0.48617727", "0.48615292", "0.48520052", "0.48501998", "0.48474717", "0.4828441", "0.48094794", "0.4808459", "0.48053274", "0.4801164", "0.48004088", "0.47936526", "0.47920927", "0.4779598", "0.4778461", "0.4775831", "0.4772517", "0.4768048", "0.47555494", "0.47360367", "0.4735854", "0.47344682", "0.47207394", "0.47128907", "0.4708832", "0.4708061", "0.47052532", "0.4699071" ]
0.77409303
0
writes the WImage to the file specified by fname the type of the imagefile is automatically set by the file extension (.jpg, .png,...). see doc of javax.imageio.ImageIO for further information.
public static void write(WImage img, String fname) { BufferedImage bi = new BufferedImage(img.getWidth(), img.getHeight(), BufferedImage.TYPE_BYTE_GRAY); WritableRaster r = bi.getRaster(); r.setSamples(0, 0, img.getWidth(), img.getHeight(), 0, img.getData()); File f = new File(fname); try { ImageIO.write(bi, fname.substring(fname.lastIndexOf('.') + 1), f); } catch (IOException e) { e.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void writeImage(String fname) throws java.io.IOException {\n System.out.println(\"Writing the image.\");\n \n File f= new File(fname);\n if (f.exists()) {\n System.out.println(\"File \" + f.getAbsolutePath() + \" exists. It was not overwritten.\");\n return;\n }\n \n int r= currentIm.getRows();\n int c= currentIm.getCols();\n int roa[]= currentIm.getRmoArray();\n \n // Obtain a buffered image with the right size and format to save out this image\n // (only the RGB components, not alpha).\n BufferedImage bimage= new BufferedImage(c, r, BufferedImage.TYPE_INT_RGB);\n \n // Copy the image data into that BufferedImage.\n bimage.setRGB(0, 0, c, r, roa, 0, c);\n \n // Finally, write the image onto the file and give the appropriate message\n ImageIO.write(bimage, \"png\", f);\n System.out.println(\"Image written to \" + f.getAbsolutePath());\n }", "public static void write(WImage img, String fname, Context context,\n\t\t\tLongWritable key) {\n\t\tBufferedImage bi = new BufferedImage(img.getWidth(), img.getHeight(),\n\t\t\t\tBufferedImage.TYPE_BYTE_GRAY);\n\n\t\tWritableRaster r = bi.getRaster();\n\n\t\tr.setSamples(0, 0, img.getWidth(), img.getHeight(), 0, img.getData());\n\t\ttry {\n\t\t\tFileSystem dfs = FileSystem.get(context.getConfiguration());\n\t\t\tPath newimgpath = new Path(context.getWorkingDirectory(), context\n\t\t\t\t\t.getJobID().toString()\n\t\t\t\t\t+ \"/\" + key.get());\n\t\t\tdfs.createNewFile(newimgpath);\n\t\t\tFSDataOutputStream ofs = dfs.create(newimgpath);\n\n\t\t\t//ImageIO.write(bi, \"jpg\", ofs);\n\t\t\tImageIO.write(bi, fname.substring(fname.lastIndexOf('.') + 1), ofs);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void writeToFile(Mat img, String fname) {\n\t\tSystem.err.println(\"Writing image to file \" + fname);\n\t\tMatOfByte matOfByte = new MatOfByte();\n\t\tHighgui.imencode(\".jpg\", img, matOfByte);\n\t\tbyte[] byteArray = matOfByte.toArray();\n\t\tFileOutputStream fos;\n\t\ttry {\n\t\t\tfos = new FileOutputStream(fname);\n\t\t\tfos.write(byteArray);\n\t\t\tfos.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void writeImage(BufferedImage image, String fileName) {\n try {\n File outputFile = new File(fileName + \".\" + FILE_EXTENSION);\n ImageIO.write(image, FILE_EXTENSION, outputFile);\n\n } catch (IOException ioexp) {\n System.err.println(\"No contact with outside world\");\n }\n }", "public static void writeImage(BufferedImage image, String fileName)\n\t\t\tthrows IOException {\n\t\tif (fileName == null)\n\t\t\treturn;\n\n\t\tint offset = fileName.lastIndexOf(\".\");\n\n\t\tif (offset == -1) {\n\t\t\tString message = \"file suffix was not specified\";\n\t\t\tthrow new IOException(message);\n\t\t}\n\n\t\tString type = fileName.substring(offset + 1);\n\n\t\tif (types.contains(type)) {\n\t\t\tImageIO.write(image, type, new File(fileName));\n\t\t} else {\n\t\t\tString message = \"unknown writer file suffix (\" + type + \")\";\n\t\t\tthrow new IOException(message);\n\t\t}\n\t}", "public static void writeBufferedImage(String file, BufferedImage img) throws IOException\n {\n String formatName;\n if(file.endsWith(\"png\"))\n formatName = \"png\";\n else if(file.endsWith(\"jpg\") || file.endsWith(\"jpeg\"))\n formatName = \"jpg\";\n else if(file.endsWith(\"gif\"))\n formatName = \"gif\";\n else\n throw new IOException(\"Invalid image format\");\n\n ImageIO.write(img, formatName, new File(file));\n }", "public void writeToImage() {\n imageWriter.writeToImage();\n }", "static public void write(String filename, Image image) throws IOException\n {\n MyBMPFile reader = new MyBMPFile();\n \n reader.saveBitmap(filename, image, image.getWidth(reader), image.getHeight(reader));\n }", "public void writeToImage() {\r\n\t\t_imageWriter.writeToImage();\r\n\t}", "static public void saveAs(BufferedImage img, String name) {\n\t\ttry {\n\t\t\tString type = name.substring(name.length()-3);\n\t\t\tImageIO.write(img, type, new File(name));\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void writeImage() {\n // Write generated image to a file\n try {\n // Save as JPEG\n File file = new File(\"Images/\" + name + \"INS\" + System.currentTimeMillis() + \".jpg\");\n ImageIO.write(bufferedImage, \"jpg\", file);\n\t\t\t\t\n\n } catch (IOException e) {\n }\n }", "static void write(Image image, String filename) {\n try {\n image.write(filename);\n System.out.println(\"Wrote image: \" + filename);\n } catch (IOException err) {\n System.out.printf(\"Something went wrong writing: %n\", filename, err);\n }\n }", "private void saveImage(BufferedImage newImg, String fileName)\n {\n\n File imageFile = new File(fileName+\".jpg\");\n try\n {\n ImageIO.write(newImg,\"jpg\",imageFile);\n }\n catch (IOException e)\n {\n System.out.println(fileName+\" not saved\"+e);\n }\n\n }", "@Override\n\tpublic void event(PictureEvent e) {\n\t\ttry {\n\t\t\tif (null != fname) {\n\t\t\t\tImageIO.write(e.getImage(), \"jpg\", new File(fname));\n\t\t\t}\n\t\t} catch (Exception ex) { SewerSender.println(ex.toString()); }\n\t}", "private void saveFile() {\r\n\t\tFile file = new File(this.picture.getFileName());\r\n\r\n\t\ttry {\r\n\t\t\tImageIO.write(this.picture.getBufferedImage(),\r\n\t\t\t\t\tthis.picture.getExtension(), file);\r\n\t\t} catch (IOException e) {\r\n\t\t\tJOptionPane.showMessageDialog(this.pictureFrame,\r\n\t\t\t\t \"Could not save file.\",\r\n\t\t\t\t \"Save Error\",\r\n\t\t\t\t JOptionPane.WARNING_MESSAGE);\r\n\t\t}\r\n\r\n\t}", "static void write_section_file ( String image_file_name, int width, int height ) {\n }", "public void imagesaver(String name){\n\tthis.new_image_name = name;\n\t try{\n\t\tImageIO.write(new_buff_image, \"png\", new File(new_image_name));\n\t }\n\t catch(IOException e){\n\t\tSystem.out.println(\"The desired output file is invalid. Please try running the program again.\");\n\t\tSystem.exit(0);\n\t }\n }", "protected void writeImage(BufferedImage img, File dest) throws IOException\n\t{\n\t\tImageWriter writer = null;\n\t\t{\n\t\t\tIterator<ImageWriterSpi> spis = IIORegistry.getDefaultInstance().getServiceProviders(ImageWriterSpi.class, true);\n\t\t\twhile (spis.hasNext()) {\n\t\t\t\tImageWriterSpi spi = spis.next();\n\t\t\t\tfor (String mimeType : spi.getMIMETypes()) {\n\t\t\t\t\tif (mimeType.startsWith(getDragMIME())) {\n\t\t\t\t\t\twriter = spi.createWriterInstance();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (writer == null)\n\t\t\tthrow new IOException(\"This system's Java ImageIO does not have any plugins which support the mime type \" + dragMIME);\n\t\t\n\t\tFileImageOutputStream out = new FileImageOutputStream(dest);\n\t\twriter.setOutput(out);\n\t\twriter.write(img);\n\t\tout.close();\n\t\twriter.dispose();\n\t}", "public void createNewImageFile(){\n fillNewImage();\n\n try {\n ImageIO.write(newImage, imageFileType, new File(k + \"_Colored_\" + fileName.substring(0,fileName.length() - 4) + \".\" + imageFileType));\n } catch (IOException e){\n e.printStackTrace();\n }\n \n }", "public void write(String filename) throws IOException {\n \t\n\t\tFileOutputStream os = null;\n\t\ttry {\n\t\t \tos = new FileOutputStream(new File(\"./OutputImage.txt\"));\n\t\t\tString header = (\"P6\\n\" + width + \"\\n\" + height + \"\\n255\\n\")//.getBytes() missing for converting the string into bytes;\n\t\t\t// For P6 there is no \\n after each spec. Use: new (\"P6 \"+width+\" \"+h+\" 255\\n\").getBytes())\n\t\t\tos.write(header);\n\t\t\tos.write(data);\n\t\t} catch (IOException e) {\n\t\t \t e.printStackTrace();\n\t\t}finally{\n\t\t try {\n\t\t\tos.close();\n\t\t } catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t \t}\n \t}\n \n\n}", "private boolean setImage(BufferedImage image, File file, String ext) {\n try {\n file.delete(); // delete resources used by the File\n ImageIO.write(image, ext, file);\n return true;\n }\n catch (Exception e) {\n JOptionPane.showMessageDialog(\n null,\n \"File could not be saved!\",\n \"Error\",\n JOptionPane.ERROR_MESSAGE);\n return false;\n }\n }", "private static native boolean imwrite_0(String filename, long img_nativeObj, long params_mat_nativeObj);", "public void save(String name) throws IOException {\n\t\tFile outputfile = new File(name+\".jpg\");\n\t\tImageIO.write(this.img, \"jpg\", outputfile);\n\t}", "public void write(File path) throws IOException{\n\t\tif(this.picture != null){ // in cazul in care poza are continut null se arunca exceptie\n\t\t\t//File output = new File(path);\n\t\t\tImageIO.write(zoomed,\"bmp\",path);\n\t\t\tSystem.out.println(path);\n\t\t\tSystem.out.println(\"\\nS-a scris in fisier cu succes\");\n\t\t}\n\t}", "public static void savePngImageFile(Image im, File fImage) throws IOException {\r\n if (im instanceof RenderedImage) {\r\n ImageIO.write((RenderedImage) im, \"png\", fImage);\r\n } else {\r\n BufferedImage bim = new BufferedImage(im.getWidth(null), im.getHeight(null), BufferedImage.TYPE_INT_RGB);\r\n Graphics g = bim.getGraphics();\r\n g.drawImage(im, 0, 0, null);\r\n bim.flush();\r\n ImageIO.write(bim, \"png\", fImage);\r\n }\r\n }", "public static void WriteFile(){\n String[] linha;\n FileWriter writer;\n try{\n writer = new FileWriter(logscommissions, true);\n PrintWriter printer = new PrintWriter(writer);\n linha = ManageCommissionerList.ReturnsCommissionerListInString(ManageCommissionerList.comms.size()-1);\n for(int i=0;i<19;i++){\n printer.append(linha[i]+ \"\\n\");\n }\n printer.close();\n }catch(Exception e){\n e.printStackTrace();\n System.out.println(\"Unable to read file\\n\");\n }\n try{\n Commissions temp = ManageCommissionerList.comms.get(ManageCommissionerList.comms.size()-1);\n BufferedImage img = temp.GetWipImage();\n File fl = new File(\"wipimages/wip\" + temp.GetCommissionTitle() + temp.GetUniqueID() + \".jpg\");\n ImageIO.write(img, \"jpg\", fl);\n }catch (Exception e){\n e.printStackTrace();\n System.out.printf(\"Failure to write image file\");\n }\n \n }", "public void save(final File file) {\r\n\t\tString filename = file.getName();\r\n\t\tString suffix = filename.substring(filename.lastIndexOf('.') + 1);\r\n\t\tsuffix = suffix.toLowerCase();\r\n\t\tif (suffix.equals(\"jpg\") || suffix.equals(\"png\")) {\r\n\t\t\ttry {\r\n\t\t\t\tImageIO.write(picturePanel.image, suffix, file);\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"Error: filename must end in .jpg or .png\");\r\n\t\t}\r\n\t}", "@Test\n void writeToImage() {\n String imagename = \"img\";\n int width = 1600;\n int height = 1000;\n int nx =500;\n int ny =800;\n ImageWriter imageWriter = new ImageWriter(imagename, width, height, nx, ny);\n for (int col = 0; col < ny; col++) {\n for (int row = 0; row < nx; row++) {\n if (col % 10 == 0 || row % 10 == 0) {\n imageWriter.writePixel(row, col, Color.blue);\n }\n }\n }\n imageWriter.writeToImage();\n }", "@FXML public void saveToFile()throws java.io.IOException {\n Highgui.imwrite( this.originalImagePath, this.image );\n System.out.println(\"Saving\");\n }", "public void writeToFile() {\n\t\ttry {\n\t\t\tFileOutputStream file = new FileOutputStream(pathName);\n\t\t\tObjectOutputStream output = new ObjectOutputStream(file);\n\n\t\t\tMap<String, HashSet<String>> toSerialize = tagToImg;\n\t\t\toutput.writeObject(toSerialize);\n\t\t\toutput.close();\n\t\t\tfile.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void updateImageFile() throws FileNotFoundException {\n \t\tfinal PrintWriter out = new PrintWriter(asciiImageFile);\n \t\tout.print(asciiImage(false));\n \t\tout.close();\n \t}", "public synchronized void addNewImage(BufferedImage img, File file) {\r\n\t\tint image_pk = db.insertImage(file.getName(), file.getAbsolutePath(), DEFAULT_TAG_PK);\r\n\t\tSaveImageOnDisk saveImage = new SaveImageOnDisk(img, file, db.getCacheName(image_pk)); \r\n\t\tsaveImage.start();\r\n\t}", "public static void writeImage(Image image, File imageFile) throws IOException {\n\t\tImageUtils.writeFile(image, imageFile);\n\t\tMsg.info(AbstractDockingTest.class, \"Wrote image to \" + imageFile.getCanonicalPath());\n\t}", "public native boolean writeImage(ImageInfo imageInfo)\n\t\t\tthrows MagickException;", "public void writeImage(BufferedImage image, ImageWriterParams params)\n throws IOException {\n writer.writeImage(image, params);\n writer.writeImage(image, params);\n writer.close();\n }", "public static void saveImage(BufferedImage buff, String dest) {\n try {\n File outputfile = new File(dest);\n ImageIO.write(buff, \"png\", outputfile);\n } catch (IOException e) {\n System.out.println(\"error saving the image: \" + dest + \": \" + e);\n }\n }", "public void toFile(String fname){\r\n\t\ttry(FileWriter fw=new FileWriter(fname)){\r\n\t\t\tfw.write(toString());\r\n\t\t\t\r\n\t\t}catch(IOException e){ e.printStackTrace(); System.exit(0);}\r\n\t}", "public void createFile(String fname) {\n\t\tprintMsg(\"running createFiles() in \\\"\" + this.getClass().getName() + \"\\\" class.\");\n\t\t\n\t\t// Check if the scratch directory exists, create it if it doesn't\n\t\tPath rootpath = Paths.get(theRootPath);\n\t\tcreateScratchDirectory(rootpath);\n\n\t\t// Check if the file name is null or empty, if it is, use default name\n\t\tPath filepath = null;\n\t\tif(fname == null || fname.isEmpty()) {\n\t\t\tfilepath = Paths.get(rootpath + System.getProperty(\"file.separator\") + theFilename);\n\t\t} else {\n\t\t\tfilepath = Paths.get(rootpath + System.getProperty(\"file.separator\") + fname);\n\t\t}\n\t\t\n\t\t// Create file\n\t\ttry {\n\t\t\t// If file exists already, don't override it.\n\t\t\tif(!Files.exists(filepath)) {\n\t\t\t\tFiles.createFile(filepath);\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public static void ReplacesImage(int index){\n try{\n Commissions temp = ManageCommissionerList.comms.get(index);\n BufferedImage img = temp.GetWipImage();\n File fl = new File(\"wipimages/wip\" + temp.GetCommissionTitle() + index + \".jpg\");\n ImageIO.write(img, \"jpg\", fl);\n }catch (Exception e){\n e.printStackTrace();\n System.out.printf(\"Failure to write image file\");\n }\n }", "public void saveToFile(String filename)\r\n {\r\n String ftype=filename.substring(filename.lastIndexOf('.')+1);\r\n try\r\n {\r\n if(isReadyToSave)\r\n ImageIO.write(cropedEdited,ftype,new File(filename));\r\n }\r\n catch(IOException e)\r\n {\r\n System.out.println(\"Error in saving the file\");\r\n }\r\n }", "void save(Images image);", "private void save(FileItem file) throws Exception {\n FileHandler fileHandler = new FileHandler(oriImgFile());\n fileHandler.saveFile(file);\n }", "public void saveImgFile(Bitmap mImg, String nName, String mPath) {\n\t\tBufferedOutputStream bos = null;\n\t\tFile mFile = new File(mPath, nName);\n\t\ttry {\n\t\t\tbos = new BufferedOutputStream(new FileOutputStream(mFile));\n\t\t\tif (mImg != null) {\n\t\t\t\tmImg.compress(Bitmap.CompressFormat.JPEG, 80, bos);\n\t\t\t}\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tif (bos != null) {\n\t\t\t\t\tbos.flush();\n\t\t\t\t\tbos.close();\n\t\t\t\t}\n\t\t\t\tmFile = null;\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "private void jMenuItem2ActionPerformed(ActionEvent evt) {\n\t\tif (outputFile == null) {\n\t\t\tSystem.err.println(\"Error!! No file to save\");\n\t\t\treturn;\n\t\t}\n\n\t\ttry {\n\t\t\tBufferedImage bi = (BufferedImage) entry.getImage();\n\t\t\tImageIO.write(bi, fileExtension, outputFile);\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.println(\"Error!! File not saved\");\n\t\t}\n\t}", "public void printFile(String fileName)\n {\n try\n {\n //takes the output string and writes it in a new file\n //called output.txt\n FileOutputStream out = new FileOutputStream(\n new File(fileName), true);\n out.write(logImage.getBytes());\n out.flush();\n out.close(); \n }\n //catches all exceptions from writing into the .txt\n catch(Exception e)\n {\n System.out.println(\"There was an error while writing into file\");\n }\n }", "private static void saveImage(final Image image, final File file) {\n try {\n WriteFxImage.savePng(image, file);\n } catch (IOException e) {\n LOGGER.atError().addArgument(file.getName()).log(\"Error saving screenshot to {}\");\n }\n }", "public static void saveImage(final File file, final Image fxImage) throws IOException {\n\t\tfinal BufferedImage img = SwingFXUtils.fromFXImage(fxImage, null);\n\n\t\tfinal File saveTo = addPngExtension(file);\n\t\tImageIO.write(img, \"PNG\", saveTo);\n\t}", "private void addImage(int row, int col, String imageName,\n\t\t\t\t\t\t\t\t\t\t\t\tString imageFileName) {\n\t\tDirectionalPanel panel = nextEmpty(row, col);\n\t\tif (panel != null) {\n\t\t\tpanel.setImage(imageFileName);\n\t\t\tpanel.setImageName(imageName);\n\t\t\tpanel.invalidate();\n\t\t\tpanel.repaint();\n\t\t}\n\t}", "public void bfSave(String path, ImagePlus plus, IMetadata metadata) throws FormatException, IOException, DependencyException, ServiceException {\n\n File imageFile = new File(path);\n if (imageFile.isFile() && imageFile != null) imageFile.delete();\n\n //Initialize writer and save file\n ImageWriter writer = new ImageWriter();\n writer.setMetadataRetrieve(metadata);\n writer.setId(path);\n\n int size = plus.getImageStackSize();\n ImageStack is = plus.getImageStack();\n boolean doStack = writer.canDoStacks() && size > 1;\n int start = doStack ? 0 : plus.getCurrentSlice() - 1;\n int end = doStack ? size : start + 1;\n\n int width = plus.getWidth();\n int height = plus.getHeight();\n\n byte[] plane = null;\n boolean littleEndian =\n !writer.getMetadataRetrieve().getPixelsBinDataBigEndian(0, 0).booleanValue();\n writer.setInterleaved(false);\n for (int i=start; i<end; i++) {\n\n //Get Pixels as Bytes from ImagePlus\n ImageProcessor proc = is.getProcessor(i + 1);;\n plane = null;\n if (proc instanceof ByteProcessor) {\n plane = (byte[]) proc.getPixels();\n }\n else if (proc instanceof ShortProcessor) {\n plane = DataTools.shortsToBytes(\n (short[]) proc.getPixels(), littleEndian);\n }\n else if (proc instanceof FloatProcessor) {\n plane = DataTools.floatsToBytes(\n (float[]) proc.getPixels(), littleEndian);\n }\n else if (proc instanceof ColorProcessor) {\n byte[][] pix = new byte[3][width*height];\n ((ColorProcessor) proc).getRGB(pix[0], pix[1], pix[2]);\n plane = new byte[3 * width * height];\n System.arraycopy(pix[0], 0, plane, 0, width * height);\n System.arraycopy(pix[1], 0, plane, width * height, width * height);\n System.arraycopy(pix[2], 0, plane, 2 * width * height, width * height);\n }\n // TODO setColorModel\n writer.saveBytes(i, plane);\n }\n writer.close();\n\n }", "public static void saveImage(int width, byte[] rgbData, String fileName)\r\n {\r\n try {\r\n\r\n BufferedImage image = bytes2RGB(width, rgbData);\r\n ImageIO.write(image, \"png\", new File(fileName));\r\n\r\n } catch (IOException e) {\r\n System.out.println(\"ERROR SAVING FILE: \" + e.getMessage());\r\n }\r\n }", "void saveImgToDir(String resultsPath, String imgName, String addToImgName, Mat mat) {\r\n\r\n\t\t\tImgcodecs.imwrite(resultsPath + \"\\\\\"\r\n\t\t\t\t\t+ imgName.substring(0, imgName.length() - 4) + addToImgName\r\n\t\t\t\t\t+ imgName.substring(imgName.length() - 4,\r\n\t\t\t\t\t\t\timgName.length()),\r\n\t\t\t\t\tmat);\r\n\t}", "public void Save( String saveImgAs )\n {\n saveImage(image, saveImgAs); \n }", "public void saveImg(byte[] byteImg, String fileName) throws IOException{\n File outputFile = new File(\"src/main/resources/tmpImg/\" + fileName);\n // convert byte[] back to a BufferedImage\n BufferedImage newBi = ImageIO.read(new ByteArrayInputStream(byteImg));\n // save it\n ImageIO.write(newBi, \"jpeg\",outputFile);\n }", "public static void writeImage(BufferedImage image, String imageType, HttpServletResponse response) throws IOException {\r\n\t\tresponse.setContentType(\"image/\" + imageType);\r\n\t\tImageIO.write(image, imageType, response.getOutputStream());\r\n\t}", "public static void saveImage2(int[][] flat, String saveName, int width, int height){\n \n // Ask the user for the name of the output file.\n// try{\n// saveName = imageMain.console.readLine();\n// }\n// catch(IOException e){ \n// System.out.println(e);\n// System.exit(1);\n// }\n\n // If saveName does not already end in .bmp, then add .bmp to saveName.\n saveName=bmpTack(saveName);\n\n // Combine the 8-bit red, green, blue, offset values into 32-bit words.\n int[] outPixels = new int[flat.length];\n for(int j=0; j<flat.length; j++) {\n outPixels[j] = ((flat[j][0]&0xff)<<16) | ((flat[j][1]&0xff)<<8)\n | (flat[j][2]&0xff) | ((flat[j][3]&0xff)<<24);\n } // for j\n\n // Write the data out to file with the name given by string saveName.\n BMPFile bmpf = new BMPFile();\n bmpf.saveBitmap(saveName, outPixels, width, height);\n System.out.println(\"Saved \" + saveName);\n }", "public void writeToDir() {\n\t\ttry{\n\t\t\tString dirPath = Paths.get(\".\").toAbsolutePath().normalize().toString()+\"/\";\n\t\t\tString path = dirPath + filename; //get server dir path\n\t\t\tSystem.out.println(\"output file path is: \" + path);\n\t\t\tFileOutputStream out = new FileOutputStream(path);\n out.write(img);\n out.close();\n PL.fsync();\n\t\t}catch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void saveImageInstantly() {\n\n if (movie != null) {\n\n // Get movie's title and set an initial file name\n String movieTitle = movie.getMovieTitle();\n\n // Replace any invalid characters\n movieTitle = movieTitle.replaceAll(\"[\\\"/?\\\"*><|]\", \"\").replace(\":\", \"-\");\n\n // If preferences file is empty\n if (userDirectoryString.equals(\"empty\")) {\n\n userDirectoryString = System.getProperty(\"user.home\");\n }\n\n File userDirectory = new File(userDirectoryString + \"/\" + movieTitle + \".jpg\");\n\n // If it can't access User Home, default to C drive\n if (!userDirectory.getParentFile().canRead()) {\n userDirectory = new File(\"D:\\\\\" + movieTitle + \".jpg\");\n }\n\n // Check file isn't null, so it the image view\n if (imgPoster.getImage() != null) {\n\n try {\n\n ImageIO.write(SwingFXUtils.fromFXImage(imgPoster.getImage(), null), \"jpg\", userDirectory);\n setLblStatus(\"Poster saved successfully.\");\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n }", "public static Try<Void> writePngFile(String filePath, BufferedImage image) {\n return imageToPng(image).flatmap(imageBytes -> Files.writeBytes(filePath, imageBytes));\n }", "public void addImage(String fileName) {\n\t\taddImage(BitmapFactory.decodeFile(fileName), fileName);\n\t}", "public void Func_imagefile(){\n\n\t\tswf_env.containImg = true;\n\n\n\t\tthis.value = new SWFValue(\"Func\");\n\n\t\tString path = this.getAtt(\"path\", \".\");\n\t\tString filename = this.getAtt(\"default\");\n\t\tString type = \"auto\";\n\t\tvalue.instanceName = \"img\"+ Integer.toString(swf_env.instanceID);\n\t\tvalue.data = \"\";\n\t\tvalue.imgpath = path + \"/\" + filename;\n\t\tvalue.inter_imgpath = path + \"/\" + filename;\n\t\tvalue.inter_name = \"intimg\" + Integer.toString(swf_env.interactionImgNUM);\n\t\tvalue.tmp = \"tmp\" + Integer.toString(swf_env.interactionImgNUM);\n\t\tvalue.lnum = Integer.toString(swf_env.visibleflag_counter);\n\n\n\t\tif(!path.startsWith(\"/\")) {\n\t\t\tString basedir = GlobalEnv.getBaseDir();\n\t\t\tLog.out(\"basedir= \" +basedir);\n\t\t\tif(basedir != null && basedir != \"\") {\n\t\t\t\tpath = basedir + path;\n\t\t\t}\n\t\t}\n\n\t\tString filepath = path + \"/\" + filename;\n\n\n\t\tsetDecoration1();\n\t\tvalue.margin = margin;\n\n\n\t\tSystem.out.println(\"filepath = \"+filepath);\n\t\tint img = swf_env.open_image_file(type, filepath);\n\t\tvalue.img = img;\n\n\t\tdata_width = swf_env.get_value(\"imagewidth\", img);\n\t\tdata_height = swf_env.get_value(\"imageheight\", img);\n\t\tSystem.out.println(\"imagesize: \"+data_width+\" \"+data_height);\n\t\twidth = data_width + margin * 2;\n\t\theight = data_height + margin * 2;\n\n\n\t\tsetDecoration2();\n\n\t\tif(data_width > width){\n\t\t\tint original_width = data_width;\n\t\t\tdata_width = width - margin * 2;\n\t\t\tint scale = data_width / original_width;\n\t\t\tdata_height = data_height * scale;\n\t\t\theight = data_height + margin * 2;\n\t\t}\n\t\tif(data_height > height){\n\t\t\tint original_height = data_height;\n\t\t\tdata_height = height - margin * 2;\n\t\t\tint scale = data_height / original_height;\n\t\t\tdata_width = data_width * scale;\n\t\t\twidth = data_width + margin * 2;\n\t\t}\n\n\t\tvalue.data_width = data_width;\n\t\tvalue.data_height = data_height;\n\t\tvalue.width = width;\n\t\tvalue.height = height;\n\t\t//morya wrote\n\t\tvalue.int_w = width;\n\t\tvalue.int_h = height;\n\n\n\t\tsetDecoration3();\n\n\t\tswf_env.tmp_width = width;\n\t\tswf_env.tmp_height = height;\n\n\n\t\tswf_env.instanceID++;\n\n\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tImage imagen = panelCamara.getImage();\n\t\t\t\tFile fichero = new File(\"usuarios/\"+nick+\".jpg\");\n\t\t\t\tString formato = \"jpg\";\n\t\t\t\ttry {\n\t\t\t\t\tImageIO.write((RenderedImage)imagen, formato, fichero);\n\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tBD.btnGuardar(\"usuarios/\"+nick+\".jpg\",nick);\n\t\t\t}", "void setImageFromFile(File imageFile);", "public void save(File f, int posX, int posY) throws IOException {\n\t\tGraphics g = internalImage.createGraphics();\n\t\tImageIO.write(internalImage, \"jpg\", f);\n\n\t}", "public static boolean storeImage(WritableImage imageToWrite, File fileStore) {\n boolean dataSaved;\n try {\n /*Delete file if it exists*/\n if (fileStore.exists()) {\n fileStore.delete();\n }\n /*Create new file*/\n fileStore.createNewFile();\n /*Export image*/\n BufferedImage bImage = SwingFXUtils.fromFXImage(imageToWrite, null);\n ImageIO.write(bImage, \"png\", fileStore);\n dataSaved = true;\n } catch (Exception e) {\n dataSaved = false;\n System.out.println(e.getMessage());\n }\n return dataSaved;\n }", "public boolean saveImage() throws IOException\n\t{\n\t\tConfiguration config = GlobalConfiguration.CONFIG;\n\t\tString rootPath = config.get(GlobalConfiguration.CRAWL_IMAGE_ROOT, \"/export/public_html/image\");\n\t\tFile imageDir = new File(rootPath);\n\t\tif(!imageDir.exists())\n\t\t{\n\t\t\timageDir.mkdirs();\n\t\t}\n\t\t///image name is image data hash in hex format\n\t\tString fullPath = rootPath + \"/\" + this.getImageFileName();\n\t\tFileOutputStream fos = new FileOutputStream(fullPath);\n\t\tfos.write(this.getImageData());\n\t\tfos.close();\n\t\treturn true;\n\t}", "public void encodeImage(BufferedImage buf, File imageFile) throws SVGGraphics2DIOException {\n/* */ try {\n/* 80 */ OutputStream os = new FileOutputStream(imageFile);\n/* */ try {\n/* 82 */ ImageWriter writer = ImageWriterRegistry.getInstance().getWriterFor(\"image/jpeg\");\n/* */ \n/* 84 */ ImageWriterParams params = new ImageWriterParams();\n/* 85 */ params.setJPEGQuality(1.0F, false);\n/* 86 */ writer.writeImage(buf, os, params);\n/* */ } finally {\n/* */ \n/* 89 */ os.close();\n/* */ } \n/* 91 */ } catch (IOException e) {\n/* 92 */ throw new SVGGraphics2DIOException(\"could not write image File \" + imageFile.getName());\n/* */ } \n/* */ }", "public static void writeJPEGFile(String fName, Canvas3D canvas){\n\t\tGraphicsContext3D ctx = canvas.getGraphicsContext3D();\n\t\t// The raster components need all be set!\n\t\tRaster ras = new Raster(\n\t\t\t\tnew Point3f(-1.0f,-1.0f,-1.0f),\n\t\t\t\tRaster.RASTER_COLOR,\n\t\t\t\t0,0,\n\t\t\t\tcanvas.getWidth(),canvas.getHeight(),\n\t\t\t\tnew ImageComponent2D( ImageComponent.FORMAT_RGB, new BufferedImage(canvas.getWidth(), canvas.getHeight(), BufferedImage.TYPE_INT_RGB)),\n\t\t\t\tnull);\n\n\t\tctx.readRaster(ras);\n\n\t\t// Now strip out the image info\n\t\tBufferedImage img = ras.getImage().getImage();\n\n\t\t// write that to disk....\n\t\ttry {\n\t\t\tFileOutputStream out = new FileOutputStream(fName);\n\t\t\tJPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(out);\n\t\t\tJPEGEncodeParam param = encoder.getDefaultJPEGEncodeParam(img);\n\t\t\tparam.setQuality(0.95f,false); // 75% quality for the JPEG\n\t\t\tencoder.setJPEGEncodeParam(param);\n\t\t\tencoder.encode(img);\n\t\t\tout.close();\n\t\t} catch ( IOException e ) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public static void write(String fname){\r\n\t\t\ttry {\r\n\t\t\t\tFile file = new File(fname);\r\n\t\t\t\t\r\n\t\t\t\tFileWriter fw = new FileWriter(file.getAbsoluteFile());\r\n\t\t\t\tBufferedWriter bw = new BufferedWriter(fw);\r\n\t\t\t\t//establish variable str and call to write header row\r\n\t\t\t\tString str = \"Employee Name, Employee Number, State, Zip, Age, Sex\\n\";\r\n\t\t\t\tbw.write(str);\r\n\t\t\t\t//parse the array list and retrieve data for employees of age 30 or less\r\n\t\t\t\tfor(int i=0;i<data.size();i++){\r\n\t\t\t\t\tif(data.get(i).Age <= 30) {\r\n\t\t\t\t\t//call the information stored in the arraylist in each particular index and then call to write\r\n\t\t\t\t\tbw.write(data.get(i).Name+\",\"+data.get(i).Num + \",\" + data.get(i).State + \",\" + data.get(i).Zip + \",\" + data.get(i).Age + \",\" + data.get(i).Sex + \"\\n\");\r\n\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tbw.close();\r\n\t\t\t\tfw.close();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"Finish writing data to file \"+ fname);\r\n\t\t}", "private void createImage (String image_name, int filename){\n\n\t\tString image_folder = getLevelImagePatternFolder();\n\t\t\n\t\tString resource = filename+\".png\";\n\t\tImageIcon ii = new ImageIcon(this.getClass().getResource(image_folder + resource));\n images.put(image_name, ii.getImage());\n\t}", "boolean saveImage(Image img) {\r\n\t\treturn true;\r\n\t}", "protected abstract void writeFile();", "public static ImageWriter createImageWriter(File file)\n\t{\n\t\tif (file == null)\n\t\t\tthrow new NullPointerException(\"file is null\");\n\n\t\tString extension = extractExtension(file.getName());\n\n\t\treturn createImageWriter(extension);\n\t}", "public static void createFileToZip(BufferedImage image, String path, int name,ZipOutputStream zipOS) throws FileNotFoundException, IOException {\n //Create the jpeg image\n File f = new File(path+Integer.toString(name)+\".jpg\");\n //Create the inputstream\n FileInputStream fis = new FileInputStream(f);\n //Create a zipentry for the file we are gonna include to the zip\n ZipEntry zipEntry = new ZipEntry(path+Integer.toString(name)+\".jpg\");\n //Store the image into the zip as an array of bytes\n zipOS.putNextEntry(zipEntry);\n byte[] bytes = new byte[1024];\n int length;\n while ((length = fis.read(bytes)) >= 0) {\n zipOS.write(bytes, 0, length);\n }\n zipOS.closeEntry();\n fis.close();\n }", "Person addImage(String name, String imagePath);", "public static void saveFrame(JInternalFrame frm) {\n\t\tsaveAsJPG(frm, \"C:/MyFrame2.jpg\");\r\n\t}", "public static final File writeFileFromRGBMatrix(String fileName, Integer[][] imageRGB) throws IOException {\n BufferedImage writeBackImage = new BufferedImage(imageRGB[0].length, imageRGB.length, BufferedImage.TYPE_INT_RGB);\n for (int i = 0; i < imageRGB.length; i++) {\n for (int j = 0; j < imageRGB[i].length; j++) {\n Color color = new Color(fixRGBValue(imageRGB[i][j]),\n fixRGBValue(imageRGB[i][j]),\n fixRGBValue(imageRGB[i][j]));\n writeBackImage.setRGB(j, i, color.getRGB());\n }\n }\n File outputFile = new File(fileName);\n ImageIO.write(writeBackImage, \"png\", outputFile);\n return outputFile;\n }", "@Override\n public void saveSkill(Skill skill, MultipartFile imageFile) throws Exception {\n Path currentPath = Paths.get(\".\"); // this gets us to src/main/resources without knowing the full path\n Path absolutePath = currentPath.toAbsolutePath();\n byte[] bytes = imageFile.getBytes();\n String fileName = StringUtils.cleanPath(imageFile.getOriginalFilename());\n skill.setIconPath(absolutePath + \"/src/main/resources/static/icons/\");\n skill.setIconName(fileName);\n Path path = Paths.get(skill.getIconPath() + fileName);\n Files.write(path, bytes);\n save(skill);\n }", "public static void saveImage(int[][][] imagePixels, String saveName){\n int height = imagePixels.length;\n int width = imagePixels[0].length;\n int[][] flat = new int[width*height][4];\n \n // Ask the user for the name of the output file.\n// try{\n// saveName = imageMain.console.readLine();\n// }\n// catch(IOException e){ \n// System.out.println(e);\n// System.exit(1);\n// }\n\n // If saveName does not already end in .bmp, then add .bmp to saveName.\n saveName=bmpTack(saveName);\n\n // Flatten the image into a 2D array.\n int index=0;\n for(int row=0; row<height; row++) {\n for(int col=0; col<width; col++) {\n for(int rgbo=0; rgbo<4; rgbo++) {\n flat[index][rgbo]=imagePixels[row][col][rgbo];\n }\n index++;\n } // for col\n } // for row\n\n // Combine the 8-bit red, green, blue, offset values into 32-bit words.\n int[] outPixels = new int[flat.length];\n for(int j=0; j<flat.length; j++) {\n outPixels[j] = ((flat[j][0]&0xff)<<16) | ((flat[j][1]&0xff)<<8)\n | (flat[j][2]&0xff) | ((flat[j][3]&0xff)<<24);\n } // for j\n\n // Write the data out to file with the name given by string saveName.\n BMPFile bmpf = new BMPFile();\n bmpf.saveBitmap(saveName, outPixels, width, height);\n System.out.println(\"Saved \" + saveName);\n }", "public void write(File dest, boolean writeAlpha) throws IOException, RenderException {\r\n\t\trenderer.writeImage(this, new FileOutputStream(dest), writeAlpha);\r\n\t}", "public void writeAsTIFF(String filename) throws IOException, ImageException {\r\n\tbyte byteData[] = new byte[originalRGB.length];\r\n\tfor (int i=0;i<originalRGB.length;i++){\r\n\t\tbyteData[i] = (byte)(new Color(originalRGB[i])).getBlue();\r\n\t}\r\n\tTiffImage tiffImage = new TiffImage(getSizeX(),getSizeY(),getSizeZ(),byteData);\r\n\ttiffImage.write(filename,ByteOrder.Unix);\r\n}", "protected void saveImage(String type) {\n\t\tint height = 793;\n\t\tint width = 1120; \n\t\t\n\t\tAdvancedFileChooser fileChooser = new AdvancedFileChooser();\n\t\t\n\t\tfileChooser.setFileSelectionMode(JFileChooser.FILES_ONLY);\n\t\tint returnVal = fileChooser.showSaveDialog(chartPanel);\n\t\n\t\tFile filePath = null;\n\t\tif (returnVal == JFileChooser.APPROVE_OPTION) {\n\t\t\tfilePath = fileChooser.getSelectedFile();\n\t\t}\n\t\t\n\t\tString tempPath = filePath.getAbsolutePath().toUpperCase();\n\t\t\n\t\ttry{\n\t\t\tif(type.equals(\"PNG\")){\n\t\t\t\tif(!tempPath.endsWith(\".PNG\"))\n\t\t\t\t\tfilePath = new File(tempPath+\".PNG\");\n\t\t\t\tChartUtilities.saveChartAsPNG(filePath, getChart(), width, height);\n\t\t\t}else if(type.equals(\"JPEG\")){\n\t\t\t\tif(!tempPath.endsWith(\".JPEG\"))\n\t\t\t\t\tfilePath = new File(tempPath+\".JPEG\");\n\t\t\t\tChartUtilities.saveChartAsJPEG(filePath, getChart(), width, height);\n\t\t\t}\n\t\t}catch(IOException ie){\n\t\t\t\n\t\t}\n\t\n\t}", "public static void imgToZip(BufferedImage image, int number, ZipOutputStream zipOS, String path){\n try {\n File tempImage = new File(path+ number +\".jpg\");\n ImageIO.write(image,\"jpg\",tempImage);\n createFileToZip(image, path, number, zipOS);\n tempImage.delete();\n } catch (IOException ex) {\n Logger.getLogger(ProjectePractiques.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public void writeImage(File file, String id) {\n try {\n FileInputStream in = new FileInputStream(file);\n PreparedStatement pstmt = conn.prepareStatement(\n \"UPDATE vehicles vehicles SET photo=? WHERE veh_reg_no = ?\");\n pstmt.setBinaryStream(1, (InputStream)in, (int)file.length());\n pstmt.setString(2, id);\n System.out.println(pstmt); // for debugging\n int returnCode = pstmt.executeUpdate();\n System.out.println(returnCode + \" record updated\");\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n }", "public void SaveActionPerformed(java.awt.event.ActionEvent evt) {\n if (jfcSave.showSaveDialog(this) == JFileChooser.APPROVE_OPTION){\r\n //get selected file name\r\n File fileSave = jfcSave.getSelectedFile();\r\n String fileSaveName = fileSave.toString();\r\n\r\n try {\r\n SaveScreenShot(drawingPanel,fileSaveName);\r\n } catch (Exception e){\r\n System.out.println(\"image failed to save!\");\r\n }\r\n }\r\n }", "public Save(BufferedImage image){\n\tthis.new_buff_image = image;\n }", "private void saveThumbnail(String filename) throws IOException {\n BufferedImage photo = ImageIO.read(new File(String.format(\"%s/%s\", getPhotoFilePath(false), filename)));\n BufferedImage croppedImage = makeSquare(photo);\n BufferedImage thumbnail = scale(croppedImage);\n ImageIO.write(thumbnail, \"jpg\", new File(String.format(\"%s/%s\", getPhotoFilePath(true), filename)));\n }", "public static void setImg(nsIDOMElement img, String fileImageName) {\r\n img.setAttribute(HTML.ATTR_SRC, \"file://\" //$NON-NLS-1$\r\n + getAbsoluteResourcePath(fileImageName).replace('\\\\', '/'));\r\n }", "private void izdelajPNG(int wSlika, int hSlika, File datoteka) {\n BufferedImage slika = new BufferedImage(wSlika, hSlika, BufferedImage.TYPE_INT_ARGB);\n\n Graphics2D g = slika.createGraphics();\n g.setColor(Color.WHITE);\n g.fillRect(0, 0, wSlika, hSlika);\n this.narisi(g, wSlika, hSlika);\n g.dispose();\n\n try {\n ImageIO.write(slika, \"png\", datoteka);\n } catch (IOException ex) {\n ex.printStackTrace(System.err);\n }\n }", "public static void saveImage3(int[] rgb, String saveName, int width, int height){\n \t\n // Ask the user for the name of the output file.\n// try{\n// saveName = imageMain.console.readLine();\n// }\n// catch(IOException e){ \n// System.out.println(e);\n// System.exit(1);\n// }\n\n // If saveName does not already end in .bmp, then add .bmp to saveName.\n saveName=bmpTack(saveName);\n\n // Combine the 8-bit red, green, blue, offset values into 32-bit words.\n\n // Write the data out to file with the name given by string saveName.\n BMPFile bmpf = new BMPFile();\n bmpf.saveBitmap(saveName, rgb, width, height);\n System.out.println(\"Saved \" + saveName);\n }", "public void saveImagePanel() throws IOException, ClassNotFoundException {\n\t\tFile archiveImage = null;\n\t\tarchiveImage = new File(\"CAMBIAR NOMBRE \");\n\t\tfile_chooser.setSelectedFile(archiveImage);\n\t\tif (file_chooser.showDialog(null, \"Guardar\") == JFileChooser.APPROVE_OPTION) {\n\t\t\tarchiveImage = file_chooser.getSelectedFile();\n\t\t\tif (archiveImage.getName().endsWith(\"jpg\") || archiveImage.getName().endsWith(\"png\")) {\n\t\t\t\t// realizar accion\n\t\t\t\tfileSeralization.saveFile(archiveImage);\n\t\t\t}\n\t\t}\n\t}", "public void saveAs() {\n MimsJFileChooser fileChooser = new MimsJFileChooser(ui);\n fileChooser.setSelectedFile(new File(ui.getLastFolder(), ui.getImageFilePrefix() + \".png\"));\n ResourceBundle localizationResources = ResourceBundleWrapper.getBundle(\"org.jfree.chart.LocalizationBundle\");\n ExtensionFileFilter filter = new ExtensionFileFilter(\n localizationResources.getString(\"PNG_Image_Files\"), \".png\");\n fileChooser.addChoosableFileFilter(filter);\n fileChooser.setFileFilter(filter);\n int option = fileChooser.showSaveDialog(chartpanel);\n if (option == MimsJFileChooser.APPROVE_OPTION) {\n String filename = fileChooser.getSelectedFile().getPath();\n if (!filename.endsWith(\".png\")) {\n filename = filename + \".png\";\n }\n try {\n ChartUtils.saveChartAsPNG(new File(filename), chartpanel.getChart(), getWidth(), getHeight());\n } catch (IOException ioe) {\n IJ.error(\"Unable to save file.\\n\\n\" + ioe.toString());\n }\n }\n }", "public boolean saveMapAsImage(File imageFile)\n {\n try {\n BufferedImage mapImage = new BufferedImage((int) mapComponent.getPreferredSize().getWidth(),\n (int) mapComponent.getPreferredSize().getHeight(),\n BufferedImage.TYPE_INT_ARGB);\n Graphics2D mapImageGraphics = mapImage.createGraphics();\n FileWriter\t\t\tmapWriter;\n \n if (!imageFile.canWrite())\n {\n ErrorHandler.displayError(\"Could not write to image file. Maybe it's locked.\", ErrorHandler.ERR_SAVE_FAIL);\n return false;\n }\n \n mapComponent.paint2d(mapImageGraphics);\n \n ImageIO.write(mapImage, \"png\", imageFile); \n return true;\n \n } catch (Exception e) {\n ErrorHandler.displayError(\"Could not write data to map file:\\n\" + e, ErrorHandler.ERR_SAVE_FAIL);\n return false;\n }\n }", "public static void Save(String filename) throws IOException {\n\t\tFileWriter fw=new FileWriter(filename);\r\n\t\tround=A1063307_GUI.round;\r\n\t\twho=A1063307_GUI.who2;\r\n\t\tfw.write(\"Round:\"+round+\",Turn:\"+who+\"\\n\");\r\n\t\tint t2=1;\r\n\t\twhile(t2<(linenumber)) {\r\n\t\t\tint zz=0;\r\n\t\t\twhile(zz<5) {\r\n\t\t\t\tif(zz==0) {\t\t\r\n\t\t\t\t\tch[t2].location=ch[t2].location%20;\r\n\t\t\t\t fw.write(Integer.toString(ch[t2].location)+\",\");\r\n\t\t\t\t}\r\n\t\t\t\telse if(zz==1){\r\n\t\t\t\t fw.write(Integer.toString(ch[t2].CHARACTER_NUMBER)+\",\");\r\n\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\telse if(zz==2){\r\n\t\t\t\t\tfw.write(Integer.toString(ch[t2].money)+\",\");\r\n\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t else if(zz==3){\r\n\t\t\t \tfw.write(Integer.toString(ch[t2].status)+\",\");\r\n\t\t\t \r\n\t\t\t \t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tfw.write(ch[t2].IMAGE_FILENAME);\t\t\t\t\r\n\t\t\t\t\t }\r\n\t\t\t\tzz++;\r\n\t\t\t}\r\n\t\t\tfw.write(\"\\n\");\r\n\t\t\tt2++;\r\n\t\t}\r\n\t\tfw.close();\r\n\t\tFileWriter fw1=new FileWriter(\"Land.txt\");\r\n\t\tfw1.write(\"LOCATION_NUMBER, owner\\n\");\r\n\t\tfor(int i=1;i<17;i++) {\r\n\t\t\tfw1.write(Land[i].PLACE_NUMBER+\",\"+Land[i].owner+\"\\n\");\r\n\t\t}\r\n\t\tfw1.close();\r\n\t}", "public OutputStream writeFile( String filename, FileType type );", "public native void setFileName(String fileName) throws MagickException;", "public void SaveScreenShot(Component component, String filename) throws Exception{\r\n BufferedImage imag = getScreenShot(component);\r\n ImageIO.write(imag, \"png\", new File(filename));\r\n }", "void saveImage(List<Elements> elements, int numOfArticles) throws IOException {\r\n //For simplicity, exceptions are not caught...\r\n URL url = null;\r\n HttpURLConnection conn = null;\r\n InputStream reader = null;\r\n FileOutputStream writer = null;\r\n byte[] buffer = null;\r\n\r\n for (int i = 0; i < numOfArticles; i++) {\r\n String urlName = elements.get(0).get(i).attr(\"src\");\r\n url = new URL(urlName);\r\n conn = (HttpURLConnection) url.openConnection();\r\n conn.setRequestProperty(\"User-Agent\", \"\");\r\n\r\n String imageName = url.getFile();\r\n imageName = imageName.substring(imageName.lastIndexOf(\"/\") + 1);\r\n\r\n reader = conn.getInputStream();\r\n writer = new FileOutputStream(new File(imageName));\r\n buffer = new byte[BUFFER_SIZE];\r\n int bytesRead = 0;\r\n while ((bytesRead = reader.read(buffer)) != -1) {\r\n writer.write(buffer, 0, bytesRead);\r\n }\r\n }\r\n if (writer != null) {\r\n writer.close();\r\n }\r\n if (reader != null) {\r\n reader.close();\r\n }\r\n }", "public synchronized static void saveGraph(String filename, String fileType, final IFigure printableFigure) \n\t\t\tthrows Exception {\n\t\tImage im = new Image(Display.getDefault(), printableFigure.getSize().width, printableFigure.getSize().height);\n\t\tGC gc = new GC(im);\n\t\t\n\t\t// fill the region in the AWT image with the transparent color\n\t\tSWTGraphics graphics = new SWTGraphics(gc);\n\t\ttry {\n\t\t\t// Needed because the clipping is not set with GTK2\n\t\t\tgraphics.setClip(new Rectangle(0, 0, im.getBounds().width, im.getBounds().height));\n\t\n\t\t\tprintableFigure.paint(graphics);\n\t\t\t// test for all possible file types\n\t\t\tif (!Arrays.asList(FILE_FORMATS).contains(fileType.toLowerCase())\n\t\t\t\t\t&& !Arrays.asList(FILE_TYPES).contains(fileType))\n\t\t\t\tthrow new RuntimeException(\"Cannot deal with file type \" + fileType);\n\t\n\t\t\t// This overrides given fileType!\n\t\t\t// If they have specified the file type in the file name, use that.\n\t\t\tString lname = filename.toLowerCase();\n\t\t\tif (lname.endsWith(\".png\") || lname.endsWith(\".jpg\") || lname.endsWith(\".jpeg\"))\n\t\t\t\tfileType = FILE_TYPES[0];\n\t\t\tif (lname.endsWith(\".ps\") || lname.endsWith(\".eps\"))\n\t\t\t\tfileType = FILE_TYPES[1];\n\t\t\tif (lname.endsWith(\".svg\"))\n\t\t\t\tfileType = FILE_TYPES[2];\n\t\t\tif (fileType.equals(FILE_TYPES[0])) {\n\t\t\t\tif (!lname.endsWith(\".png\") && !lname.endsWith(\".jpg\") && !lname.endsWith(\".jpeg\")) {\n\t\t\t\t\tfilename = filename + \".png\";\n\t\t\t\t\tlname = filename.toLowerCase();\n\t\t\t\t}\n\t\t\t\tImageLoader loader = new ImageLoader();\n\t\t\t\tloader.data = new ImageData[] { im.getImageData() };\n\t\t\t\tloader.save(filename, lname.endsWith(\".png\") ? SWT.IMAGE_PNG : SWT.IMAGE_JPEG);\n\t\t\t} else if (fileType.equals(FILE_TYPES[1])) {\n\t\t\t\tif (!lname.endsWith(\".ps\") && !lname.endsWith(\".eps\"))\n\t\t\t\t\tfilename = filename + \".ps\";\n\t\t\t\tsavePostScript(new File(filename), im);\n\t\t\t} else if (fileType.equals(FILE_TYPES[2])) {\n\t\t\t\tif (!lname.endsWith(\".svg\"))\n\t\t\t\t\tfilename = filename + \".svg\";\n\t\t\t\tfinal File file = new File(filename);\n\t\t\t\t// save to SVG process in a Job\n\t\t\t\tJob svgJob = new Job(\"Exporting to SVG\") {\n\t\t\t\t\tIStatus result = null;\n\t\t\t\t\t@Override\n\t\t\t\t\tprotected IStatus run(final IProgressMonitor monitor) {\n\t\t\t\t\t\tDisplayUtils.syncExec(new Runnable() {\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\tresult = saveSVG(printableFigure, file, monitor);\n\t\t\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\t\t\tresult = Status.CANCEL_STATUS;\n\t\t\t\t\t\t\t\t\tlogger.debug(\"Error writing to file:\"+e.toString());\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t\tif (result == null)\n\t\t\t\t\t\t\tresult = Status.CANCEL_STATUS;\n\t\t\t\t\t\treturn result;\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t\tsvgJob.setUser(true);\n\t\t\t\tsvgJob.schedule();\n\t\t\t} else {\n\t\t\t\tthrow new RuntimeException(\"Cannot process \" + fileType);\n\t\t\t}\n\t\t} finally {\n\t\t\tgraphics.dispose();\n\t\t\tgc.dispose();\n\t\t\tim.dispose();\n\t\t}\n\t}", "public void testWrite() throws IOException\n {\n Pic pic;\n ByteArrayOutputStream stream;\n\n pic = new Pic(ImageIO.read(new File(\"src/test/resources/pic/test.png\")));\n stream = new ByteArrayOutputStream();\n pic.write(stream);\n\n assertEquals(new File(\"src/test/resources/pic/test.pic\"), stream\n .toByteArray());\n }", "public void store_image(Images image) {\n\t\tir.save(image);\n\t}" ]
[ "0.7846077", "0.69399345", "0.67237896", "0.6259129", "0.61724836", "0.61367977", "0.6081432", "0.6062708", "0.6034957", "0.5999426", "0.5989717", "0.5900907", "0.5840305", "0.57940686", "0.57727236", "0.56966496", "0.5585802", "0.5570752", "0.5570139", "0.55158484", "0.5485278", "0.5407287", "0.5372275", "0.5361839", "0.5321999", "0.5298421", "0.52541137", "0.52301896", "0.52244794", "0.5188937", "0.51337034", "0.507825", "0.50779957", "0.507313", "0.50533795", "0.5040279", "0.4972505", "0.49642804", "0.4960054", "0.4940433", "0.49385998", "0.4936314", "0.49359268", "0.49246117", "0.4918964", "0.48959857", "0.48578146", "0.48481244", "0.4835942", "0.48341048", "0.48215422", "0.48137745", "0.48135382", "0.48096713", "0.4785454", "0.4776687", "0.47748637", "0.47373727", "0.4735405", "0.47258157", "0.47219822", "0.47218686", "0.47215375", "0.47062525", "0.46861064", "0.468054", "0.46771017", "0.46744123", "0.46569732", "0.46559757", "0.46390042", "0.46378043", "0.46089375", "0.4607684", "0.46057993", "0.45951465", "0.45807508", "0.45728904", "0.4560742", "0.45358354", "0.4535221", "0.45307752", "0.45281798", "0.4522357", "0.4515326", "0.45113", "0.45092228", "0.4498181", "0.44888422", "0.4486553", "0.44787008", "0.44756478", "0.4464225", "0.44623286", "0.44620717", "0.4448679", "0.44302863", "0.44300556", "0.4429103", "0.4403912" ]
0.76910776
1
writes the WImage to the file specified by fname the type of the imagefile is automatically set by the file extension (.jpg, .png,...). see doc of javax.imageio.ImageIO for further information.
public static void write(WImage img, String fname, Context context, LongWritable key) { BufferedImage bi = new BufferedImage(img.getWidth(), img.getHeight(), BufferedImage.TYPE_BYTE_GRAY); WritableRaster r = bi.getRaster(); r.setSamples(0, 0, img.getWidth(), img.getHeight(), 0, img.getData()); try { FileSystem dfs = FileSystem.get(context.getConfiguration()); Path newimgpath = new Path(context.getWorkingDirectory(), context .getJobID().toString() + "/" + key.get()); dfs.createNewFile(newimgpath); FSDataOutputStream ofs = dfs.create(newimgpath); //ImageIO.write(bi, "jpg", ofs); ImageIO.write(bi, fname.substring(fname.lastIndexOf('.') + 1), ofs); } catch (IOException e) { e.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void writeImage(String fname) throws java.io.IOException {\n System.out.println(\"Writing the image.\");\n \n File f= new File(fname);\n if (f.exists()) {\n System.out.println(\"File \" + f.getAbsolutePath() + \" exists. It was not overwritten.\");\n return;\n }\n \n int r= currentIm.getRows();\n int c= currentIm.getCols();\n int roa[]= currentIm.getRmoArray();\n \n // Obtain a buffered image with the right size and format to save out this image\n // (only the RGB components, not alpha).\n BufferedImage bimage= new BufferedImage(c, r, BufferedImage.TYPE_INT_RGB);\n \n // Copy the image data into that BufferedImage.\n bimage.setRGB(0, 0, c, r, roa, 0, c);\n \n // Finally, write the image onto the file and give the appropriate message\n ImageIO.write(bimage, \"png\", f);\n System.out.println(\"Image written to \" + f.getAbsolutePath());\n }", "public static void write(WImage img, String fname) {\n\t\tBufferedImage bi = new BufferedImage(img.getWidth(), img.getHeight(),\n\t\t\t\tBufferedImage.TYPE_BYTE_GRAY);\n\n\t\tWritableRaster r = bi.getRaster();\n\n\t\tr.setSamples(0, 0, img.getWidth(), img.getHeight(), 0, img.getData());\n\n\t\tFile f = new File(fname);\n\n\t\ttry {\n\t\t\tImageIO.write(bi, fname.substring(fname.lastIndexOf('.') + 1), f);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void writeToFile(Mat img, String fname) {\n\t\tSystem.err.println(\"Writing image to file \" + fname);\n\t\tMatOfByte matOfByte = new MatOfByte();\n\t\tHighgui.imencode(\".jpg\", img, matOfByte);\n\t\tbyte[] byteArray = matOfByte.toArray();\n\t\tFileOutputStream fos;\n\t\ttry {\n\t\t\tfos = new FileOutputStream(fname);\n\t\t\tfos.write(byteArray);\n\t\t\tfos.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void writeImage(BufferedImage image, String fileName) {\n try {\n File outputFile = new File(fileName + \".\" + FILE_EXTENSION);\n ImageIO.write(image, FILE_EXTENSION, outputFile);\n\n } catch (IOException ioexp) {\n System.err.println(\"No contact with outside world\");\n }\n }", "public static void writeImage(BufferedImage image, String fileName)\n\t\t\tthrows IOException {\n\t\tif (fileName == null)\n\t\t\treturn;\n\n\t\tint offset = fileName.lastIndexOf(\".\");\n\n\t\tif (offset == -1) {\n\t\t\tString message = \"file suffix was not specified\";\n\t\t\tthrow new IOException(message);\n\t\t}\n\n\t\tString type = fileName.substring(offset + 1);\n\n\t\tif (types.contains(type)) {\n\t\t\tImageIO.write(image, type, new File(fileName));\n\t\t} else {\n\t\t\tString message = \"unknown writer file suffix (\" + type + \")\";\n\t\t\tthrow new IOException(message);\n\t\t}\n\t}", "public static void writeBufferedImage(String file, BufferedImage img) throws IOException\n {\n String formatName;\n if(file.endsWith(\"png\"))\n formatName = \"png\";\n else if(file.endsWith(\"jpg\") || file.endsWith(\"jpeg\"))\n formatName = \"jpg\";\n else if(file.endsWith(\"gif\"))\n formatName = \"gif\";\n else\n throw new IOException(\"Invalid image format\");\n\n ImageIO.write(img, formatName, new File(file));\n }", "public void writeToImage() {\n imageWriter.writeToImage();\n }", "static public void write(String filename, Image image) throws IOException\n {\n MyBMPFile reader = new MyBMPFile();\n \n reader.saveBitmap(filename, image, image.getWidth(reader), image.getHeight(reader));\n }", "public void writeToImage() {\r\n\t\t_imageWriter.writeToImage();\r\n\t}", "static public void saveAs(BufferedImage img, String name) {\n\t\ttry {\n\t\t\tString type = name.substring(name.length()-3);\n\t\t\tImageIO.write(img, type, new File(name));\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void writeImage() {\n // Write generated image to a file\n try {\n // Save as JPEG\n File file = new File(\"Images/\" + name + \"INS\" + System.currentTimeMillis() + \".jpg\");\n ImageIO.write(bufferedImage, \"jpg\", file);\n\t\t\t\t\n\n } catch (IOException e) {\n }\n }", "static void write(Image image, String filename) {\n try {\n image.write(filename);\n System.out.println(\"Wrote image: \" + filename);\n } catch (IOException err) {\n System.out.printf(\"Something went wrong writing: %n\", filename, err);\n }\n }", "private void saveImage(BufferedImage newImg, String fileName)\n {\n\n File imageFile = new File(fileName+\".jpg\");\n try\n {\n ImageIO.write(newImg,\"jpg\",imageFile);\n }\n catch (IOException e)\n {\n System.out.println(fileName+\" not saved\"+e);\n }\n\n }", "@Override\n\tpublic void event(PictureEvent e) {\n\t\ttry {\n\t\t\tif (null != fname) {\n\t\t\t\tImageIO.write(e.getImage(), \"jpg\", new File(fname));\n\t\t\t}\n\t\t} catch (Exception ex) { SewerSender.println(ex.toString()); }\n\t}", "private void saveFile() {\r\n\t\tFile file = new File(this.picture.getFileName());\r\n\r\n\t\ttry {\r\n\t\t\tImageIO.write(this.picture.getBufferedImage(),\r\n\t\t\t\t\tthis.picture.getExtension(), file);\r\n\t\t} catch (IOException e) {\r\n\t\t\tJOptionPane.showMessageDialog(this.pictureFrame,\r\n\t\t\t\t \"Could not save file.\",\r\n\t\t\t\t \"Save Error\",\r\n\t\t\t\t JOptionPane.WARNING_MESSAGE);\r\n\t\t}\r\n\r\n\t}", "static void write_section_file ( String image_file_name, int width, int height ) {\n }", "public void imagesaver(String name){\n\tthis.new_image_name = name;\n\t try{\n\t\tImageIO.write(new_buff_image, \"png\", new File(new_image_name));\n\t }\n\t catch(IOException e){\n\t\tSystem.out.println(\"The desired output file is invalid. Please try running the program again.\");\n\t\tSystem.exit(0);\n\t }\n }", "protected void writeImage(BufferedImage img, File dest) throws IOException\n\t{\n\t\tImageWriter writer = null;\n\t\t{\n\t\t\tIterator<ImageWriterSpi> spis = IIORegistry.getDefaultInstance().getServiceProviders(ImageWriterSpi.class, true);\n\t\t\twhile (spis.hasNext()) {\n\t\t\t\tImageWriterSpi spi = spis.next();\n\t\t\t\tfor (String mimeType : spi.getMIMETypes()) {\n\t\t\t\t\tif (mimeType.startsWith(getDragMIME())) {\n\t\t\t\t\t\twriter = spi.createWriterInstance();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (writer == null)\n\t\t\tthrow new IOException(\"This system's Java ImageIO does not have any plugins which support the mime type \" + dragMIME);\n\t\t\n\t\tFileImageOutputStream out = new FileImageOutputStream(dest);\n\t\twriter.setOutput(out);\n\t\twriter.write(img);\n\t\tout.close();\n\t\twriter.dispose();\n\t}", "public void createNewImageFile(){\n fillNewImage();\n\n try {\n ImageIO.write(newImage, imageFileType, new File(k + \"_Colored_\" + fileName.substring(0,fileName.length() - 4) + \".\" + imageFileType));\n } catch (IOException e){\n e.printStackTrace();\n }\n \n }", "public void write(String filename) throws IOException {\n \t\n\t\tFileOutputStream os = null;\n\t\ttry {\n\t\t \tos = new FileOutputStream(new File(\"./OutputImage.txt\"));\n\t\t\tString header = (\"P6\\n\" + width + \"\\n\" + height + \"\\n255\\n\")//.getBytes() missing for converting the string into bytes;\n\t\t\t// For P6 there is no \\n after each spec. Use: new (\"P6 \"+width+\" \"+h+\" 255\\n\").getBytes())\n\t\t\tos.write(header);\n\t\t\tos.write(data);\n\t\t} catch (IOException e) {\n\t\t \t e.printStackTrace();\n\t\t}finally{\n\t\t try {\n\t\t\tos.close();\n\t\t } catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t \t}\n \t}\n \n\n}", "private boolean setImage(BufferedImage image, File file, String ext) {\n try {\n file.delete(); // delete resources used by the File\n ImageIO.write(image, ext, file);\n return true;\n }\n catch (Exception e) {\n JOptionPane.showMessageDialog(\n null,\n \"File could not be saved!\",\n \"Error\",\n JOptionPane.ERROR_MESSAGE);\n return false;\n }\n }", "private static native boolean imwrite_0(String filename, long img_nativeObj, long params_mat_nativeObj);", "public void save(String name) throws IOException {\n\t\tFile outputfile = new File(name+\".jpg\");\n\t\tImageIO.write(this.img, \"jpg\", outputfile);\n\t}", "public void write(File path) throws IOException{\n\t\tif(this.picture != null){ // in cazul in care poza are continut null se arunca exceptie\n\t\t\t//File output = new File(path);\n\t\t\tImageIO.write(zoomed,\"bmp\",path);\n\t\t\tSystem.out.println(path);\n\t\t\tSystem.out.println(\"\\nS-a scris in fisier cu succes\");\n\t\t}\n\t}", "public static void savePngImageFile(Image im, File fImage) throws IOException {\r\n if (im instanceof RenderedImage) {\r\n ImageIO.write((RenderedImage) im, \"png\", fImage);\r\n } else {\r\n BufferedImage bim = new BufferedImage(im.getWidth(null), im.getHeight(null), BufferedImage.TYPE_INT_RGB);\r\n Graphics g = bim.getGraphics();\r\n g.drawImage(im, 0, 0, null);\r\n bim.flush();\r\n ImageIO.write(bim, \"png\", fImage);\r\n }\r\n }", "public static void WriteFile(){\n String[] linha;\n FileWriter writer;\n try{\n writer = new FileWriter(logscommissions, true);\n PrintWriter printer = new PrintWriter(writer);\n linha = ManageCommissionerList.ReturnsCommissionerListInString(ManageCommissionerList.comms.size()-1);\n for(int i=0;i<19;i++){\n printer.append(linha[i]+ \"\\n\");\n }\n printer.close();\n }catch(Exception e){\n e.printStackTrace();\n System.out.println(\"Unable to read file\\n\");\n }\n try{\n Commissions temp = ManageCommissionerList.comms.get(ManageCommissionerList.comms.size()-1);\n BufferedImage img = temp.GetWipImage();\n File fl = new File(\"wipimages/wip\" + temp.GetCommissionTitle() + temp.GetUniqueID() + \".jpg\");\n ImageIO.write(img, \"jpg\", fl);\n }catch (Exception e){\n e.printStackTrace();\n System.out.printf(\"Failure to write image file\");\n }\n \n }", "public void save(final File file) {\r\n\t\tString filename = file.getName();\r\n\t\tString suffix = filename.substring(filename.lastIndexOf('.') + 1);\r\n\t\tsuffix = suffix.toLowerCase();\r\n\t\tif (suffix.equals(\"jpg\") || suffix.equals(\"png\")) {\r\n\t\t\ttry {\r\n\t\t\t\tImageIO.write(picturePanel.image, suffix, file);\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"Error: filename must end in .jpg or .png\");\r\n\t\t}\r\n\t}", "@Test\n void writeToImage() {\n String imagename = \"img\";\n int width = 1600;\n int height = 1000;\n int nx =500;\n int ny =800;\n ImageWriter imageWriter = new ImageWriter(imagename, width, height, nx, ny);\n for (int col = 0; col < ny; col++) {\n for (int row = 0; row < nx; row++) {\n if (col % 10 == 0 || row % 10 == 0) {\n imageWriter.writePixel(row, col, Color.blue);\n }\n }\n }\n imageWriter.writeToImage();\n }", "@FXML public void saveToFile()throws java.io.IOException {\n Highgui.imwrite( this.originalImagePath, this.image );\n System.out.println(\"Saving\");\n }", "public void writeToFile() {\n\t\ttry {\n\t\t\tFileOutputStream file = new FileOutputStream(pathName);\n\t\t\tObjectOutputStream output = new ObjectOutputStream(file);\n\n\t\t\tMap<String, HashSet<String>> toSerialize = tagToImg;\n\t\t\toutput.writeObject(toSerialize);\n\t\t\toutput.close();\n\t\t\tfile.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void updateImageFile() throws FileNotFoundException {\n \t\tfinal PrintWriter out = new PrintWriter(asciiImageFile);\n \t\tout.print(asciiImage(false));\n \t\tout.close();\n \t}", "public static void writeImage(Image image, File imageFile) throws IOException {\n\t\tImageUtils.writeFile(image, imageFile);\n\t\tMsg.info(AbstractDockingTest.class, \"Wrote image to \" + imageFile.getCanonicalPath());\n\t}", "public synchronized void addNewImage(BufferedImage img, File file) {\r\n\t\tint image_pk = db.insertImage(file.getName(), file.getAbsolutePath(), DEFAULT_TAG_PK);\r\n\t\tSaveImageOnDisk saveImage = new SaveImageOnDisk(img, file, db.getCacheName(image_pk)); \r\n\t\tsaveImage.start();\r\n\t}", "public native boolean writeImage(ImageInfo imageInfo)\n\t\t\tthrows MagickException;", "public void writeImage(BufferedImage image, ImageWriterParams params)\n throws IOException {\n writer.writeImage(image, params);\n writer.writeImage(image, params);\n writer.close();\n }", "public static void saveImage(BufferedImage buff, String dest) {\n try {\n File outputfile = new File(dest);\n ImageIO.write(buff, \"png\", outputfile);\n } catch (IOException e) {\n System.out.println(\"error saving the image: \" + dest + \": \" + e);\n }\n }", "public void toFile(String fname){\r\n\t\ttry(FileWriter fw=new FileWriter(fname)){\r\n\t\t\tfw.write(toString());\r\n\t\t\t\r\n\t\t}catch(IOException e){ e.printStackTrace(); System.exit(0);}\r\n\t}", "public void createFile(String fname) {\n\t\tprintMsg(\"running createFiles() in \\\"\" + this.getClass().getName() + \"\\\" class.\");\n\t\t\n\t\t// Check if the scratch directory exists, create it if it doesn't\n\t\tPath rootpath = Paths.get(theRootPath);\n\t\tcreateScratchDirectory(rootpath);\n\n\t\t// Check if the file name is null or empty, if it is, use default name\n\t\tPath filepath = null;\n\t\tif(fname == null || fname.isEmpty()) {\n\t\t\tfilepath = Paths.get(rootpath + System.getProperty(\"file.separator\") + theFilename);\n\t\t} else {\n\t\t\tfilepath = Paths.get(rootpath + System.getProperty(\"file.separator\") + fname);\n\t\t}\n\t\t\n\t\t// Create file\n\t\ttry {\n\t\t\t// If file exists already, don't override it.\n\t\t\tif(!Files.exists(filepath)) {\n\t\t\t\tFiles.createFile(filepath);\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public static void ReplacesImage(int index){\n try{\n Commissions temp = ManageCommissionerList.comms.get(index);\n BufferedImage img = temp.GetWipImage();\n File fl = new File(\"wipimages/wip\" + temp.GetCommissionTitle() + index + \".jpg\");\n ImageIO.write(img, \"jpg\", fl);\n }catch (Exception e){\n e.printStackTrace();\n System.out.printf(\"Failure to write image file\");\n }\n }", "public void saveToFile(String filename)\r\n {\r\n String ftype=filename.substring(filename.lastIndexOf('.')+1);\r\n try\r\n {\r\n if(isReadyToSave)\r\n ImageIO.write(cropedEdited,ftype,new File(filename));\r\n }\r\n catch(IOException e)\r\n {\r\n System.out.println(\"Error in saving the file\");\r\n }\r\n }", "void save(Images image);", "private void save(FileItem file) throws Exception {\n FileHandler fileHandler = new FileHandler(oriImgFile());\n fileHandler.saveFile(file);\n }", "public void saveImgFile(Bitmap mImg, String nName, String mPath) {\n\t\tBufferedOutputStream bos = null;\n\t\tFile mFile = new File(mPath, nName);\n\t\ttry {\n\t\t\tbos = new BufferedOutputStream(new FileOutputStream(mFile));\n\t\t\tif (mImg != null) {\n\t\t\t\tmImg.compress(Bitmap.CompressFormat.JPEG, 80, bos);\n\t\t\t}\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tif (bos != null) {\n\t\t\t\t\tbos.flush();\n\t\t\t\t\tbos.close();\n\t\t\t\t}\n\t\t\t\tmFile = null;\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "private void jMenuItem2ActionPerformed(ActionEvent evt) {\n\t\tif (outputFile == null) {\n\t\t\tSystem.err.println(\"Error!! No file to save\");\n\t\t\treturn;\n\t\t}\n\n\t\ttry {\n\t\t\tBufferedImage bi = (BufferedImage) entry.getImage();\n\t\t\tImageIO.write(bi, fileExtension, outputFile);\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.println(\"Error!! File not saved\");\n\t\t}\n\t}", "public void printFile(String fileName)\n {\n try\n {\n //takes the output string and writes it in a new file\n //called output.txt\n FileOutputStream out = new FileOutputStream(\n new File(fileName), true);\n out.write(logImage.getBytes());\n out.flush();\n out.close(); \n }\n //catches all exceptions from writing into the .txt\n catch(Exception e)\n {\n System.out.println(\"There was an error while writing into file\");\n }\n }", "private static void saveImage(final Image image, final File file) {\n try {\n WriteFxImage.savePng(image, file);\n } catch (IOException e) {\n LOGGER.atError().addArgument(file.getName()).log(\"Error saving screenshot to {}\");\n }\n }", "public static void saveImage(final File file, final Image fxImage) throws IOException {\n\t\tfinal BufferedImage img = SwingFXUtils.fromFXImage(fxImage, null);\n\n\t\tfinal File saveTo = addPngExtension(file);\n\t\tImageIO.write(img, \"PNG\", saveTo);\n\t}", "private void addImage(int row, int col, String imageName,\n\t\t\t\t\t\t\t\t\t\t\t\tString imageFileName) {\n\t\tDirectionalPanel panel = nextEmpty(row, col);\n\t\tif (panel != null) {\n\t\t\tpanel.setImage(imageFileName);\n\t\t\tpanel.setImageName(imageName);\n\t\t\tpanel.invalidate();\n\t\t\tpanel.repaint();\n\t\t}\n\t}", "public void bfSave(String path, ImagePlus plus, IMetadata metadata) throws FormatException, IOException, DependencyException, ServiceException {\n\n File imageFile = new File(path);\n if (imageFile.isFile() && imageFile != null) imageFile.delete();\n\n //Initialize writer and save file\n ImageWriter writer = new ImageWriter();\n writer.setMetadataRetrieve(metadata);\n writer.setId(path);\n\n int size = plus.getImageStackSize();\n ImageStack is = plus.getImageStack();\n boolean doStack = writer.canDoStacks() && size > 1;\n int start = doStack ? 0 : plus.getCurrentSlice() - 1;\n int end = doStack ? size : start + 1;\n\n int width = plus.getWidth();\n int height = plus.getHeight();\n\n byte[] plane = null;\n boolean littleEndian =\n !writer.getMetadataRetrieve().getPixelsBinDataBigEndian(0, 0).booleanValue();\n writer.setInterleaved(false);\n for (int i=start; i<end; i++) {\n\n //Get Pixels as Bytes from ImagePlus\n ImageProcessor proc = is.getProcessor(i + 1);;\n plane = null;\n if (proc instanceof ByteProcessor) {\n plane = (byte[]) proc.getPixels();\n }\n else if (proc instanceof ShortProcessor) {\n plane = DataTools.shortsToBytes(\n (short[]) proc.getPixels(), littleEndian);\n }\n else if (proc instanceof FloatProcessor) {\n plane = DataTools.floatsToBytes(\n (float[]) proc.getPixels(), littleEndian);\n }\n else if (proc instanceof ColorProcessor) {\n byte[][] pix = new byte[3][width*height];\n ((ColorProcessor) proc).getRGB(pix[0], pix[1], pix[2]);\n plane = new byte[3 * width * height];\n System.arraycopy(pix[0], 0, plane, 0, width * height);\n System.arraycopy(pix[1], 0, plane, width * height, width * height);\n System.arraycopy(pix[2], 0, plane, 2 * width * height, width * height);\n }\n // TODO setColorModel\n writer.saveBytes(i, plane);\n }\n writer.close();\n\n }", "public static void saveImage(int width, byte[] rgbData, String fileName)\r\n {\r\n try {\r\n\r\n BufferedImage image = bytes2RGB(width, rgbData);\r\n ImageIO.write(image, \"png\", new File(fileName));\r\n\r\n } catch (IOException e) {\r\n System.out.println(\"ERROR SAVING FILE: \" + e.getMessage());\r\n }\r\n }", "void saveImgToDir(String resultsPath, String imgName, String addToImgName, Mat mat) {\r\n\r\n\t\t\tImgcodecs.imwrite(resultsPath + \"\\\\\"\r\n\t\t\t\t\t+ imgName.substring(0, imgName.length() - 4) + addToImgName\r\n\t\t\t\t\t+ imgName.substring(imgName.length() - 4,\r\n\t\t\t\t\t\t\timgName.length()),\r\n\t\t\t\t\tmat);\r\n\t}", "public void saveImg(byte[] byteImg, String fileName) throws IOException{\n File outputFile = new File(\"src/main/resources/tmpImg/\" + fileName);\n // convert byte[] back to a BufferedImage\n BufferedImage newBi = ImageIO.read(new ByteArrayInputStream(byteImg));\n // save it\n ImageIO.write(newBi, \"jpeg\",outputFile);\n }", "public void Save( String saveImgAs )\n {\n saveImage(image, saveImgAs); \n }", "public static void writeImage(BufferedImage image, String imageType, HttpServletResponse response) throws IOException {\r\n\t\tresponse.setContentType(\"image/\" + imageType);\r\n\t\tImageIO.write(image, imageType, response.getOutputStream());\r\n\t}", "public static void saveImage2(int[][] flat, String saveName, int width, int height){\n \n // Ask the user for the name of the output file.\n// try{\n// saveName = imageMain.console.readLine();\n// }\n// catch(IOException e){ \n// System.out.println(e);\n// System.exit(1);\n// }\n\n // If saveName does not already end in .bmp, then add .bmp to saveName.\n saveName=bmpTack(saveName);\n\n // Combine the 8-bit red, green, blue, offset values into 32-bit words.\n int[] outPixels = new int[flat.length];\n for(int j=0; j<flat.length; j++) {\n outPixels[j] = ((flat[j][0]&0xff)<<16) | ((flat[j][1]&0xff)<<8)\n | (flat[j][2]&0xff) | ((flat[j][3]&0xff)<<24);\n } // for j\n\n // Write the data out to file with the name given by string saveName.\n BMPFile bmpf = new BMPFile();\n bmpf.saveBitmap(saveName, outPixels, width, height);\n System.out.println(\"Saved \" + saveName);\n }", "public void writeToDir() {\n\t\ttry{\n\t\t\tString dirPath = Paths.get(\".\").toAbsolutePath().normalize().toString()+\"/\";\n\t\t\tString path = dirPath + filename; //get server dir path\n\t\t\tSystem.out.println(\"output file path is: \" + path);\n\t\t\tFileOutputStream out = new FileOutputStream(path);\n out.write(img);\n out.close();\n PL.fsync();\n\t\t}catch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void saveImageInstantly() {\n\n if (movie != null) {\n\n // Get movie's title and set an initial file name\n String movieTitle = movie.getMovieTitle();\n\n // Replace any invalid characters\n movieTitle = movieTitle.replaceAll(\"[\\\"/?\\\"*><|]\", \"\").replace(\":\", \"-\");\n\n // If preferences file is empty\n if (userDirectoryString.equals(\"empty\")) {\n\n userDirectoryString = System.getProperty(\"user.home\");\n }\n\n File userDirectory = new File(userDirectoryString + \"/\" + movieTitle + \".jpg\");\n\n // If it can't access User Home, default to C drive\n if (!userDirectory.getParentFile().canRead()) {\n userDirectory = new File(\"D:\\\\\" + movieTitle + \".jpg\");\n }\n\n // Check file isn't null, so it the image view\n if (imgPoster.getImage() != null) {\n\n try {\n\n ImageIO.write(SwingFXUtils.fromFXImage(imgPoster.getImage(), null), \"jpg\", userDirectory);\n setLblStatus(\"Poster saved successfully.\");\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n }", "public static Try<Void> writePngFile(String filePath, BufferedImage image) {\n return imageToPng(image).flatmap(imageBytes -> Files.writeBytes(filePath, imageBytes));\n }", "public void addImage(String fileName) {\n\t\taddImage(BitmapFactory.decodeFile(fileName), fileName);\n\t}", "public void Func_imagefile(){\n\n\t\tswf_env.containImg = true;\n\n\n\t\tthis.value = new SWFValue(\"Func\");\n\n\t\tString path = this.getAtt(\"path\", \".\");\n\t\tString filename = this.getAtt(\"default\");\n\t\tString type = \"auto\";\n\t\tvalue.instanceName = \"img\"+ Integer.toString(swf_env.instanceID);\n\t\tvalue.data = \"\";\n\t\tvalue.imgpath = path + \"/\" + filename;\n\t\tvalue.inter_imgpath = path + \"/\" + filename;\n\t\tvalue.inter_name = \"intimg\" + Integer.toString(swf_env.interactionImgNUM);\n\t\tvalue.tmp = \"tmp\" + Integer.toString(swf_env.interactionImgNUM);\n\t\tvalue.lnum = Integer.toString(swf_env.visibleflag_counter);\n\n\n\t\tif(!path.startsWith(\"/\")) {\n\t\t\tString basedir = GlobalEnv.getBaseDir();\n\t\t\tLog.out(\"basedir= \" +basedir);\n\t\t\tif(basedir != null && basedir != \"\") {\n\t\t\t\tpath = basedir + path;\n\t\t\t}\n\t\t}\n\n\t\tString filepath = path + \"/\" + filename;\n\n\n\t\tsetDecoration1();\n\t\tvalue.margin = margin;\n\n\n\t\tSystem.out.println(\"filepath = \"+filepath);\n\t\tint img = swf_env.open_image_file(type, filepath);\n\t\tvalue.img = img;\n\n\t\tdata_width = swf_env.get_value(\"imagewidth\", img);\n\t\tdata_height = swf_env.get_value(\"imageheight\", img);\n\t\tSystem.out.println(\"imagesize: \"+data_width+\" \"+data_height);\n\t\twidth = data_width + margin * 2;\n\t\theight = data_height + margin * 2;\n\n\n\t\tsetDecoration2();\n\n\t\tif(data_width > width){\n\t\t\tint original_width = data_width;\n\t\t\tdata_width = width - margin * 2;\n\t\t\tint scale = data_width / original_width;\n\t\t\tdata_height = data_height * scale;\n\t\t\theight = data_height + margin * 2;\n\t\t}\n\t\tif(data_height > height){\n\t\t\tint original_height = data_height;\n\t\t\tdata_height = height - margin * 2;\n\t\t\tint scale = data_height / original_height;\n\t\t\tdata_width = data_width * scale;\n\t\t\twidth = data_width + margin * 2;\n\t\t}\n\n\t\tvalue.data_width = data_width;\n\t\tvalue.data_height = data_height;\n\t\tvalue.width = width;\n\t\tvalue.height = height;\n\t\t//morya wrote\n\t\tvalue.int_w = width;\n\t\tvalue.int_h = height;\n\n\n\t\tsetDecoration3();\n\n\t\tswf_env.tmp_width = width;\n\t\tswf_env.tmp_height = height;\n\n\n\t\tswf_env.instanceID++;\n\n\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tImage imagen = panelCamara.getImage();\n\t\t\t\tFile fichero = new File(\"usuarios/\"+nick+\".jpg\");\n\t\t\t\tString formato = \"jpg\";\n\t\t\t\ttry {\n\t\t\t\t\tImageIO.write((RenderedImage)imagen, formato, fichero);\n\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tBD.btnGuardar(\"usuarios/\"+nick+\".jpg\",nick);\n\t\t\t}", "void setImageFromFile(File imageFile);", "public void save(File f, int posX, int posY) throws IOException {\n\t\tGraphics g = internalImage.createGraphics();\n\t\tImageIO.write(internalImage, \"jpg\", f);\n\n\t}", "public static boolean storeImage(WritableImage imageToWrite, File fileStore) {\n boolean dataSaved;\n try {\n /*Delete file if it exists*/\n if (fileStore.exists()) {\n fileStore.delete();\n }\n /*Create new file*/\n fileStore.createNewFile();\n /*Export image*/\n BufferedImage bImage = SwingFXUtils.fromFXImage(imageToWrite, null);\n ImageIO.write(bImage, \"png\", fileStore);\n dataSaved = true;\n } catch (Exception e) {\n dataSaved = false;\n System.out.println(e.getMessage());\n }\n return dataSaved;\n }", "public boolean saveImage() throws IOException\n\t{\n\t\tConfiguration config = GlobalConfiguration.CONFIG;\n\t\tString rootPath = config.get(GlobalConfiguration.CRAWL_IMAGE_ROOT, \"/export/public_html/image\");\n\t\tFile imageDir = new File(rootPath);\n\t\tif(!imageDir.exists())\n\t\t{\n\t\t\timageDir.mkdirs();\n\t\t}\n\t\t///image name is image data hash in hex format\n\t\tString fullPath = rootPath + \"/\" + this.getImageFileName();\n\t\tFileOutputStream fos = new FileOutputStream(fullPath);\n\t\tfos.write(this.getImageData());\n\t\tfos.close();\n\t\treturn true;\n\t}", "public void encodeImage(BufferedImage buf, File imageFile) throws SVGGraphics2DIOException {\n/* */ try {\n/* 80 */ OutputStream os = new FileOutputStream(imageFile);\n/* */ try {\n/* 82 */ ImageWriter writer = ImageWriterRegistry.getInstance().getWriterFor(\"image/jpeg\");\n/* */ \n/* 84 */ ImageWriterParams params = new ImageWriterParams();\n/* 85 */ params.setJPEGQuality(1.0F, false);\n/* 86 */ writer.writeImage(buf, os, params);\n/* */ } finally {\n/* */ \n/* 89 */ os.close();\n/* */ } \n/* 91 */ } catch (IOException e) {\n/* 92 */ throw new SVGGraphics2DIOException(\"could not write image File \" + imageFile.getName());\n/* */ } \n/* */ }", "public static void writeJPEGFile(String fName, Canvas3D canvas){\n\t\tGraphicsContext3D ctx = canvas.getGraphicsContext3D();\n\t\t// The raster components need all be set!\n\t\tRaster ras = new Raster(\n\t\t\t\tnew Point3f(-1.0f,-1.0f,-1.0f),\n\t\t\t\tRaster.RASTER_COLOR,\n\t\t\t\t0,0,\n\t\t\t\tcanvas.getWidth(),canvas.getHeight(),\n\t\t\t\tnew ImageComponent2D( ImageComponent.FORMAT_RGB, new BufferedImage(canvas.getWidth(), canvas.getHeight(), BufferedImage.TYPE_INT_RGB)),\n\t\t\t\tnull);\n\n\t\tctx.readRaster(ras);\n\n\t\t// Now strip out the image info\n\t\tBufferedImage img = ras.getImage().getImage();\n\n\t\t// write that to disk....\n\t\ttry {\n\t\t\tFileOutputStream out = new FileOutputStream(fName);\n\t\t\tJPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(out);\n\t\t\tJPEGEncodeParam param = encoder.getDefaultJPEGEncodeParam(img);\n\t\t\tparam.setQuality(0.95f,false); // 75% quality for the JPEG\n\t\t\tencoder.setJPEGEncodeParam(param);\n\t\t\tencoder.encode(img);\n\t\t\tout.close();\n\t\t} catch ( IOException e ) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public static void write(String fname){\r\n\t\t\ttry {\r\n\t\t\t\tFile file = new File(fname);\r\n\t\t\t\t\r\n\t\t\t\tFileWriter fw = new FileWriter(file.getAbsoluteFile());\r\n\t\t\t\tBufferedWriter bw = new BufferedWriter(fw);\r\n\t\t\t\t//establish variable str and call to write header row\r\n\t\t\t\tString str = \"Employee Name, Employee Number, State, Zip, Age, Sex\\n\";\r\n\t\t\t\tbw.write(str);\r\n\t\t\t\t//parse the array list and retrieve data for employees of age 30 or less\r\n\t\t\t\tfor(int i=0;i<data.size();i++){\r\n\t\t\t\t\tif(data.get(i).Age <= 30) {\r\n\t\t\t\t\t//call the information stored in the arraylist in each particular index and then call to write\r\n\t\t\t\t\tbw.write(data.get(i).Name+\",\"+data.get(i).Num + \",\" + data.get(i).State + \",\" + data.get(i).Zip + \",\" + data.get(i).Age + \",\" + data.get(i).Sex + \"\\n\");\r\n\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tbw.close();\r\n\t\t\t\tfw.close();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"Finish writing data to file \"+ fname);\r\n\t\t}", "private void createImage (String image_name, int filename){\n\n\t\tString image_folder = getLevelImagePatternFolder();\n\t\t\n\t\tString resource = filename+\".png\";\n\t\tImageIcon ii = new ImageIcon(this.getClass().getResource(image_folder + resource));\n images.put(image_name, ii.getImage());\n\t}", "boolean saveImage(Image img) {\r\n\t\treturn true;\r\n\t}", "protected abstract void writeFile();", "public static ImageWriter createImageWriter(File file)\n\t{\n\t\tif (file == null)\n\t\t\tthrow new NullPointerException(\"file is null\");\n\n\t\tString extension = extractExtension(file.getName());\n\n\t\treturn createImageWriter(extension);\n\t}", "public static void createFileToZip(BufferedImage image, String path, int name,ZipOutputStream zipOS) throws FileNotFoundException, IOException {\n //Create the jpeg image\n File f = new File(path+Integer.toString(name)+\".jpg\");\n //Create the inputstream\n FileInputStream fis = new FileInputStream(f);\n //Create a zipentry for the file we are gonna include to the zip\n ZipEntry zipEntry = new ZipEntry(path+Integer.toString(name)+\".jpg\");\n //Store the image into the zip as an array of bytes\n zipOS.putNextEntry(zipEntry);\n byte[] bytes = new byte[1024];\n int length;\n while ((length = fis.read(bytes)) >= 0) {\n zipOS.write(bytes, 0, length);\n }\n zipOS.closeEntry();\n fis.close();\n }", "Person addImage(String name, String imagePath);", "public static void saveFrame(JInternalFrame frm) {\n\t\tsaveAsJPG(frm, \"C:/MyFrame2.jpg\");\r\n\t}", "public static final File writeFileFromRGBMatrix(String fileName, Integer[][] imageRGB) throws IOException {\n BufferedImage writeBackImage = new BufferedImage(imageRGB[0].length, imageRGB.length, BufferedImage.TYPE_INT_RGB);\n for (int i = 0; i < imageRGB.length; i++) {\n for (int j = 0; j < imageRGB[i].length; j++) {\n Color color = new Color(fixRGBValue(imageRGB[i][j]),\n fixRGBValue(imageRGB[i][j]),\n fixRGBValue(imageRGB[i][j]));\n writeBackImage.setRGB(j, i, color.getRGB());\n }\n }\n File outputFile = new File(fileName);\n ImageIO.write(writeBackImage, \"png\", outputFile);\n return outputFile;\n }", "@Override\n public void saveSkill(Skill skill, MultipartFile imageFile) throws Exception {\n Path currentPath = Paths.get(\".\"); // this gets us to src/main/resources without knowing the full path\n Path absolutePath = currentPath.toAbsolutePath();\n byte[] bytes = imageFile.getBytes();\n String fileName = StringUtils.cleanPath(imageFile.getOriginalFilename());\n skill.setIconPath(absolutePath + \"/src/main/resources/static/icons/\");\n skill.setIconName(fileName);\n Path path = Paths.get(skill.getIconPath() + fileName);\n Files.write(path, bytes);\n save(skill);\n }", "public static void saveImage(int[][][] imagePixels, String saveName){\n int height = imagePixels.length;\n int width = imagePixels[0].length;\n int[][] flat = new int[width*height][4];\n \n // Ask the user for the name of the output file.\n// try{\n// saveName = imageMain.console.readLine();\n// }\n// catch(IOException e){ \n// System.out.println(e);\n// System.exit(1);\n// }\n\n // If saveName does not already end in .bmp, then add .bmp to saveName.\n saveName=bmpTack(saveName);\n\n // Flatten the image into a 2D array.\n int index=0;\n for(int row=0; row<height; row++) {\n for(int col=0; col<width; col++) {\n for(int rgbo=0; rgbo<4; rgbo++) {\n flat[index][rgbo]=imagePixels[row][col][rgbo];\n }\n index++;\n } // for col\n } // for row\n\n // Combine the 8-bit red, green, blue, offset values into 32-bit words.\n int[] outPixels = new int[flat.length];\n for(int j=0; j<flat.length; j++) {\n outPixels[j] = ((flat[j][0]&0xff)<<16) | ((flat[j][1]&0xff)<<8)\n | (flat[j][2]&0xff) | ((flat[j][3]&0xff)<<24);\n } // for j\n\n // Write the data out to file with the name given by string saveName.\n BMPFile bmpf = new BMPFile();\n bmpf.saveBitmap(saveName, outPixels, width, height);\n System.out.println(\"Saved \" + saveName);\n }", "public void write(File dest, boolean writeAlpha) throws IOException, RenderException {\r\n\t\trenderer.writeImage(this, new FileOutputStream(dest), writeAlpha);\r\n\t}", "public void writeAsTIFF(String filename) throws IOException, ImageException {\r\n\tbyte byteData[] = new byte[originalRGB.length];\r\n\tfor (int i=0;i<originalRGB.length;i++){\r\n\t\tbyteData[i] = (byte)(new Color(originalRGB[i])).getBlue();\r\n\t}\r\n\tTiffImage tiffImage = new TiffImage(getSizeX(),getSizeY(),getSizeZ(),byteData);\r\n\ttiffImage.write(filename,ByteOrder.Unix);\r\n}", "protected void saveImage(String type) {\n\t\tint height = 793;\n\t\tint width = 1120; \n\t\t\n\t\tAdvancedFileChooser fileChooser = new AdvancedFileChooser();\n\t\t\n\t\tfileChooser.setFileSelectionMode(JFileChooser.FILES_ONLY);\n\t\tint returnVal = fileChooser.showSaveDialog(chartPanel);\n\t\n\t\tFile filePath = null;\n\t\tif (returnVal == JFileChooser.APPROVE_OPTION) {\n\t\t\tfilePath = fileChooser.getSelectedFile();\n\t\t}\n\t\t\n\t\tString tempPath = filePath.getAbsolutePath().toUpperCase();\n\t\t\n\t\ttry{\n\t\t\tif(type.equals(\"PNG\")){\n\t\t\t\tif(!tempPath.endsWith(\".PNG\"))\n\t\t\t\t\tfilePath = new File(tempPath+\".PNG\");\n\t\t\t\tChartUtilities.saveChartAsPNG(filePath, getChart(), width, height);\n\t\t\t}else if(type.equals(\"JPEG\")){\n\t\t\t\tif(!tempPath.endsWith(\".JPEG\"))\n\t\t\t\t\tfilePath = new File(tempPath+\".JPEG\");\n\t\t\t\tChartUtilities.saveChartAsJPEG(filePath, getChart(), width, height);\n\t\t\t}\n\t\t}catch(IOException ie){\n\t\t\t\n\t\t}\n\t\n\t}", "public static void imgToZip(BufferedImage image, int number, ZipOutputStream zipOS, String path){\n try {\n File tempImage = new File(path+ number +\".jpg\");\n ImageIO.write(image,\"jpg\",tempImage);\n createFileToZip(image, path, number, zipOS);\n tempImage.delete();\n } catch (IOException ex) {\n Logger.getLogger(ProjectePractiques.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public void writeImage(File file, String id) {\n try {\n FileInputStream in = new FileInputStream(file);\n PreparedStatement pstmt = conn.prepareStatement(\n \"UPDATE vehicles vehicles SET photo=? WHERE veh_reg_no = ?\");\n pstmt.setBinaryStream(1, (InputStream)in, (int)file.length());\n pstmt.setString(2, id);\n System.out.println(pstmt); // for debugging\n int returnCode = pstmt.executeUpdate();\n System.out.println(returnCode + \" record updated\");\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n }", "public void SaveActionPerformed(java.awt.event.ActionEvent evt) {\n if (jfcSave.showSaveDialog(this) == JFileChooser.APPROVE_OPTION){\r\n //get selected file name\r\n File fileSave = jfcSave.getSelectedFile();\r\n String fileSaveName = fileSave.toString();\r\n\r\n try {\r\n SaveScreenShot(drawingPanel,fileSaveName);\r\n } catch (Exception e){\r\n System.out.println(\"image failed to save!\");\r\n }\r\n }\r\n }", "public Save(BufferedImage image){\n\tthis.new_buff_image = image;\n }", "private void saveThumbnail(String filename) throws IOException {\n BufferedImage photo = ImageIO.read(new File(String.format(\"%s/%s\", getPhotoFilePath(false), filename)));\n BufferedImage croppedImage = makeSquare(photo);\n BufferedImage thumbnail = scale(croppedImage);\n ImageIO.write(thumbnail, \"jpg\", new File(String.format(\"%s/%s\", getPhotoFilePath(true), filename)));\n }", "public static void setImg(nsIDOMElement img, String fileImageName) {\r\n img.setAttribute(HTML.ATTR_SRC, \"file://\" //$NON-NLS-1$\r\n + getAbsoluteResourcePath(fileImageName).replace('\\\\', '/'));\r\n }", "private void izdelajPNG(int wSlika, int hSlika, File datoteka) {\n BufferedImage slika = new BufferedImage(wSlika, hSlika, BufferedImage.TYPE_INT_ARGB);\n\n Graphics2D g = slika.createGraphics();\n g.setColor(Color.WHITE);\n g.fillRect(0, 0, wSlika, hSlika);\n this.narisi(g, wSlika, hSlika);\n g.dispose();\n\n try {\n ImageIO.write(slika, \"png\", datoteka);\n } catch (IOException ex) {\n ex.printStackTrace(System.err);\n }\n }", "public static void saveImage3(int[] rgb, String saveName, int width, int height){\n \t\n // Ask the user for the name of the output file.\n// try{\n// saveName = imageMain.console.readLine();\n// }\n// catch(IOException e){ \n// System.out.println(e);\n// System.exit(1);\n// }\n\n // If saveName does not already end in .bmp, then add .bmp to saveName.\n saveName=bmpTack(saveName);\n\n // Combine the 8-bit red, green, blue, offset values into 32-bit words.\n\n // Write the data out to file with the name given by string saveName.\n BMPFile bmpf = new BMPFile();\n bmpf.saveBitmap(saveName, rgb, width, height);\n System.out.println(\"Saved \" + saveName);\n }", "public void saveImagePanel() throws IOException, ClassNotFoundException {\n\t\tFile archiveImage = null;\n\t\tarchiveImage = new File(\"CAMBIAR NOMBRE \");\n\t\tfile_chooser.setSelectedFile(archiveImage);\n\t\tif (file_chooser.showDialog(null, \"Guardar\") == JFileChooser.APPROVE_OPTION) {\n\t\t\tarchiveImage = file_chooser.getSelectedFile();\n\t\t\tif (archiveImage.getName().endsWith(\"jpg\") || archiveImage.getName().endsWith(\"png\")) {\n\t\t\t\t// realizar accion\n\t\t\t\tfileSeralization.saveFile(archiveImage);\n\t\t\t}\n\t\t}\n\t}", "public void saveAs() {\n MimsJFileChooser fileChooser = new MimsJFileChooser(ui);\n fileChooser.setSelectedFile(new File(ui.getLastFolder(), ui.getImageFilePrefix() + \".png\"));\n ResourceBundle localizationResources = ResourceBundleWrapper.getBundle(\"org.jfree.chart.LocalizationBundle\");\n ExtensionFileFilter filter = new ExtensionFileFilter(\n localizationResources.getString(\"PNG_Image_Files\"), \".png\");\n fileChooser.addChoosableFileFilter(filter);\n fileChooser.setFileFilter(filter);\n int option = fileChooser.showSaveDialog(chartpanel);\n if (option == MimsJFileChooser.APPROVE_OPTION) {\n String filename = fileChooser.getSelectedFile().getPath();\n if (!filename.endsWith(\".png\")) {\n filename = filename + \".png\";\n }\n try {\n ChartUtils.saveChartAsPNG(new File(filename), chartpanel.getChart(), getWidth(), getHeight());\n } catch (IOException ioe) {\n IJ.error(\"Unable to save file.\\n\\n\" + ioe.toString());\n }\n }\n }", "public boolean saveMapAsImage(File imageFile)\n {\n try {\n BufferedImage mapImage = new BufferedImage((int) mapComponent.getPreferredSize().getWidth(),\n (int) mapComponent.getPreferredSize().getHeight(),\n BufferedImage.TYPE_INT_ARGB);\n Graphics2D mapImageGraphics = mapImage.createGraphics();\n FileWriter\t\t\tmapWriter;\n \n if (!imageFile.canWrite())\n {\n ErrorHandler.displayError(\"Could not write to image file. Maybe it's locked.\", ErrorHandler.ERR_SAVE_FAIL);\n return false;\n }\n \n mapComponent.paint2d(mapImageGraphics);\n \n ImageIO.write(mapImage, \"png\", imageFile); \n return true;\n \n } catch (Exception e) {\n ErrorHandler.displayError(\"Could not write data to map file:\\n\" + e, ErrorHandler.ERR_SAVE_FAIL);\n return false;\n }\n }", "public static void Save(String filename) throws IOException {\n\t\tFileWriter fw=new FileWriter(filename);\r\n\t\tround=A1063307_GUI.round;\r\n\t\twho=A1063307_GUI.who2;\r\n\t\tfw.write(\"Round:\"+round+\",Turn:\"+who+\"\\n\");\r\n\t\tint t2=1;\r\n\t\twhile(t2<(linenumber)) {\r\n\t\t\tint zz=0;\r\n\t\t\twhile(zz<5) {\r\n\t\t\t\tif(zz==0) {\t\t\r\n\t\t\t\t\tch[t2].location=ch[t2].location%20;\r\n\t\t\t\t fw.write(Integer.toString(ch[t2].location)+\",\");\r\n\t\t\t\t}\r\n\t\t\t\telse if(zz==1){\r\n\t\t\t\t fw.write(Integer.toString(ch[t2].CHARACTER_NUMBER)+\",\");\r\n\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\telse if(zz==2){\r\n\t\t\t\t\tfw.write(Integer.toString(ch[t2].money)+\",\");\r\n\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t else if(zz==3){\r\n\t\t\t \tfw.write(Integer.toString(ch[t2].status)+\",\");\r\n\t\t\t \r\n\t\t\t \t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tfw.write(ch[t2].IMAGE_FILENAME);\t\t\t\t\r\n\t\t\t\t\t }\r\n\t\t\t\tzz++;\r\n\t\t\t}\r\n\t\t\tfw.write(\"\\n\");\r\n\t\t\tt2++;\r\n\t\t}\r\n\t\tfw.close();\r\n\t\tFileWriter fw1=new FileWriter(\"Land.txt\");\r\n\t\tfw1.write(\"LOCATION_NUMBER, owner\\n\");\r\n\t\tfor(int i=1;i<17;i++) {\r\n\t\t\tfw1.write(Land[i].PLACE_NUMBER+\",\"+Land[i].owner+\"\\n\");\r\n\t\t}\r\n\t\tfw1.close();\r\n\t}", "public OutputStream writeFile( String filename, FileType type );", "public native void setFileName(String fileName) throws MagickException;", "public void SaveScreenShot(Component component, String filename) throws Exception{\r\n BufferedImage imag = getScreenShot(component);\r\n ImageIO.write(imag, \"png\", new File(filename));\r\n }", "void saveImage(List<Elements> elements, int numOfArticles) throws IOException {\r\n //For simplicity, exceptions are not caught...\r\n URL url = null;\r\n HttpURLConnection conn = null;\r\n InputStream reader = null;\r\n FileOutputStream writer = null;\r\n byte[] buffer = null;\r\n\r\n for (int i = 0; i < numOfArticles; i++) {\r\n String urlName = elements.get(0).get(i).attr(\"src\");\r\n url = new URL(urlName);\r\n conn = (HttpURLConnection) url.openConnection();\r\n conn.setRequestProperty(\"User-Agent\", \"\");\r\n\r\n String imageName = url.getFile();\r\n imageName = imageName.substring(imageName.lastIndexOf(\"/\") + 1);\r\n\r\n reader = conn.getInputStream();\r\n writer = new FileOutputStream(new File(imageName));\r\n buffer = new byte[BUFFER_SIZE];\r\n int bytesRead = 0;\r\n while ((bytesRead = reader.read(buffer)) != -1) {\r\n writer.write(buffer, 0, bytesRead);\r\n }\r\n }\r\n if (writer != null) {\r\n writer.close();\r\n }\r\n if (reader != null) {\r\n reader.close();\r\n }\r\n }", "public synchronized static void saveGraph(String filename, String fileType, final IFigure printableFigure) \n\t\t\tthrows Exception {\n\t\tImage im = new Image(Display.getDefault(), printableFigure.getSize().width, printableFigure.getSize().height);\n\t\tGC gc = new GC(im);\n\t\t\n\t\t// fill the region in the AWT image with the transparent color\n\t\tSWTGraphics graphics = new SWTGraphics(gc);\n\t\ttry {\n\t\t\t// Needed because the clipping is not set with GTK2\n\t\t\tgraphics.setClip(new Rectangle(0, 0, im.getBounds().width, im.getBounds().height));\n\t\n\t\t\tprintableFigure.paint(graphics);\n\t\t\t// test for all possible file types\n\t\t\tif (!Arrays.asList(FILE_FORMATS).contains(fileType.toLowerCase())\n\t\t\t\t\t&& !Arrays.asList(FILE_TYPES).contains(fileType))\n\t\t\t\tthrow new RuntimeException(\"Cannot deal with file type \" + fileType);\n\t\n\t\t\t// This overrides given fileType!\n\t\t\t// If they have specified the file type in the file name, use that.\n\t\t\tString lname = filename.toLowerCase();\n\t\t\tif (lname.endsWith(\".png\") || lname.endsWith(\".jpg\") || lname.endsWith(\".jpeg\"))\n\t\t\t\tfileType = FILE_TYPES[0];\n\t\t\tif (lname.endsWith(\".ps\") || lname.endsWith(\".eps\"))\n\t\t\t\tfileType = FILE_TYPES[1];\n\t\t\tif (lname.endsWith(\".svg\"))\n\t\t\t\tfileType = FILE_TYPES[2];\n\t\t\tif (fileType.equals(FILE_TYPES[0])) {\n\t\t\t\tif (!lname.endsWith(\".png\") && !lname.endsWith(\".jpg\") && !lname.endsWith(\".jpeg\")) {\n\t\t\t\t\tfilename = filename + \".png\";\n\t\t\t\t\tlname = filename.toLowerCase();\n\t\t\t\t}\n\t\t\t\tImageLoader loader = new ImageLoader();\n\t\t\t\tloader.data = new ImageData[] { im.getImageData() };\n\t\t\t\tloader.save(filename, lname.endsWith(\".png\") ? SWT.IMAGE_PNG : SWT.IMAGE_JPEG);\n\t\t\t} else if (fileType.equals(FILE_TYPES[1])) {\n\t\t\t\tif (!lname.endsWith(\".ps\") && !lname.endsWith(\".eps\"))\n\t\t\t\t\tfilename = filename + \".ps\";\n\t\t\t\tsavePostScript(new File(filename), im);\n\t\t\t} else if (fileType.equals(FILE_TYPES[2])) {\n\t\t\t\tif (!lname.endsWith(\".svg\"))\n\t\t\t\t\tfilename = filename + \".svg\";\n\t\t\t\tfinal File file = new File(filename);\n\t\t\t\t// save to SVG process in a Job\n\t\t\t\tJob svgJob = new Job(\"Exporting to SVG\") {\n\t\t\t\t\tIStatus result = null;\n\t\t\t\t\t@Override\n\t\t\t\t\tprotected IStatus run(final IProgressMonitor monitor) {\n\t\t\t\t\t\tDisplayUtils.syncExec(new Runnable() {\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\tresult = saveSVG(printableFigure, file, monitor);\n\t\t\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\t\t\tresult = Status.CANCEL_STATUS;\n\t\t\t\t\t\t\t\t\tlogger.debug(\"Error writing to file:\"+e.toString());\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t\tif (result == null)\n\t\t\t\t\t\t\tresult = Status.CANCEL_STATUS;\n\t\t\t\t\t\treturn result;\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t\tsvgJob.setUser(true);\n\t\t\t\tsvgJob.schedule();\n\t\t\t} else {\n\t\t\t\tthrow new RuntimeException(\"Cannot process \" + fileType);\n\t\t\t}\n\t\t} finally {\n\t\t\tgraphics.dispose();\n\t\t\tgc.dispose();\n\t\t\tim.dispose();\n\t\t}\n\t}", "public void testWrite() throws IOException\n {\n Pic pic;\n ByteArrayOutputStream stream;\n\n pic = new Pic(ImageIO.read(new File(\"src/test/resources/pic/test.png\")));\n stream = new ByteArrayOutputStream();\n pic.write(stream);\n\n assertEquals(new File(\"src/test/resources/pic/test.pic\"), stream\n .toByteArray());\n }", "public void store_image(Images image) {\n\t\tir.save(image);\n\t}" ]
[ "0.78459", "0.7690569", "0.67233557", "0.62589455", "0.61728483", "0.61353636", "0.60797167", "0.6061902", "0.6033311", "0.59981954", "0.59888285", "0.59009445", "0.58392966", "0.57933855", "0.57717043", "0.5695968", "0.5584662", "0.55698127", "0.5569307", "0.5514998", "0.54833573", "0.5405832", "0.5369949", "0.5360412", "0.5320394", "0.52989435", "0.5253099", "0.52289516", "0.52231586", "0.5187319", "0.5133798", "0.5076701", "0.50764835", "0.5071199", "0.5052477", "0.50387716", "0.49740696", "0.4965626", "0.49596325", "0.49396735", "0.49366012", "0.49357337", "0.49356163", "0.49238545", "0.49201527", "0.48944137", "0.48562136", "0.48478076", "0.4834947", "0.4833297", "0.4820078", "0.48123664", "0.48121697", "0.48082113", "0.4783937", "0.47765693", "0.4774709", "0.47360265", "0.47341684", "0.47250932", "0.4721859", "0.47211713", "0.471963", "0.47049546", "0.4684519", "0.4679537", "0.46764186", "0.46758384", "0.46563652", "0.46537066", "0.46397433", "0.46370554", "0.46077693", "0.46064746", "0.46049374", "0.45954034", "0.4580618", "0.45718634", "0.45600334", "0.45352352", "0.45332295", "0.452935", "0.45271537", "0.4521416", "0.4514277", "0.4509779", "0.450823", "0.4496538", "0.44874942", "0.44859287", "0.44770175", "0.44740164", "0.4464711", "0.44630638", "0.44617072", "0.44482663", "0.44307864", "0.4429031", "0.4427801", "0.4402415" ]
0.6939393
2
Fill with Perlin noise
@Override protected void generateAreas() { PerlinNoise noise = new PerlinNoise(new Random().nextInt(), xmasTemplate.getScale(), xmasTemplate.getOctaves(), xmasTemplate.getPersistence()); for (int y = 0; y < getHeight(); y ++) { for (int x = 0; x < getWidth(); x ++) { if (getValue(x, y) != BASE) { if (noise.perlinNoise(x, y) > xmasTemplate.getThreshold()) { setValue(x, y, WALL); } else { setValue(x, y, FLOOR); } } } } // Fill east, west and south for (int x = 0; x < getWidth(); x ++) { drawArea(x, 0, CosineInterpolator.instance.interpolate(2.0f, 6.0f, (float) Math.random()), WALL); } for (int y = 0; y < getHeight(); y ++) { drawArea(0, y, CosineInterpolator.instance.interpolate(2.0f, 6.0f, (float) Math.random()), WALL); drawArea(getWidth() - 1, y, CosineInterpolator.instance.interpolate(2.0f, 6.0f, (float) Math.random()), WALL); } // Draw random blotch lines between each base first ArrayList<Point> basesCopy = new ArrayList<Point>(getBases()); for (int i = 0; i < basesCopy.size(); i ++) { Point p1 = basesCopy.get(i); int j = Util.random(0, basesCopy.size() - 1); Point p2 = basesCopy.get(j); basesCopy.set(i, p2); basesCopy.set(j, p1); } Point s = basesCopy.get(0), t; drawArea(s.getX(), s.getY(), (xmasTemplate.getMinMainTunnelWidth() + xmasTemplate.getMaxMainTunnelWidth()) / 2.0f, FLOOR); for (int i = 0; i < basesCopy.size() - 1; i ++) { s = basesCopy.get(i); t = basesCopy.get(i + 1); drawLine(s.getX(), s.getY(), t.getX(), t.getY(), xmasTemplate.getMinMainTunnelWidth(), xmasTemplate.getMaxMainTunnelWidth(), FLOOR); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int noise(int xin, int yin, int zin);", "M generateNoise();", "@Override\r\n\tprotected void generateAreas() {\n\t\tPerlinNoise noise = new PerlinNoise((int) getSeed(), perlinTemplate.getScale(), perlinTemplate.getOctaves(), perlinTemplate.getPersistence());\r\n\t\tfor (int y = 0; y < getHeight(); y ++) {\r\n\t\t\tfor (int x = 0; x < getWidth(); x ++) {\r\n\t\t\t\tif (getValue(x, y) != BASE) {\r\n\t\t\t\t\tif (noise.perlinNoise(x, y) > perlinTemplate.getThreshold()) {\r\n\t\t\t\t\t\tsetValue(x, y, WALL);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tsetValue(x, y, FLOOR);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private float noise(Vector2 point) {\n\t\tVector2 bottomLeft = randomGrid[(int) point.x][(int) point.y];\n\t\tVector2 topLeft = randomGrid[(int) point.x][(int) point.y + 1];\n\t\tVector2 bottomRight = randomGrid[(int) point.x + 1][(int) point.y];\n\t\tVector2 topRight = randomGrid[(int) point.x + 1][(int) point.y + 1];\n\n\t\tfloat bottomLeftValue = bottomLeft.dot(point.cpy().scl(-1).add((int) point.x, (int) point.y));\n\t\tfloat topLeftValue = topLeft.dot(point.cpy().scl(-1).add((int) point.x, (int) point.y + 1));\n\t\tfloat bottomRightValue = bottomRight.dot(point.cpy().scl(-1).add((int) point.x + 1, (int) point.y));\n\t\tfloat topRightValue = topRight.dot(point.cpy().scl(-1).add((int) point.x + 1, (int) point.y + 1));\n\n\t\tfloat bottomValue = bottomLeftValue * (1 - point.x % 1) + bottomRightValue * (point.x % 1);\n\t\tfloat topValue = topLeftValue * (1 - point.x % 1) + topRightValue * (point.x % 1);\n\t\tfloat value = bottomValue * (1 - point.y % 1) + topValue * (point.y % 1);\n\n\t\treturn value;\n\t}", "public static @NotNull Image genNoisePerlin(int width, int height, int offsetX, int offsetY, double scale)\n {\n Color.Buffer pixels = Color.malloc(ColorFormat.RGBA, width * height);\n \n for (int j = 0; j < height; j++)\n {\n for (int i = 0; i < width; i++)\n {\n float nx = (i + offsetX) * (float) scale / width;\n float ny = (j + offsetY) * (float) scale / height;\n \n // Typical values to start playing with:\n // lacunarity = ~2.0 -- spacing between successive octaves (use exactly 2.0 for wrapping output)\n // gain = 0.5 -- relative weighting applied to each successive octave\n // octaves = 6 -- number of \"octaves\" of noise3() to sum\n \n // NOTE: We need to translate the data from [-1..1] to [0..1]\n float p = (stb_perlin_fbm_noise3(nx, ny, 1.0F, 2.0F, 0.5F, 6) + 1.0F) / 2.0F;\n \n pixels.put(j * width + i, (int) (p * 255), 255);\n }\n }\n \n return new Image(pixels, width, height, 1, ColorFormat.RGBA);\n }", "public static float perlin2D(float x, float y) {\n float total = 0.0f;\n\n for (int i = 0; i < OCTAVES; i++) {\n //These values can be changed for desired terrain gen\n //We selected these to work well\n float frequency = 0.05f;\n float amplitude = 4;\n\n total += Noise2D.interpolate(x * frequency, y * frequency, Noise1D.primes[0]) * amplitude;\n }\n\n return total;\n }", "public abstract void makeNoise();", "private static double[] addNominalNoise(double[] in, double noiseProbability, int startCol, int endCol, \n\t\t\tMatrix data, Random rand)\n\t{\n assert noiseProbability <= 1.00001 && noiseProbability >= -0.00001;\n\t\tdouble[] result = new double[in.length];\n\t\tfor (int i = 0; i < result.length; i++)\n\t\t{\n\t\t\tresult[i] = in[i];\n\t\t\tif (i < startCol || i >= endCol)\n\t\t\t\tcontinue;\n\t\t\tif (rand.nextFloat() <= noiseProbability)\n\t\t\t{\n//\t\t\t\tresult[i] = rand.nextInt(data.valueCount(i));\n\t\t\t\tif (rand.nextBoolean())\n\t\t\t\t{\n\t\t\t\t\tresult[i] += 1;\n\t\t\t\t\tif (result[i] > data.getValueCount(i) - 1)\n\t\t\t\t\t\tresult[i] = 0;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tresult [i] -= 1;\n\t\t\t\t\tif (result[i] < 0)\n\t\t\t\t\t\tresult[i] = data.getValueCount(i) - 1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "public Particle(Point[] landmarks, int width, int height) {\r\n this.landmarks = landmarks;\r\n this.worldWidth = width;\r\n this.worldHeight = height;\r\n random = new Random();\r\n x = random.nextFloat() * width;\r\n y = random.nextFloat() * height;\r\n orientation = random.nextFloat() * 2f * ((float)Math.PI);\r\n forwardNoise = 0f;\r\n turnNoise = 0f;\r\n senseNoise = 0f; \r\n }", "void calcWave() {\n yoff += 0.01f;\n \n //For every x value, calculate a y value based on sine or cosine\n float x = yoff; //**OPTION #1****/\n //float x = 0.0f; //**OPTION #2****/\n for (int i = 0; i < yvalues.length; i++) {\n float n = 2*noise(x)-1.0f; //**OPTION #1****/ //scale noise to be between 1 and -1\n //float n = 2*noise(x,yoff)-1.0f; //**OPTION #2****/ //scale noise to be between 1 and -1\n yvalues[i] = n*amplitude;\n x+=dx;\n }\n }", "private double noise(SpIterNoiseObs noise) {\n return 3.0 * 60.0;\n }", "public void jitter() {\n // jitter +- 20% of the value\n double amount = 0.20;\n double change = 1.0 - amount + (Evolve.getRandomNumber() * amount * 2); \n value *= change;\n }", "public Builder clearNoise() {\n bitField0_ = (bitField0_ & ~0x00010000);\n noise_ = getDefaultInstance().getNoise();\n onChanged();\n return this;\n }", "public void calculate() {\n float xoff = 0;\n for (int i = 0; i < cols; i++)\n { \n float yoff = 0;\n for (int j = 0; j < rows; j++)\n {\n z[i][j] = map(noise(xoff, yoff,zoff), 0, 1, -120, 120);\n yoff += 0.1f;\n }\n xoff += 0.1f;\n }\n zoff+=0.01f;\n }", "public void fillVector(){\n int n = min.length;\n for (int i = 0; i < n; i++) {\n this.x[i] = min.x[i] + (max.x[i] - min.x[i])*rn.uniformDeviate();\n }\n }", "public void populateNoiseArray(double[] p_76308_1_, double p_76308_2_, double p_76308_4_, double p_76308_6_, int p_76308_8_, int p_76308_9_, int p_76308_10_, double p_76308_11_, double p_76308_13_, double p_76308_15_, double p_76308_17_) {\n/* 81 */ if (p_76308_9_ == 1) {\n/* */ \n/* 83 */ boolean var64 = false;\n/* 84 */ boolean var65 = false;\n/* 85 */ boolean var21 = false;\n/* 86 */ boolean var68 = false;\n/* 87 */ double var70 = 0.0D;\n/* 88 */ double var73 = 0.0D;\n/* 89 */ int var75 = 0;\n/* 90 */ double var77 = 1.0D / p_76308_17_;\n/* */ \n/* 92 */ for (int var30 = 0; var30 < p_76308_8_; var30++) {\n/* */ \n/* 94 */ double var31 = p_76308_2_ + var30 * p_76308_11_ + this.xCoord;\n/* 95 */ int var78 = (int)var31;\n/* */ \n/* 97 */ if (var31 < var78)\n/* */ {\n/* 99 */ var78--;\n/* */ }\n/* */ \n/* 102 */ int var34 = var78 & 0xFF;\n/* 103 */ var31 -= var78;\n/* 104 */ double var35 = var31 * var31 * var31 * (var31 * (var31 * 6.0D - 15.0D) + 10.0D);\n/* */ \n/* 106 */ for (int var37 = 0; var37 < p_76308_10_; var37++)\n/* */ {\n/* 108 */ double var38 = p_76308_6_ + var37 * p_76308_15_ + this.zCoord;\n/* 109 */ int var40 = (int)var38;\n/* */ \n/* 111 */ if (var38 < var40)\n/* */ {\n/* 113 */ var40--;\n/* */ }\n/* */ \n/* 116 */ int var41 = var40 & 0xFF;\n/* 117 */ var38 -= var40;\n/* 118 */ double var42 = var38 * var38 * var38 * (var38 * (var38 * 6.0D - 15.0D) + 10.0D);\n/* 119 */ int var19 = this.permutations[var34] + 0;\n/* 120 */ int var66 = this.permutations[var19] + var41;\n/* 121 */ int var67 = this.permutations[var34 + 1] + 0;\n/* 122 */ int var22 = this.permutations[var67] + var41;\n/* 123 */ var70 = lerp(var35, func_76309_a(this.permutations[var66], var31, var38), grad(this.permutations[var22], var31 - 1.0D, 0.0D, var38));\n/* 124 */ var73 = lerp(var35, grad(this.permutations[var66 + 1], var31, 0.0D, var38 - 1.0D), grad(this.permutations[var22 + 1], var31 - 1.0D, 0.0D, var38 - 1.0D));\n/* 125 */ double var79 = lerp(var42, var70, var73);\n/* 126 */ int var10001 = var75++;\n/* 127 */ p_76308_1_[var10001] = p_76308_1_[var10001] + var79 * var77;\n/* */ }\n/* */ \n/* */ } \n/* */ } else {\n/* */ \n/* 133 */ int var19 = 0;\n/* 134 */ double var20 = 1.0D / p_76308_17_;\n/* 135 */ int var22 = -1;\n/* 136 */ boolean var23 = false;\n/* 137 */ boolean var24 = false;\n/* 138 */ boolean var25 = false;\n/* 139 */ boolean var26 = false;\n/* 140 */ boolean var27 = false;\n/* 141 */ boolean var28 = false;\n/* 142 */ double var29 = 0.0D;\n/* 143 */ double var31 = 0.0D;\n/* 144 */ double var33 = 0.0D;\n/* 145 */ double var35 = 0.0D;\n/* */ \n/* 147 */ for (int var37 = 0; var37 < p_76308_8_; var37++) {\n/* */ \n/* 149 */ double var38 = p_76308_2_ + var37 * p_76308_11_ + this.xCoord;\n/* 150 */ int var40 = (int)var38;\n/* */ \n/* 152 */ if (var38 < var40)\n/* */ {\n/* 154 */ var40--;\n/* */ }\n/* */ \n/* 157 */ int var41 = var40 & 0xFF;\n/* 158 */ var38 -= var40;\n/* 159 */ double var42 = var38 * var38 * var38 * (var38 * (var38 * 6.0D - 15.0D) + 10.0D);\n/* */ \n/* 161 */ for (int var44 = 0; var44 < p_76308_10_; var44++) {\n/* */ \n/* 163 */ double var45 = p_76308_6_ + var44 * p_76308_15_ + this.zCoord;\n/* 164 */ int var47 = (int)var45;\n/* */ \n/* 166 */ if (var45 < var47)\n/* */ {\n/* 168 */ var47--;\n/* */ }\n/* */ \n/* 171 */ int var48 = var47 & 0xFF;\n/* 172 */ var45 -= var47;\n/* 173 */ double var49 = var45 * var45 * var45 * (var45 * (var45 * 6.0D - 15.0D) + 10.0D);\n/* */ \n/* 175 */ for (int var51 = 0; var51 < p_76308_9_; var51++) {\n/* */ \n/* 177 */ double var52 = p_76308_4_ + var51 * p_76308_13_ + this.yCoord;\n/* 178 */ int var54 = (int)var52;\n/* */ \n/* 180 */ if (var52 < var54)\n/* */ {\n/* 182 */ var54--;\n/* */ }\n/* */ \n/* 185 */ int var55 = var54 & 0xFF;\n/* 186 */ var52 -= var54;\n/* 187 */ double var56 = var52 * var52 * var52 * (var52 * (var52 * 6.0D - 15.0D) + 10.0D);\n/* */ \n/* 189 */ if (var51 == 0 || var55 != var22) {\n/* */ \n/* 191 */ var22 = var55;\n/* 192 */ int var69 = this.permutations[var41] + var55;\n/* 193 */ int var71 = this.permutations[var69] + var48;\n/* 194 */ int var72 = this.permutations[var69 + 1] + var48;\n/* 195 */ int var74 = this.permutations[var41 + 1] + var55;\n/* 196 */ int var75 = this.permutations[var74] + var48;\n/* 197 */ int var76 = this.permutations[var74 + 1] + var48;\n/* 198 */ var29 = lerp(var42, grad(this.permutations[var71], var38, var52, var45), grad(this.permutations[var75], var38 - 1.0D, var52, var45));\n/* 199 */ var31 = lerp(var42, grad(this.permutations[var72], var38, var52 - 1.0D, var45), grad(this.permutations[var76], var38 - 1.0D, var52 - 1.0D, var45));\n/* 200 */ var33 = lerp(var42, grad(this.permutations[var71 + 1], var38, var52, var45 - 1.0D), grad(this.permutations[var75 + 1], var38 - 1.0D, var52, var45 - 1.0D));\n/* 201 */ var35 = lerp(var42, grad(this.permutations[var72 + 1], var38, var52 - 1.0D, var45 - 1.0D), grad(this.permutations[var76 + 1], var38 - 1.0D, var52 - 1.0D, var45 - 1.0D));\n/* */ } \n/* */ \n/* 204 */ double var58 = lerp(var56, var29, var31);\n/* 205 */ double var60 = lerp(var56, var33, var35);\n/* 206 */ double var62 = lerp(var49, var58, var60);\n/* 207 */ int var10001 = var19++;\n/* 208 */ p_76308_1_[var10001] = p_76308_1_[var10001] + var62 * var20;\n/* */ } \n/* */ } \n/* */ } \n/* */ } \n/* */ }", "public Point getFinalPoint(int maxX, int maxY, double noise, double percentOfExcess, int x, int y) {\n Point alteredPoint = new Point();\n //Alter coords\n double maxXRange = maxX * noise; //Now we have the max number that could be added to the actual x coord. The range will be composed of 0 - maxRange\n double maxYRange = maxY * noise; //Getting the X and Y value according to the noise percent.\n\n //Lets get the formula for determine which value between 0 and RANGE would be added acording to the level\n //Cero for 0% of excess, maxRange for 100% of excess\n //Solve y=ax^2\n\n double a_x = maxXRange / (100 * 100);\n double a_y = maxYRange / (100 * 100);\n\n //Then, lets look for a random number with the help of the number that the formula throw in this kind of range: -6 form < form < + 6 form\n //By this way, we could ensure that the directions will probably not be the same in a short time\n\n\n double noiseX = getNoiseAccordingExcessPercent(a_x, percentOfExcess); //This noise is direclty proportional to the percentOfExcess on breathing rate\n double noiseY = getNoiseAccordingExcessPercent(a_y, percentOfExcess);\n\n //If you want to be more accurate, you can use different values for different levels\n int minimum = 10;//< If you want to change in what excess the user will note a bigger change in the robot control, change this.\n\n noiseX += minimum;\n noiseY += minimum; //By this way, we ensure that also in low levels, we will get a minimum noise of 25. for example at 1% of excess\n\n int adjust = 6;//For make the range\n\n alteredPoint.x = getAlteredPointOfCoord(x, (int) noiseX, adjust);\n alteredPoint.y = getAlteredPointOfCoord(y, (int) noiseY, adjust);\n\n //Just to stay in bounds\n if (alteredPoint.x >= maxX) { //Because if we reach the max, it's like start again\n alteredPoint.x = maxX - 1;\n } else if (alteredPoint.y >= maxY) {\n alteredPoint.y = maxY - 1;\n }\n return alteredPoint;\n }", "public float getNoise(int x, int y) {\n\t\treturn getRealNoise(x * .3f, y * .3f);\n\t}", "public void injectSomeMoreNoise(double intensity) {\n//\t\taddBSCnoise(lambda,intensity);\n\t\t\n//\t\taddBSCnoise(posterior, intensity);\n//\t\tfor (int i=0; i<n; i++) lambda[i] = posterior[i];\n//\t\tcalc_q0 (posterior);\n//\n//\t\t// initialization of beta\n//\t\tfor (int i = 0; i <= m - 1; i++) {\n//\t\t\tfor (int j = 0; j <= row_weight[i] - 1; j++) {\n//\t\t\t\tbeta[i][j] = 0.0;\n//\t\t\t}\n//\t\t}\t\t\n\t\t\n\t}", "public LandmarkColorBlendInterpolation(double polyDegree) {\n\tthis.landmarkValues = new ArrayList<Double>();\n\tthis.landmarkColors = new ArrayList<Color>();\n\tthis.polyDegree = polyDegree;\n }", "public void addBSCnoise(double[] lambda, double p) {\n\t\tdouble llr = Math.log((1 - p) / p);\n\t\tfor (int i = 0; i < n; i++)\n\t\t\tlambda[i] += (Math.random() < p ? -llr : llr);\t\n\t}", "public static double noise(double x, double y, double z) {\n\n\t\tdouble s = (x+y+z)/3.0;\n\t\ti = fastfloor(x+s); j = fastfloor(y+s); k = fastfloor(z+s);\n\t\ts = (i+j+k)/6.0; u = x-i+s; v = y-j+s; w = z-k+s;\n\t\tA[0] = A[1] = A[2] = 0;\n\t\tint hi = (u>=w ? (u>=v ? 0 : 1) : (v>=w ? 1 : 2));\n\t\tint lo = (u< w ? (u< v ? 0 : 1) : (v< w ? 1 : 2));\n\t\treturn 4.0 * (K(hi) + K(3-hi-lo) + K(lo) + K(0));\n\t}", "public ZiplineLightData() {\n\t\tsamplePoints = new int[SAMPLE_POINTS];\n\t\tArrays.fill(samplePoints, -1);\n\t}", "private void fill(int x, int y, int nv) {\r\n int l, x1, x2, dy;\r\n int ov;\r\n \r\n stack = new Stack();\r\n ov = pixelread(x, y); /* read pv at seed point */\r\n //System.out.println(\"Calling Fill: \" + x + \"@\" + y + \" \" + ov + \"/\" + nv);\r\n if (ov == Color.black.getRGB() || ov == nv || x < wx1 || x > wx2\r\n || y < wy1 || y > wy2) {\r\n return;\r\n }\r\n\r\n push(y, x, x, 1);\r\n push(y + 1, x, x, -1); /* seed segment (popped 1st) */\r\n\r\n while (!stack.empty()) {\r\n\r\n /* pop segment off stack and fill a neighboring scan line */\r\n int[] top = (int[]) stack.pop();\r\n\r\n dy = top[3];\r\n y = top[0] + dy;\r\n x1 = top[1];\r\n x2 = top[2];\r\n \r\n /*\r\n * segment of scan line y-dy for x1<=x<=x2 was\r\n * previously filled, now explore adjacent pixels\r\n * in scan line y\r\n */\r\n for (x = x1; x >= wx1 && pixelread(x, y) == ov; x--) {\r\n pixelwrite(x, y, nv);\r\n }\r\n if (x >= x1) {\r\n for (;;) {\r\n\t\t for (x++; x <= x2 && pixelread(x, y) == Color.BLACK.getRGB(); x++) {\t\t\t\r\n //for (x++; x <= x2 && pixelread(x, y) != ov; x++) {\r\n ;\r\n }\r\n l = x;\r\n if (x > x2) {\r\n break;\r\n }\r\n\t\t for (; x <= wx2 && pixelread(x, y) != Color.BLACK.getRGB(); x++) {\r\n //for (; x <= wx2 && pixelread(x, y) == ov; x++) {\r\n pixelwrite(x, y, nv);\r\n }\r\n push(y, l, x - 1, dy);\r\n if (x > x2 + 1) {\r\n push(y, x2 + 1, x - 1, -dy);\r\n }\r\n }\r\n } else {\r\n l = x + 1;\r\n if (l < x1) {\r\n push(y, l, x1 - 1, -dy);\r\n }\r\n x = x1 + 1;\r\n do {\r\n for (; x <= wx2 && pixelread(x, y) != Color.BLACK.getRGB(); x++) {\t\t\t\r\n //for (; x <= wx2 && pixelread(x, y) == ov; x++) {\r\n pixelwrite(x, y, nv);\r\n }\r\n push(y, l, x - 1, dy);\r\n if (x > x2 + 1) {\r\n push(y, x2 + 1, x - 1, -dy);\r\n }\r\n\t\t for (x++; x <= x2 && pixelread(x, y) == Color.BLACK.getRGB(); x++) {\r\n //for (x++; x <= x2 && pixelread(x, y) != ov; x++) {\r\n ;\r\n }\r\n l = x;\r\n } while (x <= x2);\r\n }\r\n }\r\n }", "@Override\n\tpublic void makeNoise() {\n\t\tSystem.out.println(\"Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink \");\n\t}", "private static void filterNoise(BufferedImage image) {\n\t\tfor (int x=0; x<image.getWidth(); x++) {\r\n\t\t\tfor (int y=0; y<image.getHeight(); y++) {\r\n\t\t\t\t\r\n\t\t\t\tint pixelVal = image.getRGB(x, y);\r\n\r\n\t\t\t\t// check how many pixels in a 2 x 2 rectangle with this point \r\n\t\t\t\t// in the center have the same color as this point; if not \r\n\t\t\t\t// many, flip this pixel's color\r\n\t\t\t\tint startX = Math.max(x-2, 0);\r\n\t\t\t\tint startY = Math.max(y-2, 0);\r\n\t\t\t\tint endX = Math.min(x+2, image.getWidth()-1);\r\n\t\t\t\tint endY = Math.min(y+2, image.getHeight()-1);\r\n\r\n\t\t\t\tint matchCount = 0;\r\n\t\t\t\tint totalCount = 0;\r\n\t\t\t\tfor (int i=startX; i<=endX; i++) {\r\n\t\t\t\t\tfor (int j=startY; j<=endY; j++) {\r\n\t\t\t\t\t\tif (image.getRGB(i,j) == pixelVal) {\r\n\t\t\t\t\t\t\tmatchCount++;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\ttotalCount++;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif ((matchCount / (double) totalCount) < .2) {\r\n\t\t\t\t\tif (pixelVal == Color.YELLOW.getRGB()) {\r\n\t\t\t\t\t\timage.setRGB(x, y, Color.BLACK.getRGB());\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\timage.setRGB(x, y, Color.YELLOW.getRGB());\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif (debug) {\r\n\t\t\ttry {\r\n\t\t\t\tImageIO.write(image, \"gif\", new File(\"noiseFiltered.gif\"));\r\n\t\t\t} catch (Exception e) {e.printStackTrace();}\r\n\t\t}\r\n\t}", "public void init() {\n float xoff = 0;\n for (int i = 0; i < cols; i++) {\n float yoff = 0;\n for (int j = 0; j < rows; j++) {\n // Use perlin noise to get an angle between 0 and 2 PI\n float theta = map(noise(xoff,yoff),0,1,0,TWO_PI);\n // Polar to cartesian coordinate transformation to get x and y components of the vector\n field[i][j] = new PVector(cos(theta),sin(theta));\n yoff += 0.1f;\n }\n xoff += 0.1f;\n }\n }", "private void fill() {\n\t\tseries1.clear();\n\t\tint m = 50;\n\t\tdouble tmpX, tmpZ;\n\n\t\tfor (double x=-m; x <= +m; x++) {\n\t\t\ttmpX = MathUtils.sqr(x/30);\n\t\t\tfor (double z=-m; z <= +m; z++) {\n\t\t\t\ttmpZ = MathUtils.sqr(z/30);\n\t\t\t\ttmpZ = Math.sqrt(tmpX+tmpZ);\n\t\t\t\tseries1.add(x, 4*Math.cos(3*tmpZ)*Math.exp(-0.5*tmpZ), z);\n\t\t\t}\n\t\t}\n\t }", "public void speckle() {\n\t\tint r = (height / res) - 1;\n\t\tint c = (width / res);\n\t\tfor (int i = 0; i < c; i++)\t\t{\n\t\t\tint x = rng.nextInt(25);\t\t\t\n\t\t\tif (x == 0) { // 1/25 chance of changing bottom row pixel to black\t \n\t\t\t\tvalues[r][i] = color1;\t\t\t\t\n\t\t\t}\n\t\t\telse if (x == 1) { // 1/25 chance of changing bottom row pixel to white\n\t\t\t\tvalues[r][i] = color2;\n\t\t\t}\n\t\t\t// 23/25 chance of leaving bottom pixel alone\n\t\t}\n\t}", "public static @NotNull Image genNoiseWhite(int width, int height, double factor)\n {\n Color.Buffer pixels = Color.malloc(ColorFormat.RGBA, width * height);\n \n Random random = new Random();\n \n for (int i = 0, n = width * height; i < n; i++) pixels.put(i, random.nextDouble() < factor ? Color.WHITE : Color.BLACK);\n \n return new Image(pixels, width, height, 1, ColorFormat.RGBA);\n }", "public final void initNoiseBuffer(final int w, final int h) {\n width = w;\n height = h;\n noiseBuffer = new float[h][w];\n }", "public void permutate(float[] x) {\n for (int i = 0; i < x.length; i++) {\n int j = i + nextInt(x.length - i);\n Math.swap(x, i, j);\n }\n }", "public void makeNoise() {\n\t\tfor (Animal a : animals) {\n\t\t\ta.makeNoise();\n\t\t}\n\t}", "private void resample(){\n\n\t\tint iRow;\n\t\t\n\t\t//saving copies\n\t\tif(rgdX0==null){\n\t\t\trgdX0=rgdX;\n\t\t\trgdY0=rgdY;\n\t\t}\n\t\t\n\t\t//initializing resamples\n\t\trgdX = new double[rgdX0.length][rgdX0[0].length];\n\t\trgdY = new double[rgdY0.length];\n\t\t\n\t\t//resampling\n\t\tfor(int i=0;i<rgdX.length;i++){\n\t\t\tiRow = rnd1.nextInt(rgdX.length);\n\t\t\tfor(int j=0;j<rgdX[0].length;j++){\n\t\t\t\trgdX[i][j]=rgdX0[iRow][j];\n\t\t\t}\n\t\t\trgdY[i]=rgdY0[iRow];\n\t\t}\n\t\tloadData(rgdX,rgdY);\n\t\tthis.mapCoefficients=null;\n\t}", "@Override\n public void setSeed(final int[] seeds) {\n// Needed if this is a subclass of java.util.Random. (Before Java 7)\n// \n// if (parameter == null) {\n// return;\n// }\n final int lag = 1;\n final int mid = 1;\n final int size = 4;\n int i, j;\n int count;\n int r;\n int keyLength = seeds.length;\n int[] status = { 0,\n parameter.getMat1(),\n parameter.getMat2(),\n parameter.getTmat() };\n if (keyLength + 1 > MIN_LOOP) {\n count = keyLength + 1;\n } else {\n count = MIN_LOOP;\n }\n r = iniFunc1(status[0] ^ status[mid % size]\n ^ status[(size - 1) % size]);\n status[mid % size] += r;\n r += keyLength;\n status[(mid + lag) % size] += r;\n status[0] = r;\n count--;\n for (i = 1, j = 0; (j < count) && (j < keyLength); j++) {\n r = iniFunc1(status[i % size] ^ status[(i + mid) % size]\n ^ status[(i + size - 1) % size]);\n status[(i + mid) % size] += r;\n r += seeds[j] + i;\n status[(i + mid + lag) % size] += r;\n status[i % size] = r;\n i = (i + 1) % size;\n }\n for (; j < count; j++) {\n r = iniFunc1(status[i % size] ^ status[(i + mid) % size]\n ^ status[(i + size - 1) % size]);\n status[(i + mid) % size] += r;\n r += i;\n status[(i + mid + lag) % size] += r;\n status[i % size] = r;\n i = (i + 1) % size;\n }\n for (j = 0; j < size; j++) {\n r = iniFunc2(status[i % size] + status[(i + mid) % size]\n + status[(i + size - 1) % size]);\n status[(i + mid) % size] ^= r;\n r -= i;\n status[(i + mid + lag) % size] ^= r;\n status[i % size] = r;\n i = (i + 1) % size;\n }\n st0 = status[0];\n st1 = status[1];\n st2 = status[2];\n st3 = status[3];\n periodCertification();\n for (i = 0; i < MIN_LOOP; i++) {\n nextState();\n }\n clear();\n }", "public static void fill(int[] array,int start,int ende){\n\tfor (int c=0; c<array.length; c++){\r\n\t\tRandom rand = new Random(); \r\n\t\tarray[c] = rand.nextInt(ende+1-start) + start;\r\n\t}\r\n\tSystem.out.print(\"\\n\");\r\n}", "protected OffsetDistributionFunction ( ProbabilityDensityFunction p,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdouble x)\n{\n\tprobabilityDensity = p;\n\toffset = x;\n}", "public native MagickImage reduceNoiseImage(double radius)\n\t\t\tthrows MagickException;", "public double getYNoise(double x, double z)\n {\n double var11 = 0.5D * (square3 - 1.0D);\n double var13 = (x + z) * var11;\n int var15 = fastFloor(x + var13);\n int var16 = fastFloor(z + var13);\n double var17 = (3.0D - square3) / 6.0D;\n double var19 = (double)(var15 + var16) * var17;\n double var21 = (double)var15 - var19;\n double var23 = (double)var16 - var19;\n double var25 = x - var21;\n double var27 = z - var23;\n byte var29;\n byte var30;\n\n if (var25 > var27)\n {\n var29 = 1;\n var30 = 0;\n }\n else\n {\n var29 = 0;\n var30 = 1;\n }\n\n double var31 = var25 - (double)var29 + var17;\n double var33 = var27 - (double)var30 + var17;\n double var35 = var25 - 1.0D + 2.0D * var17;\n double var37 = var27 - 1.0D + 2.0D * var17;\n int var39 = var15 & 255;\n int var40 = var16 & 255;\n int var41 = this.permutationTable[var39 + this.permutationTable[var40]] % 12;\n int var42 = this.permutationTable[var39 + var29 + this.permutationTable[var40 + var30]] % 12;\n int var43 = this.permutationTable[var39 + 1 + this.permutationTable[var40 + 1]] % 12;\n double var44 = 0.5D - var25 * var25 - var27 * var27;\n double var5;\n\n if (var44 < 0.0D)\n {\n var5 = 0.0D;\n }\n else\n {\n var44 *= var44;\n var5 = var44 * var44 * dot(grad3[var41], var25, var27);\n }\n\n double var46 = 0.5D - var31 * var31 - var33 * var33;\n double var7;\n\n if (var46 < 0.0D)\n {\n var7 = 0.0D;\n }\n else\n {\n var46 *= var46;\n var7 = var46 * var46 * dot(grad3[var42], var31, var33);\n }\n\n double var48 = 0.5D - var35 * var35 - var37 * var37;\n double var9;\n\n if (var48 < 0.0D)\n {\n var9 = 0.0D;\n }\n else\n {\n var48 *= var48;\n var9 = var48 * var48 * dot(grad3[var43], var35, var37);\n }\n\n return 70.0D * (var5 + var7 + var9);\n }", "void dither();", "void dither();", "public void setNoise(double noiseCoefficient) {\n this.noiseCoefficient = noiseCoefficient;\n }", "private double noise(final double xin, final double yin, final double zin) {\n double n0, n1, n2, n3;\n double s = (xin + yin + zin) * F3;\n int i = fastfloor(xin + s);\n int j = fastfloor(yin + s);\n int k = fastfloor(zin + s);\n double t = (i + j + k) * G3;\n double x0 = xin - (i - t);\n double y0 = yin - (j - t);\n double z0 = zin - (k - t);\n int i1, j1, k1;\n int i2, j2, k2;\n if (x0 >= y0) {\n if (y0 >= z0) {\n i1 = 1;\n j1 = 0;\n k1 = 0;\n i2 = 1;\n j2 = 1;\n k2 = 0;\n } else if (x0 >= z0) {\n i1 = 1;\n j1 = 0;\n k1 = 0;\n i2 = 1;\n j2 = 0;\n k2 = 1;\n } else {\n i1 = 0;\n j1 = 0;\n k1 = 1;\n i2 = 1;\n j2 = 0;\n k2 = 1;\n }\n } else {\n if (y0 < z0) {\n i1 = 0;\n j1 = 0;\n k1 = 1;\n i2 = 0;\n j2 = 1;\n k2 = 1;\n } else if (x0 < z0) {\n i1 = 0;\n j1 = 1;\n k1 = 0;\n i2 = 0;\n j2 = 1;\n k2 = 1;\n } else {\n i1 = 0;\n j1 = 1;\n k1 = 0;\n i2 = 1;\n j2 = 1;\n k2 = 0;\n }\n }\n double x1 = x0 - i1 + G3;\n double y1 = y0 - j1 + G3;\n double z1 = z0 - k1 + G3;\n double x2 = x0 - i2 + 2.0 * G3;\n double y2 = y0 - j2 + 2.0 * G3;\n double z2 = z0 - k2 + 2.0 * G3;\n double x3 = x0 - 1.0 + 3.0 * G3;\n double y3 = y0 - 1.0 + 3.0 * G3;\n double z3 = z0 - 1.0 + 3.0 * G3;\n int ii = i & (SUPPLY_LENGTH - 1);\n int jj = j & (SUPPLY_LENGTH - 1);\n int kk = k & (SUPPLY_LENGTH - 1);\n int gi0 = permMod12[ii + perm[jj + perm[kk]]];\n int gi1 = permMod12[ii + i1 + perm[jj + j1 + perm[kk + k1]]];\n int gi2 = permMod12[ii + i2 + perm[jj + j2 + perm[kk + k2]]];\n int gi3 = permMod12[ii + 1 + perm[jj + 1 + perm[kk + 1]]];\n double t0 = CONTRIBUTION_FACTOR - x0 * x0 - y0 * y0 - z0 * z0;\n if (t0 < 0) {\n n0 = 0.0;\n } else {\n t0 *= t0;\n n0 = t0 * t0 * dot(GTAB[gi0], x0, y0, z0);\n }\n double t1 = CONTRIBUTION_FACTOR - x1 * x1 - y1 * y1 - z1 * z1;\n if (t1 < 0) {\n n1 = 0.0;\n } else {\n t1 *= t1;\n n1 = t1 * t1 * dot(GTAB[gi1], x1, y1, z1);\n }\n double t2 = CONTRIBUTION_FACTOR - x2 * x2 - y2 * y2 - z2 * z2;\n if (t2 < 0) {\n n2 = 0.0;\n } else {\n t2 *= t2;\n n2 = t2 * t2 * dot(GTAB[gi2], x2, y2, z2);\n }\n double t3 = CONTRIBUTION_FACTOR - x3 * x3 - y3 * y3 - z3 * z3;\n if (t3 < 0) {\n n3 = 0.0;\n } else {\n t3 *= t3;\n n3 = t3 * t3 * dot(GTAB[gi3], x3, y3, z3);\n }\n return NORMALIZE_FACTOR * (n0 + n1 + n2 + n3);\n }", "public Builder clearNoiseSigma() {\n if (gradientNoiseSigmaCase_ == 1) {\n gradientNoiseSigmaCase_ = 0;\n gradientNoiseSigma_ = null;\n onChanged();\n }\n return this;\n }", "public double noise2D(double xin, double yin) {\n double n0, n1, n2;\n double s = (xin + yin) * F2;\n int i = fastfloor(xin + s);\n int j = fastfloor(yin + s);\n double t = (i + j) * G2;\n double X0 = i - t;\n double Y0 = j - t;\n double x0 = xin - X0;\n double y0 = yin - Y0;\n int i1, j1;\n if(x0 > y0) {\n i1 = 1;\n j1 = 0;\n } else {\n i1 = 0;\n j1 = 1;\n }\n double x1 = x0 - i1 + G2;\n double y1 = y0 - j1 + G2;\n double x2 = x0 - 1.0 + 2.0 * G2;\n double y2 = y0 - 1.0 + 2.0 * G2;\n int ii = i & (SUPPLY_LENGTH - 1);\n int jj = j & (SUPPLY_LENGTH - 1);\n int gi0 = permMod12[perm[ii + perm[jj]]];\n int gi1 = permMod12[perm[ii + i1 + perm[jj + j1]]];\n int gi2 = permMod12[perm[ii + 1 + perm[jj + 1]]];\n double t0 = CONTRIBUTION_FACTOR - x0 * x0 - y0 * y0;\n if(t0 < 0) {\n n0 = 0.0;\n } else {\n t0 *= t0;\n n0 = t0 * t0 * dot(GTAB[gi0], x0, y0, 0);\n }\n double t1 = CONTRIBUTION_FACTOR - x1 * x1 - y1 * y1;\n if(t1 < 0) {\n n1 = 0.0;\n } else {\n t1 *= t1;\n n1 = t1 * t1 * dot(GTAB[gi1], x1, y1, 0);\n }\n double t2 = CONTRIBUTION_FACTOR - x2 * x2 - y2 * y2;\n if(t2 < 0) {\n n2 = 0.0;\n } else {\n t2 *= t2;\n n2 = t2 * t2 * dot(GTAB[gi2], x2, y2, 0);\n }\n return NORMALIZE_FACTOR_2D * (n0 + n1 + n2);\n }", "public void init( int pointDimension, long randomSeed );", "public PXRadialGradient() {\n center = new PointF();\n }", "static void fill(int[] array)\n\t{\n\t\tRandom r = new Random();\n\t\tfor(int i = 0; i < array.length; i++)\n\t\t{\n\t\t\tarray[i] = r.nextInt(100);\n\t\t}\n\t}", "public void setup()\n{\n noiseDetail(6);\n noiseScale = 0.01f;\n c1 = new Car(250, 250);\n}", "public void reset(float x,float y,float noiseZ, float dx, float dy) {\n stepSize = random(MIN_STEP, MAX_STEP);\n\n location.x = prevLocation.x = x;\n location.y = prevLocation.y = y;\n acceleration.x = dx;//-2;\n acceleration.y = dy;\n life = 0;\n \n zNoise = noiseZ;\n }", "boolean hasNoise();", "public void permutate(double[] x) {\n for (int i = 0; i < x.length; i++) {\n int j = i + nextInt(x.length - i);\n Math.swap(x, i, j);\n }\n }", "@Override\n\tpublic void makeNoise() {\n\t\tSystem.out.println(\"mammals are making noise\");\n\t}", "private void init() {\r\n\t\tx = (float) (Math.random() * 2 - 1);\r\n\t\ty = (float) (Math.random() * 2 - 1);\r\n\t\tz[0] = (float) (Math.random() * 3f);\r\n\t\tz[1] = z[0];\r\n\t}", "public NoisySpectrum(ISpectrumData src, double scale, int seed) {\n super(src);\n mScale = scale;\n mSeed = seed;\n mChannels = new double[src.getChannelCount()];\n final PoissonDeviate pd = new PoissonDeviate(seed);\n for(int i = src.getChannelCount() - 1; i >= 0; --i)\n mChannels[i] = pd.randomDeviate(scale * src.getCounts(i));\n // Now take account for the rescaling in either the live time or the beam\n // current\n final SpectrumProperties sp = getProperties();\n if(sp.isDefined(SpectrumProperties.LiveTime))\n sp.setNumericProperty(SpectrumProperties.LiveTime, sp.getNumericWithDefault(SpectrumProperties.LiveTime, 0.0) * mScale);\n else {\n if(sp.isDefined(SpectrumProperties.FaradayBegin))\n sp.setNumericProperty(SpectrumProperties.FaradayBegin, sp.getNumericWithDefault(SpectrumProperties.FaradayBegin, 0.0)\n * mScale);\n if(sp.isDefined(SpectrumProperties.FaradayEnd))\n sp.setNumericProperty(SpectrumProperties.FaradayEnd, sp.getNumericWithDefault(SpectrumProperties.FaradayEnd, 0.0)\n * mScale);\n }\n }", "@Override\r\n\tpublic String makeANoise() {\n\t\treturn \"deer noise\";\r\n\t}", "static void fillArray(int[] array) {\n\t\tint i = 0;\r\n\t\tint number = 1;\r\n\t\twhile (i < array.length) {\r\n\t\t\tif ((int) Math.floor(Math.random() * Integer.MAX_VALUE) % 2 == 0) {\r\n\t\t\t\tnumber = number + (int) Math.floor(Math.random() * 5);\r\n\t\t\t\tarray[i] = number;\r\n\r\n\t\t\t} else {\r\n\t\t\t\tnumber++;\r\n\t\t\t\tarray[i] = number;\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}", "public void makeNoise() {\n\t\tSystem.out.println(toString() + \" grunted\");\n\t}", "public PenSample() {\n\t\tthis.x = 0.0d;\n\t\tthis.y = 0.0d;\n\t\tthis.force = 0;\n\t\tthis.timestamp = 0l; // EPOCH ?\n\t}", "double lerp(double x, double a, double b);", "public void sample()\n\t{\n\t\tint nd = interval.numDimensions();\n\n\t\t// the order in which mpicbg expects\n\t\tp = new double[ nd ][ (int) N ];\n\t\tq = new double[ nd ][ (int) N ];\n\n\t\tdouble[] src = new double[ nd ];\n\t\tdouble[] tgt = new double[ nd ];\n\n\t\tint i = 0;\n\t\tIntervalIterator it = new IntervalIterator( interval );\n\t\twhile ( it.hasNext() )\n\t\t{\n\t\t\tit.fwd();\n\t\t\tit.localize( src );\n\t\t\txfm.apply( src, tgt );\n\n\t\t\tfor ( int d = 0; d < nd; d++ )\n\t\t\t{\n\t\t\t\tp[ d ][ i ] = src[ d ];\n\t\t\t\tq[ d ][ i ] = tgt[ d ];\n\t\t\t}\n\t\t\ti++;\n\t\t}\n\t}", "void setExtremeSpikeProbability(double p);", "public void randomize() {\n\t\tx = ThreadLocalRandom.current().nextInt(0, 499 + 1);\n\t\ty = ThreadLocalRandom.current().nextInt(0, 499 + 1);\n\t}", "private double[] y_landmark(VectorN x, Time t, int p,\r\n VectorN s, int lindex, boolean inoise) {\r\n \r\n // We'll need a Gaussian random number generator\r\n //Random randn = new Random(System.currentTimeMillis()); \t\r\n \r\n double y = 0;\r\n VectorN dydx = new VectorN(x.length);\r\n \r\n // TODO: Do we need t to be relative?\r\n // jd=jd0+t/86400;\r\n \r\n // If the number of states is greater than 6, assume that the \r\n // components 7-9 are the body-fixed coordinates of the landmark, \r\n // otherwise, it is assumed the landmark is known and specified by \r\n // the structure.\r\n CentralBody body = gravbody.get(p);\r\n VectorN lf = null;\r\n if (x.length == 9) {\r\n lf = x.get(6, 3);\r\n \t //Landmark mark = new Landmark(20, x.get(6), x.get(7), x.get(8),LunaRef.R_Luna);\r\n \t //lf = mark.lmf;\r\n }\r\n else {\r\n lf = body.getLandmark(lindex).lmf;\r\n }\r\n \r\n // Compute the coordinate transformation from body-fixed to inertial\r\n ReferenceFrameTranslater xlater = \r\n new ReferenceFrameTranslater(body.bodyFixedRef, body.inertialRef, t);\r\n VectorN li = xlater.translatePoint(lf);\r\n\r\n // Compute the vector from the spacecraft to the landmark\r\n VectorN d = li.minus(x.get(0, 3));\r\n double dmag = d.mag();\r\n VectorN dhat = d.unitVector();\r\n if ((s != null) && (s.length == 3)) {\r\n // Referece unit vector is provided. Compute measurment\r\n // between LOS.\r\n \r\n // Compute predicted measurement cos(theta)\r\n y = dhat.dotProduct(s);\r\n\r\n if (inoise) {\r\n // Assume similar noise as star and zero bias for now\r\n // TODO: Make arnd and abias configurable instead of\r\n // hardcoded.\r\n double arnd=.0034*Math.PI/180.0;\r\n //arnd=.07*Math.PI/180.0;\r\n arnd=Rdeg*Math.PI/180.0;\r\n double abias=0;\r\n y=Math.cos(Math.acos(y)+arnd*rnd.nextGaussian()+abias);\r\n }\r\n\r\n // (1/dmag)*s'*(-eye(3)+dhat*dhat')\r\n VectorN rdot = s.divide(dmag);\r\n Matrix tmp = dhat.outerProduct(dhat).minus(Matrix.identity(3,3));\r\n rdot = rdot.times(tmp);\r\n dydx.set(0, rdot);\r\n // vdot is 0\r\n \r\n if (x.length == 9) {\r\n //VectorN ldot = xlater.translatePointBack(rdot);//.times(-1);\r\n VectorN ldot = xlater.translatePointBack(rdot.times(-1));\r\n dydx.set(6, ldot);\r\n }\r\n }\r\n else {\r\n // No reference unit vector is provided. Compute pseudo range.\r\n \r\n // measurement is tan((D/2)/r)\r\n double D = body.getLandmark(lindex).D;\r\n y=D*.5/dmag;\r\n \r\n if (inoise) {\r\n // 1-sigma noise and bias on angular measurement\r\n double[] noiseFactors = camerr(dmag,p);\r\n double arnd = noiseFactors[0];\r\n double abias = noiseFactors[1];\r\n y=Math.tan(Math.atan(y)+arnd*rnd.nextGaussian()+abias);\r\n }\r\n\r\n double scale = (0.5 * D) / (dmag * dmag * dmag);\r\n VectorN rpart = d.times(scale);\r\n \r\n if (x.length == 9) {\r\n VectorN ldot = xlater.translatePointBack(rpart).times(-1);\r\n dydx.set(6, ldot);\r\n }\r\n }\r\n\r\n // TODO: Do we really want to shmoosh these into one array\r\n // just to return it?\r\n // We combine the angle and the Jacobian into a single array to return it\r\n double[] out = new double[x.length+1];\r\n out[0] = y;\r\n //System.arraycopy(dydx, 0, toReturn, 1, dydx.length);\r\n\t\tfor(int i=1; i<x.length+1; i++) out[i] = dydx.x[i-1];\r\n return out; \r\n }", "@Override\r\n\tvoid makeNoise() {\n\t\tSystem.out.println(\"Moo\");\r\n\t}", "public void useUniformDeviates(){\n this.gaussianDeviates = false;\n }", "private void addPowerUps() {\n\t\tfor (int i = 0; i < 4; i++) {\n\n\t\t\tint x = (int) (Math.random() * 10);\n\t\t\tint y = (int) (Math.random() * 10);\n\n\t\t\twhile (pgrid[x][y] != 0) { // prevents overlaps\n\t\t\t\tx = (int) (Math.random() * 10);\n\t\t\t\ty = (int) (Math.random() * 10);\n\t\t\t}\n\n\t\t\tpgrid[x][y] = 2;\n\t\t}\n\t}", "public void mutate(float p)\n {\n int regCount = this.registers.size();\n\n /**\n * Parameter mutation replace parameters by random terminals\n */\n for (int i = 0; i < registers.size(); i++)\n {\n LinearRegister reg = this.registers.get(i);\n \n if (1 - GPRunner.RANDOM.nextFloat() <= p)\n {\n if (reg.parameters.length == 0)\n {\n /**\n * Mutate whole register\n */\n this.registers.set(i, randomRegister());\n }\n else\n {\n int parameter = GPRunner.RANDOM\n .nextInt(reg.parameters.length + 1);\n \n if (parameter >= reg.parameters.length)\n {\n /**\n * Mutate whole register\n */\n this.registers.set(i, randomRegister());\n }\n else\n {\n /**\n * Mutate parameter\n */\n reg.parameters[parameter] = randomTerminal();\n }\n }\n }\n }\n\n /**\n * Mutate output register\n */\n\t\t// if(1 - Register.RANDOM.nextFloat() <= p)\n // {\n // this.outputRegister = Register.RANDOM.nextInt(registers.size());\n // }\n }", "public abstract void newSpeechNoise(long ms, int n);", "public void makeNoise() {\n System.out.println(this.name + \" the \" + this.toString() + \" wails\");\n }", "public NoiseCalculator(double wavelength, double offset) {\n this(wavelength, offset, 1.0);\n }", "static void fillArray(int[] ar)\n\t{\n\t Random r= new Random();\n\t for(int i = 0; i< ar.length; i++)\n\t {\n\t\t ar[i]= r.nextInt(100);\n\t }\n\t}", "public WB_RandomPoint setSeed(final long seed);", "void rainbow(int width);", "public Builder setNoiseBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00010000;\n noise_ = value;\n onChanged();\n return this;\n }", "private void setWeightsUniformly(RandomDataImpl rnd, double eInit) {\n\t\tfor (int i = 0; i < weights.length; i++) {\t\t\n\t\t\tweights[i] = rnd.nextUniform(-eInit, eInit);\n\t\t}\n\t}", "public void filter(double[] X, int offset, int count) {\r\n\t\tint m, i;\r\n\t\t\r\n\t\tz[BUTTERWORTH4_NUM_COEFFICIENTS - 1] = 0;\r\n\t\tfor (m = offset; m < offset + count; m++) {\r\n\t\t\tdouble oldXm = X[m];\r\n\t\t\tdouble newXm = B[0] * oldXm + z[0];\r\n\t\t\tfor (i = 1; i < BUTTERWORTH4_NUM_COEFFICIENTS; i++) {\r\n\t\t\t\tz[i - 1] = B[i] * oldXm + z[i] - A[i] * newXm;\r\n\t\t\t}\r\n\t\t\tX[m] = newXm;\r\n\t\t}\r\n\t}", "public NoiseGenerator(final long seed, final double bF, final double bA,\n final double l, final double g, final int oC, final NoiseMode m,\n final ColorGradient c, final TextureGradient t) { //All parameters are necessary.\n Random r = new Random(seed);\n perm = Arrays.copyOf(SUPPLY, 2 * SUPPLY_LENGTH);\n for (int i = 0; i < SUPPLY_LENGTH; i++) {\n int j = r.nextInt(SUPPLY_LENGTH);\n short temp = perm[i];\n perm[i] = perm[j];\n perm[j] = temp;\n }\n for (int i = 0; i < 2 * SUPPLY_LENGTH; i++) {\n perm[i] = perm[i & (SUPPLY_LENGTH - 1)];\n permMod12[i] = (short) (perm[i] % GTAB.length);\n }\n baseFreq = bF;\n baseAmp = bA;\n lacunarity = l;\n gain = g;\n octaveCap = oC;\n mode = m;\n colors = c;\n textures = t;\n }", "private static ArrayList<double[]> createSamples(double p, int n) {\n\t\tArrayList<double[]> result = new ArrayList<double[]>();\n\t\tint cutoff = (int) Math.round(n * p);\n\t\tfor (int i = 0; i < cutoff; i++) result.add(new double[] {1});\n\t\tfor (int i = cutoff; i < n; i++) result.add(new double[] {0});\n\t\treturn result;\n\t}", "@Override\n\tpublic String makeNoise() {\n\t\treturn \"Meoooooow\";\n\t\t\n\t\n\n}", "public static double noise(double x, double y, double z, double w){\n\t\t\n\t\tdouble n0,n1,n2,n3,n4; // Noise contributions from the five corners\n\t\t// Skew the (x,y,z,w) space to determine which cell of 24 simplices we're in\n\t\tdouble s=(x+y+z+w)*F4; // Factor for 4D skewing\n\t\tint i=fastfloor(x+s);\n\t\tint j=fastfloor(y+s);\n\t\tint k=fastfloor(z+s);\n\t\tint l=fastfloor(w+s);\n\t\tdouble t=(i+j+k+l)*G4; // Factor for 4D unskewing\n\t\tdouble X0=i-t; // Unskew the cell origin back to (x,y,z,w) space\n\t\tdouble Y0=j-t;\n\t\tdouble Z0=k-t;\n\t\tdouble W0=l-t;\n\t\tdouble x0=x-X0; // The x,y,z,w distances from the cell origin\n\t\tdouble y0=y-Y0;\n\t\tdouble z0=z-Z0;\n\t\tdouble w0=w-W0;\n\t\t// For the 4D case, the simplex is a 4D shape I won't even try to describe.\n\t\t// To find out which of the 24 possible simplices we're in, we need to\n\t\t// determine the magnitude ordering of x0, y0, z0 and w0.\n\t\t// Six pair-wise comparisons are performed between each possible pair\n\t\t// of the four coordinates, and the results are used to rank the numbers.\n\t\tint rankx=0;\n\t\tint ranky=0;\n\t\tint rankz=0;\n\t\tint rankw=0;\n\t\tif(x0>y0) rankx++;\n\t\telse ranky++;\n\t\tif(x0>z0) rankx++;\n\t\telse rankz++;\n\t\tif(x0>w0) rankx++;\n\t\telse rankw++;\n\t\tif(y0>z0) ranky++;\n\t\telse rankz++;\n\t\tif(y0>w0) ranky++;\n\t\telse rankw++;\n\t\tif(z0>w0) rankz++;\n\t\telse rankw++;\n\t\tint i1,j1,k1,l1; // The integer offsets for the second simplex corner\n\t\tint i2,j2,k2,l2; // The integer offsets for the third simplex corner\n\t\tint i3,j3,k3,l3; // The integer offsets for the fourth simplex corner\n\t\t// [rankx, ranky, rankz, rankw] is a 4-vector with the numbers 0, 1, 2 and 3\n\t\t// in some order. We use a thresholding to set the coordinates in turn.\n\t\t// Rank 3 denotes the largest coordinate.\n\t\ti1=rankx>=3?1:0;\n\t\tj1=ranky>=3?1:0;\n\t\tk1=rankz>=3?1:0;\n\t\tl1=rankw>=3?1:0;\n\t\t// Rank 2 denotes the second largest coordinate.\n\t\ti2=rankx>=2?1:0;\n\t\tj2=ranky>=2?1:0;\n\t\tk2=rankz>=2?1:0;\n\t\tl2=rankw>=2?1:0;\n\t\t// Rank 1 denotes the second smallest coordinate.\n\t\ti3=rankx>=1?1:0;\n\t\tj3=ranky>=1?1:0;\n\t\tk3=rankz>=1?1:0;\n\t\tl3=rankw>=1?1:0;\n\t\t// The fifth corner has all coordinate offsets = 1, so no need to compute that.\n\t\tdouble x1=x0-i1+G4; // Offsets for second corner in (x,y,z,w) coords\n\t\tdouble y1=y0-j1+G4;\n\t\tdouble z1=z0-k1+G4;\n\t\tdouble w1=w0-l1+G4;\n\t\tdouble x2=x0-i2+2.0*G4; // Offsets for third corner in (x,y,z,w) coords\n\t\tdouble y2=y0-j2+2.0*G4;\n\t\tdouble z2=z0-k2+2.0*G4;\n\t\tdouble w2=w0-l2+2.0*G4;\n\t\tdouble x3=x0-i3+3.0*G4; // Offsets for fourth corner in (x,y,z,w) coords\n\t\tdouble y3=y0-j3+3.0*G4;\n\t\tdouble z3=z0-k3+3.0*G4;\n\t\tdouble w3=w0-l3+3.0*G4;\n\t\tdouble x4=x0-1.0+4.0*G4; // Offsets for last corner in (x,y,z,w) coords\n\t\tdouble y4=y0-1.0+4.0*G4;\n\t\tdouble z4=z0-1.0+4.0*G4;\n\t\tdouble w4=w0-1.0+4.0*G4;\n\t\t// Work out the hashed gradient indices of the five simplex corners\n\t\tint ii=i&255;\n\t\tint jj=j&255;\n\t\tint kk=k&255;\n\t\tint ll=l&255;\n\t\tint gi0=perm[ii+perm[jj+perm[kk+perm[ll]]]]%32;\n\t\tint gi1=perm[ii+i1+perm[jj+j1+perm[kk+k1+perm[ll+l1]]]]%32;\n\t\tint gi2=perm[ii+i2+perm[jj+j2+perm[kk+k2+perm[ll+l2]]]]%32;\n\t\tint gi3=perm[ii+i3+perm[jj+j3+perm[kk+k3+perm[ll+l3]]]]%32;\n\t\tint gi4=perm[ii+1+perm[jj+1+perm[kk+1+perm[ll+1]]]]%32;\n\t\t// Calculate the contribution from the five corners\n\t\tdouble t0=0.6-x0*x0-y0*y0-z0*z0-w0*w0;\n\t\tif(t0<0) n0=0.0;\n\t\telse{\n\t\t\tt0*=t0;\n\t\t\tn0=t0*t0*dot(grad4[gi0], x0, y0, z0, w0);\n\t\t}\n\t\tdouble t1=0.6-x1*x1-y1*y1-z1*z1-w1*w1;\n\t\tif(t1<0) n1=0.0;\n\t\telse{\n\t\t\tt1*=t1;\n\t\t\tn1=t1*t1*dot(grad4[gi1], x1, y1, z1, w1);\n\t\t}\n\t\tdouble t2=0.6-x2*x2-y2*y2-z2*z2-w2*w2;\n\t\tif(t2<0) n2=0.0;\n\t\telse{\n\t\t\tt2*=t2;\n\t\t\tn2=t2*t2*dot(grad4[gi2], x2, y2, z2, w2);\n\t\t}\n\t\tdouble t3=0.6-x3*x3-y3*y3-z3*z3-w3*w3;\n\t\tif(t3<0) n3=0.0;\n\t\telse{\n\t\t\tt3*=t3;\n\t\t\tn3=t3*t3*dot(grad4[gi3], x3, y3, z3, w3);\n\t\t}\n\t\tdouble t4=0.6-x4*x4-y4*y4-z4*z4-w4*w4;\n\t\tif(t4<0) n4=0.0;\n\t\telse{\n\t\t\tt4*=t4;\n\t\t\tn4=t4*t4*dot(grad4[gi4], x4, y4, z4, w4);\n\t\t}\n\t\t// Sum up and scale the result to cover the range [-1,1]\n\t\treturn 27.0*(n0+n1+n2+n3+n4);\n\t}", "public static void linearFillArray(int[] array) {\n\n\t\tfor (int i = 0; i < array.length; i++) {\n\t\t\tarray[i] = i;\n\t\t}\n\n\t}", "private void four1(double data[], int nn, int isign) {\r\n int n,mmax,m,j,istep,i;\r\n double wtemp,wr,wpr,wpi,wi,theta;\r\n double tempr,tempi;\r\n double swap;\r\n\r\n n=2*nn;\r\n j=1;\r\n for (i=1;i<n;i+=2) {\r\n if (j > i) {\r\n swap=data[j];\r\n data[j]=data[i];\r\n data[i]=swap;\r\n\r\n swap=data[j+1];\r\n data[j+1]=data[i+1];\r\n data[i+1]=swap;\r\n }\r\n m=n >> 1;\r\n while (m >= 2 && j > m) {\r\n j -= m;\r\n m >>= 1;\r\n }\r\n j += m;\r\n }\r\n mmax=2;\r\n while (n > mmax) {\r\n istep=2*mmax;\r\n theta=isign*(6.28318530717959/mmax);\r\n wtemp=Math.sin(0.5*theta);\r\n wpr = -2.0*wtemp*wtemp;\r\n wpi=Math.sin(theta);\r\n wr=1.0;\r\n wi=0.0;\r\n for (m=1;m<mmax;m+=2) {\r\n for (i=m;i<=n;i+=istep) {\r\n j=i+mmax;\r\n tempr=wr*data[j]-wi*data[j+1];\r\n tempi=wr*data[j+1]+wi*data[j];\r\n data[j]=data[i]-tempr;\r\n data[j+1]=data[i+1]-tempi;\r\n data[i] += tempr;\r\n data[i+1] += tempi;\r\n }\r\n wr=(wtemp=wr)*wpr-wi*wpi+wr;\r\n wi=wi*wpr+wtemp*wpi+wi;\r\n }\r\n mmax=istep;\r\n }\r\n }", "private double interpolate(double sampleX, float[] samples, int sampleCount) {\r\n\t\tint quality = 3;\r\n\t\tif (sampleX == Math.floor(sampleX)) {\r\n\t\t\treturn (sampleX < 0 || sampleX >= samples.length) ? 0\r\n\t\t\t\t\t: samples[(int) sampleX];\r\n\t\t}\r\n\t\tint from = (int) (sampleX) - quality;\r\n\t\tif (from < 0) from = 0;\r\n\t\tint to = (int) (sampleX) + quality;\r\n\t\tif (to >= sampleCount) to = sampleCount - 1;\r\n\t\tdouble Y = 0.0;\r\n\t\tdouble X = sampleX - from;\r\n\t\tif (X == 0.0) {\r\n\t\t\treturn 0.0;\r\n\t\t}\r\n\t\tint i = from;\r\n\t\twhile (i <= to) {\r\n\t\t\tdouble fac = Math.PI * X;\r\n\t\t\tY += samples[i] * (Math.sin(fac) / fac);\r\n\t\t\ti++;\r\n\t\t\tX -= 1;\r\n\t\t}\r\n\t\treturn Y;\r\n\t}", "Point3D[] reinterpolate_alone_y (int n, Point3D[] a) {\n if (n < 2) n = 2;\n int len = a.length;\n if (n == len) return a; // nothing to do\n int idx_last = len -1;\n int seg_count = idx_last;\n double y0 = a[0].y;\n double seg = span/seg_count;\n Point3D bottom = new Point3D(a[0].x - (a[1].x - a[0].x),\n a[0].y - (a[1].y - a[0].y),\n a[0].z - (a[1].z - a[0].z));\n Point3D top = new Point3D(a[idx_last].x + (a[idx_last].x - a[idx_last-1].x),\n a[idx_last].y + (a[idx_last].y - a[idx_last-1].y),\n a[idx_last].z + (a[idx_last].z - a[idx_last-1].z));\n Point3D[] new_a = new Point3D[n];\n double new_seg = span/(n-1);\n for (int i = 0; i < new_a.length; i++) {\n double offs = new_seg * i;\n double y = y0 + offs;\n int prev_idx = (int)Math.floor(offs/seg);\n if (prev_idx == idx_last) { // last point\n new_a[i] = a[idx_last]; \n continue; // really a break....\n }\n Point3D p1 = a[prev_idx];\n Point3D p2 = a[prev_idx+1];\n Point3D p0 = prev_idx > 0 ? a[prev_idx-1] : bottom;\n Point3D p3 = prev_idx < idx_last-1 ? a[prev_idx+2] : top;\n double mu = (y-p1.y)/seg; /// mu spans the range of 0...1\n // double new_x = solver.LinearInterpolate(p1.x, p2.x, mu);\n double new_x = solver.CubicInterpolate(p0.x, p1.x, p2.x, p3.x, mu);\n // double new_z = solver.LinearInterpolate(p1.z, p2.z, mu);\n double new_z = solver.CubicInterpolate(p0.z, p1.z, p2.z, p3.z, mu);\n new_a[i] = new Point3D(new_x, y, new_z);\n }\n return new_a;\n }", "public PVector NoiseMove()\n {\n PVector noise = new PVector(random(2) - 1, random(2) -1);\n noise.setMag(maxSpeed);\n noise.sub(velocity);\n noise.limit(maxForce);\n return noise;\n }", "public void set_infos_noise(int[] value) {\n for (int index0 = 0; index0 < value.length; index0++) {\n setElement_infos_noise(index0, value[index0]);\n }\n }", "public Builder setNoise(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00010000;\n noise_ = value;\n onChanged();\n return this;\n }", "public void rollRandom() {\n\t\tthis.strength = randomWithRange();\r\n\t\tthis.wisdom = randomWithRange();\r\n\t\tthis.dexterity = randomWithRange();\r\n\t\tthis.constitution = randomWithRange();\r\n\t\tthis.intelligence = randomWithRange();\r\n\t\tthis.charisma = randomWithRange();\r\n\t}", "private void drawInterpolatedSamples(Graphics G, int pixelFrom,\r\n\t\t\tint pixelTo, long startSample, float[] samples, int sampleCount) {\r\n\t\tif (samples == null) return;\r\n\t\tpixelFrom--;\r\n\t\tpixelTo++;\r\n\t\tint pixelX = pixelFrom;\r\n\t\tint oldY = toPixelY(interpolate(\r\n\t\t\t\ttoSamplesXF(pixelX) - 0.5 - startSample, samples, sampleCount));\r\n\t\twhile (pixelX++ < pixelTo) {\r\n\t\t\tint newY = toPixelY(interpolate(toSamplesXF(pixelX) - 0.5\r\n\t\t\t\t\t- startSample, samples, sampleCount));\r\n\t\t\tG.drawLine(pixelX - 1, oldY, pixelX, newY);\r\n\t\t\toldY = newY;\r\n\t\t}\r\n\t}", "public List<Peak> filterNoise(List<Peak> peaks, double threshold, double experimentalPrecursorMzRatio);", "private static void reduceNoise(Mat image) {\n\n\t\t// create structuring element that will be used to \"dilate\" and \"erode\"\n\t\t// image. the element chosen here is a 3px by 3px rectangle\n\t\tMat erodeElement = Imgproc.getStructuringElement(Imgproc.MORPH_RECT,\n\t\t\t\tnew Size(1, 1));\n\n\t\t// dilate with larger element so make sure object is nicely visible\n\t\tMat dilateElement = Imgproc.getStructuringElement(Imgproc.MORPH_RECT,\n\t\t\t\tnew Size(12, 12));\n\n\t\t// Erode will shrink the grouping of pixels\n\t\tImgproc.erode(image, image, erodeElement);\n\t\tImgproc.erode(image, image, erodeElement);\n\t\tImgproc.erode(image, image, erodeElement);\n\n\t\t// // Dilate will expand the grouping of pixels\n\t\tImgproc.dilate(image, image, dilateElement);\n\t\tImgproc.dilate(image, image, dilateElement);\n\t\t// Imgproc.dilate(image, image, dilateElement);\n\n\t}", "public static Double[] learnSimplePerceptronRound2(Data data1[],int index,double LearningRate,Double w[],HashMap<Integer, Integer> words)\r\n \t{\r\n \t\t//Double w[] = new Double[20]; \r\n \t/*\tDouble min =-0.01; // Set To Your Desired Min Value\r\n\t Double max = 0.01;\r\n \t\tdouble smallRandNumber = min + new Random().nextDouble() * (max - min); \r\n \t\tArrays.fill(w, smallRandNumber);*/\r\n \t\t\r\n \t\tData data[] = Arrays.copyOf(data1,index);\r\n \t\t\r\n \t\t//shuffle the data..\r\n \t \tArrayList<Data> arrayList = new ArrayList<Data>(Arrays.asList(Arrays.copyOf(data,index))); \r\n \t\tCollections.shuffle(arrayList,new Random(10));\r\n \t\tdata = arrayList.toArray(new Data[arrayList.size()]);\r\n \t\tfor(int i=0;i<index;i++)\r\n \t\t{\r\n \t\t\tdouble trueLabel;\r\n \t\t\tdouble predictedLabel;\r\n \t\t\tdouble dotProduct_wT_x = 0.0f;\r\n \t\t\tHashMap<Integer, Double> x = new HashMap<Integer, Double>();\r\n \t\t \r\n \t\t\ttrueLabel = data[i].getY();\r\n \t\t\tx= data[i].getX();\r\n \t\t\tboolean correct=false;\r\n \t\t\t// loop till its corrects..\r\n \t\t\t\r\n \t\t\twhile(correct==false)\r\n \t\t\t{\r\n \t\t\t//wT*x (contains bias)\r\n \t\t\tfor (Map.Entry<Integer, Double> entry : x.entrySet()) {\r\n \t\t\t\tdotProduct_wT_x = dotProduct_wT_x + w[entry.getKey()] * entry.getValue();\r\n \t\t\t}\r\n \t\t\t\r\n \t\t\t//predict the label\r\n \t\t\tif(dotProduct_wT_x < 0)\r\n \t\t\t\tpredictedLabel = -1;\r\n \t\t\telse\t\r\n \t\t\t\tpredictedLabel = +1;\r\n \t\t\t\r\n \t\t\t//check if prediction is correct, if not update the weight vector and bias.\r\n \t\t\tif(predictedLabel != trueLabel)\r\n \t\t//\tif(dotProduct_wT_x<0)\r\n \t\t\t{\r\n \t\t\t\t//update bias\r\n \t\t\t\tw[0]=w[0]+trueLabel*LearningRate;\r\n \t\t\t\t\r\n \t\t\t\t//update all other weights only if those words are worthy tracking\r\n \t\t\t\r\n \t\t\t\tfor(int j=1;j<w.length;j++)\r\n \t\t\t\t{\r\n \t\t\t\t\t// if(x.containsKey(j))\r\n \t\t\t\t if(x.containsKey(j))\r\n \t\t\t\t//\t if(words.containsKey(j)) //give more weightage to words that matter\r\n \t\t\t//\t\t\t\tw[j]=w[j]+LearningRate*trueLabel*(x.get(j));\r\n \t\t\t\t//\t else\r\n\t\t\t\t\t\t\tw[j]=w[j]+LearningRate*trueLabel*x.get(j);\r\n\r\n \t\t\t\t//\telse\r\n \t\t\t//\t\t\tw[j]=(double)0;\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t\telse\r\n \t\t\t\tcorrect=true;\r\n \t\t }\r\n \t\t}\r\n \t\treturn w;\r\n \t}", "public final double getEstimatedNoise() {\r\n return noise;\r\n }", "int drawRing(PVector p, double t) {\n p = LayoutUtil.Vadd(p, LayoutUtil.V(1, 1));\n\n double z = .08 * t;\n double hue = .1 * t;\n double scale = .75;\n \n double saturation = constrain(Math.pow(1.15 * noise(t * 0.122), 2.5), 0, 1);\n double spacing = noise(t * 0.124) * 15.;\n \n double centerx = noise(t * 0.125) * 2.5;\n double centery = noise(t * -0.125) * 2.5;\n \n double dist = Math.sqrt(Math.pow(p.x - centerx, 2) + Math.pow(p.y - centery, 2));\n double pulse = (Math.sin(state.dz + dist * spacing) - 0.3) * 0.3;\n \n double n = fractalNoise(state.dx + p.x*scale + pulse, state.dy + p.y*scale, z) - 0.75;\n double m = fractalNoise(state.dx + p.x*scale, state.dy + p.y*scale, z + 10.0) - 0.75;\n \n return color(\n MathUtil.fmod(hue + .4 * m, 1.), \n saturation,\n constrain(Math.pow(3.0 * n, 1.5), 0, 0.9)\n );\n }", "public static WritableImage getSphereTexture(double[][][] noise, int width, int height) {\n\t\tWritableImage result = new WritableImage(width, height);\n\t\tPixelWriter writer = result.getPixelWriter();\n\t\t\n\t\tfor (int y = 0; y < height; y ++) {\n\t\t\tfor (int x = 0; x < width; x ++) {\n\t\t\t\tdouble u = (double)x/width;\n\t\t\t\tdouble v = (double)y/height;\n\t\t\t\t\n\t\t\t\tdouble lat = u * 2 * Math.PI;\n\t\t\t\tdouble lng = v * 2 * Math.PI;\n\t\t\t\t\n\t\t\t\tdouble xt = Math.sin(lng)*Math.cos(lat);\n\t\t\t\tdouble yt = Math.sin(lng)*Math.sin(lat);\n\t\t\t\tdouble zt = Math.cos(lng);\n\t\t\t\t\n\t\t\t\txt = MathUtils.map(xt, -1.0, 1.0, 0.0, noise.length - 1);\n\t\t\t\tyt = MathUtils.map(yt, -1.0, 1.0, 0.0, noise.length - 1);\n\t\t\t zt = MathUtils.map(zt, -1.0, 1.0, 0.0, noise.length - 1);\n\t\t\t\t\n\t\t\t\t//System.out.printf(\"%f %f\\n\", lat, lng);\n\t\t\t\t//System.out.printf(\"%d %d => %d %d %d\\n\", x, y, dX, dY, dZ);\n\t\t\t\t\n\t\t\t /* get remainders to weight values */\n\t\t\t double xrem = xt - Math.floor(xt);\n\t\t\t double yrem = yt - Math.floor(yt);\n\t\t\t double zrem = zt - Math.floor(zt);\n\t\t\t \n\t\t\t /* Weights of all adjacent cells */\n\t\t\t \n\t\t\t /* Values of all adjacent cells */\n\t\t\t double brf = noise[(int)Math.ceil(zt)][(int)Math.ceil(yt)][(int)Math.ceil(xt)];\n\t\t\t double blf = noise[(int)Math.ceil(zt)][(int)Math.ceil(yt)][(int)Math.floor(xt)];\n\t\t\t double tlf = noise[(int)Math.ceil(zt)][(int)Math.floor(yt)][(int)Math.floor(xt)];\n\t\t\t double trf = noise[(int)Math.ceil(zt)][(int)Math.floor(yt)][(int)Math.ceil(xt)];\n\t\t\t double brb = noise[(int)Math.floor(zt)][(int)Math.ceil(yt)][(int)Math.ceil(xt)];\n\t\t\t double blb = noise[(int)Math.floor(zt)][(int)Math.ceil(yt)][(int)Math.floor(xt)];\n\t\t\t double tlb = noise[(int)Math.floor(zt)][(int)Math.floor(yt)][(int)Math.floor(xt)];\n\t\t\t double trb = noise[(int)Math.floor(zt)][(int)Math.floor(yt)][(int)Math.ceil(xt)];\n\t\t\t \n\t\t\t /* weighted average of all adjacent cells */\n\t\t\t\tdouble val = 0.0;\n\t\t\t\tval += brf*xrem*yrem*zrem;\n\t\t\t\tval += blf*(1-xrem)*yrem*zrem;\n\t\t\t\tval += tlf*(1-xrem)*(1-yrem)*zrem;\n\t\t\t\tval += trf*xrem*(1-yrem)*zrem;\n\t\t\t\tval += brb*xrem*yrem*(1-zrem);\n\t\t\t\tval += blb*(1-xrem)*yrem*(1-zrem);\n\t\t\t\tval += tlb*(1-xrem)*(1-yrem)*(1-zrem);\n\t\t\t\tval += trb*xrem*(1-yrem)*(1-zrem);\n\t\t\t\t\t\t\n\t\t\t\t//val /= 8;\n\t\t\t\t\n\t\t\t\twriter.setColor(x, y, new Color(val,val,val,1.0));\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn result;\n\t}", "static void fillWithRandomColors() {\n\n for ( int row = 0; row < ROWS; row++ ) {\n for ( int column = 0; column < COLUMNS; column++ ) {\n changeToRandomColor( row, column );\n }\n }\n }", "public void setIntensities(float r0, float g0, float b0, float a0,\n float r1, float g1, float b1, float a1,\n float r2, float g2, float b2, float a2) {\n // Check if we need alpha or not?\n if ((a0 != 1.0f) || (a1 != 1.0f) || (a2 != 1.0f)) {\n INTERPOLATE_ALPHA = true;\n a_array[0] = (a0 * 253f + 1.0f) * 65536f;\n a_array[1] = (a1 * 253f + 1.0f) * 65536f;\n a_array[2] = (a2 * 253f + 1.0f) * 65536f;\n m_drawFlags|=R_ALPHA;\n } else {\n INTERPOLATE_ALPHA = false;\n m_drawFlags&=~R_ALPHA;\n }\n \n // Check if we need to interpolate the intensity values\n if ((r0 != r1) || (r1 != r2)) {\n INTERPOLATE_RGB = true;\n m_drawFlags |= R_GOURAUD;\n } else if ((g0 != g1) || (g1 != g2)) {\n INTERPOLATE_RGB = true;\n m_drawFlags |= R_GOURAUD;\n } else if ((b0 != b1) || (b1 != b2)) {\n INTERPOLATE_RGB = true;\n m_drawFlags |= R_GOURAUD;\n } else {\n //m_fill = parent.filli;\n m_drawFlags &=~ R_GOURAUD;\n }\n \n // push values to arrays.. some extra scaling is added\n // to prevent possible color \"overflood\" due to rounding errors\n r_array[0] = (r0 * 253f + 1.0f) * 65536f;\n r_array[1] = (r1 * 253f + 1.0f) * 65536f;\n r_array[2] = (r2 * 253f + 1.0f) * 65536f;\n \n g_array[0] = (g0 * 253f + 1.0f) * 65536f;\n g_array[1] = (g1 * 253f + 1.0f) * 65536f;\n g_array[2] = (g2 * 253f + 1.0f) * 65536f;\n \n b_array[0] = (b0 * 253f + 1.0f) * 65536f;\n b_array[1] = (b1 * 253f + 1.0f) * 65536f;\n b_array[2] = (b2 * 253f + 1.0f) * 65536f;\n \n // for plain triangles\n m_fill = 0xFF000000 | \n ((int)(255*r0) << 16) | ((int)(255*g0) << 8) | (int)(255*b0);\n }", "@Override\n public void makeNoise() {\n System.out.println(getName()+ \" Oink Oink\");\n }", "public void setElement_infos_noise(int index1, int value) {\n setUIntBEElement(offsetBits_infos_noise(index1), 16, value);\n }" ]
[ "0.60583776", "0.60376006", "0.5886837", "0.58770096", "0.5717301", "0.5552887", "0.54914385", "0.5463105", "0.54429543", "0.5433705", "0.5386281", "0.5368366", "0.53506035", "0.5329519", "0.52768844", "0.52062005", "0.52049625", "0.5194533", "0.5165551", "0.51485825", "0.51313394", "0.51132643", "0.50747085", "0.50734895", "0.50697887", "0.50608546", "0.5038535", "0.50093126", "0.5002038", "0.4971645", "0.4931314", "0.49304292", "0.49017528", "0.48627132", "0.4839635", "0.48347238", "0.4829022", "0.4828875", "0.47983083", "0.47833934", "0.47833934", "0.47757244", "0.47625756", "0.47553945", "0.47489178", "0.4742452", "0.47291028", "0.47161126", "0.47147992", "0.4714623", "0.47049004", "0.46879682", "0.46818122", "0.46758786", "0.46702892", "0.46527335", "0.4639484", "0.4630651", "0.46144423", "0.458014", "0.4576608", "0.4572759", "0.45713717", "0.45712844", "0.45700058", "0.45437315", "0.45411488", "0.45383698", "0.4520345", "0.45092624", "0.45063302", "0.45025542", "0.44885162", "0.44877362", "0.44843525", "0.4483204", "0.4475273", "0.4465129", "0.44628668", "0.44516483", "0.44347137", "0.44305593", "0.44297934", "0.44267428", "0.44219014", "0.44193965", "0.4418826", "0.4401271", "0.43979833", "0.43858227", "0.43807212", "0.43796533", "0.43640578", "0.43626797", "0.4352689", "0.43521717", "0.43517807", "0.4345034", "0.43445423", "0.4340217" ]
0.4695851
51
TODO Autogenerated method stub
public static void main(String[] args) { System.setProperty("webdriver.chrome.driver", "C:\\Users\\Javed_1\\Automation_Of_Coding\\Automation\\Driver\\chromedriver.exe"); WebDriver driver = new ChromeDriver(); driver.get("http://www.facebook.com"); driver.manage().window().maximize(); driver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS); WebElement username = driver.findElement(By.id("email")); username.sendKeys("alexandria0786@gmail.com"); WebElement password= driver.findElement(By.id("pass")); password.sendKeys("virginia786"); WebElement Button = driver.findElement(By.id("u_0_b")); Button.click(); WebElement account= driver.findElement(By.xpath("//i[@class='hu5pjgll lzf7d6o1 sp_0Y_EE8spOmD sx_3234a9']")); account.click(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
Inserts a value into the tree. Expands the tree if necessary.
public MerkleTreeBuilder<V> push(V value) { if (!tree.push(value)) { expandTree(); push(value); } return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void insert(T value) {\n\n // Assigns the new node as the root if root is empty.\n if (root == null) root = new Node<>(value);\n\n // Otherwise, traverses the tree until an appropriate empty branch is found.\n else insertRecursively(root, value);\n }", "public void insert(int value){\r\n\t\tNode node = new Node<>(value);\r\n\t\t//If the tree is empty\r\n\t\tif ( root == null ) {\r\n\t\t\troot = node;\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tinsertRec(root, node);\r\n\t}", "@Override\n\tpublic void insert(T value) \n\t{\n\t\tif(root==null)\n\t\t{\n\t\t\t//Add the new node to the root\n\t\t\troot = new TreeNode<T>(value);\n\t\t}\n\t\t//if the value compared to the root is less than zero (it's smaller than the root)\n\t\telse if(value.compareTo(value())<0)\n\t\t{\n\t\t\t//move to the left node, try insert again\n\t\t\troot.left().insert(value);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t//move to the right node, try insert again\n\t\t\troot.right().insert(value);\n\t\t}\n\t}", "public void insert(Key key, Value value){\n this.root = this.insertHelper(key, value, root);\n }", "public void insert(int value) {\n var node = new Node(value);\n\n if (root == null) {\n root = node;\n return;\n }\n\n var current = root;\n while (true) {\n if (value < current.value) {\n if (current.leftChild == null) {\n current.leftChild = node;\n break;\n }\n current = current.leftChild;\n } else {\n if (current.rightChild == null) {\n current.rightChild = node;\n break;\n }\n current = current.rightChild;\n }\n }\n }", "public void insert (T value) {\n if (left == null) {\n left = new BinaryTreeNode<>(value);\n return;\n }\n\n if (right == null) {\n right = new BinaryTreeNode<>(value);\n return;\n }\n\n if (getHeight(left) <= getHeight(right)) {\n left.insert(value);\n } else {\n right.insert(value);\n }\n }", "void insert(K key, V value) {\r\n\r\n\r\n Node child = getChild(key);\r\n child.insert(key, value);\r\n // to check if the child is overloaded\r\n if (child.isOverflow()) {\r\n Node sibling = child.split();\r\n insertChild(sibling.getFirstLeafKey(), sibling);\r\n }\r\n\r\n // if the node is full then it requires to split\r\n if (root.isOverflow()) {\r\n Node sibling = split();\r\n InternalNode newRoot = new InternalNode();\r\n newRoot.keys.add(sibling.getFirstLeafKey());\r\n newRoot.children.add(this);\r\n newRoot.children.add(sibling);\r\n root = newRoot;\r\n }\r\n\r\n }", "public boolean insert(T value){\n\t\treturn insert(root, value);\n\t}", "public void insert(Key key, Value value) {\r\n root.insert(key,value);\r\n size++;\r\n }", "@Override\r\n public void insert(K key, V value) {\r\n // call insert of the root\r\n root.insert(key, value);\r\n }", "@Override\n\tpublic BSTNode insert(int key, Object value) throws OperationNotPermitted {\n\n\t\tBSTNode p = searchByKey(key);\n\t\tBSTNode n;\n\n\t\tif (p == null) {\n\t\t\t// tree is empty, create new root\n\n\t\t\tn = createNode(key, value);\n\t\t\t_root = n;\n\t\t} else if (p.key == key) {\n\t\t\t// key exists, update payload\n\n\t\t\tn = p;\n\t\t\tn.value = value;\n\t\t} else {\n\t\t\t// key does not exist\n\n\t\t\tn = createNode(key, value);\n\t\t\tn.parent = p;\n\n\t\t\tif (p != null) {\n\t\t\t\tif (key < p.key) {\n\t\t\t\t\tp.left = n;\n\t\t\t\t} else {\n\t\t\t\t\tp.right = n;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tupdateSubtreeSizePath(n.parent);\n\t\t}\n\n\t\treturn n;\n\t}", "public void insertNode(T insertValue){\n if(root == null)\n root = new TreeNode<T>(insertValue);\n else\n root.insert(insertValue);\n }", "void insert(int val){\n\t\tthis.root = insertHelper(root, val);\n\t}", "private AVLTreeNode<E> insert(E value) {\n int cmp = this.getValue().compareTo(value);\n AVLTreeNode<E> result;\n if(cmp == 0){\n result = null;\n } else if(cmp < 0){\n result = this.getRight() != null ? this.getRight().insert(value) : createTreeNode(value);\n if(result != null){\n this.setRight(result);\n }\n } else {\n result = this.getLeft() != null ? this.getLeft().insert(value) : createTreeNode(value);\n if(result != null){\n this.setLeft(result);\n }\n }\n return result == null ? result : balancing(this);\n }", "public void insert(T insertValue){\n // insert in left subtree\n if(insertValue.compareTo(data) < 0){\n // insert new TreeNode\n if(leftNode == null)\n leftNode = new TreeNode<T>(insertValue);\n else\n leftNode.insert(insertValue);\n }\n\n // insert in right subtree\n else if (insertValue.compareTo(data) > 0){\n // insert new treeNode\n if(rightNode == null)\n rightNode = new TreeNode<T>(insertValue);\n else // continue traversing right subtree\n rightNode.insert(insertValue);\n }\n }", "public Node insert(Key key, Value value) { \r\n // inserting into an empty tree results in a single value leaf node\r\n return new LeafNode(key,value);\r\n }", "private Node _insert(Node node, T value) {\n if (node == null) {\n node = new Node(null, null, value);\n }\n /**\n * If the value is less than the current node's value, choose left.\n */\n else if (value.compareTo(node.element) < 0) {\n node.left = _insert(node.left, value);\n }\n /**\n * If the value is greater than the current node's value, choose right.\n */\n else if (value.compareTo(node.element) > 0) {\n node.right = _insert(node.right, value);\n }\n /** \n * A new node is created, or\n * a node with this value already exists in the tree.\n * return this node\n * */\n return node;\n\n }", "public void add(int value){\n \n // Case 1: The tree is empty - allocate the root\n if(root==null){\n root = new BSTNode(value);\n }\n \n // Case 2: The tree is not empty \n // find the right location to insert value\n else{\n addTo(root, value);\n } \n count++; // update the number of nodes\n }", "public void insert(double key, Double value){\n\tif(search(key)!=null){\r\n\t\tLeaf Leaf = (Leaf)Search(root, key);\r\n\t\t\r\n\t\tfor(int i=0; i<Leaf.keyvalues.size(); i++) {\r\n\t\t\tif(key==Leaf.getKeyValue(i).getKey()) {\r\n\t\t\t\t\tLeaf.getKeyValue(i).values.add(value);\r\n\t\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t}\r\n\t\r\n\tLeaf newleaf = new Leaf(key, value);\r\n\t\r\n\tPair<Double,Node> entry=new Pair<Double, Node>(key,newleaf);\r\n\r\n\tif(root == null ) {\r\n\t\troot = entry.getValue();\r\n\t}\r\n\t\r\n\r\n\tPair<Double, Node> newChildEntry = getChildEntry(root, entry, null);\r\n\t\r\n\tif(newChildEntry == null) {\r\n\t\treturn;\r\n\t} else {\r\n\t\tIntrnlNode newRoot = new IntrnlNode(newChildEntry.getKey(), root, newChildEntry.getValue());\r\n\t\troot = newRoot;\r\n\t\treturn;\r\n\t}\r\n}", "public TreeNode insert(int value) {\n TreeNode newNode = new TreeNode(value);\n\n // CASE when Root Is NULL\n if (root == null) {\n this.root = newNode;\n } else {\n // CASE when Root is Not NULL\n TreeNode currentlyPointedNode = root;\n boolean keepWalking = true;\n\n while (keepWalking) {\n // CASE : Inserted Value BIGGER THAN Current Node's Value\n if (value >= currentlyPointedNode.value) {\n // CASE : current node's Right Child is NULL\n if (currentlyPointedNode.rightChild == null) {\n\n // If its null, just assigning the new node to the right place\n currentlyPointedNode.rightChild = newNode;\n keepWalking = false;\n\n } else {\n // CASE WHEN current node's Right Child is not null , we need to keep walking right\n currentlyPointedNode = currentlyPointedNode.rightChild;\n }\n } else {\n // CASE : Inserted Value SMALLER THAN Current Node's Value\n\n // CASE WHEN current node's LEFT Child is null\n if (currentlyPointedNode.leftChild == null) {\n\n // If its null, just assigning the new node to the right place\n currentlyPointedNode.leftChild = newNode;\n keepWalking = false;\n } else {\n // CASE WHEN current node's Right Child is not null , we need to keep walking right\n currentlyPointedNode = currentlyPointedNode.leftChild;\n }\n\n }\n }\n }\n\n return root;\n }", "@SuppressWarnings(\"unchecked\")\n public void insert(E value) {\n int level = flipAndIncrementLevel();\n\n SLNode<E> newNode = new SLNode<>(value,level);\n\n SLNode cur_walker = head;\n\n for (int i = currentMaxLevel - 1; i >= 0; i--) {\n // walk down the level until it find a range\n while (null != cur_walker.next[i]) {\n // when at bottom level, i is always 0, needs to find the right node to stop\n if (greaterThan((E) cur_walker.next[i].getValue(), value) ) {\n break;\n }\n cur_walker = cur_walker.next[i];\n }\n\n if (i <= level) {\n newNode.next[i] = cur_walker.next[i];\n cur_walker.next[i] = newNode;\n }\n }\n\n size++;\n }", "private void insert(int aValue) {\n\t\tOO8BinaryTreeNode newNode = createBlankBinaryTreeNode(aValue);\n\t\t\n\t\tQueue<OO8BinaryTreeNode> queue = new LinkedList<OO8BinaryTreeNode>();// only used for level order traversal\n\t\tif(root==null) {\n\t\t\troot=newNode;\n\t\t\tqueue.add(root);\n\t\t}else {\n\t\t\tqueue.add(root);\n\t\t\twhile(!queue.isEmpty()) {\n\t\t\t\tOO8BinaryTreeNode currentNode = queue.remove();\n\t\t\t\tif(currentNode.getLeftNode()==null) {\n\t\t\t\t\t//queue.add(newNode); - wrong - Queue is only used for traversal and not for insertion\n\t\t\t\t\t//insertion still happens in the Binary node - left or right nodes\n\t\t\t\t\tcurrentNode.setLeftNode(newNode);\n\t\t\t\t\tbreak;//exit the while loop once the value is set\n\t\t\t\t}else if(currentNode.getRightNode()==null) {\n\t\t\t\t\t//queue.add(newNode);- wrong - Queue is only used for traversal and not for insertion\n\t\t\t\t\t// insertion still happens in the Binary node - left or right nodes\n\t\t\t\t\tcurrentNode.setRightNode(newNode);\n\t\t\t\t\tbreak;//exit the while loop once the value is set\n\t\t\t\t}else {\n\t\t\t\t\tqueue.add(currentNode.getLeftNode());\n\t\t\t\t\tqueue.add(currentNode.getRightNode());\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t}", "@Override\n public boolean insert(T val) {\n List<Node> path = new ArrayList<>();\n boolean[] wasInserted = new boolean[1];\n root = insertRec(val, root, path, wasInserted);\n splay(path.get(0), path.subList(1, path.size()));\n\n if (wasInserted[0]) {\n ++this.size;\n return true;\n }\n return false;\n }", "public void insert(int val) {\n root = insertRec(root, val);\n }", "void insert(K key, V value) {\r\n // binary search\r\n int correct_place = Collections.binarySearch(keys, key);\r\n int indexing;\r\n if (correct_place >= 0) {\r\n indexing = correct_place;\r\n } else {\r\n indexing = -correct_place - 1;\r\n }\r\n\r\n if (correct_place >= 0) {\r\n keys.add(indexing, key);\r\n values.add(indexing, value);\r\n } else {\r\n keys.add(indexing, key);\r\n values.add(indexing, value);\r\n }\r\n\r\n // to check if the node is overloaded then split\r\n if (root.isOverflow()) {\r\n Node sibling = split();\r\n InternalNode newRoot = new InternalNode();\r\n newRoot.keys.add(sibling.getFirstLeafKey());\r\n newRoot.children.add(this);\r\n newRoot.children.add(sibling);\r\n root = newRoot;\r\n }\r\n }", "void insert(int value){\r\n\t\tNode node = new Node(value);\r\n\t\t \r\n\t\tif( this.root == null ) {\r\n\t\t\tthis.root = node ;\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t \r\n\t\tNode tempNode = this.root , parent = this.root;\r\n\t\t\r\n\t\twhile( tempNode != null ) {\r\n\t\t\tparent = tempNode;\r\n\t\t\tif( node.value >= tempNode.value ) {\r\n\t\t\t\ttempNode = tempNode.right;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\ttempNode = tempNode.left ;\r\n\t\t\t}\r\n\t\t}\r\n\t\t \r\n\t\tif( node.value < parent.value ) {\r\n\t\t\tparent.left = node ;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tparent.right = node ;\r\n\t\t}\r\n\t}", "public void insert(T val) {\n\t\tlstEle.add(val);\n\t\theapSize++;\n\t\t// Need to move up the tree and satisfy the heap property\n\t\tint currIndex = heapSize - 1;\n\t\tint parentIndex = getParent(currIndex);\n\t\tif (parentIndex >= 0) {\n\t\t\tdo {\n\t\t\t\tT parentVal = lstEle.get(parentIndex);\n\t\t\t\tif (parentVal.compareTo(val) > 0) {\n\t\t\t\t\tlstEle.set(parentIndex, val);\n\t\t\t\t\tlstEle.set(currIndex, parentVal);\n\t\t\t\t\tcurrIndex = parentIndex;\n\t\t\t\t\tparentIndex = getParent(currIndex);\n\t\t\t\t}else{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t} while (parentIndex >= 0);\n\t\t}else{\n\t\t\t//do nothing\n\t\t}\n\t\t\n\t}", "public void insert(int value) {\r\n\t\tif (this.empty) {\r\n\t\t\tthis.empty = false;\r\n\t\t\tthis.size++;\r\n\t\t\tHeapTreesArray[0] = new HeapNode(value);\r\n\t\t\tthis.min = HeapTreesArray[0];\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tHeapNode hN = new HeapNode(value);\r\n\t\tBinomialHeap bH = new BinomialHeap();\r\n\t\tbH.insert(value);\r\n\t\tthis.meld(bH);\r\n\t\tif (this.min.value > value) {\r\n\t\t\tthis.min = hN;\r\n\t\t}\r\n\t}", "public void insert(int key){\n\t\tBSTNode currentNode = root;\n\t\tBSTNode parent = null;\n\t\twhile (currentNode != null){\n\t\t\tif (currentNode.getKey() == key){\n\t\t\t\tSystem.out.println(\"This value already exists in the tree!\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tparent = currentNode;\n\t\t\tif (key < currentNode.getKey()){\n\t\t\t\tcurrentNode = currentNode.getLeft();\n\t\t\t}else{\n\t\t\t\tcurrentNode = currentNode.getRight();\n\t\t\t}\n\t\t}\n\t\t// once we reached the bottom of the tree, we insert the new node.\n\t\t// to do that we need to know the leaf node which is stored in the BSTNode parent\n\t\t// by comparing with its value, we know which side to insert the new node.\n\t\tif (key < parent.getKey()){\n\t\t\tparent.setLeft(new BSTNode(key, null, null));\n\t\t}else{\n\t\t\tparent.setRight(new BSTNode(key, null, null));\n\t\t}\n\t\tsize++;\n\t}", "public void insert(int val) {\r\n heap.add(val);\r\n int curr = heap.size() - 1;\r\n\r\n while (val < heap.get(getParent(curr))) {\r\n swap(curr, getParent(curr));\r\n curr = getParent(curr);\r\n }\r\n }", "public Tree<T> add(T value) {\n checkForNull(value);\n\n if (childrenValueSet.contains(value)) {\n return null;\n }\n\n Tree<T> tree = new Tree<>(value, this);\n incModificationCount();\n\n return tree;\n }", "public void insert(Node node, int value) {\n if (value < node.value) {\n if (node.left != null) {\n insert(node.left, value);\n } else {\n System.out.println(\" Inserted \" + value + \" to left of \" + node.value);\n node.left = new Node(value);\n }\n } else if (value > node.value) {\n if (node.right != null) {\n insert(node.right, value);\n } else {\n System.out.println(\" Inserted \" + value + \" to right of \" + node.value);\n node.right = new Node(value);\n }\n }\n }", "public static TreeNode insertIntoBST(TreeNode root, int val)\n{\n TreeNode droot = root;\n TreeNode par = find(droot, val, null);\n if(par==null)\n return par;\n if(par.val < val)\n par.right = new TreeNode(val);\n else\n par.left = new TreeNode(val);\n return root;\n}", "protected boolean insert(Node<T> node, T value) {\n\n\t\tif (value == null)\n\t\t\treturn false;\n\t\tif (node == null) {\n\t\t\troot = new Node<T>(value);\n\t\t\treturn true;\n\t\t}\n\t\tif (value.compareTo(node.value) > 0)\n\t\t\tif (node.left != null) {\n\t\t\t\treturn insert(node.left, value);\n\t\t\t} else {\n\t\t\t\tnode.left = new Node<T>(value);\n\t\t\t\tnode.left.previous = node;\n\t\t\t\treturn true;\n\t\t\t}\n\t\telse if (value.compareTo(node.value) < 0)\n\t\t\tif (node.right != null) {\n\t\t\t\treturn insert(node.right, value);\n\t\t\t} else {\n\t\t\t\tnode.right = new Node<T>(value);\n\t\t\t\tnode.right.previous = node;\n\t\t\t\treturn true;\n\t\t\t}\n\t\telse\n\t\t\treturn false;\n\t}", "public void put(Key key,Value value){\n\t\troot = insert(root,key,value);\n\t}", "public void insert(int value) {\n\t\tif (isEmpty()) {\n\t\t\thead = new IntNode(value, head, null);\n\t\t\tcurrent = head;\n\t\t}\n\t\telse {\n\t\t\tcurrent.setNext(new IntNode(value, current, current.getNext()));\n\t\t\tcurrent = current.getNext();\n\t\t}\n\t}", "public void add(T value) {\n final Node node = new Node(value);\n if (root != null) {\n root.add(node);\n } else {\n root = node;\n }\n }", "public void insert( AnyType x )\r\n\t{\r\n\t\troot = insert( x, root );\r\n\t}", "private TreeNode<K, V> put(TreeNode<K, V> node, K key, V value){\r\n \r\n // If the node is null, create a new node with the information\r\n // passed into the function\r\n if(node == null){\r\n return new TreeNode<>(key, value);\r\n }\r\n \r\n // Compare the keys recursively to find the correct spot to insert\r\n // the new node or if the key already exists\r\n if(node.getKey().compareTo(key) > 0){\r\n // If the current node has a value greater than our key, go left\r\n node.left = put(node.left, key, value);\r\n }\r\n else if(node.getKey().compareTo(key) < 0){\r\n // If the current node has a value less than our key, go right\r\n node.right = put(node.right, key, value);\r\n }\r\n else{\r\n // If the keys are equal, only update the value\r\n node.setValue(value);\r\n }\r\n \r\n // Return the updated or newly inserted node\r\n return node;\r\n }", "private void insertRecursively(Node<T> parent, T value) {\n\n Node<T> node = new Node<>(value);\n\n // Traverses the tree to the left if the new node's key is less than the parent's key.\n if (value.compareTo(parent.getValue()) == -1) {\n\n // If the parent's left branch is empty, sets it as the new node.\n if (parent.getLeft() == null) parent.setLeft(node);\n // Otherwise, calls this method again, with the parent's left branch as the new parent.\n else insertRecursively(parent.getLeft(), value);\n\n // Traverses to the right with reversed logic.\n } else if (value.compareTo(parent.getValue()) == 1) {\n\n if (parent.getRight() == null) parent.setRight(node);\n else insertRecursively(parent.getRight(), value);\n }\n\n balance(parent.getLeft());\n balance(parent.getRight());\n balance(parent);\n }", "public void insert(int a) {\r\n\t\tif (this.value > a) {\r\n\t\t\tif (this.leftChild == null) {\r\n\t\t\t\tthis.leftChild = new Node(a);\r\n\t\t\t} else {\r\n\t\t\t\tthis.leftChild.insert(a);\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tif (this.value == 0) {\r\n\t\t\t\tthis.value = a;\r\n\t\t\t} else {\r\n\t\t\t\tif (this.rightChild == null) {\r\n\t\t\t\t\tthis.rightChild = new Node(a);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.rightChild.insert(a);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void insert(int key){\n\t\tif(this.root == null){\n\t\t\tNode r = new Node(key);\n\t\t\tthis.root = r;\t\n\t\t}else{\n\t\t\t//if not recursively insert the node\n\t\t\trecInsert(this.root, key);\n\t\t}\n\t\treturn;\n\t}", "public void insert(int value){\n head = new Node(value,head);\n size++;\n }", "public void add(int value) {\n // resize if necessary\n if (size + 1 >= elementData.length) {\n elementData = Arrays.copyOf(elementData, elementData.length * 2);\n }\n \n // insert as new rightmost leaf\n elementData[size + 1] = value;\n \n // \"bubble up\" toward root as necessary to fix ordering\n int index = size + 1;\n boolean found = false; // have we found the proper place yet?\n while (!found && hasParent(index)) {\n int parent = parent(index);\n if (elementData[index] < elementData[parent]) {\n swap(elementData, index, parent(index));\n index = parent(index);\n } else {\n found = true; // found proper location; stop the loop\n }\n }\n \n size++;\n }", "public void insert(int val) throws DifferentOrderTrees {\r\n \tMonceau monceauTemp = new Monceau();\r\n \t\r\n \tmonceauTemp.arbres.add(new Node(val));\r\n \tthis.fusion(monceauTemp);\r\n }", "public void insert(int key,int value){\n\t\tif(map.containsKey(key)){\n\t\t\tNode n = map.get(key);\n\t\t\tdeleteNode(n);\n\t\t\taddToHead(n);\n\t\t} else {\n\t\t\tif(count > capacity){\n\t\t\t\tint key1 = tail.key;\n\t\t\t\tmap.remove(key1);\n\t\t\t\tdeleteTail();\n\t\t\t\tNode n = new Node(key,value);\n\t\t\t\tmap.put(key, n);\n\t\t\t\taddToHead(n);\n\t\t\t} else {\n\t\t\t\tNode n = new Node(key,value);\n\t\t\t\tmap.put(key, n);\n\t\t\t\taddToHead(n);\n\t\t\t}\n\t\t}\n\t}", "public boolean insert(T value) {\n if (value == null)\n return false;\n\n int prevSize = size;//record starting size\n\n root = insert( value, root );//helper method called\n\n return prevSize != size;//return true if size changed\n }", "@Override\r\n public V put(K key, V value){\r\n \r\n // Declare a temporay node and instantiate it with the key and\r\n // previous value of that key\r\n TreeNode<K, V> tempNode = new TreeNode<>(key, get(key));\r\n \r\n // Call overloaded put function to either place a new node\r\n // in the tree or update the exisiting value for the key\r\n root = put(root, key, value);\r\n \r\n // Return the previous value of the key through the temporary node\r\n return tempNode.getValue();\r\n }", "public void addAtNextOpenSpot(T value) {\n Node<T> newNode = new Node<>(value);\n if (this.root == null) {\n this.root = newNode;\n return;\n }\n LinkedList<Node<T>> nodesToCheck = new LinkedList<>();\n nodesToCheck.addLast(this.root);\n while(true) {\n Node<T> current = nodesToCheck.removeFirst();\n if(current.getLeftChildNode() == null) {\n current.setLeftChildNode(newNode);\n return;\n } else if (current.getRightChildNode() == null) {\n current.setRightChildNode(newNode);\n return;\n } else {\n nodesToCheck.addLast(current.getLeftChildNode());\n nodesToCheck.addLast(current.getRightChildNode());\n }\n }\n }", "public void insert(int X)\n {\n root = insert(X, root);\n }", "public void insert(T data)\r\n {\r\n root = insert(root, data);\r\n }", "public static void insert(TreeNode root, int key) {\n\t\tcounter++;\r\n\r\n\t\t// key less than the value of root.\r\n\t\tif (key < root.item) {\r\n\t\t\tif (root.left == null) {\r\n\t\t\t\tTreeNode node = new TreeNode(null, key, null);\r\n\t\t\t\troot.left = node;\r\n\t\t\t} else {\r\n\t\t\t\tinsert(root.left, key);\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tif (root.right == null) {\r\n\t\t\t\tTreeNode node = new TreeNode(null, key, null);\r\n\t\t\t\troot.right = node;\r\n\t\t\t} else {\r\n\t\t\t\tinsert(root.right, key);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void insert(T data){\n\t\troot = insert(data, root);\n\t}", "public void insert (K k, V v) {\n\t\tif (root == null) {\n\t\t\troot = myInsert(root, k, v);\n\t\t} \n\t\telse {\n\t\t\tmyInsert(root, k, v);\n\t\t}\n\t}", "void insert(int value){\n\t\tNode newNode=new Node(value);\n\n\t\tif(head==null){\n\t\t\thead=newNode;\n\t\t\tsize++;\n\t\t}\n\t\telse{\n\t\t\tNode temp=head;\n\t\t\twhile(temp.getNext()!=null){\n\t\t\t\ttemp=temp.getNext();\n\t\t\t}\n\t\t\ttemp.setNext(newNode);\n\t\t\tsize++;\n\t\t}\n\t}", "public boolean insert(Integer key, String value) {\n\t\treturn root.insert(key, value);\n\t}", "public void put(int key, int value) {\n int hash = key % 1024;\n TreeNode treeNode = array[hash];\n if (treeNode == null) {\n array[hash] = new TreeNode(value);\n }\n if (value > treeNode.value) {\n\n }\n\n }", "public void insertingANode(T key, E value) {\r\n\t\tRBNode<T, E> insertedNode = createRBNode(key, value);\r\n\t}", "void insert(Object value, int position);", "@Override\n public boolean add(E value) {\n final AVLTreeNode<E> insert = insert(value);\n if(insert != null && insert != tree.getHead()){\n tree.setHead(insert);\n }\n return insert != null;\n }", "static void treeInsert(double x) {\n if ( root == null ) {\n // If the tree is empty set root to point to a new node \n // containing the new item.\n root = new TreeNode( x );\n return;\n }\n TreeNode runner; // Runs down the tree to find a place for newItem.\n runner = root; // Start at the root.\n while (true) {\n if ( x < runner.item ) {\n // Since the new item is less than the item in runner,\n // it belongs in the left subtree of runner. If there\n // is an open space at runner.left, add a node there.\n // Otherwise, advance runner down one level to the left.\n if ( runner.left == null ) {\n runner.left = new TreeNode( x );\n return; // New item has been added to the tree.\n }\n else\n runner = runner.left;\n }\n else {\n // Since the new item is greater than or equal to the \n // item in runner, it belongs in the right subtree of\n // runner. If there is an open space at runner.right, \n // add a new node there. Otherwise, advance runner\n // down one level to the right.\n if ( runner.right == null ) {\n runner.right = new TreeNode( x );\n return; // New item has been added to the tree.\n }\n else\n runner = runner.right;\n }\n } // end while\n }", "public void insert(int x) {\n root = insertHelper(root, x);\n }", "public void push(T value) {\n top = new Entry<>(value, top); // diamond operator (syntactic sugar)\n }", "public void add(K key, V value) {\n Node<K,V> node = root, parent = null;\n int cmp = -1;\n\n while (node != null) {\n cmp = key.compareTo(node.key);\n parent = node;\n if (cmp < 0) {\n node = node.left;\n } else if (cmp > 0) {\n node = node.right;\n } else {\n node.value = value;\n return;\n }\n }\n\n Node<K,V> new_node = new Node<>(key, value);\n if (parent == null) {\n root = new_node;\n } else if (cmp < 0) {\n parent.left = new_node;\n } else {\n parent.right = new_node;\n }\n }", "public void insert(T e) {\n if (e == null) return;\n root = insert(root, e);\n }", "Node insertRec(T val, Node node, List<Node> path, boolean[] wasInserted) {\n if (node == null) {\n wasInserted[0] = true;\n Node newNode = new Node(val);\n path.add(newNode);\n return newNode;\n }\n\n int comp = val.compareTo(node.val);\n if (comp < 0) {\n node.left = insertRec(val, node.left, path, wasInserted);\n } else if (comp > 0) {\n node.right = insertRec(val, node.right, path, wasInserted);\n }\n\n path.add(node);\n return node;\n }", "public void insert(K k, V v) {\n if (k == null) {\n throw new IllegalArgumentException();\n }\n Item<K,V> i = new Item<K,V>(k, v);\n size += 1;\n if (root == null) {\n root = i;\n return;\n }\n\n Item<K,V> x = root;\n Item<K,V> p = root;\n while (true) {\n if (x == null) {\n break;\n }\n p = x;\n // less than\n if (x.getK().compareTo(k) <= 0){ \n x = x.getR();\n } else {\n x = x.getL();\n }\n }\n i.setP(p);\n if (p.getK().compareTo(k) <= 0){\n p.setR(i);\n } else {\n p.setL(i);\n }\n }", "public void insert(int data) { \n\t\troot = insert(root, data);\t\n\t}", "public void insert(int data)\r\n {\r\n root = insert(root, data);\r\n }", "private void putInBinaryTree(int val) {\n BinaryTree.Node node = this.binaryTree.getRoot();\n BinaryTree.Node parent = node;\n while (node != null) {\n parent = node;\n if (val < node.data) node = node.left;\n else node = node.right;\n }\n if (val < parent.data) this.binaryTree.addAsLeftChild(parent, val);\n else this.binaryTree.addAsRightChild(parent, val);\n }", "public void push(T value) {\n\t\tNode current = new Node(value);\n\t\tif (isEmpty())\n\t\t\ttop = current; // if empty stack\n\t\telse {\n\t\t\tcurrent.next = top;\n\t\t\ttop = current;\n\t\t}\n\t}", "private Node putHelper(K key, V value, Node p) {\n if(p == null){\n size++;\n Node node = new Node(key, value);\n return node;\n }\n int cmp = key.compareTo(p.key);\n if(cmp < 0){\n // put int the left\n p.left = putHelper(key, value, p.left);\n }else if(cmp > 0){\n // put in the right\n p.right = putHelper(key, value, p.right);\n }else{\n p.value = value;\n }\n return p;\n }", "public boolean add(T value) {\n NodePair<T> spl = split(root, value);\n\n if (spl.second != null && getLeft(spl.second).value.compareTo(value) == 0) {\n root = merge(spl.first, spl.second);\n return false;\n }\n\n root = merge(spl.first, merge(makeNode(value), spl.second));\n return true;\n }", "public void insert(int key) {\n\t\tprivateInsert(key, root, null, new Ref<Integer>(1));\n\t}", "public Entry insert(Object key, Object value) {\n int hashCode = key.hashCode();\n int index = compFunction(hashCode);\n\n Entry entry = new Entry();\n entry.key = key;\n entry.value = value;\n\n defTable[index].insertFront(entry);\n size++;\n return entry;\n }", "public void insert(int data) {\n root = insert(root, data, null);\n }", "private void insertNodeIntoTree(Node node) {\n\t\troot = insert(root,node);\t\n\t}", "public void addItem(int value) {\n if (root == null) {\n root = new Node(value);\n } else {\n addToNode(root, value);\n }\n }", "private IntTreeNode add(IntTreeNode root, int value) {\n if (root == null) {\n root = new IntTreeNode(value);\n } else if (value <= root.data) {\n root.left = add(root.left, value);\n } else {\n root.right = add(root.right, value);\n\t}\n return root;\n }", "public void insert(int value) {\n\t\t\n\t\tNode temp =new Node(value); // created object name temp (creating NODE) that have 2 contain data and next\n\t\t\n\t\t// no node available therefore this is 1st node\n\t\tif(this.head==null) { \n\t\t\thead = temp; // head pointed to temp\n\t\t}\n\t\telse {\n\t\t\t// this is not the first node to be inserted\n\t\t\ttemp.next = head; // head ke contain temp ke next me copy kiye\n\t\t\thead = temp; // temp pointed(next) copy into head\n\n\t\t}\n\t}", "public void put(Key key, Value value) {\n\t\tNode entry = new Node(key, value, current_node);\n\t\tcurrent_node = entry; size++;\n\t}", "public void addTo(BSTNode node, int value){\n // Allocate new node with specified value\n BSTNode newNode = new BSTNode(value);\n \n // Case 1: Value is less than the current node value\n if(value < node.value){\n // If there is no left child make this the new left\n if(node.left == null){\n node.left = newNode;\n }\n else{\n // else add it to the left node\n addTo(node.left, value);\n }\n } // End Case 1\n \n // Case 2: Value is equal to or greater than the current value\n else {\n // If there is no right, add it to the right\n if(node.right == null){\n node.right = newNode;\n }\n else{\n // else add it to the right node\n addTo(node.right, value);\n }\n } // End Case 2\n }", "@Override\n public int insert(E value) {\n //noinspection DuplicateStringLiteralInspection\n log.trace(\"Adding '\" + value + \"' to pool '\" + poolName + \"'\");\n int insertPos = Collections.binarySearch(this, value, this);\n if (insertPos >= 0) {\n log.trace(\"Value '\" + value + \"' already exists in pool '\" + poolName + \"'\");\n return -1 * insertPos - 1;\n }\n insertPos = -1 * (insertPos + 1);\n add(insertPos, value); // Positive position\n return insertPos;\n }", "public boolean insert(T key, E value) {\r\n\t\t// Creating a Node\r\n\t\tRBNode<T, E> insertedNode = createRBNode(key, value);\r\n\t\t// First Node will be the Root\r\n\t\tif (checkSize(this.size)) {\r\n\t\t\tthis.root = insertedNode;\r\n\t\t\tinsertedNode.leftChild = nillLeaf;\r\n\t\t\tinsertedNode.rightChild = nillLeaf;\r\n\t\t} else {\r\n\t\t\tRBNode<T, E> parent = nillLeaf;\r\n\t\t\tRBNode<T, E> current = root;\r\n\t\t\twhile (current != nillLeaf) {\r\n\t\t\t\tSystem.out.println(\"Test1\");\r\n\t\t\t\t// add to left\r\n\t\t\t\tif (key.compareTo(current.getUniqueKey()) < 0) {\r\n\t\t\t\t\tSystem.out.println(\"Test2\");\r\n\t\t\t\t\tparent = current;\r\n\t\t\t\t\tcurrent = current.leftChild;\r\n\t\t\t\t}\r\n\t\t\t\t// add to right\r\n\t\t\t\telse if (key.compareTo(current.getUniqueKey()) > 0) {\r\n\t\t\t\t\tSystem.out.println(\"Test3\");\r\n\t\t\t\t\tparent = current;\r\n\t\t\t\t\tcurrent = current.rightChild;\r\n\t\t\t\t} else\r\n\t\t\t\t\tSystem.out.println(\"Test4\");\r\n\t\t\t\t\t// return if the key is a duplicate\r\n\t\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\t// Add a node to the root.\r\n\t\t\tif (key.compareTo(current.getUniqueKey()) < 0) {\r\n\t\t\t\tSystem.out.println(\"Test5\");\r\n\t\t\t\tparent.leftChild = insertedNode;\r\n\t\t\t\tinsertedNode.parent = parent;\r\n\t\t\t\tinsertedNode.leftChild = nillLeaf;\r\n\t\t\t\tinsertedNode.rightChild = nillLeaf;\r\n\t\t\t} else {\r\n\t\t\t\tparent.rightChild = insertedNode;\r\n\t\t\t\tinsertedNode.parent = parent;\r\n\t\t\t\tinsertedNode.leftChild = nillLeaf;\r\n\t\t\t\tinsertedNode.rightChild = nillLeaf;\r\n\t\t\t}\r\n\t\t}\r\n\t\tthis.size++;\r\n\t\treturn true;\r\n\t}", "public void insert(Integer key){\r\n\t\tint start=this.root;\r\n\t\tint currentPos=avail;\r\n\t\tint temp=-1;\r\n\t\twhile(increaseCompares() && start!=-1) {\r\n\t\t\ttemp=start;\r\n\t\t\tcompares++;\r\n\t\t\tif(increaseCompares() && key<getKey(start)) {\r\n\t\t\t\tstart=getLeft(start);\r\n\t\t\t\tcompares++;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tstart=getRight(start);\r\n\t\t\t\tcompares++;\r\n\t\t\t}\r\n\t\t}\r\n\t\t//Tree is empty. New Node is now root of tree\r\n\t\tif(increaseCompares() && temp==-1) {\r\n\t\t\tsetRoot(0);\r\n\t\t\tcompares++;\r\n\t\t\tsetKey(avail, key);\r\n\t\t\tcompares++;\r\n\t\t\tavail=getRight(currentPos);\r\n\t\t\tcompares++;\r\n\t\t\tsetRight(currentPos,-1);\r\n\t\t\tcompares++;\r\n\t\t}\r\n\t\t//Compare values and place newNode either left or right of previous Node\r\n\t\telse if(increaseCompares() && key<getKey(temp)) {\r\n\t\t\t//Set previous (parent) Node of new inserted Node\r\n\t\t\tsetLeft(temp, currentPos);\r\n\t\t\tcompares++;\r\n\t\t\t//Initialize line of new Node\r\n\t\t\tsetKey(currentPos,key);\r\n\t\t\tcompares++;\r\n\t\t\tavail=getRight(currentPos);\r\n\t\t\tcompares++;\r\n\t\t\tsetRight(currentPos,-1);\r\n\t\t\tcompares++;\r\n\t\t}\r\n\t\telse {\r\n\t\t\t//Set previous (parent) Node of new inserted Node\r\n\t\t\tsetRight(temp, currentPos);\r\n\t\t\tcompares++;\r\n\t\t\t//Initialize line of new Node\r\n\t\t\tsetKey(currentPos,key);\r\n\t\t\tcompares++;\r\n\t\t\tavail=getRight(currentPos);\r\n\t\t\tcompares++;\r\n\t\t\tsetRight(currentPos,-1);\r\n\t\t\tcompares++;\r\n\t\t}\r\n\t}", "private Node add(Node root, Integer value) {\n\t\tif(root==null)\n\t\t\troot=new Node(value);\n\t\telse if(value<root.value)\n\t\t\troot.left=add(root.left, value);\n\t\telse if(value>root.value)\n\t\t\troot.right=add(root.right,value);\n\t\telse\n\t\t\tthrow new RuleViolationException();\n\t\treturn root;\n\t}", "public void insert(AnyType x) {\n\t\troot = insert(x, root);\n\t}", "void insert(T value, int position);", "public void add(int value){\n if (value < this.value){\n if (this.left != null)\n left.add(value);\n else left = new MyBinaryTreeNode(value);\n }\n else if (value > this.value){\n if (this.right != null)\n right.add(value);\n else right = new MyBinaryTreeNode(value);\n }\n }", "public void insert(Node n);", "public static Node insert(Node root, int val) {\n if (root == null) {\n return new Node(val);\n } else {\n //IF THE VALUE ROOT IS GREATER THEN THE VAL\n //GO TO LEFT\n //AND CALL INSERT METHOD (IF NULL ADD A NEW NODE WITH THE VALUE VAL)\n if (val <= root.data) {\n root.left = insert(root.left, val);\n } else {\n //IF THE VALUE OF ROOT IS SMALLER THEN THE VAL\n //GO TO RIGHT\n //AND CALL INSERT METHOD (IF NULL ADD A NEW NODE WITH THE VALUE VAL)\n root.right = insert(root.right, val);\n }\n }\n return root;\n }", "public synchronized V put(K key, V value) {\n if (key == null) {\n throw new NullPointerException(\"Key is null\");\n }\n\n //1. insert root node\n Node<K, V> tempParent = root;\n if (tempParent == null) {\n tempParent = get(key);\n if (tempParent == null) {\n root = new Node(key, value, this.offVersioning, store);\n root.setRoot(true);\n root.setHash(updatedNodes);\n return null;\n }\n root = tempParent;\n }\n\n Object[] prevValue = new Object[1];\n\n insert(tempParent, key, value, prevValue);\n return (V) prevValue[0];\n }", "public void insert(T data) {\n if (root == null) {\n root = new Node<>(data);\n } else {\n Node<T> current = root;\n Node<T> newNode = new Node<>(data);\n\n while (true) {\n if (newNode.compareTo(current) <= 0) {\n if (current.hasLeft()) {\n current = current.getLeft();\n } else {\n current.setLeft(newNode);\n break;\n }\n } else {\n if (current.hasRight()) {\n current = current.getRight();\n } else {\n current.setRight(newNode);\n break;\n }\n }\n }\n }\n size++;\n }", "public void insertNode(int d){\n if(root == null){\n root = new TreeNode(d);\n }\n else{\n root.insert(d);\n }\n }", "public void insert(int value, int pos){\n if (head != null) {\n // Have a first node\n head = head.insert(value,pos);\n } else {\n // List empty\n this.add(value);\n }\n }", "protected Node<K, V> insert(K k, V v) {\n // if the given key is smaller than this key\n if (this.c.compare(k, this.key) < 0) {\n return new Node<K, V>(this.key, \n this.value, \n this.c, \n this.left.insert(k, v), \n this.right,\n this.black).balance();\n }\n // if the given key is equal to this key, set \n // this key's value to the given value\n else if (this.c.compare(k, this.key) == 0) {\n return new Node<K, V>(k, v, \n this.c, \n this.left, \n this.right, \n this.black);\n }\n // if the given key is bigger than this key\n else {\n return new Node<K, V>(this.key, \n this.value, \n this.c, \n this.left, \n this.right.insert(k, v), \n this.black).balance();\n }\n }", "static TreeNode insert(TreeNode node, int key) \n\t{ \n\t // if tree is empty return new node \n\t if (node == null) \n\t return newNode(key); \n\t \n\t // if key is less then or grater then \n\t // node value then recur down the tree \n\t if (key < node.key) \n\t node.left = insert(node.left, key); \n\t else if (key > node.key) \n\t node.right = insert(node.right, key); \n\t \n\t // return the (unchanged) node pointer \n\t return node; \n\t}", "@Override\n\tpublic void add(Integer value) {\n\t\troot=add(root,value);\n\t\tcount++;\n\t}", "public void insertNode(int val)\r\n {\r\n temp=new TriLinkNode();\r\n temp.v1=val;\r\n temp.d1=false;\r\n temp.i1=true;\r\n if(root==null)\r\n {\r\n root=temp;\r\n }else\r\n {\r\n recInsertNode(root);\r\n }\r\n \r\n }", "private Node putHelper(Node n, K key, V value) {\n if (n == null) {\n n = new Node(key, value);\n } else if (key.compareTo(n.key) < 0) {\n n.leftChild = putHelper(n.leftChild, key, value);\n } else if (key.compareTo(n.key) > 0) {\n n.rightChild = putHelper(n.rightChild, key, value);\n }\n\n return n;\n }" ]
[ "0.819128", "0.7913675", "0.7775786", "0.75455266", "0.75294405", "0.74797624", "0.73463863", "0.7324958", "0.72676396", "0.72655076", "0.725936", "0.7237804", "0.7194952", "0.7155973", "0.7143166", "0.7067116", "0.7066587", "0.70639646", "0.7060886", "0.70515215", "0.705152", "0.70457613", "0.7028482", "0.69869983", "0.6963179", "0.69504195", "0.68880695", "0.68675774", "0.68663657", "0.68304694", "0.68182474", "0.6804506", "0.6762001", "0.67125666", "0.66862285", "0.6665571", "0.6656795", "0.664042", "0.6621264", "0.6583818", "0.657036", "0.65694666", "0.65503037", "0.65483165", "0.6548183", "0.654308", "0.65345496", "0.6512704", "0.64681697", "0.6467685", "0.6467028", "0.6465073", "0.6444658", "0.64426076", "0.6440338", "0.64313173", "0.64250416", "0.6420412", "0.6406595", "0.64029497", "0.63998455", "0.63819736", "0.6380103", "0.6373935", "0.6363852", "0.6355581", "0.63469166", "0.63447356", "0.6314466", "0.6313372", "0.63104403", "0.63096786", "0.63007194", "0.62998694", "0.6295569", "0.6283852", "0.62812877", "0.6274571", "0.62727165", "0.62677735", "0.62407434", "0.62392247", "0.6233921", "0.6229239", "0.62269956", "0.6221574", "0.6213719", "0.6213239", "0.6209795", "0.62079287", "0.62034243", "0.6188683", "0.61848193", "0.61761105", "0.61652756", "0.61642456", "0.6163924", "0.6157481", "0.61535496", "0.61532074" ]
0.6352579
66
Doubles the tree in size.
private void expandTree() { tree.expand(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setTreeSize(Double newtreesize)\n {\n treesize = newtreesize; \n }", "public double getTreeSize()\n {\n return treesize; \n }", "public void doubleSize()\r\n\t{\r\n \t\tint newSize = Stack.length * 2;\r\n\t Stack = Arrays.copyOf(Stack, newSize);\r\n\t}", "public void setSize() {\n\t\t\tthis.size = 1;\n\t\t\tint leftSize = 0;\n\t\t\tint rightSize = 0;\n\t\t\tif (this.getLeft().getKey() != -1) {\n\t\t\t\tleftSize = this.getLeft().getSize();\n\t\t\t}\n\t\t\tif (this.getRight().getKey() != -1) {\n\t\t\t\trightSize = this.getRight().getSize();\n\t\t\t}\n\t\t\tthis.size += leftSize + rightSize;\n\n\t\t\t/**\n\t\t\t * this.size = 1; int leftSize = 0; int rightSize = 0; try { leftSize =\n\t\t\t * this.getLeft().getSize(); this.size += leftSize; } catch\n\t\t\t * (NullPointerException e) { this.size += leftSize; } try { rightSize =\n\t\t\t * this.getRight().getSize(); this.size += rightSize; } catch\n\t\t\t * (NullPointerException e) { this.size += rightSize; } if (this.getSize() >\n\t\t\t * 990) { System.out.println(\"actual size is:\" + this.getSize()); }\n\t\t\t */\n\t\t}", "public void updateSize() {\n\t\t\tthis.setSize();\n\t\t\tif (this.checkRoot()) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tAVLNode parent = (AVLNode) this.parent;\n\t\t\tparent.updateSize();\n\t\t}", "double muchMoreThenHalf() {\n return (this.getTotalNodeCount() + getFaultyNodeCount())/2;\n }", "int treeSize() {\n return\n memSize()\n + initializers.listSize()\n + updaters.listSize()\n + (optionalConditionExpression == null ? 0 : getExpression().treeSize())\n + (body == null ? 0 : getBody().treeSize()); }", "int treeSize() {\n return memSize() + (this.expression == null ? 0 : getExpression().treeSize()) + (this.typeArguments == null ? 0 : this.typeArguments.listSize()) + (this.methodName == null ? 0 : getName().treeSize());\n }", "private void reFixForDel(WAVLNode y) { // in a case of deletion of a node that doesnt exist in the tree, the method will fix the size all the way to the root\r\n\t y.sizen++;\r\n\t while(y.parent!=null) {\r\n\t\t y=y.parent;\r\n\t\t y.sizen++;\r\n\t }\r\n }", "private void SizesUpdate(IAVLNode parent) { \r\n\t\t\tIAVLNode curr = parent;\r\n\t\t\t\r\n\t\t\t//down check\r\n\t\t\tif(curr != null && curr.getRight().isRealNode())\r\n\t\t\t\tcurr.getRight().setSize(curr.getRight().getRight().getSize() + curr.getRight().getLeft().getSize() + 1);\r\n\t\t\tif(curr != null && curr.getLeft().isRealNode())\r\n\t\t\t\tcurr.getLeft().setSize(curr.getLeft().getRight().getSize() + curr.getLeft().getLeft().getSize() + 1);\r\n\t\t\t\r\n\t\t\twhile(curr != null)\r\n\t\t\t {\r\n\t\t\t\t int newSize = curr.getRight().getSize() + curr.getLeft().getSize() + 1;\r\n\t\t\t\t if(curr.getSize() != newSize)\r\n\t\t\t\t \t curr.setSize(newSize);\r\n\t\t\t\t\tcurr = curr.getParent(); \r\n\t\t\t }\r\n\t\t}", "protected void updateSubtreeSize(BSTNode n) {\n\t\tn.size = 1;\n\n\t\tif (n.left != null)\n\t\t\tn.size += n.left.size;\n\n\t\tif (n.right != null)\n\t\t\tn.size += n.right.size;\n\t}", "public int getSize(){\n /**\n * TODO: INSERT YOUR CODE HERE\n * FIND THE NUMBER OF NODES IN THE TREE AND STORE THE VALUE IN CLASS VARIABLE \"size\"\n * RETURN THE \"size\" VALUE\n *\n * HINT: THE NMBER OF NODES CAN BE UPDATED IN THE \"size\" VARIABLE EVERY TIME A NODE IS INSERTED OR DELETED FROM THE TREE.\n */\n\n return size;\n }", "int treeSize() {\r\n\t\treturn\r\n\t\t\tmemSize()\r\n\t\t\t+ (this.expression == null ? 0 : getExpression().treeSize())\r\n\t\t\t+ (this.newArguments.listSize())\r\n\t\t\t+ (this.constructorArguments.listSize())\r\n\t\t\t+ (this.baseClasses.listSize())\r\n\t\t\t+ (this.declarations.listSize())\r\n\t;\r\n\t}", "private int getDoubleSize() {\n int oddNewSize = (sizeArray * 2) + 1;\n return primes.getNextPrime(oddNewSize);\n }", "private void increaseSize() {\r\n\t\tE[] biggerE = (E[]) new Object[this.capacity * 2];\r\n\t\tdouble[] biggerC = new double[this.capacity * 2];\r\n\t\tfor (int i = 0; i < this.size; i++) {\r\n\t\t\tbiggerE[i] = this.objectHeap[i];\r\n\t\t\tbiggerC[i] = this.costHeap[i];\r\n\t\t}\r\n\t\tthis.costHeap = biggerC;\r\n\t\tthis.objectHeap = biggerE;\r\n\t\tthis.capacity = this.capacity * 2;\r\n\t}", "private static int getTreeSize(int totalSize) {\n if (totalSize <= 32) {\n return 0;\n } else {\n // TODO: Clojure does ((realSize - 1) >>> 5) << 5); is that faster?\n return ((totalSize - 1) & (~0x1F));\n }\n }", "void updateSize() {\n setMeAndMyParentsAsDirty();\n }", "private void getSizeDfs(int nodeIdx, int parentNodeIdx){\r\n\t\tsubTreeSize[nodeIdx] = 1;\t\t//include this node\r\n\t\tmaxSubTreeSize[nodeIdx] = 0;\t//exclude this node\r\n\t\t\r\n\t\t//recursively get the size of children and add up\r\n\t\tfor(Integer idx: cities[nodeIdx].adjacentNodeIndices){\r\n\t\t\tif(parentNodeIdx == idx || visited[idx]) continue;\r\n\t\t\t\r\n\t\t\tgetSizeDfs(idx, nodeIdx);\r\n\t\t\tsubTreeSize[nodeIdx] += subTreeSize[idx];\r\n\t\t\t\r\n\t\t\tif(subTreeSize[idx] > maxSubTreeSize[nodeIdx])\r\n\t\t\t\tmaxSubTreeSize[nodeIdx] = subTreeSize[idx];\r\n\t\t}\r\n\t}", "private void doubleSize() {\n\t\tint[] arr2 = new int[2 * arr.length];\n\t\tfor (int i = 0; i < arr.length; ++i) {\n\t\t\tarr2[i] = arr[i];\n\t\t}\n\t\tarr = arr2;\n\t}", "@Override\n\tpublic double getSize() {\n\t\treturn Math.sqrt(getMySize())/2;\n\t}", "public KdTree() {\n size = 0;\n }", "@Test\r\n public void testHeightCompleteTree(){\r\n \ttree.add(\"deer\");\r\n \ttree.add(\"bar\"); //adding as child to left\r\n \ttree.add(\"jar\"); //add as child to right \r\n \ttree.add(\"apple\"); //adding to right side of right node\r\n \tassertEquals(tree.height(), 2); \r\n }", "double getSize();", "double getOrderSize();", "void decrementNewDepth() {\n mNewDepth--;\n }", "public void _increaseTableSize(){\n\t\tNode[] largerBuckets = new Node[_numBuckets * 2 + 1];\r\n\t\tNode[] oldBuckets = _buckets;\r\n\t\t_buckets = largerBuckets;\r\n\t\t_numBuckets = _numBuckets * 2 + 1;\r\n\t\t_count = 0;\r\n\t\t_loadFactor = 0.0;\r\n\t\tint i = 0;\r\n\t\tfor(Node eachNode : oldBuckets){\r\n\t\t\t_buckets[i] = eachNode;\r\n\t\t\ti++;\r\n\t\t}\r\n\t}", "protected void updateSubtreeSizePath(BSTNode n) {\n\t\tif (n == null)\n\t\t\treturn;\n\n\t\twhile (true) {\n\t\t\tupdateSubtreeSize(n);\n\n\t\t\tif (n.parent == null) {\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tn = n.parent;\n\t\t\t}\n\t\t}\n\t}", "float computeSize() {\n if (dirtyS) {\n size = modelRoot.getCSize().getSize(node);\n dirtyBufS = true;\n modelRoot.decrementNumberOfDirtySNodes();\n dirtyS = false;\n }\n return size;\n }", "protected void trimToSize() {\n\tnodeList.trimToSize();\n\tedgeList.trimToSize();\n }", "void incrementNewDepth() {\n mNewDepth++;\n }", "private void subdivide() {\n if (!hasChildren) {\n hasChildren = true;\n this.children = new QuadtreeNodeChildren(this);\n } else {\n return;\n }\n }", "public void update_height() {\r\n int tmp_height = 0;\r\n int tmp_left = -1;\r\n int tmp_right = -1;\r\n\r\n // set height of null children to -1\r\n if (leftChild != null) {\r\n tmp_left = leftChild.height;\r\n }\r\n if (rightChild != null) {\r\n tmp_right = rightChild.height;\r\n }\r\n\r\n // find highest child\r\n if (tmp_left > tmp_right) {\r\n tmp_height = tmp_left;\r\n }\r\n else {\r\n tmp_height = tmp_right;\r\n }\r\n\r\n // update this node's height\r\n height = tmp_height + 1;\r\n }", "void incrementOldDepth() {\n mOldDepth++;\n }", "public AbstractTree<T> calculateSizeAndSum() {\n Queue<Node<T>> pendingNodes = new ArrayDeque<>();\n pendingNodes.add(root);\n\n T sum = (T)(Number)0;\n int size = 0;\n\n while (pendingNodes.size() != 0) {\n Node<T> currNode = pendingNodes.poll();\n\n size++;\n sum = operations.add(sum, currNode.getValue());\n\n pendingNodes.addAll(currNode.getChildren());\n }\n\n this.size = size;\n this.sum = sum;\n\n return this;\n }", "public int size() {\n return this.treeSize - this.unusedTreeIndices.size();\n }", "int childrenSize();", "public Size calcSize(ChartOptions options) {\n Node n = this; // current node in the level\n Size s = new Size(); // alt,iter,opt: size of current construct\n int iterCompensation = 0;\n boolean samelevel = true; // next node in same level?\n int realHeight = n.calcHeight(options);\n Size maxTotalSize = new Size(0, 0);\n while (n != null && samelevel) {\n switch (n.typ) {\n case PREDICATE:\n case EXCEPTION:\n case TERM:\n case NONTERM:\n n.size.setHeight(\n options.fontHeight() + options.symbolGapHeight() * 2\n + options.componentGapHeight());\n n.size.setWidth(options.stringWidth(n.sym.name) + options.symbolGapWidth() * 2);\n if (n.typ.matches(NodeType.TERM, \n NodeType.EXCEPTION, \n NodeType.PREDICATE)) {\n n.size.maxWidth(options.arcSize());\n }\n\n if (!n.up && n.next != null && n.next.typ == NodeType.WRAP\n && n.next.size.getHeight() == 0)\n {\n if (!n.next.up\n && n.next.next != null\n && (n.next.next.typ.matches(NodeType.TERM, \n NodeType.NONTERM, \n NodeType.EXCEPTION,\n NodeType.PREDICATE)))\n {\n s.incWidth(options.componentGapWidth() / 2);\n }\n }\n if (!n.up\n && n.next != null\n && (n.next.typ.matches(NodeType.TERM,\n NodeType.NONTERM,\n NodeType.EXCEPTION,\n NodeType.PREDICATE)))\n {\n s.incWidth(options.componentGapWidth() / 2);\n }\n break;\n case EPS:\n n.size.setHeight(\n options.fontHeight()\n + options.componentGapHeight());\n n.size.setWidth(options.componentGapWidth());\n break;\n case OPT:\n n.size = n.sub.calcSize(options);\n n.size.incWidth(options.componentGapWidth() * 2);\n n.size.incHeight(\n options.componentGapHeight() / 2\n + options.componentGapHeight());\n break;\n case ITER:\n n.size = n.sub.calcSize(options);\n n.size.incWidth(options.componentGapWidth() * 2);\n n.size.incHeight(options.componentGapHeight() / 2);\n break;\n case WRAP:\n maxTotalSize.incHeight(\n s.getHeight()\n - options.componentGapHeight() / 2);\n maxTotalSize.maxWidth(s.getWidth());\n s.setHeight(0);\n s.setWidth(0);\n break;\n case RERUN:\n n.size = n.sub.calcSize(options);\n if (n.itergraph != null) {\n n.altSize = n.size;\n n.iterSize = n.itergraph.calcSize(options);\n n.size.maxWidth(n.iterSize.getWidth());\n n.size.incHeight(\n options.fontHeight() * 3 / 2\n + options.componentGapHeight());\n } \n n.size.incHeight(options.componentGapHeight() / 2);\n \n n.size.incWidth(options.componentGapWidth() * 2);\n break;\n case ALT: {\n Node a = n;\n int maxH = -options.componentGapHeight();\n int maxW = 0;\n while (a != null) {\n a.size = a.sub.calcSize(options);\n maxH += a.size.getHeight();\n if (a.size.getWidth() > maxW) {\n maxW = a.size.getWidth();\n }\n a = a.down;\n }\n if (n.sub.typ == NodeType.ITER && realHeight != 0) {\n maxH +=\n (options.fontHeight() + options.componentGapHeight())\n / 2;\n }\n maxW += 2 * options.componentGapWidth();\n maxH += options.componentGapHeight();\n\n n.altSize.setHeight(maxH);\n n.altSize.setWidth(maxW);\n }\n break;\n }\n if (n.typ == NodeType.ITER && realHeight != 0) {\n iterCompensation = (options.fontHeight() + options\n .componentGapHeight()) / 2;\n }\n if (n.typ == NodeType.ALT) {\n s.maxHeight(n.altSize.getHeight());\n s.incWidth(n.altSize.getWidth());\n } else {\n s.maxHeight(n.size.getHeight());\n s.incWidth(n.size.getWidth());\n }\n if (n.typ == NodeType.ITER) {\n s.maxHeight(n.size.getHeight() + iterCompensation);\n }\n if (n.up) {\n samelevel = false;\n }\n n = n.next;\n }\n if (maxTotalSize.getWidth() != 0) {\n maxTotalSize.incHeight(\n s.getHeight() - options.componentGapHeight()\n / 2);\n maxTotalSize.maxWidth(s.getWidth());\n return maxTotalSize;\n } else {\n return s;\n }\n }", "public int size() {\n return tree.count();\n }", "public void rebuild() {\n\t\tif (!divided) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tint totalChildren = 0;\n\t\tfor (QuadTreeNode<E> q : nodes) {\n\t\t\t// If there is a divided child then we cant do anything\n\t\t\tif (q.isDivided()) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\ttotalChildren += q.numPoints();\n\t\t}\n\t\t\n\t\t// If the sum of all the children contained in the sub nodes\n\t\t// is greater than allowed then we cant do anything\n\t\tif (totalChildren > QUADTREE_NODE_CAPACITY) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t// Add all the nodes from the children to this node then remvoe the nodes\n\t\tpoints = new HashMap<Point, E>();\n\t\tfor (QuadTreeNode<E> q : nodes) {\n\t\t\tpoints.putAll(q.points);\n\t\t}\n\t\t\n\t\tnodes.clear();\n\t\tdivided = false;\n\t}", "public int getChildCount()\n/* */ {\n/* 500 */ return this.children.size();\n/* */ }", "void decrementOldDepth() {\n mOldDepth--;\n }", "protected void incrementDepthLimit() {\n currDepthLimit++;\n }", "public double getWidth() {\n return this.size * 2.0; \n }", "public int size()\r\n\t {\r\n\t\t if(root == null)\r\n\t\t {\r\n\t\t\t return 0;\r\n\t\t }\r\n\t\t return root.getSubTreeSize();\r\n\t }", "public int getSize() {\n\t\treturn this.getSizeRecursive(root);\n\t}", "public void increaseDepth() {\n currentDepth++;\n }", "public double getWidth() {\n return this.getRight(this.tree.getRight(0)) - this.getLeft(this.tree.getLeft(0)); \n }", "int size() \n { \n return size(root); \n }", "public int diameterOfBinaryTree2(TreeNode root) {\n Height height = new Height();\n return diameterOfBinaryTree2Helper(root, height);\n }", "public void decreaseDepth() {\n currentDepth--;\n }", "private void trickleDown(int index) {\n Map.Entry<String, Double> smallest;\n Map.Entry<String, Double> top = this.get(index);\n int currentSize = this.size();\n\n while (index < currentSize / 2) { // while node has at leat one child\n Map.Entry<String, Double> left = LEFT(this.get(index));\n Map.Entry<String, Double> right = RIGHT(this.get(index));\n\n // find smaller child\n // if right child exists\n if (right != null && left.getValue().compareTo(right.getValue()) > 0) {\n smallest = right;\n } else {\n smallest = left;\n }\n\n // top <= smallest ?\n if (top.getValue().compareTo(smallest.getValue()) <= 0) {\n break;\n }\n\n // shift child up\n int smallestIndex = this.indexOf(smallest);\n Collections.swap(this, index, smallestIndex);\n index = smallestIndex;\n } // end while\n }", "private void subDivideNode() {\n setOriginNode();\n _subdivided = true;\n _northWest = new QuadTree<Point>(getView(), _transitionSize);\n _northEast = new QuadTree<Point>(getView(), _transitionSize);\n _southWest = new QuadTree<Point>(getView(), _transitionSize);\n _southEast = new QuadTree<Point>(getView(), _transitionSize);\n Iterator<Point> it = _elements.iterator();\n while (it.hasNext()) {\n Point p = it.next();\n QuadTree<Point> qt = quadrant(p);\n qt.add(p);\n }\n _elements = null;\n _elementsSize = 0;\n }", "@Override\n public int size() {\n return size(root); }", "public double getSize() \n {\n return size;\n }", "@Test\r\n public void testHeightAddNodesRight(){\r\n \ttree.add(\"g\");\r\n \ttree.add(\"f\");\r\n \ttree.add(\"e\");\r\n \tassertEquals(tree.height(),2);\r\n \t\r\n \t//testing height of 3\r\n \ttree.add(\"d\"); //height now 3, d is right\r\n \tassertEquals(tree.height(), 3);\r\n \t\r\n \ttree.add(\"c\");\r\n \ttree.add(\"b\"); \r\n \ttree.add(\"a\"); \r\n \tassertEquals(tree.height(),6); //last\r\n }", "private void increaseSize() {\n data = Arrays.copyOf(data, size * 3 / 2);\n }", "public int size(Tree<K, V> t, int size) {\n\t\tsize = left.size(left, size + 1);\n\t\tsize = right.size(right, size + 1);\n\t\treturn size;\n\t}", "public void sizeDecrease1() {\n\t\t _size--;\n\t}", "@Test\n public void getHeight() {\n Node node = new Node(150);\n node.setLeft(new Node(120));\n node.setRight(new Node(40));\n Node root = new Node(110);\n root.setLeft(new Node(80));\n root.setRight(node);\n assertEquals(2, BinarySearchTree.getHeight(root));\n }", "void deleteTreeRef(Node nodeRef) {\n\t\tSystem.out.println(\"\\nSize of given Tree before delete : \" + sizeOfTreeWithRecursion(nodeRef));\n\t\tdeleteTree(nodeRef);\n\t\tnodeRef = null;\n\n\t\tSystem.out.println(\"\\nSize of given Tree after delete : \" + sizeOfTreeWithRecursion(nodeRef));\n\t}", "private void reallocateDoubleCapacity() {\n\t\tObject oldElements[] = elements;\n\t\tcapacity *= reallocateFactor;\n\t\tsize = 0;\n\t\telements = new Object[capacity];\n\n\t\tfor (Object object : oldElements) {\n\t\t\tthis.add(object);\n\t\t}\n\t}", "private void doubleDemoteright (WAVLNode z) {\n\t z.rank--;\r\n\t z.left.rank--;\r\n }", "protected void resizePanel() {\n\t\tif (drawingAreaIsBlank) { // may have become blank after deleting the last node manually, so panel must still be shrunk\n\t\t\tsetPreferredSize(new Dimension(0,0)); // put back to small size so scrollbars disappear\n\t\t\trevalidate();\n\t\t\treturn;\n\t\t}\n\t\tgetMaxMin(); // get the extent of the tree to the left, right, bottom\n\t\tsetPreferredSize(new Dimension(maxX, maxY));\n\t\trevalidate();\n\t}", "public void recomputeTree() {\n\t\tsuperRoot = factory.createTreeNode(null, this);\n\t\tlayoutToTree.put(null, superRoot);\n\t\tcreateTrees(context.getNodes());\n\t}", "private static int multAndDivFixer(int size){\n return size;\n }", "public int size(){\n if(root!=null){ // มี node ใน tree\n return size(root);\n }\n else{\n return 0; // tree เปล่า size 0\n }\n }", "@Override\n public int size() {\n return size(root);\n }", "public double getDepth();", "double getStepSize();", "@Override\n public int nodeSize() {\n return this.nodes.size();\n }", "int memSize() {\r\n\t\treturn BASE_NODE_SIZE + 5 * 4;\r\n\t}", "public int size(){\n return size(root);\n }", "private void updateHeight() {\n int leftHeight = height(this.leftChild);\n int rightHeight = height(this.rightChild);\n this.height = (rightHeight > leftHeight ? rightHeight : leftHeight) + 1;\n }", "public double getSize() {\n return size_;\n }", "private void increaseSize(int num) {\n int increasedSize = _edges.size() + num;\n for (int i = 0; i < _edges.size(); i++) {\n for (int j = 0; j < num; j++) {\n _edges.get(i).add(new Edge(_idIncr));\n _idIncr += 1;\n }\n }\n for (int k = 0; k < num; k += 1) {\n _edges.add(new ArrayList<Edge>());\n for (int z = 0; z < increasedSize; z++) {\n _edges.get(increasedSize - num + k).add(new Edge(_idIncr));\n _idIncr += 1;\n }\n }\n }", "public double getSize() {\n return size_;\n }", "public int nodeSize()\n{\n\treturn getNodes().size();\n}", "public void balanceTree() {\n\n balanceTree(root);\n }", "private AvlNode<E> doubleWithRightChild(AvlNode<E> k1){\n k1.right = rotateWithLeftChild(k1.right);\n return rotateWithRightChild(k1);\n }", "@Override\n public void run() {\n updateTotalSizeOfFilesInDir(child);\n }", "private void calculateDistances() {\n for (int point = 0; point < ntree.size(); point++) {\n calculateDistances(point);\n }\n }", "@Test\r\n public void testHeightFullTree(){\r\n \t\r\n \tBinarySearchTree<Integer> treeInt = new BinarySearchTree<Integer>();\r\n \t\r\n \ttreeInt.add(31);\r\n \ttreeInt.add(5);\r\n \ttreeInt.add(44);\r\n \t\r\n \tassertEquals(treeInt.height(), 1);\r\n \t\r\n \ttree.add(\"deer\");\r\n \ttree.add(\"bar\"); //adding as child to left\r\n \ttree.add(\"jar\"); //add as child to right \r\n \tassertEquals(tree.height(), 1); //height is now 1\r\n }", "public int height() { return height(root); }", "@Override\n\tpublic int size() {\n\t\tmodCount = root.numChildren();\n\t\treturn modCount;\n\t}", "private Value size(Node x) {\n return (Value) x.value;\n }", "public void notifyChildrenOfSizeChange() {\n Util.runDescendentsLayout(this);\n }", "@Override\n\tpublic int nodeSize() {\n\t\treturn this.Nodes.size();\n\t}", "public int calculateSize(NoArvore tree)\n {\n int size = 0;\n if (tree == null)\n return 0;\n else {\n size = calculateSize (tree.getEsquerda()) + calculateSize (tree.getDireita()) + 1;\n return size;\n }\n }", "public double getSize()\n\t{\n\t\treturn size;\n\t}", "public void setSize(int size) {\n\t\tdist = new double[size];\n\t\tprev = new Node[size];\n\t\tready = new boolean[size];\n\t}", "public void setSize(double size) \n {\n this.size = size;\n }", "public int size() // return the number of nodes in the tree\r\n {\r\n return root.sizen;\r\n }", "@Override\r\n\tpublic int size() {\r\n\t\treturn size(root);\r\n\t}", "public float sizeMultiplier();", "public void setSize(double s)\n\t{\n\t\tsize = s;\n\t}", "public static void main(String[] args) throws Exception {\n int B = 4096; //bytes max por pagina\n int M = 200; //cantidad de rectangulos tal que el nodo no pese mas que B\n\n int maxCord = 500000;\n int maxDelta = 100;\n\n Random rnd = new Random();\n\n int m = (M * 40) / 100; // m = 40% M\n\n int left = rnd.nextInt(maxCord);\n int bottom = rnd.nextInt(maxCord);\n int deltaX = rnd.nextInt(maxDelta);\n int deltaY = rnd.nextInt(maxDelta);\n\n Rectangle r = new Rectangle(left, left + deltaX, bottom + deltaY, bottom);\n DiskController diskController = new DiskController(M);\n long address = diskController.memoryAssigner();\n Node tree = new Root(m, M, r, diskController, address);\n\n diskController.saveNode(tree);\n long rootSize =diskController.getNodeSize(address);\n System.out.println(\"Tamaño de raiz : \" + rootSize + \" bytes\");\n\n int n=0;\n while (diskController.getNodeSize(address) < B){\n if(n==157) { break;}\n n++;\n Rectangle rn;\n left = rnd.nextInt(maxCord);\n bottom = rnd.nextInt(maxCord);\n deltaX = rnd.nextInt(maxDelta);\n deltaY = rnd.nextInt(maxDelta);\n rn = new Rectangle(left, left + deltaX, bottom + deltaY, bottom);\n tree.insert(rn, new LinearSplit());\n System.out.println(\"Rectangulos insertados : \" + n);\n }\n float nodeCoverage = diskController.nodeOcupation();\n System.out.println(\"Coverage : \"+nodeCoverage);\n System.out.println(\"Tamaño de raiz llena : \" + diskController.getNodeSize(address) + \" bytes, con \"+n+\" nodos insertados. Con raiz vacía de \"+rootSize+\" bytes\");\n //Tamaño de raiz llena : 4089 bytes, con 157 nodos insertados. Con raiz vacía de 478 bytes\n\n }", "private void split(){\n // Slice horizontaly to get sub nodes width\n float subWidth = this.getBounds().width / 2;\n // Slice vertically to get sub nodes height\n float subHeight = this.getBounds().height / 2;\n float x = this.getBounds().x;\n float y = this.getBounds().y;\n int newLevel = this.level + 1;\n\n // Create the 4 nodes\n this.getNodes().add(0, new QuadTree(newLevel, new Rectangle(x + subWidth, y, subWidth, subHeight)));\n this.getNodes().add(1, new QuadTree(newLevel, new Rectangle(x, y, subWidth, subHeight)));\n this.getNodes().add(2, new QuadTree(newLevel, new Rectangle(x, y + subHeight, subWidth, subHeight)));\n this.getNodes().add(3, new QuadTree(newLevel, new Rectangle(x + subWidth, y + subHeight, subWidth, subHeight)));\n\n }", "public static void main(String[] args) {\n\t\tBinaryTreeNode btn = new BinaryTreeNode(1);\r\n\t\tbtn.left = new BinaryTreeNode(2);\r\n\t\tbtn.right = new BinaryTreeNode(3);\r\n\t\tbtn.left.left = new BinaryTreeNode(4);\r\n\t\tbtn.left.right = new BinaryTreeNode(5);\r\n\t\tbtn.right.left = new BinaryTreeNode(6);\r\n\t\tbtn.right.right = new BinaryTreeNode(7);\r\n\t\t\r\n\t\tSystem.out.println(\"Size of the tree is: \"+ new SizeOfTheTree().size(btn));\r\n\t}", "void TruncPopulationAvgSizeGen(double scale){\n\t\t\tint i;\n\t\t\tnode[] _nm;\n\t\t \tdouble sumSize,sizeThreshold; \t\n\t\t \t \t\t \n\t\t \tsumSize = oldpop[0].size;\n\t\t\t\n\t\t\tfor(i = 1; i < poplen; i++) {\t\t\t\t\n\t\t\t\tsumSize += oldpop[i].size;//\t\t\t\t\n\t\t\t}\n\t\t\t\n//\t\t\tSystem.out.println(\"Tong:\"+sumSize);\n\t\t\tsumSize=sumSize /poplen;\n//\t\t\tSystem.out.println(\"Avg:\"+sumSize);\n\t\t\t\n\t\t\tsizeThreshold=sumSize+(1.0-(double)gen/NUMGEN)*sumSize*scale;\n\t\t\t\n\t\t\t\n\t\t\tSystem.out.println(((1.0-(double)gen/NUMGEN)*sumSize*scale) +\"-\"+((1.0-gen/NUMGEN)*sumSize*scale));\n\t\t \t\n//\t\t \tSystem.out.println(numIndiviadual);\n\t\t \t\n\t\t\tfor(i = 0; i < poplen; i++){\n\t\t\t\tif(oldpop[i].size>sizeThreshold){\n//\t\t\t\t\tSystem.out.println(\"Vi tri:\"+i);\n\t\t\t\t\tindividual[] m_individual=new individual[1];\n\t\t\t\t\tint[] _mt=new int[1];\n\t\t\t\t\t_nm=new node[1];\n\t//\t\t\t\tSystem.out.println(\"Trước+\"+oldpop[i].size);\n\t\t\t\t\tif(this.TruncateTreeGrow(oldpop[i], m_individual,_mt,_nm)==TRUE){\t\n\t\t\t\t\t\t\n\t\t\t\t\toldpop[i]=new individual();\n\t\t\t\t\toldpop[i].CopyIndividual(m_individual[0], TRUE);\t\t\t\n\t\t\t\t\toldpop[i].evaluated=FALSE;\n\t//\t\t\t\tSystem.out.println(\"Sau+\"+oldpop[i].size);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}", "public int size() {\n\t\tTree<K, V> t = this;\n\t\tint size = 1;\n\t\treturn size(t, size);\n\t}" ]
[ "0.703064", "0.68633115", "0.6653571", "0.64282936", "0.6382575", "0.61145467", "0.60577023", "0.6019987", "0.5982399", "0.59774446", "0.595608", "0.5921705", "0.5838954", "0.5831485", "0.58060896", "0.5800259", "0.5777848", "0.57015634", "0.5693774", "0.56562495", "0.56377727", "0.55729777", "0.55463606", "0.55437124", "0.5528654", "0.5511141", "0.55037296", "0.5500957", "0.5456929", "0.545643", "0.5425643", "0.5420915", "0.54139316", "0.53992724", "0.53965074", "0.53883636", "0.53836113", "0.53801584", "0.5376826", "0.53554565", "0.53502977", "0.53440195", "0.5336442", "0.5334353", "0.53306335", "0.5318962", "0.52884424", "0.5283611", "0.5282818", "0.5265771", "0.5251184", "0.52455574", "0.52424693", "0.52409756", "0.5238697", "0.5228957", "0.52284926", "0.5226589", "0.5220783", "0.522029", "0.52177745", "0.5216696", "0.5214605", "0.52144325", "0.52029717", "0.51977026", "0.5195098", "0.5187343", "0.5186428", "0.5178132", "0.5169668", "0.516515", "0.51636475", "0.515988", "0.51514065", "0.5150758", "0.51452947", "0.5137287", "0.5136207", "0.51328266", "0.513126", "0.51119125", "0.5109234", "0.51046675", "0.51011395", "0.5100957", "0.51008326", "0.51000345", "0.5099703", "0.50988847", "0.5096822", "0.5094905", "0.50878656", "0.50872874", "0.50834453", "0.50739133", "0.50733155", "0.50695217", "0.50694793", "0.5068828" ]
0.52177465
61
Returns a unmodifiable version of the tree.
public Hashtree<V> build() { return new UnmodifiableMerkleTree<>(tree); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public SubstitutedBodyDecl treeCopyNoTransform() {\n SubstitutedBodyDecl tree = (SubstitutedBodyDecl) copy();\n if (children != null) {\n for (int i = 0; i < children.length; ++i) {\n ASTNode child = (ASTNode) children[i];\n if (child != null) {\n child = child.treeCopyNoTransform();\n tree.setChild(child, i);\n }\n }\n }\n return tree;\n }", "public Call treeCopyNoTransform() {\n Call tree = (Call) copy();\n if (children != null) {\n for (int i = 0; i < children.length; ++i) {\n ASTNode child = (ASTNode) children[i];\n if (child != null) {\n child = child.treeCopyNoTransform();\n tree.setChild(child, i);\n }\n }\n }\n return tree;\n }", "public Object clone()\n\t{\n\t\treturn new Tree();\n\t}", "public abstract Type treeCopyNoTransform();", "TreeNode getTreeNode();", "public MyTree getTree() {\r\n\t\treturn tree;\r\n\t}", "public Call treeCopy() {\n Call tree = (Call) copy();\n if (children != null) {\n for (int i = 0; i < children.length; ++i) {\n ASTNode child = (ASTNode) getChild(i);\n if (child != null) {\n child = child.treeCopy();\n tree.setChild(child, i);\n }\n }\n }\n return tree;\n }", "public BlockLambdaBody treeCopyNoTransform() {\n BlockLambdaBody tree = (BlockLambdaBody) copy();\n if (children != null) {\n for (int i = 0; i < children.length; ++i) {\n ASTNode child = (ASTNode) children[i];\n if (child != null) {\n child = child.treeCopyNoTransform();\n tree.setChild(child, i);\n }\n }\n }\n return tree;\n }", "public abstract Type treeCopy();", "public EntryTree tree() {\n return tree;\n }", "public SubstitutedBodyDecl treeCopy() {\n SubstitutedBodyDecl tree = (SubstitutedBodyDecl) copy();\n if (children != null) {\n for (int i = 0; i < children.length; ++i) {\n ASTNode child = (ASTNode) getChild(i);\n if (child != null) {\n child = child.treeCopy();\n tree.setChild(child, i);\n }\n }\n }\n return tree;\n }", "public Tree<K, V> copy() {\n\t\tTree<K, V> copy = EmptyTree.getInstance(), t = this;\n\t\treturn copy(t, copy);\n\t}", "public Tree copy() {\n Tree cpTree = new Tree();\n if(!empty()) {\n Node cpNode = copyNodes(root);\n cpTree.setRoot(cpNode);\n }\n return cpTree;\n }", "private TreeNode getOnlyChild() {\n return templateRoot.getChildren().get(0);\n }", "public IntTree copy () {\n\t\tIntTree that = new IntTree ();\n\t\tfor (int key : levelOrder())\n\t\t\tthat.put (key);\n\t\treturn that;\n\t}", "public abstract TreeNode copy();", "TreeNode<T> getLeft();", "private static TreeNode getNode() {\n TreeNode treeNode = new TreeNode(1);\n TreeNode left = new TreeNode(2);\n TreeNode right = new TreeNode(3);\n treeNode.left = left;\n treeNode.right = right;\n\n left.left = new TreeNode(4);\n right.left = new TreeNode(5);\n right.right = new TreeNode(6);\n return treeNode;\n }", "public Tree<T> clone() {\n Node<T> clonedRoot = this.root.clone();\n clone(this.root, this.root.clone());\n return new Tree<T>(clonedRoot);\n }", "public JTree getTree(){\n return tree;\n }", "public static TreeNode getTree() {\n TreeNode treeNode4 = new TreeNode(4);\n TreeNode treeNode3 = new TreeNode(3);\n TreeNode treeNode1 = new TreeNode(1);\n TreeNode treeNode2 = new TreeNode(2);\n TreeNode treeNode5 = new TreeNode(5);\n TreeNode treeNode6 = new TreeNode(6);\n treeNode4.left = treeNode3;\n treeNode4.right = treeNode5;\n treeNode3.left = treeNode1;\n treeNode3.right = treeNode2;\n treeNode5.right = treeNode6;\n return treeNode4;\n }", "public BlockLambdaBody treeCopy() {\n BlockLambdaBody tree = (BlockLambdaBody) copy();\n if (children != null) {\n for (int i = 0; i < children.length; ++i) {\n ASTNode child = (ASTNode) getChild(i);\n if (child != null) {\n child = child.treeCopy();\n tree.setChild(child, i);\n }\n }\n }\n return tree;\n }", "public String toString() {\n return tree.toString();\n }", "private static Node getTree()\r\n {\r\n Node node1 = new Node( 1 );\r\n Node node2 = new Node( 2 );\r\n Node node3 = new Node( 3 );\r\n Node node4 = new Node( 4 );\r\n Node node5 = new Node( 5 );\r\n Node node6 = new Node( 6 );\r\n Node node7 = new Node( 7 );\r\n\r\n node1.left = node2;\r\n node1.right = node3;\r\n\r\n node2.left = node4;\r\n node2.right = node5;\r\n\r\n node3.left = node6;\r\n node3.right = node7;\r\n return node1;\r\n }", "public BinaryNode copy() {\n\t\tBinaryNode newRoot = new BinaryNode(data);\n\t\tif(leftChild != null)\n\t\t\tnewRoot.setLeftChild(leftChild.copy());\n\t\tif(rightChild != null)\n\t\t\tnewRoot.setRightChild(rightChild.copy());\n\t\treturn newRoot;\n\t}", "public TreeNode getTreeNode() {\n return treeNode;\n }", "private static Node buildSmallerTree() {\n\t\tNode root = createNode(10);\n\t\troot.leftChild = createNode(25);\n\t\troot.rightChild = createNode(25);\n\t\troot.leftChild.leftChild = createNode(13);\n\t\troot.rightChild.rightChild = createNode(7);\n\t\troot.leftChild.rightChild = createNode(27);\n\t\t\n\t\treturn root;\n\t}", "@Deprecated\n public Call fullCopy() {\n return treeCopyNoTransform();\n }", "@SuppressWarnings({\"unchecked\", \"cast\"})\n public TypeVariable fullCopy() {\n TypeVariable tree = (TypeVariable) copy();\n if (children != null) {\n for (int i = 0; i < children.length; ++i) {\n ASTNode child = (ASTNode) children[i];\n if(child != null) {\n child = child.fullCopy();\n tree.setChild(child, i);\n }\n }\n }\n return tree;\n }", "public TreeNode getLeft(){ return leftChild;}", "public GitTree getTree() { return _cmt.getTree(); }", "public BuildTree createBuildTree() {\n BuildTree buildTree = new BuildTree();\n createBuildTree(0, buildTree);\n return buildTree;\n }", "public List<Node> getNodes()\t{return Collections.unmodifiableList(nodes);}", "public BinaryTreeADT<T> getLeft();", "public BinaryTree leftTree()\n { return left;}", "public JTreeOperator treePaletteContentsTree() {\n if (_treePaletteContentsTree==null) {\n _treePaletteContentsTree = new JTreeOperator(this);\n }\n return _treePaletteContentsTree;\n }", "@Override\n public List<TreeNode<N>> children() {\n return Collections.unmodifiableList(children);\n }", "@SuppressWarnings(\"unchecked\")\r\n public synchronized List<TreeNode> getChildrenCopy ()\r\n {\r\n if (logger.isFineEnabled()) {\r\n logger.fine(\"getChildrenCopy of \" + this);\r\n }\r\n\r\n return new ArrayList(children);\r\n }", "private Node getUncle(Node n) {\n return (n.mParent == getGrandparent(n).mLeft) ?\n getGrandparent(n).mRight:\n getGrandparent(n).mLeft;\n }", "protected final Object getTreeLock() {\n return Component.LOCK;\n }", "public static TreeNode getBasicTree(){\n TreeNode one = new TreeNode(1);\n TreeNode two = new TreeNode(2);\n TreeNode three = new TreeNode(3);\n TreeNode four = new TreeNode(4);\n TreeNode five = new TreeNode(5);\n TreeNode six = new TreeNode(6);\n TreeNode seven = new TreeNode(7);\n\n one.left = two;\n one.right = three;\n two.left = four;\n two.right = five;\n four.left = six;\n four.right = seven;\n\n return one;\n }", "public synchronized Vector getData() {\n Vector v = null;\n if (TreeData != null) {\n v = (Vector)TreeData.clone();\n }\n return v;\n }", "public TreeNode invertTree(TreeNode root) {\n\n invertTreeNode(root);\n\n return root;\n }", "TreeNode returnNode(TreeNode node);", "public abstract OtTreeNodeWidget copy();", "@Override\n\tpublic BTree<T> left() \n\t{\n\t\t\n\t\treturn root.left;\n\t}", "Object writeReplace() {\n return NodeSerialization.from(this);\n }", "TreeNode<T> getRight();", "public QueryNode cloneTree() throws CloneNotSupportedException;", "public DefaultMutableTreeNode gettree()\n\t{\n\t\treturn root;\n\t}", "public TreeNode getRight(){ return rightChild;}", "public BinaryTree<T> leftSubtree() {\n if (root == null) throw new IllegalStateException(\"Empty tree has no left subtree\");\n BinaryTree<T> result = new BinaryTree<T>();\n result.root = root.left;\n result.count = root.left == null ? 0 : root.left.countNodes();\n return result;\n }", "public String toTreeString() {\n return toTreeString(overallRoot);\n }", "@Override\n public Node clone() {\n Node node = null;\n try {\n node = (Node) super.clone();\n } catch (Exception e) {\n System.err.println(\"Unable to clone!\");\n e.printStackTrace();\n }\n return node;\n }", "@Override\n public TreeNode<E> tree_minimum() {\n return tree_minimum(root);\n }", "public BinaryTree rightTree()\n {return right;}", "public String getTreeType();", "public BTNode getLeft(){\r\n return leftLeaf;\r\n }", "public ExpressionNode getSubTree(boolean useTerminal) throws CloneNotSupportedException {\n if (useTerminal) {\n if (arity == 0) {\n return this.clone();\n } else {\n return child[random.nextInt(arity)].getSubTree(true);\n }\n } else {\t// get a non-root, non-terminal node\n int target = random.nextInt(this.deepestNode() - 1) + 1;\n return this.getNodeAtDepth(target);\n }\n }", "public Commit getLeaf(){\n\t\treturn myLeaf;\n\t}", "@Override\n\tpublic TreeNode remove() {\n\t\treturn null;\n\t}", "ValueNode getDefaultTree()\n\t{\n\t\treturn defaultTree;\n\t}", "public myBinaryTree<T> my_mirror();", "@Override\n public Node getFullNode() {\n return getBasicNode();\n }", "public Value joinNotReadOnly() {\n checkNotUnknown();\n if (isMaybeNotReadOnly())\n return this;\n Value r = new Value(this);\n r.flags |= ATTR_NOTREADONLY;\n return canonicalize(r);\n }", "public Value restrictToNotModified() {\n if (!isMaybeModified())\n return this;\n Value r = new Value(this);\n r.flags &= ~MODIFIED;\n return canonicalize(r);\n }", "public String getTree ( ) {\n\n String tree;\n StringWriter s = new StringWriter();\n PrintWriter out = null;\n\n try {\n out = new PrintWriter(s);\n } catch ( Exception ex ) {};\n\n program.printIndividual(param.Parameters.STATE, out);\n\n tree = s.toString();\n String list2[] = tree.split(\"\\n\");\n\n out.close();\n try { s.close(); } catch ( Exception e ) {};\n\n return list2[list2.length - 1];\n\n }", "public Tree(){\n root = null;\n }", "private Node hideNotMine(TreeItem<ActivityType> treeItem) {\n\t\treturn treeView;\n\t}", "public DecisionTreeNode getNoLink() {\n return (DecisionTreeNode)this.getLeftChild();\n }", "protected final IntervalNode treeMin() {\n\tIntervalNode x = this;\n\twhile(x.left != IntervalNode.nullIntervalNode) {\n\t x = x.left;\n\t}\n\treturn(x);\n }", "public String treeJSON() {\n\t\ttry{\r\n\t\tList trees = this.getTransedTrees();\r\n\t\tString result = this.treeJSON(trees);\r\n\t\treturn result;\r\n\t\t}catch(Exception e){\r\n\t\t\tlog.info(\">>>>faceye error in method:treeJSON() is\"+e.toString());\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\t\r\n\t}", "public AST copy()\n {\n return new Implicate(left, right);\n }", "T getRoot();", "@Deprecated\n public SubstitutedBodyDecl fullCopy() {\n return treeCopyNoTransform();\n }", "public Node getLeft(){\r\n return this.left;\r\n }", "public static TreeNode buildTree() {\n\t\t\n\t\tTreeNode root = new TreeNode(1);\n\t\t\n\t\tTreeNode left = new TreeNode(2);\n\t\tleft.left = new TreeNode(4);\n\t\tleft.right = new TreeNode(5);\n\t\tleft.right.right = new TreeNode(8);\n\t\t\n\t\tTreeNode right = new TreeNode(3);\n\t\tright.left = new TreeNode(6);\n\t\tright.right = new TreeNode(7);\n\t\tright.right.left = new TreeNode(9);\n\t\t\n\t\troot.left = left;\n\t\troot.right = right;\n\t\t\n\t\treturn root;\n\t}", "public org.apache.gora.cascading.test.storage.TestRow getUnionRecursive() {\n\t throw new java.lang.UnsupportedOperationException(\"Get is not supported on tombstones\");\n\t }", "public List<PackerTreeNode<T>> getBranch() {\n final var result = new ArrayList<PackerTreeNode<T>>();\n result.add(this);\n if (parent != null) {\n result.addAll(parent.getBranch());\n }\n return result;\n }", "public void prune() {\n this.getTree().prune();\n }", "public Value setNotReadOnly() {\n checkNotUnknown();\n if (isNotReadOnly())\n return this;\n Value r = new Value(this);\n r.flags &= ~ATTR_READONLY_ANY;\n r.flags |= ATTR_NOTREADONLY;\n return canonicalize(r);\n }", "@Override\n\tpublic String getTreeCondition() {\n\t\treturn null;\n\t}", "@Override\r\n\tpublic JTree getJTree() {\r\n\t\tif (jTree == null) {\r\n\t\t\tjTree = new JLagerTree();\r\n\t\t\tjTree.getSelectionModel().setSelectionMode(TreeSelectionModel.SINGLE_TREE_SELECTION );\r\n\t\t\tGenericNode root = new GenericNode(null);\r\n\t\t\tjTree.setModel(getTreeModel(root));\r\n\t\t\tjTree.setComponentOrientation(ComponentOrientation.LEFT_TO_RIGHT);\r\n//\t\t\tjTree.addTreeSelectionListener(new javax.swing.event.TreeSelectionListener() {\r\n//\t\t\t\tpublic void valueChanged(javax.swing.event.TreeSelectionEvent e) {\r\n//\t\t\t\t\ttreeValueChanged(e,BaugruppeTreePaneView.this.getJTree());\r\n////\t\t\t\t\tSystem.out.println(\"valueChanged()\"); // TODO Auto-generated Event stub valueChanged()\r\n//\t\t\t\t}\r\n//\t\t\t});\r\n//\t\t\tjTree.addTreeSelectionListener(getTreeSelectionListner());\r\n\t\t\t//Aussehen von JTree\r\n\t\t\tjTree.setCellRenderer(new AnfoderungTreeRenderer());\r\n\t\t\tjTree.setToolTipText(\"\");\r\n\t\t\t\r\n\t\t}\r\n\t\treturn jTree;\r\n\t}", "public HuffmanNode getLeftSubtree () {\n \treturn left;\n }", "BTNode<T> getRoot();", "public static Node buildRandomTree() {\n\t\tNode root = createNode(15);\n\t\troot.leftChild = createNode(10);\n\t\troot.rightChild = createNode(4);\n\t\troot.leftChild.leftChild = createNode(25);\n\t\troot.leftChild.leftChild.rightChild = createNode(27);\n\t\troot.leftChild.leftChild.leftChild = createNode(13);\n\t\troot.leftChild.rightChild = createNode(25);\n\t\troot.leftChild.rightChild.rightChild = createNode(7);\n\t\t\n\t\treturn root;\n\t}", "@SuppressWarnings({\"unchecked\", \"cast\"})\n public TryStmt fullCopy() {\n TryStmt tree = (TryStmt) copy();\n if (children != null) {\n for (int i = 0; i < children.length; ++i) {\n ASTNode child = (ASTNode) children[i];\n if(child != null) {\n child = child.fullCopy();\n tree.setChild(child, i);\n }\n }\n }\n return tree;\n }", "TreeNodeValueModel<T> parent();", "public Value restrictToNonAttributes() {\n Value r = new Value(this);\n r.flags &= ~(PROPERTYDATA | ABSENT | PRESENT_DATA | PRESENT_ACCESSOR);\n return canonicalize(r);\n }", "public MutableCachedNode mutable( NodeKey key ) throws NodeNotFoundException, UnsupportedOperationException;", "Collection<Tree<V, E>> getTrees();", "static TreeNode mirror_tree(TreeNode root) {\n\t\t\n\t\tTreeNode temp ;\n\t\t\n\t\tif(root != null) {\n\t\t\t\n\t\t\tmirror_tree(root.left);\n\t\t\tmirror_tree(root.right);\n\t\t\t\n\t\t\ttemp = root.left;\n\t\t\troot.left = root.right;\n\t\t\troot.right = temp;\n\t\t}\n\t\t\n\t\treturn root;\n\t}", "List<UmsMenuNode> treeList();", "public TreeModel getTreeModel() {\r\n return ModelBuilder.getSingleton().buildTreeModelAsync(this);\r\n }", "public String getUnusedChildren();", "public int getTreeIndex() {\n\t\treturn tree;\n\t}", "public String treeType();", "public static TreeNode getSumTree2(){\n\t\tTreeNode t1 = new TreeNode(26);\n\t\tTreeNode t2 = new TreeNode(10);\n\t\tTreeNode t3 = new TreeNode(3);\n\t\tTreeNode t4 = new TreeNode(4);\n\t\tTreeNode t5 = new TreeNode(6);\n\t\tTreeNode t7 = new TreeNode(3);\n\t\tt1.left = t2;\n\t\tt1.right = t3;\n\t\tt2.left = t4;\n\t\tt2.right = t5;\n\t\tt3.right = t7;\n\t\treturn t1;\n\t}", "public BinNode<T> getLeft();", "public MyNode getLeft()\r\n {\r\n \treturn left;\r\n }" ]
[ "0.66842204", "0.66079307", "0.63553506", "0.6253944", "0.62178665", "0.61803347", "0.6095997", "0.60892445", "0.60553557", "0.6045254", "0.60348016", "0.60054934", "0.59883314", "0.5980012", "0.59538513", "0.5881924", "0.58625084", "0.57976884", "0.576829", "0.5735652", "0.5694465", "0.5665655", "0.56594616", "0.56451625", "0.563472", "0.5589233", "0.5585078", "0.557986", "0.5570396", "0.5558178", "0.5552996", "0.5541016", "0.5517889", "0.54670495", "0.5451593", "0.5449154", "0.5448786", "0.5444274", "0.5441777", "0.5441517", "0.54221857", "0.5411088", "0.5382079", "0.5379049", "0.53738314", "0.5372587", "0.53702223", "0.53676444", "0.5362109", "0.5345676", "0.5345289", "0.5320379", "0.53177327", "0.5312589", "0.53123677", "0.5311127", "0.53002304", "0.5299789", "0.52892035", "0.5285261", "0.52758735", "0.5266245", "0.52616453", "0.5260932", "0.52498955", "0.5242966", "0.5235312", "0.52314496", "0.52207184", "0.52183604", "0.5215792", "0.52071464", "0.5193887", "0.5184056", "0.5167191", "0.5163644", "0.5163616", "0.5163603", "0.51427907", "0.5137289", "0.51323295", "0.5129825", "0.5124401", "0.5117664", "0.51164275", "0.5113412", "0.5109603", "0.51081854", "0.51036817", "0.50967205", "0.50791055", "0.5071042", "0.5070653", "0.5066794", "0.50637263", "0.50636584", "0.50531924", "0.5052272", "0.50487256", "0.5047514" ]
0.65005195
2
Clears the tree of all of it's hashes and values.
public void clear() { tree.clear(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void clear() {\n\t\troot.left = null;\n\t\troot.right = null;\n\t\troot = null;\n\t\tsize = 0;\n\t}", "public void clear() {\n\t\troot = null;\n\t\tcount = 0;\n\t}", "public void clear(){\n root = null;\n count = 0;\n }", "public void clear() {\n count = 0;\n root = null;\n }", "public void clear() {\n root = null;\n size = 0;\n }", "public void clear() {\n root = null;\n size = 0;\n }", "public void clear() {\r\n\t\troot = null;\r\n\t\tsize = 0;\r\n\t}", "public void clear() {\n root = null;\n }", "public void clear() {\n root = null;\n }", "@Override\n\tpublic void clear() {\n\t\tsize = 0;\n\t\troot = null;\n\t}", "@Override\n public void clear() {\n root = null;\n }", "@Override\n public void clear() {\n root = null;\n size = 0;\n }", "@Override\n public void clear() {\n root = null;\n size = 0;\n }", "@Override\n public void clear() {\n root = null;\n size = 0;\n }", "@Override\r\n public void clear(){\r\n root = null;\r\n }", "@Override\n public void clear() {\n size = 0;\n root = null;\n }", "public void clear()\r\n\t{\r\n\t\tdata = new IterativeBinarySearchTree<Entry>();\r\n\t}", "public void clear()\n\t{\n\t\troot = null;\n\t\tmaxKeyLen = -1;\n\t\tsize = 0;\n\t}", "public void clear() {\n\t\tthis.root = new Node();\n\t}", "public void clear() {\n mSize = 0;\n mRoot = null;\n }", "public void clear() {\n this.root_.setNw(null);\n this.root_.setNe(null);\n this.root_.setSw(null);\n this.root_.setSe(null);\n this.root_.setNodeType(NodeType.EMPTY);\n this.root_.setPoint(null);\n this.count_ = 0;\n }", "public void clear()\n\t\t{ while (!children.isEmpty()) remove(children.get(0)); }", "public void clear()\n {\n nodes.clear();\n }", "public void clear()\n {\n this.mi_Size = 0;\n this.m_RootNode = null;\n this.m_FirstNode = null;\n this.m_LastNode = null;\n }", "protected void clearData() {\n getValues().clear();\n getChildIds().clear();\n getBTreeMetaData().setDirty(this);\n }", "public void clear()\t{nodes.clear(); allLinks.clear();}", "public void clear() {\n\t\t\tfor (AbstractTreeNode node : children) {\n\t\t\t\tnode.setParent(null);\n\t\t\t}\n\t\t\t\n\t\t\t// clear children\n\t\t\tchildren.clear();\n\t\t}", "public void clear()\n\t{\n\t\tthis.getChildren().clear();\n\t}", "public void clear(){\n firstNode = null;\n lastNode = null;\n }", "public void makeEmpty(){\n deleteAll(root);\n root = null;\n numItems = 0;\n }", "@Override\n\tpublic void clear() {\n\t\tNode currentNode = firstNode;\n\t\tNode previousNode = firstNode;\n\t\t\n\t\twhile(firstNode.getNextNode() != null){\n\t\t\t\n\t\t\t\tpreviousNode = currentNode;\n\t\t\t\tcurrentNode = currentNode.getNextNode();\n\t\t\t\tpreviousNode.next = currentNode.getNextNode();\n\t\t}\n\t\tfirstNode = null;\n\t\tnumberOfEntries = 0;\n\t}", "@Generated(hash = 1311440767)\r\n public synchronized void resetTrees() {\r\n trees = null;\r\n }", "public void clear() {\n lists = new TernarySearchTree<>();\n }", "public void clear() {\r\n\t\t\r\n\t\ttopNode = null; // Sets topNode pointer to null.\r\n\t\t\r\n\t}", "@Override\n public void clear() {\n root = new Node ('i', false, 256);\n }", "public void clear(){\n this.entities.clear();\n /*for(QuadTree node: this.getNodes()){\n node.clear();\n this.getNodes().remove(node);\n }*/\n this.nodes.clear();\n }", "void clear() {\n\t\t\tfor (int i = 0 ; i < nodes.length; i++) {\n\t\t\t\tnodes[i].clear((byte) 1);\n\t\t\t}\n\t\t\tsize = 0;\n\t\t}", "public void clear()\r\n {\r\n // Create the tables stack and add the top level\r\n tables.clear();\r\n tables.add( new HashMap<String,T>() );\r\n \r\n // Ditto with the counts\r\n counts.clear();\r\n counts.add( 0 ); \r\n }", "public void clearAll() {\n\t\tlog.info(\"Clear map tree bid card\");\n\t\tcacheTree.clearAllTreeBidCard();\n\t\tlog.info(\"Clear map tree bid info\");\n\t\tcacheTree.clearAllTreeBidInfo();\n\t}", "public void clear() {\n\t\t// If settingActive is true, clear will be called for all children anyway. No need to loop.\n\t\tif (children != null) {\n\t\t\tfor (BusinessObject child : children.values()) {\n\t\t\t\tchild.clear();\n\t\t\t}\n\t\t}\n\t}", "public void clear() {\n\t\t//System.err.println(\"FCache::clear() dont know how to clear m_leafCache\");\n\t\tfor (int i = 0; i < m_TopOfBranche.size(); i++) {\n\t\t\tCacheObject o = m_TopOfBranche.elementAt(i);\n\t\t\tif (o != null) {\n\t\t\t\to.m_F = null;\n\t\t\t}\n\t\t}\n\t\t//m_TopOfBranche.removeAllElements();\n\t\tfor (int iNode = 0; iNode < m_BottomOfBrancheID.length; iNode++) {\n\t\t\tclearNode(iNode);\n\t\t}\n\t\tg_nID = 0;\n\t}", "public void clearData() {\r\n if (m_root != null) {\r\n m_root.destroy();\r\n m_root = null;\r\n }\r\n }", "public void clearChildren() {\r\n this.children = null;\r\n }", "public void clear() {\n\t\tnodeList.clear();\n\t}", "private void clear() {\n\t\t\tkeySet.clear();\n\t\t\tvalueSet.clear();\n\t\t\tsize = 0;\n\t\t}", "public void makeEmpty() {\r\n\t\troot = null;\r\n\t\tleftChild = null;\r\n\t\trightChild= null;\r\n\t}", "public void clear()\n {\n if (nodes != null)\n {\n detachNodes(nodes);\n nodes = null;\n namedNodes = null;\n }\n }", "public void clear() {\r\n data = new Node[DEFAULT_CAPACITY];\r\n size = 0;\r\n }", "public void reset(){\r\n \tif (blank != null){\r\n \t\tblank.clear();\r\n \t}\r\n \tif (blankNode != null){\r\n \t\tblankNode.clear();\r\n \t}\r\n }", "public void makeEmpty() {\r\n\t\troot = null;\r\n\t}", "public void makeEmpty() {\n\t\troot = null;\n\t}", "public void makeEmpty() {\n root = null;\n }", "public void unmemoize() {\n\t\tif (children != null) {\t\n\t\t\tfor (Item i : children) {\n\t\t\t\t((TreeItem)i).unmemoize();\n\t\t\t}\n\t\t}\n\t\ttreeLeaves = null;\n\t\tleaves = null;\n\t}", "private void clearFullTree()\r\n {\r\n fullXmlTree = new StringBuilder();\r\n }", "public void clear() {\n context = null;\n nestedElements.clear();\n }", "@Override\n public void clearAst() {\n this.root = null;\n }", "public void clear() {\n\t\tmSize = 0;\n\t\tmHead = new Node(null, null);\n\t\tmTail = new Node(null, null);\n\t\tmHead.next = mTail;\n\t\tmodCount++;\n\t}", "public void makeEmpty( )\r\n\t{\r\n\t\troot = null;\r\n\t}", "public void clearAll();", "public void clearAll();", "private void clearAll( )\n {\n for( Vertex v : vertexMap.values( ) )\n v.reset( );\n }", "public synchronized void clearResources()\r\n {\r\n // create a new root, making old tree eligible for GCing\r\n createRootNode();\r\n\r\n // clear all registered objects\r\n unRegisterAll();\r\n }", "public void clearChildren() throws RemoteException;", "public void clear()\n {\n keys.clear();\n comments.clear();\n data.clear();\n }", "private void clean() {\n //use iterator\n Iterator<Long> it = nodes.keySet().iterator();\n while (it.hasNext()) {\n Long node = it.next();\n if (nodes.get(node).adjs.isEmpty()) {\n it.remove();\n }\n }\n }", "public void clear()\n\t{\n\t\tfor(DBColumn col : _RowData.values())\n\t\t\tcol.clear();\n\t\t\t\n\t\t_MetaData = null;\n\t\t_Parent = null;\n\t\t_Status = DBRowStatus.Unchanged;\n\t}", "public Builder clearRecursive() {\n if (recursiveBuilder_ == null) {\n recursive_ = null;\n onChanged();\n } else {\n recursive_ = null;\n recursiveBuilder_ = null;\n }\n\n return this;\n }", "private void clearNodes()\r\n\t{\r\n\t clearMetaInfo();\r\n\t nodeMap.clear();\r\n\t}", "public void clear() {\n values.clear();\n }", "public void removeAll() {\n _hash = new Hashtable();\n _first = null;\n _last = null;\n }", "public void delete() {\n this.root = null;\n }", "public void clearList()\n\t{\n\t\tnodeManager.clearList();\n\t}", "public static void Reset() {\n\t\t\n\t\tArrayList<KDNode> root_buff = new ArrayList<KDNode>();\n\t\tfor(KDNode k : KDNode.RootSet()) {\n\t\t\troot_buff.add(k);\n\t\t}\n\t\t\n\t\troot_map.clear();\n\t\t\n\t\tfor(int i=0; i<root_buff.size(); i++) {\n\t\t\tKDNode ptr = root_buff.get(i);\n\t\t\t\n\t\t\tKDNode prev_ptr = ptr;\n\t\t\twhile(ptr != null) {\n\t\t\t\tptr.is_node_set = false;\n\t\t\t\tptr.space.sample_buff.clear();\n\t\t\t\tprev_ptr = ptr;\n\t\t\t\tptr = ptr.parent_ptr;\n\t\t\t}\n\t\t\t\n\t\t\troot_map.add(prev_ptr);\n\t\t}\n\t\t\n\t}", "public void clear()\n {\n int llSize = ll.getSize();\n for(int i=0; i<llSize; i++){\n ll.remove(0);\n }\n }", "public void clear (){\n\t\tfor (int i = 0; i < table.length; i++)\n\t\t\ttable[i] = null;\n\n\t\t// we have modified the hash table, and it has\n\t\t// no entries\n\t\tmodCount++;\n\t\thashTableSize = 0;\n\t}", "public void clear(){\n\t\tclear(0);\n\t}", "public void clear()\r\n {\r\n for (int i = 0; i < values.length; i++)\r\n keys[i] = null;\r\n size = 0;\r\n }", "public static void reset() {\n\t\tnodes.clear();\n\t\tid = 0;\n\t}", "public void clear() {\n\t\tentries.clear();\n\t}", "public void clearAllData() {\n atoms.clear();\n connections.clear();\n lines.clear();\n radical = null;\n }", "public void reset() {\r\n\t\t_tb = new TreeBuffer();\r\n\t}", "void clearAll();", "void clearAll();", "public void clear() {\r\n\t\tentryGraph.clear();\r\n\t\tupdate();\r\n\t}", "public void clear() {\n\t\telements = 0;\n\t\tfor (int ix = 0; ix < keys.length; ix++) {\n\t\t\tkeys[ix] = null;\n\t\t\tvalues[ix] = null;\n\t\t}\n\t\tfreecells = values.length;\n\t\tmodCount++;\n\t}", "public void clear() {\n\t\tleftIndex = 0;\n\t\trightIndex = 0;\n\t}", "public void clear() {\n\t\tthis._cooccurenceMatrix = null;\n\t\tthis._modules.clear();\n\t\tthis._vertices.clear();\n\t}", "public void clear() {\r\n items.clear();\r\n keys.clear();\r\n }", "public void clear() {\n\t\tint index = 0;\r\n\t\tsize = 0;\r\n\t\twhile (index < K.length) {\r\n\t\t\tif (K[index] != null) {\r\n\t\t\t\tK[index].clear();\r\n\t\t\t\tV[index].clear();\r\n\t\t\t}\r\n\t\t\tindex++;\r\n\t\t}\r\n\t}", "@Override\r\n\tpublic void clearAll() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void clearAll() {\n\t\t\r\n\t}", "public void clear()\r\n {\r\n result = null;\r\n leftOperand = null;\r\n rightOperand = null;\r\n operator = null;\r\n resultDoubles = null;\r\n }", "public void clearHash() {\r\n\t\tinternedTexts.clear();\r\n\t\tinternedAttributes.clear();\r\n\t}", "public void clear(){\n\t\tfor(int i = 0; i < keys.length; i++){\n\t\t\tkeys[i] = null;\n\t\t\telem[i] = null;\n\t\t}\n\t\thowMany = 0;\n\t\tnewestIndex = -1;\n\t}", "public void clear() {\n \n /**\n * -------------------------------------------\n * TODO: You fully implement this method\n * \n */\n \n headNode = null;\n tailNode = null;\n size=0;\n \n }", "public static void reset() {\n parentNameToBlockStubs.clear();\n parentNameToParentBlocks.clear();\n }", "@Override\n\tpublic void clear() {\n\t\tmap.clear();\n\t\tkeys.clear();\n\t}", "@Override\n public void clear() {\n for (LinkedList<Entry<K,V>> list : table) {\n list = null;\n }\n }", "@Override\n\tpublic void clearAll() {\n\t\t\n\t}", "public void clear()\r\n {\r\n otherValueMap.clear();\r\n }" ]
[ "0.7837885", "0.7824184", "0.7823753", "0.77893883", "0.7777516", "0.7777516", "0.77661127", "0.7721209", "0.7721209", "0.770536", "0.7628466", "0.76207787", "0.76207787", "0.76207787", "0.7602923", "0.75514126", "0.7530797", "0.749269", "0.74397594", "0.7433982", "0.733026", "0.71977276", "0.7177699", "0.7161639", "0.71554446", "0.7108433", "0.7091535", "0.70848966", "0.7081136", "0.7080798", "0.70778495", "0.7047153", "0.7041845", "0.70317626", "0.7017742", "0.7000045", "0.6966335", "0.6952701", "0.6945096", "0.69117653", "0.69046134", "0.6902836", "0.6869139", "0.686134", "0.6852724", "0.684863", "0.68402183", "0.6839612", "0.68365496", "0.6819187", "0.6781715", "0.67751235", "0.6774889", "0.67192507", "0.6662262", "0.66582793", "0.66567785", "0.6646213", "0.6599733", "0.6599733", "0.6593548", "0.6592101", "0.6545301", "0.6539336", "0.65313494", "0.6522008", "0.6514882", "0.65145236", "0.65140533", "0.65128785", "0.65037775", "0.65008503", "0.64921254", "0.6482128", "0.64737797", "0.64698195", "0.6464048", "0.6458485", "0.64575243", "0.64531595", "0.64520615", "0.644862", "0.644862", "0.6447789", "0.6447683", "0.644751", "0.64437556", "0.64407176", "0.64406204", "0.64363176", "0.64363176", "0.64346075", "0.6428709", "0.6408025", "0.6387346", "0.6383674", "0.63753307", "0.637315", "0.6358814", "0.63489103" ]
0.8249616
0
Sets the hashcode for a Node at a given Index. Indexing follows a breathfirst approach.
public void setHash(int position, long hash) { tree.setHash(position, hash); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setFirstNode(byte[] hash)\n {\n if (!this.isInitialized)\n {\n this.initialize();\n }\n this.firstNode = hash;\n this.firstNodeHeight = this.maxHeight;\n this.isFinished = true;\n }", "public void set(long index);", "public void setHashCode(int hashCode){\n\n }", "public @Override E set(int index, E element) {\n \tNode n = getNode(index);\n \tE result = n.data;\n \tn.data = element;\n \treturn result;\n }", "public void set(int index, AnyType t) throws IndexOutOfBoundsException, NullPointerException {\n\n if ( t == null ) throw new NullPointerException();\n \n setNode( index, new Node<AnyType>(t) );\n \n }", "public E set(int index, E x) {\n\t\tE retVal;\n\t\tNode p;\n\n\t\tif (index < 0 || index >= mSize)\n\t\t\tthrow new IndexOutOfBoundsException();\n\n\t\tp = getNode(index);\n\t\tretVal = p.data;\n\t\tp.data = x;\n\t\treturn retVal;\n\t}", "private void setNode(int index, Node n) {\n \t\twhile (index + 1 >= contents.size()) {\n \t\t\tcontents.add(null);\n \t\t}\n \t\tcontents.set(index, n);\n \t}", "public Builder setHash(int value) {\n bitField0_ |= 0x00000001;\n hash_ = value;\n onChanged();\n return this;\n }", "public void setIndex(int index)\n/* */ {\n/* 39 */ this.index = index;\n/* */ }", "public E set ( int index, E anEntry)\n {\n if (index < 0 || index >= size)\n throw new IndexOutOfBoundsException(Integer.toString(index));\n\n Node<E> node = getNode(index); // calling private method\n E result = node.data;\n node.data = anEntry;\n return result;\n }", "public E set(int index, E data) \n throws IndexOutOfBoundsException,NullPointerException\n {\n if(index > size() || index < 0)\n {\n throw new IndexOutOfBoundsException();\n }\n Node currNode = getNth(index);\n if(data == null)\n {\n throw new NullPointerException();\n }\n currNode.data = data;\n return currNode.data; \n }", "private void setLeft(int index, Node n) {\n \t\t// TODO Complete this method!\n \t\tsetNode(getLeftOf(index), n);\n \t}", "@Override\n\tpublic E set(int index, E element) {\n\t\tNode<E> node = node(index);\n\t\tE old = node.elementE;\n\t\tnode.elementE = element;\n\t\treturn old;\n\t}", "protected void setBitAt(final int bitIndex) {\n _bitMap = _setBit(_bitMap,\n \t\t\t\t (Numbers.INTEGER_WIDTH*8-1)-bitIndex-1);\n }", "@Override\n public int hashCode() {\n return txHash.hashCode()^txIndex;\n }", "public void setIndex(int index) { this.index = index; }", "private PersistentLinkedList<T> setHelper(int treeIndex, T data) {\n int newSize = this.treeSize;\n if (newSize == treeIndex) {\n newSize++;\n }\n\n TraverseData traverseData = traverse(treeIndex);\n\n traverseData.currentNewNode.set(traverseData.index, new Node<>(branchingFactor, data));\n for (int i = 0; i < branchingFactor; i++) {\n if (i == traverseData.index) {\n continue;\n }\n traverseData.currentNewNode.set(i, traverseData.currentNode.get(i));\n }\n\n return new PersistentLinkedList<>(traverseData.newRoot, branchingFactor, depth, base,\n newSize, unusedTreeIndices, indexCorrespondingToTheFirstElement,\n indexCorrespondingToTheLatestElement);\n }", "private void setIndex(int index){\n\t\tthis.index = index;\n\t}", "public E set(int index, E obj)\n {\n if(index >= 0 && index <= size())\n {\n int l=0;\n Node n = head;\n while(n.getNext()!=null)\n {\n n=n.getNext();\n if (l==index)\n {\n Node g = new Node<E>(null);\n g.setValue(n.getValue());\n n.setValue(obj);\n return (E)g.getValue();\n }\n l++;\n }\n }\n return null;\n }", "int\n computeHashCodeOfNode(HIR pNode)\n {\n int lCode, lNodeIndex, lChild, lChildCount;\n Sym lSym;\n\n if (fDbgLevel > 3)\n ioRoot.dbgFlow.print(7, \" computeHashCodeOfNode \");\n if (pNode == null)\n return 0;\n lNodeIndex = pNode.getIndex();\n lCode = getHashCodeOfIndexedNode(lNodeIndex);\n if (lCode != 0) // Hash code is already computed. return it.\n return lCode;\n lCode = pNode.getOperator() + System.identityHashCode(pNode.getType());\n lSym = pNode.getSym();\n if (lSym != null) { // This is a leaf node attached with a symbol.\n lCode = lCode * 2 + System.identityHashCode(lSym);\n }\n else {\n lChildCount = pNode.getChildCount();\n for (lChild = 1; lChild <= lChildCount; lChild++) {\n lCode = lCode * 2\n + computeHashCodeOfNode((HIR)(pNode.getChild(lChild)));\n }\n }\n //##60 BEGIN\n // Assign different hash code for l-value compared to r-value.\n //##65 if ((pNode.getParent()instanceof AssignStmt) &&\n //##65 (pNode.getParent().getChild1() == pNode))\n if (FlowUtil.isAssignLHS(pNode)) //##65\n {\n lCode = lCode * 2;\n }\n //##60 END\n lCode = (lCode & 0x7FFFFFFF) % EXP_ID_HASH_SIZE;\n if (fDbgLevel > 3)\n ioRoot.dbgFlow.print(7, Integer.toString(lCode, 10));\n setHashCodeOfIndexedNode(lNodeIndex, lCode);\n return lCode;\n }", "protected void setBit(long bitIndex) {\r\n\t long intIndex = (bitIndex >>> ADDRESS_BITS_PER_UNIT);\r\n\t bits[(int)(intIndex / ONE_MB_INTS)][(int)(intIndex % ONE_MB_INTS)] \r\n\t |= 1 << (bitIndex & BIT_INDEX_MASK);\r\n\t }", "public void set(int index, T element) {\n\t\tif (index < 0 || index >= size)\n\t\t\tthrow new ArrayIndexOutOfBoundsException();\n\t\tNode<T> curNode = head;\n\t\twhile (index != -1) {\n\t\t\tif (index == 0) {\n\t\t\t\tcurNode.value = element;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tcurNode = curNode.next;\n\t\t\tindex--;\n\t\t}\n\t\tthrow new ArrayIndexOutOfBoundsException();\n\t}", "void setIdx(int i);", "public E set(int index, E element) {\n\t\tif(index < 0 || index > size) {\r\n\t\t\tthrow new IndexOutOfBoundsException();\r\n\t\t} else if(index == size) {\r\n\t\t\tadd(element);\r\n\t\t\treturn element;\r\n\t\t}\r\n\t\tE e = getNode(index).getData();\r\n\t\tgetNode(index).setData(element);\r\n\t\treturn e;\r\n\t}", "public void set(int index, int o) {\n\t\tif(index == 0) return;\n\t\tr[index] = o;\n\t}", "public void setIndex(int index){\r\n \tthis.index = index;\r\n }", "public void setIndex(int index) {\n _index = index;\n }", "@Override\n\t\tpublic int hashCode() {\n\t\t\treturn (int) (this.sum * 100 + this.index);\n\t\t}", "public abstract E set(int index, E e);", "public void insertEntry(int entryIndex, E object, int hash) {\n this.entries[entryIndex] = (((long) hash) << 32) | NEXT_MASK;\n this.elements[entryIndex] = object;\n }", "public Object set(int index, Object element) {\r\n return deref(refs.set(index, new WeakReference(element)));\r\n }", "public abstract <T> void set(int index, T value);", "public void setIndex(Integer index) {\n this.index = index;\n }", "public void setIndex(Integer index) {\n this.index = index;\n }", "public E set(int index, E element);", "@Override\n public int set(int index, int element) {\n checkIndex(index);\n int result = getEntry(index).value;\n getEntry(index).value = element;\n return result;\n }", "private void setRight(int index, Node n) {\n \t\t// TODO Complete this method!\n \t\tsetNode(getRightOf(index), n);\n \t}", "public TransactionID(Sha256Hash txHash, int txIndex) {\n this.txHash = txHash;\n this.txIndex = txIndex;\n }", "public Node(int index, int size){\n processId = NO_PROCESS;\n startIndex = index;\n this.size = size;\n this.full = false;\n }", "private void reIndex()\n {\n for(int i = 0; i < NodeList.size(); i++)\n NodeList.get(i).setID(i);\n ID = NodeList.size();\n }", "public int set(int index, int element);", "private void setLinksHelper(int treeIndex, int data, boolean setPreviousIndex) {\n if (treeIndex == -1) {\n return;\n }\n\n Node<T> node = getHelper(treeIndex);\n if (setPreviousIndex) {\n node.previousIndex = data;\n } else {\n node.nextIndex = data;\n }\n }", "public void setIndex(int index){\n\t\tthis.index = index;\n\t}", "void set(int index, Object element);", "private void setUpRouteIDsAndIndexes() {\n\n\n for (int i = 0; i < routeIDsOfBillboards.size(); i++) {\n\n List<Integer> routeIDs = routeIDsOfBillboards.get(i);\n\n for (int j = 0; j < routeIDs.size(); j++) {\n\n int routeID = routeIDs.get(j);\n routeIDSet.add(routeID);\n }\n }\n\n buildHash();\n\n for (int i = 0; i < routeIDsOfBillboards.size(); i++) {\n\n List<Integer> routeIndexes = new ArrayList<>();\n List<Integer> routeIDs = routeIDsOfBillboards.get(i);\n for (int j = 0; j < routeIDs.size(); j++) {\n\n int routeID = routeIDs.get(j);\n int routeIndex = (int) routeIDMap.get(routeID);\n routeIndexes.add(routeIndex);\n }\n routeIndexesOfBillboards.add(routeIndexes);\n }\n }", "public Object set(int index, Object element) {\r\n Entry e = entry(index);\r\n Object oldVal = e.element;\r\n e.element = element;\r\n return oldVal;\r\n }", "protected void setIndex(int index) {\n\t\tthis.index = index;\n\t}", "public void setIndex(int index) {\r\n this.index = index;\r\n }", "public int hashCode() {\n return (int) position;\n }", "public Builder setNode(\n int index, uk.ac.cam.acr31.features.javac.proto.GraphProtos.FeatureNode.Builder builderForValue) {\n if (nodeBuilder_ == null) {\n ensureNodeIsMutable();\n node_.set(index, builderForValue.build());\n onChanged();\n } else {\n nodeBuilder_.setMessage(index, builderForValue.build());\n }\n return this;\n }", "protected void setIndex(Expression expr)\n {\n index = expr;\n }", "private void _setPoint(int index, DataPoint point) {\n ntree.set(index, point);\n ensureDistances();\n }", "void set(int idx, int val);", "@Test\n public void testSetIndex() {\n System.out.println(\"setIndex\");\n ArrayList<IndexKey> index = null;\n Data instance = null;\n instance.setIndex(index);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "public void setElem(int index, long value) {\r\n a[index] = value;\r\n }", "public void updateIndex() {\n int i = this.index;\n if (i == -1 || i > HashBiMap.this.size || !Objects.equal(HashBiMap.this.keys[this.index], this.key)) {\n this.index = HashBiMap.this.findEntryByKey(this.key);\n }\n }", "@Override\n\tpublic void setValueIndex(int index) {\n\t\t\n\t}", "HashPermute() {\n\t\tthis(0);\n\t}", "public int hashCode() {\n return this.trieNode.hashCode();\n }", "void set(int index, T data);", "public void set(final int index, final Object object) {\n super.set(index, object);\n }", "public void setStartIndex(java.math.BigInteger startIndex)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(STARTINDEX$10);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(STARTINDEX$10);\n }\n target.setBigIntegerValue(startIndex);\n }\n }", "public void setSyncIndex(int index) {\n }", "void setBit(int index, int value);", "public Builder setNodes(\n int index, entities.Torrent.NodeId.Builder builderForValue) {\n if (nodesBuilder_ == null) {\n ensureNodesIsMutable();\n nodes_.set(index, builderForValue.build());\n onChanged();\n } else {\n nodesBuilder_.setMessage(index, builderForValue.build());\n }\n return this;\n }", "@Override\n public E set(int index, E elem) {\n\t E first = _store[index];\n\t _store[index] =elem;\n\t return first;\n }", "public void setIdx(Integer idx) {\r\n\t\tthis.idx = idx;\r\n\t}", "public void setIndexValue(int indexValue) throws JNCException {\n setIndexValue(new YangUInt16(indexValue));\n }", "void setData(int node_index, int element) {\n\t\tm_list_nodes.setField(node_index, 0, element);\n\t}", "public void setHashValue(String hashValue) {\n this.hashValue = hashValue;\n }", "void setHashData(java.lang.String hashData);", "public void setIndex(int ind){\n\t\tindex = ind;\n\t}", "void setNext(HashNode newNext){\n\t\tnext = newNext; \n\t}", "public void set(int index, int val) {\n boolean exists = arr.get(index).get(arr.get(index).size() - 1).id == id;\n if (exists) {\n arr.get(index).get(arr.get(index).size() - 1).val = val;\n } else {\n List<Pair> list = arr.get(index);\n list.add(new Pair(id, val));\n arr.set(index, list);\n } \n }", "HashNode(HashNode next, double score, String key){\n\t\tnumScores++;\n\t\tsumScore = score;\n\t\tthis.next = next;\n\t\tthis.key = key;\n\t\taverage = 0;\n\t}", "public int hashcode();", "public void set(int index,Object data)\r\n\t{\r\n\t\tremove(index);\r\n\t\tadd(index, data);\r\n\t}", "private void setElement(int index, E element) {\n// if (getElement(index) != null) {\n// setContents.remove(getElement(index));\n// }\n while (index >= contents.size()) {\n contents.add(null);\n }\n contents.set(index, element);\n// contents.put(index, element);\n backwards.put(element, index);\n\n// if (element != null) {\n// setContents.add(getElement(index));\n// }\n }", "private void genHash(int i, HashTreeNode htn, String s) {\n\t\t// i is the recursive depth\n\t\tint n = itemsetSize(s);\n\t\tif( i == n) {\n\t\t\thtn.nodeAttr = 2;\n\t\t\thtn.nodeDepth = n;\n\t\t\tItemsetNode isn = new ItemsetNode(s, 0); \n\t\t\tif(htn.itemsetList == null) {\n\t\t\t\thtn.itemsetList = new Vector<ItemsetNode>();\n\t\t\t}\n\t\t\thtn.itemsetList.addElement(isn);\n\t\t}\n\t\telse {\n\t\t\tif(htn.hashTable==null) {\n\t\t\t\thtn.hashTable = new Hashtable<String, HashTreeNode>(1);\n\t\t\t}\n\t\t\tif(htn.hashTable.containsKey(getItemAt(s, i))) {\n\t\t\t\thtn = (HashTreeNode)htn.hashTable.get(getItemAt(s, i));\n\t\t\t\tgenHash(i+1, htn, s);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tHashTreeNode nhtn = new HashTreeNode();\n\t\t\t\thtn.hashTable.put(getItemAt(s, i), nhtn);\n\t\t\t\tif( i == n-1 ) {\n\t\t\t\t\tnhtn.nodeAttr = 2;\n\t\t\t\t\tgenHash(i+1, nhtn, s);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tnhtn.nodeAttr = 1;\n\t\t\t\t\tgenHash(i+1, nhtn, s);\n\t\t\t\t}\n\t\t\t}\n\t\t}\t\t\n\t}", "@Override\n public int hashCode() {\n final int primeNum = 31;\n int result = primeNum * numElement;\n Node<T> iter = head;\n for (int index = 0; index < numElement; index++) {\n result = primeNum * iter.hashCode();\n iter = iter.getNext();\n }\n return result;\n }", "public RMSTableNode(final RMSTable rmsIndex, final int index) throws RecordStoreException {\r\n this.rmsIndex = rmsIndex;\r\n this.index = index;\r\n final byte[] data = this.rmsIndex.store.getRecord(index);\r\n if ((data == null) || (data.length == 0)) { return; }\r\n try {\r\n final DataInputStream dis = new DataInputStream(new ByteArrayInputStream(data));\r\n size = dis.readInt();\r\n for (int i = 0; i < size; i++) {\r\n children[i] = dis.readInt();\r\n keys[i] = dis.readUTF();\r\n values[i] = dis.readUTF();\r\n }\r\n children[size] = dis.readInt();\r\n }\r\n catch (final IOException e) {\r\n throw new RuntimeException(e.toString());\r\n }\r\n }", "public void setHeapIndex(int newIndex) {\n\t\theapIndex = newIndex;\n\t}", "@VisibleForTesting\n void setHashForTesting(int hashForTesting) {\n this.hashForTesting = hashForTesting;\n }", "public Node(int id, int index, int size){\n processId = id;\n startIndex = index;\n this.size = size;\n this.full = true;\n }", "@Override\n public int hashCode() {\n return Objects.hash(rangeIndex);\n }", "void Rehash(){\n\t\tRehash++;\r\n\t\t//updates if the hash table changed size\r\n\t\tStockNode[] temp=new StockNode[(2*Table.length)+1];\r\n\t\t//creates a temporary table with the new size \r\n\t\tfor(int i=Table.length-1;i>=0;i--){\r\n\t\t\t//goes through each array linked list \r\n\t\t\tStockNode t=Table[i];\r\n\t\t\twhile(t!=null){\r\n\t\t\t\t//the change of node to its new proper place is done here \r\n\t\t\t\tint key = toInt(t.stockName);\r\n\t\t\t\tint index = key%temp.length;\r\n\t\t\t\tif(temp[index]!=null){\r\n\t\t\t\t\tStockNode next=temp[index].next;\r\n\t\t\t\t\twhile(next!=null){\r\n\t\t\t\t\t\ttemp[index]=next;\r\n\t\t\t\t\t\tnext=temp[index].next;\r\n\t\t\t\t\t}\r\n\t\t\t\t\ttemp[index].next=t;\r\n\t\t\t\t} else{\r\n\t\t\t\t\ttemp[index]=t;\r\n\t\t\t\t}\r\n\t\t\t\tStockNode next=t.next;\r\n\t\t\t\tt.next=null;\r\n\t\t\t\tt=next;\r\n\t\t\t}\r\n\t\t}\r\n\t\tTable=temp;\r\n\t}", "public E set(int index, E obj)\r\n {\r\n checkValidIndex(index);\r\n ListIterator<E> itr = listIterator(index);\r\n E result = itr.next();\r\n itr.set(obj);\r\n return result;\r\n }", "public void setIndex(int value) {\n this.index = value;\n }", "@Override\r\n public E set(int index, E element) {\r\n if (index < 0 || index >= size()) {\r\n throw new IndexOutOfBoundsException();\r\n }\r\n\r\n for (int i = 0; i < size; i++) {\r\n if (get(i).equals(element)) {\r\n throw new IllegalArgumentException();\r\n }\r\n }\r\n\r\n LinkedListIterator it = new LinkedListIterator(index);\r\n \r\n E replaced = it.next(); \r\n it.set(element);\r\n return replaced;\r\n }", "public void setPindex(Integer pindex) {\n\t\tthis.pindex = pindex;\n\t}", "@Override\n\tpublic int hashCode()\n\t{\n\t\t// This is really simple, but it works... and prevents a deep hash\n\t\treturn nodeList.size() + edgeList.size() * 23;\n\t}", "public void setIndex(int value) {\n\t\tthis.index = value;\r\n\t}", "public void setIdx(Number value) {\n setAttributeInternal(IDX, value);\n }", "public Builder setClusteringKey(\n int index, String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureClusteringKeyIsMutable();\n clusteringKey_.set(index, value);\n onChanged();\n return this;\n }", "public SelectionIndexMatcher(Integer index) {\n this.index = index;\n }", "public long getNodeIndex();", "public void makeSet( long data ){\n Node node = new Node();\n node.data = data;\n node.parent = node;\n node.rank = 0;\n map.put( data, node );\n }", "public void setRegister(int index, long val){\n \t\tif(index >=1 && index < 32){\n \t\t\tregFile[index].setValue(val);\n \t\t}\n \t\telse throw new Error(\"Cannot access $r\" + index);\n \t}", "public HashNode(KeyType key, ValueType value) {\r\n this.key = key;\r\n this.value = value;\r\n }", "public Builder setNode(\n int index, uk.ac.cam.acr31.features.javac.proto.GraphProtos.FeatureNode value) {\n if (nodeBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureNodeIsMutable();\n node_.set(index, value);\n onChanged();\n } else {\n nodeBuilder_.setMessage(index, value);\n }\n return this;\n }" ]
[ "0.64648867", "0.63563013", "0.63524824", "0.6132155", "0.6051422", "0.59818715", "0.59788287", "0.5953617", "0.5939567", "0.5920567", "0.5839113", "0.5778607", "0.57767564", "0.574277", "0.5740835", "0.5707228", "0.5681569", "0.5621308", "0.56021047", "0.55994135", "0.55935454", "0.5534278", "0.5526032", "0.5520975", "0.55205375", "0.55053574", "0.54806805", "0.54759765", "0.5450767", "0.54473495", "0.54390424", "0.5420241", "0.54108244", "0.54108244", "0.53975326", "0.5374963", "0.53675145", "0.5357551", "0.5352805", "0.5346474", "0.53240645", "0.5322096", "0.53196675", "0.53129935", "0.5304649", "0.5300402", "0.5279683", "0.52740794", "0.5269091", "0.52688044", "0.5260915", "0.5243764", "0.5239109", "0.52379215", "0.52167404", "0.5207464", "0.52017283", "0.51987505", "0.51928276", "0.518738", "0.5178233", "0.5165388", "0.51629525", "0.5161884", "0.5160865", "0.5157008", "0.51522905", "0.51505476", "0.51460266", "0.5131416", "0.5131049", "0.51273686", "0.51244086", "0.51236194", "0.5117525", "0.5115467", "0.5111577", "0.5105532", "0.5103464", "0.5101532", "0.5098504", "0.5090938", "0.5085488", "0.50809425", "0.50749284", "0.50670594", "0.50629365", "0.5062423", "0.50624126", "0.50564957", "0.5050673", "0.50506586", "0.5046534", "0.5038496", "0.50379664", "0.5037396", "0.5035029", "0.502768", "0.5019492", "0.5018636" ]
0.6674387
0
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View view = inflater.inflate(R.layout.fragment_weather, container, false); unbinder = ButterKnife.bind(this, view); moveSenseSnapshot = new MoveSenseSnapshot(getActivity()); moveSenseSnapshot.getWeathers(this); return view; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.wallpager_layout, null);\r\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_invit_friends, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_zhuye, container, false);\n initView(inflate);\n initData();\n return inflate;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_posts, parent, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n return inflater.inflate(R.layout.ilustration_fragment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_sow_drug_cost_per_week, container, false);\n\n db = new DataBaseAdapter(getActivity());\n hc = new HelperClass();\n pop = new FeedSowsFragment();\n\n infltr = (LayoutInflater) getActivity().getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n parent = (LinearLayout) v.findViewById(R.id.layout_for_add);\n tvTotalCost = (TextView) v.findViewById(R.id.totalCost);\n\n getData();\n setData();\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_stream_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_event, container, false);\n\n\n\n\n\n\n\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_feed, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.screen_select_list_student, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_overall, container, false);\n mNamesLayout = (LinearLayout) rootView.findViewById(R.id.fragment_overall_names_layout);\n mOverallView = (OverallView) rootView.findViewById(R.id.fragment_overall_view);\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState)\n {\n\n\n view = inflater.inflate(R.layout.fragment_earning_fragmant, container, false);\n ini(view);\n return view;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n super.onCreateView(inflater, container, savedInstanceState);\n final View rootview = inflater.inflate(R.layout.activity_email_frag, container, false);\n ConfigInnerElements(rootview);\n return rootview;\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\trootView = inflater.inflate(R.layout.fragment_attack_armor, container, false);\r\n\r\n\t\tfindInterfaceElements();\r\n\t\taddRangeSelector();\r\n\t\tupdateHeadings();\r\n\t\tsetListeners();\r\n\r\n\t\tsetFromData();\r\n\r\n\t\treturn rootView;\r\n\t}", "@SuppressLint(\"InflateParams\")\r\n\t@Override\r\n\tpublic View initLayout(LayoutInflater inflater) {\n\t\tView view = inflater.inflate(R.layout.frag_customer_all, null);\r\n\t\treturn view;\r\n\t}", "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_fore_cast, container, false);\r\n initView();\r\n mainLayout.setVisibility(View.GONE);\r\n apiInterface = RestClinet.getClient().create(ApiInterface.class);\r\n loadData();\r\n return view;\r\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_friend, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_detail, container, false);\n image = rootView.findViewById(R.id.fr_image);\n name = rootView.findViewById(R.id.fr_name);\n phoneNumber = rootView.findViewById(R.id.fr_phone_number);\n email = rootView.findViewById(R.id.fr_email);\n street = rootView.findViewById(R.id.fr_street);\n city = rootView.findViewById(R.id.fr_city);\n state = rootView.findViewById(R.id.fr_state);\n zipcode = rootView.findViewById(R.id.fr_zipcode);\n dBrith = rootView.findViewById(R.id.date_brith);\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_pm25, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_kkbox_playlist, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_feed_pager, container, false);\n\n// loadData();\n\n findViews(rootView);\n\n setViews();\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n layout = (FrameLayout) inflater.inflate(R.layout.fragment_actualites, container, false);\n\n relLayout = (RelativeLayout) layout.findViewById(R.id.relLayoutActus);\n\n initListView();\n getXMLData();\n\n return layout;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.frag_post_prayer_video, container, false);\n setCustomDesign();\n setCustomClickListeners();\n return rootView;\n }", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.lf_em4305_fragment, container, false);\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_recordings, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view=inflater.inflate(R.layout.fragment_category, container, false);\n initView(view);\n bindRefreshListener();\n loadParams();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_cm_box_details, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_layout12, container, false);\n\n iniv();\n\n init();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_details, container, false);\n //return inflater.inflate(R.layout.fragment_details, container, false);\n getIntentValues();\n initViews();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_mem_body_blood, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_qiugouxiaoxi, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_coll_blank, container, false);\n initView(inflate);\n initData();\n return inflate;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_attendance_divide, container, false);\n\n initView(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.show_program_fragment, parent, false);\n }", "@Override\n public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container,\n @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.visualization_fragment, container, false);\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_category_details_page, container, false);\n initializeAll();\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n final View v = inflater.inflate(R.layout.fragemnt_reserve, container, false);\n\n\n\n\n return v;\n }", "protected int getLayoutResId() {\n return R.layout.activity_fragment;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_quizs, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n role = getArguments().getInt(\"role\");\n rootview = inflater.inflate(R.layout.fragment_application, container, false);\n layout = rootview.findViewById(R.id.patentDetails);\n progressBar = rootview.findViewById(R.id.progressBar);\n try {\n run();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return rootview;\n }", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\tview = inflater.inflate(R.layout.fragment_zhu, null);\n\t\tinitView();\n\t\tinitData();\n\t\treturn view;\n\t}", "@Override\n\t\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)\n\t\t{\n\t\t\tView rootView = inflater.inflate(R.layout.maimfragment, container, false);\n\t\t\treturn rootView;\n\t\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n // Inflate the layout for this fragment\n return inflater.inflate(R.layout.fragment__record__week, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_porishongkhan, container, false);\n\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_dashboard, container, false);\n resultsRv = view.findViewById(R.id.db_results_rv);\n resultText = view.findViewById(R.id.db_search_empty);\n progressBar = view.findViewById(R.id.db_progressbar);\n lastVisitText = view.findViewById(R.id.db_last_visit);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(getLayoutId(), container, false);\n init(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_feedback, container, false);\n self = getActivity();\n initUI(view);\n initControlUI();\n initData();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_service_summery, container, false);\n tvVoiceMS = v.findViewById(R.id.tvVoiceValue);\n tvDataMS = v.findViewById(R.id.tvdataValue);\n tvSMSMS = v.findViewById(R.id.tvSMSValue);\n tvVoiceFL = v.findViewById(R.id.tvVoiceFLValue);\n tvDataBS = v.findViewById(R.id.tvDataBRValue);\n tvTotal = v.findViewById(R.id.tvTotalAccountvalue);\n return v;\n }", "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_clan_rank_details, container, false);\r\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_star_wars_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_lei, container, false);\n\n initView(inflate);\n initData();\n return inflate;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_quotation, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_wode_ragment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n\n\n\n\n\n return inflater.inflate(R.layout.fragment_appoint_list, parent, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n if (rootView == null) {\n rootView = inflater.inflate(R.layout.fragment_ip_info, container, false);\n initView();\n }\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_offer, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_rooms, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\n View view = inflater.inflate(R.layout.fragment_img_eva, container, false);\n\n getSendData();\n\n initView(view);\n\n initData();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_project_collection, container, false);\n ButterKnife.bind(this, view);\n fragment = this;\n initView();\n getCollectionType();\n // getCategoryList();\n initBroadcastReceiver();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_yzm, container, false);\n initView(view);\n return view;\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\t\tmainLayout = inflater.inflate(R.layout.fragment_play, container, false);\r\n\t\treturn mainLayout;\r\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_invite_request, container, false);\n initialiseVariables();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n getLocationPermission();\n return inflater.inflate(R.layout.centrum_fragment, container, false);\n\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_habit_type_details, container, false);\n\n habitTitle = rootView.findViewById(R.id.textViewTitle);\n habitReason = rootView.findViewById(R.id.textViewReason);\n habitStartDate = rootView.findViewById(R.id.textViewStartDate);\n habitWeeklyPlan = rootView.findViewById(R.id.textViewWeeklyPlan);\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_information_friends4, container, false);\n\n if (getArguments() != null) {\n FriendsID = getArguments().getString(\"keyFriends\");\n }\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_post_details, container, false);\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hotel, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_bus_inquiry, container, false);\n initView();\n initData();\n initDialog();\n getDataFromNet();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_weather, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_srgl, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_ground_detail_frgment, container, false);\n init();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_book_appointment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_wheretogo, container, false);\n ids();\n setup();\n click();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n binding = DataBindingUtil\n .inflate(inflater, R.layout.fragment_learning_leaders, container, false);\n init();\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_end_game_tab, container, false);\n\n setupWidgets();\n setupTextFields(view);\n setupSpinners(view);\n\n // Inflate the layout for this fragment\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.memoir_fragment, container, false);\n\n getUserIdFromSharedPref();\n configureUI(view);\n configureSortSpinner();\n configureFilterSpinner();\n\n networkConnection = new NetworkConnection();\n new GetAllMemoirTask().execute();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_jadwal, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_delivery_detail, container, false);\n initialise();\n\n\n\n return view;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_4, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_product, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_group_details, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment06_7, container, false);\n initView(view);\n setLegend();\n setXAxis();\n setYAxis();\n setData();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_downloadables, container, false);\n }", "@Override\n public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.movie_list_fragment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_like, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hall, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_unit_main, container, false);\n TextView mTxvBusinessAassistant = (TextView) view.findViewById(R.id.txv_business_assistant);\n TextView mTxvCardINformation = (TextView) view.findViewById(R.id.txv_card_information);\n RelativeLayout mRelOfficialWebsite = (RelativeLayout) view.findViewById(R.id.rel_official_website);\n RelativeLayout mRelPictureAblum = (RelativeLayout) view.findViewById(R.id.rel_picture_album);\n TextView mTxvQrCodeCard = (TextView) view.findViewById(R.id.txv_qr_code_card);\n TextView mTxvShareCard = (TextView) view.findViewById(R.id.txv_share_card);\n mTxvBusinessAassistant.setOnClickListener(this.mOnClickListener);\n mTxvCardINformation.setOnClickListener(this.mOnClickListener);\n mRelOfficialWebsite.setOnClickListener(this.mOnClickListener);\n mRelPictureAblum.setOnClickListener(this.mOnClickListener);\n mTxvQrCodeCard.setOnClickListener(this.mOnClickListener);\n mTxvShareCard.setOnClickListener(this.mOnClickListener);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_moviespage, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_s, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_overview, container, false);\n\n initOverviewComponents(view);\n registerListeners();\n initTagListener();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_bahan_ajar, container, false);\n initView(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n root = (ViewGroup) inflater.inflate(R.layout.money_main, container, false);\n context = getActivity();\n initHeaderView(root);\n initView(root);\n\n getDate();\n initEvetn();\n return root;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_historical_event, parent, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_event_details, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_video, container, false);\n unbinder = ButterKnife.bind(this, view);\n initView();\n initData();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n v= inflater.inflate(R.layout.fragment_post_contacts, container, false);\n this.mapping(v);\n return v;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_measures, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_feed, container, false);\n findViews(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_surah_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_data_binded, container, false);\n }" ]
[ "0.6739604", "0.67235583", "0.6721706", "0.6698254", "0.6691869", "0.6687986", "0.66869223", "0.6684548", "0.66766286", "0.6674615", "0.66654444", "0.66654384", "0.6664403", "0.66596216", "0.6653321", "0.6647136", "0.66423255", "0.66388357", "0.6637491", "0.6634193", "0.6625158", "0.66195583", "0.66164845", "0.6608733", "0.6596594", "0.65928894", "0.6585293", "0.65842897", "0.65730995", "0.6571248", "0.6569152", "0.65689117", "0.656853", "0.6566686", "0.65652984", "0.6553419", "0.65525705", "0.65432084", "0.6542382", "0.65411425", "0.6538022", "0.65366334", "0.65355957", "0.6535043", "0.65329415", "0.65311074", "0.65310687", "0.6528645", "0.65277404", "0.6525902", "0.6524516", "0.6524048", "0.65232015", "0.65224624", "0.65185034", "0.65130377", "0.6512968", "0.65122765", "0.65116245", "0.65106046", "0.65103024", "0.6509013", "0.65088093", "0.6508651", "0.6508225", "0.6504662", "0.650149", "0.65011525", "0.6500686", "0.64974767", "0.64935696", "0.6492234", "0.6490034", "0.6487609", "0.6487216", "0.64872116", "0.6486594", "0.64861935", "0.6486018", "0.6484269", "0.648366", "0.6481476", "0.6481086", "0.6480985", "0.6480396", "0.64797544", "0.647696", "0.64758915", "0.6475649", "0.6474114", "0.6474004", "0.6470706", "0.6470275", "0.64702207", "0.6470039", "0.6467449", "0.646602", "0.6462256", "0.64617974", "0.6461681", "0.6461214" ]
0.0
-1
dinero total de todas las tiendas
public Tienda(String direccion,float dinero){ this.direccion = direccion; this.dinero = dinero; numeroTiendas++; totalDinero+=dinero; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Double darTiempoTotal(){\n\t\treturn tiempoComputacionalGrasp+tiempoComputacionalSetCovering;\n\t}", "public int tiempoTotal() {\r\n\r\n\t\tint duracionTotal = 0;\r\n\t\tfor (int i = 0; i < misCanciones.size(); i++) {\r\n\t\t\tduracionTotal = duracionTotal + misCanciones.get(i).getDuracionS();\r\n\t\t}\r\n\t\t\r\n\t\treturn duracionTotal;\r\n\r\n\t}", "private int calcTotalTime() {\n\t\tint time = 0;\n\t\tfor (Taxi taxi : taxis) {\n\t\t\ttime += taxi.calcTotalTime();\n\t\t}\n\t\treturn time;\n\t}", "public double obtener_total(){\r\n double total_ventas = precio*unidades;\r\n return total_ventas;\r\n }", "public float totalVentas() {\n float total = 0;\n for (int i = 0; i < posicionActual; i++) {\n total += getValorCompra(i); //Recorre el arreglo y suma toda la informacion el el arreglo de los valores en una variable que luego se retorna \n }\n return total;\n }", "double getTotal();", "public int getSueldoTotal() {\n return sueldoTotal;\n }", "Double getTotalSpent();", "@Override\r\n\tpublic int precioTotal() {\n\t\treturn this.precio;\r\n\t}", "public static void sueldoTotal(int hora, int sueldo){\n int resultado = 0;\r\n if(hora<=40){\r\n resultado = hora*sueldo;\r\n }\r\n if(hora>40 || hora<48){\r\n resultado = (40*sueldo)+(hora-40)*(sueldo*2);\r\n }\r\n if (hora>=48){\r\n resultado =(40*sueldo)+8*(sueldo*2)+(hora-48)*(sueldo*3);\r\n }\r\n System.out.println(\"El sueldo es de \"+ resultado);//Se muestra el sueldo total\r\n \r\n \r\n \r\n }", "public static int tirarDados(){\n //elige valores aleatorios para los dados\n int dado1 = 1 + numerosAleatorios.nextInt(6);//<primer tiro del dado\n int dado2 = 1 + numerosAleatorios.nextInt(6);//< segundo tiro del dado\n \n int suma = dado1 + dado2;//< suma de los valores de los dados\n \n //muestra los resultados de este tiro\n System.out.printf(\"El jugador tiro %d + %d = %d%n\", dado1, dado2, suma);\n return suma;\n }", "public float getTcintmtotal()\r\n {\r\n return _tcintmtotal;\r\n }", "public int getTotalRecaudado()\n {\n return maquina1.getTotal() + maquina2.getTotal();\n }", "Integer total();", "public void prinRecaudacion()\n {\n System.out.println(\"La cantidad recaudada por la maquina1 es \" + maquina1.getTotal());\n System.out.println(\"La cantidad recaudada por la maquina2 es \" + maquina2.getTotal());\n System.out.println(\"La cantidad total es\" + ( maquina1.getTotal() + maquina2.getTotal()));\n}", "double getSubtotal();", "double getSubtotal();", "public double calcularIncremento(){\n double incremento=0.0;\n \n if (this.edad>=18&&this.edad<50){\n incremento=this.salario*0.05;\n }\n if (this.edad>=50&&this.edad<60){\n incremento=this.salario*0.10;\n }\n if (this.edad>=60){\n incremento=this.salario*0.15;\n }\n return incremento;\n }", "public int obtTotalEpVistosTemp() {\n\t\tint visto = 0;\n\t\tfor (Episodio episodio : this.episodios) {\n\t\t\tif (episodio.isFlag()) {\n\t\t\t\tvisto++;\n\t\t\t}\n\t\t}\n\t\treturn visto;\n\t}", "public double getTuition() {\n\t\tint total = 0;\n\t\tfor(int i = 0; i < this.noc; i++) {\n\t\t\ttotal += courseList[i].getFee();\n\t\t}\n\t\t\n\t\treturn total;\n\t}", "private double prixTotal() \r\n\t{\r\n\t\tdouble pt = getPrix() ; \r\n\t\t\r\n\t\tfor(Option o : option) \r\n\t\t\tpt += o.getPrix();\t\r\n\t\treturn pt;\r\n\t}", "public void calcularTotalVentas(FormularioRegistrarCorte formularioRegistrarCorte) {\n Double suma = 0.00;\n try {\n for (int i = 0; i < formularioRegistrarCorte.getTablaEntradas().getRowCount(); i++) {\n suma = suma + (Double.valueOf(formularioRegistrarCorte.getTablaEntradas().getValueAt(i, 2).toString()));\n }\n formularioRegistrarCorte.getTxtTotalVentas().setText(new OperacionesUtiles().formatoDouble(suma));\n } catch (Exception e) {\n showMessageDialog(null, \"Ocurrio un error al intenetar calcular total entradas\");\n\n }\n\n }", "public float capacidadeTotal() {\r\n float toneladas = 0;\r\n\r\n for (int i = 0; i < numNavios; i++) {\r\n if (navios[i] instanceof Petroleiro) {\r\n Petroleiro petroleiro = (Petroleiro) navios[i];\r\n toneladas = toneladas + petroleiro.getCapacidadeCarga();\r\n } else if (navios[i] instanceof PortaContentores) {\r\n PortaContentores portaContentores = (PortaContentores) navios[i];\r\n toneladas = toneladas + portaContentores.getMaxContentores() * 10;\r\n }\r\n }\r\n return toneladas;\r\n }", "public void calcularTotal() {\n double valor = 0;\n String servico = (String)consultaSelecionada.getSelectedItem().toString();\n switch(servico) {\n case \"Consulta\":\n valor += 100;\n break;\n case \"Limpeza\":\n valor += 130;\n break;\n case \"Clareamento\":\n valor += 450;\n break;\n case \"Aparelho\":\n valor += 100;\n break;\n case \"Raio-x\":\n valor += 80;\n break;\n case \"Cirurgia\":\n valor += 70;\n break;\n }\n Total.setText(String.valueOf(valor));\n }", "public Double getTotal();", "public boolean calcularTotal() {\r\n double dou_debe = 0;\r\n double dou_haber = 0;\r\n for (int i = 0; i < tab_tabla2.getTotalFilas(); i++) {\r\n try {\r\n if (tab_tabla2.getValor(i, \"ide_cnlap\").equals(p_con_lugar_debe)) {\r\n dou_debe += Double.parseDouble(tab_tabla2.getValor(i, \"valor_cndcc\"));\r\n } else if (tab_tabla2.getValor(i, \"ide_cnlap\").equals(p_con_lugar_haber)) {\r\n dou_haber += Double.parseDouble(tab_tabla2.getValor(i, \"valor_cndcc\"));\r\n }\r\n } catch (Exception e) {\r\n }\r\n }\r\n eti_suma_debe.setValue(\"TOTAL DEBE : \" + utilitario.getFormatoNumero(dou_debe));\r\n eti_suma_haber.setValue(\"TOTAL HABER : \" + utilitario.getFormatoNumero(dou_haber));\r\n\r\n double dou_diferencia = Double.parseDouble(utilitario.getFormatoNumero(dou_debe)) - Double.parseDouble(utilitario.getFormatoNumero(dou_haber));\r\n eti_suma_diferencia.setValue(\"DIFERENCIA : \" + utilitario.getFormatoNumero(dou_diferencia));\r\n if (dou_diferencia != 0.0) {\r\n eti_suma_diferencia.setStyle(\"font-size: 14px;font-weight: bold;color:red\");\r\n } else {\r\n eti_suma_diferencia.setStyle(\"font-size: 14px;font-weight: bold\");\r\n return true;\r\n }\r\n return false;\r\n }", "public void generarTotal(){\n\n\t\tfloat total = 0;\n\n\t\tfor (int con = 0; con < modelo.getRowCount(); con++) {\n\n\t\t\ttotal += (float) tabla.getValueAt(con, 3);\n\t\t\t\n\t\t}\n\n\t\tcampoTotal.setText(formato.format(total));\n\n\t\tlimpiarCampos();\n\n\t}", "public BigDecimal calcolaImportoTotaleDaDedurreSobdocumenti(){\n\t\tBigDecimal result = BigDecimal.ZERO;\n\t\tfor(SD ds : getListaSubdocumenti()){\n\t\t\tresult = result.add(ds.getImportoDaDedurreNotNull());\n\t\t}\n\t\treturn result;\n\t}", "public double calcularTarifa(){\n\t\treturn TARIFA_BASE * 1.2;\n\t}", "public BigDecimal calcolaImportoTotaleSubdoumenti(){\n\t\tBigDecimal result = BigDecimal.ZERO;\n\t\tfor(SD ds : getListaSubdocumenti()){\n\t\t\tresult = result.add(ds.getImporto());\n\t\t}\n\t\treturn result;\n\t}", "public double calTotalAmount(){\n\t\tdouble result=0;\n\t\tfor (int i = 0; i < this.cd.size(); i++) {\n\t\t\tresult += this.cd.get(i).getPrice();\n\t\t}\n\t\treturn result;\n\t}", "double getTotalProfit();", "public static double getTotal(double tuition, double gnsf, double erf){\r\n double total = 0;\r\n total = tuition + gnsf + erf;\r\n return total;\r\n }", "BigDecimal getTotal();", "BigDecimal getTotal();", "void total() {\r\n t=m1+m2+m3;\r\n per=t/3;\r\n System.out.println(\"total :\"+t);\r\n System.out.println(\"persentage:\"+per);\r\n \r\n \r\n }", "public int numberOfTires() {\n int tires = 4;\n return tires;\n }", "public int fondMagasin(){\n\tint total =this.jeton;\n\tfor(Caisse c1 : this.lesCaisses){\n\ttotal = c1.getTotal()+total;\n\t}\n\treturn total;\n}", "public double getTotale() {\n\t\t\treturn totale;\n\t\t}", "public float montos(){\n\tDefaultTableModel modelo = vc.returnModelo();\r\n\tint numeroFilas=modelo.getRowCount();\r\n\tfloat monto=0;\r\n\t\tif(modelo.getRowCount()!=0){\r\n\t\t\r\n\t\t\tfor (int i = 0; i < numeroFilas; i++) {\r\n\t\t\t\t\r\n\t\t\t\tmonto = monto + Float.valueOf(modelo.getValueAt(i, 5).toString());\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}else{\r\n\t\t\tmonto=0;\r\n\t\t}\r\n\t\treturn monto;\r\n\t}", "public BigDecimal getValorTotalSemDesconto() {\r\n return valorUnitario.setScale(5, BigDecimal.ROUND_HALF_EVEN).multiply(quantidade.setScale(3, BigDecimal.ROUND_HALF_EVEN)).setScale(3, BigDecimal.ROUND_DOWN);\r\n }", "public int precioFinal(){\r\n int monto=super.PrecioFinal();\r\n\t \t \r\n\t if (pulgadas>40){\r\n\t monto+=precioBase*0.3;\r\n\t }\r\n\t if (sintonizador){\r\n\t monto+=50;\r\n\t }\r\n\t \r\n\t return monto;\r\n\t }", "public int getTotalAmount();", "@Override\n\tpublic double calculaTributos() {\n\t\treturn numeroDePacientes * 10;\n\t}", "public String getTotalAmountOfTicketFlight()\n\t{\n\t\tint sum;\n\n\t\tint departurePriceAtbottom = Integer.parseInt(getDepartureFlightPriceAtBottom().replaceAll(\"[Rs ,]\", \"\"));\n\t\tint returnPriceAtbottom = Integer.parseInt(getReturnFlightPriceAtBottom().replaceAll(\"[Rs ,]\", \"\"));\n\t\t\n\t\twaitForSeconds(5);\n\n\t\tif(driver.getPageSource().contains(\"Return trip discount\")) {\n\t\t\tint dAmount = Integer.parseInt(discountTagAmount.getText().replaceAll(\"[Rs ]\", \"\"));\n\t\t\tsum = (departurePriceAtbottom + returnPriceAtbottom)- dAmount;\n\n\t\t}\n\t\telse \n\t\t{\n\n\t\t\tsum = departurePriceAtbottom + returnPriceAtbottom;\n\t\t}\n\n\n\t\treturn String.valueOf(sum);\n\t}", "private void sumarTotalVenta(int cantidad, double precioProducto) {\r\n\t\tdouble valorProductos = cantidad * precioProducto;\r\n\t\ttotalVenta += valorProductos;\r\n\t}", "public Double retornaSubTotal(Double totalGeral,Double desconto){\n return totalGeral - (totalGeral*(desconto/100));\n}", "public int getTotRuptures();", "@Override\r\n\tpublic void entregarDinero() {\n\t\tSystem.out.println(\"Total de dinero entrgado\");\r\n\t}", "private void syncNumCopertiTotali() {\n int qPranzo = campoPranzo.getInt();\n int qCena = campoCena.getInt();\n campoTotale.setValore(qPranzo+qCena);\n }", "public BigDecimal getValorTotal() {\r\n \treturn valorUnitario.setScale(5, BigDecimal.ROUND_HALF_EVEN).multiply(quantidade.setScale(3, BigDecimal.ROUND_HALF_EVEN)).setScale(3, BigDecimal.ROUND_DOWN).subtract(valorDesconto).setScale(3, BigDecimal.ROUND_HALF_EVEN);\r\n }", "private Double calcularValorTotal(Aluguel aluguelPendente, Date dataDevolucao) {\n int quantFilmes = aluguelPendente.getFilmes().size();\n DateTime dateAluguel = new DateTime(aluguelPendente.getDataAluguel().getTime());\n DateTime dateDevolucao = new DateTime(dataDevolucao);\n int diferencaDias = Days.daysBetween(dateAluguel, dateDevolucao).getDays();\n int diasAtraso = diferencaDias - 2 - (quantFilmes - 1);\n Double multa = 1.2 * (diasAtraso > 0 ? diasAtraso : 0);\n Double valorTotal = aluguelPendente.getValor() + multa;\n return valorTotal;\n }", "public void obtenertotales(double suma){\n double Total = suma;\n totalPagarVentaTB.setText(String.valueOf(Total));\n double iva = Total*0.19;\n ivaVentaTB.setText(String.valueOf(iva));\n double subtotal = Total-iva;\n subTotalVentaTB.setText(String.valueOf(subtotal)); \n \n }", "public void sumaPuntos() {\r\n int rojo = 0;\r\n int azul = 0;\r\n for (int i = 1; i < 10; i++) {\r\n\r\n if (tablero[1][i].getTipo().equals(\"Rojo\")) {\r\n rojo += tablero[1][i].getValor();\r\n }\r\n\r\n if (tablero[8][i].getTipo().equals(\"Azul\")) {\r\n azul += tablero[8][i].getValor();\r\n }\r\n\r\n }\r\n if (rojo > azul) {\r\n this.setResultado(\"Rojo\");\r\n this.agregarVictoria(jugadorRojo);\r\n }\r\n if (azul > rojo) {\r\n this.setResultado(\"Azul\");\r\n this.agregarVictoria(jugadorAzul);\r\n }\r\n \r\n this.setReplay(true);\r\n }", "public double getTotal (){ \r\n return total;\r\n }", "private double getOrderTotal() {\n double d = 0;\n\n for (Pizza p : pizzas) {\n d += p.calcTotalCost();\n }\n\n return d;\n }", "public synchronized double getTotal(){\n float CantidadTotal=0;\n Iterator it = getElementos().iterator();\n while (it.hasNext()) {\n ArticuloVO e = (ArticuloVO)it.next();\n CantidadTotal=CantidadTotal+(e.getCantidad()*e.getPrecio());\n}\n\n \n return CantidadTotal;\n\n }", "@Override\n\tpublic Double getVolumeTotalPorTipoBebida(Integer tipoBebida) {\n\t\tList<SecaoEstoqueDTO> result = this.mongoTemplate\n\t\t\t\t.aggregate(getSumBebidaVolumeGroupedByBebidaTipo(getMatchTipoBebida(tipoBebida)), Estoque.class, SecaoEstoqueDTO.class)\n\t\t\t\t.getMappedResults();\n\t\treturn result != null && !result.isEmpty() ? result.get(0).getTotal() : 0;\n\n\t}", "public void total() {\n\t\t\n\t}", "public double getTotal_Venta() {\n return total_Venta;\n }", "public int getTotalEntradas() {\n\t\treturn totalEntradas;\n\t}", "TotalInvoiceAmountType getTotalInvoiceAmount();", "public static float getTotal() {\n return total;\r\n }", "public double sum() {\n double resultat = 0;\n for (int i = 0; i < tab.size(); i++) {\n resultat += CalculatorArray.sum(tab.get(i));\n }\n System.out.println(\"Sum colonne:\" + resultat);\n return resultat;\n }", "@Override\n public double total() {\n return 2500;\n }", "public void hora()\n {\n horaTotal = HoraSalida - HoraLlegada;\n\n }", "public float valorTotalItem()\r\n {\r\n float total = (produto.getValor() - (produto.getValor() * desconto)) * quantidade;\r\n return total;\r\n }", "public Integer getCantidadTotal() {\n return cantidadTotal;\n }", "public void sumar(){\n recogidaDatos();\n System.out.println(\"El resultado de la suma es: \" + (numerando1 + numerando2));\n System.out.println(\"***********************************\");\n\n }", "private void calcTotalAmount(){\n\t totalAmount = 0;\n\t\tfor(FlightTicket ft : tickets)\n\t\t{\n\t\t\ttotalAmount += ft.getClassType().getFee() * getFlight().getFlightCost();\n\t\t}\n\t\tsetTotalAmount(totalAmount);\n\t}", "public Double getInternalTotalComDesconto() {\r\n double preco, quantidade, desconto; \r\n double valor = 0, valorDescontado = 0;\r\n preco = (getPrecoUnitario() == null) ? 0 : getPrecoUnitario().doubleValue();\r\n quantidade = (getQuantidade() == null) ? 0 : getQuantidade().doubleValue();\r\n desconto = (getDesconto() == null) ? 0 : getDesconto().doubleValue();\r\n \r\n \tvalor = (preco * quantidade);\r\n \tvalorDescontado = (valor / 100) * desconto;\r\n return new Double(valor - valorDescontado);\r\n }", "private Integer calculaDiasSemanaTrabajoProyecto() {\r\n Integer dias = 0;\r\n List<ConfiguracionProyecto> configuracionProyectos = configuracionProyectoService.buscar(new ConfiguracionProyecto(\r\n docenteProyectoDM.getDocenteProyectoDTOSeleccionado().getDocenteProyecto().getProyectoId(), null, null,\r\n ConfiguracionProyectoEnum.DIASSEMANA.getTipo(), null));\r\n for (ConfiguracionProyecto cf : configuracionProyectos) {\r\n dias = Integer.parseInt(cf.getValor());\r\n break;\r\n }\r\n return dias;\r\n }", "private int getTotalPrice() {\n int unitPrice = 0;\n if (((CheckBox) findViewById(R.id.whipped_cream_checkbox)).isChecked()) {\n unitPrice += Constants.PRICE_TOPPING_WHIPPED_CREAM;\n }\n\n if (((CheckBox) findViewById(R.id.chocolate_checkbox)).isChecked()) {\n unitPrice += Constants.PRICE_TOPPING_CHOCOLATE;\n }\n\n unitPrice += Constants.PRICE_PER_COFFEE;\n return getNumberOfCoffees() * unitPrice;\n }", "public BigDecimal getValorTotal(){\r\n\t\r\n\t\t// percorre a lista de ItemVenda - stream especie de interator do java 8\r\n\t\treturn itens.stream()\r\n\t .map(ItemVenda::getValorTotal) // para cada um dos itens, obtem o valor total do item\t\r\n\t .reduce(BigDecimal::add) // soma todos os valores total \r\n\t .orElse(BigDecimal.ZERO); // caso não tenha nenhum item retorna zeo\r\n\t}", "@Override\n public double calculaSalario() \n {\n double resultado = valor_base - ((acumulado * 0.05) * valor_base);\n resultado += auxilioProcriacao();\n //vale-coxinha\n resultado += 42;\n return resultado;\n }", "public void calcularIndicePlasticidad(){\r\n\t\tindicePlasticidad = limiteLiquido - limitePlastico;\r\n\t}", "public BigDecimal calcolaImportoTotaleNoteCollegateEntrata(){\n\t\tBigDecimal result = BigDecimal.ZERO;\n\t\tfor(DocumentoEntrata ds : getListaNoteCreditoEntrataFiglio()){\n\t\t\tresult = result.add(ds.getImporto());\n\t\t}\n\t\treturn result;\n\t}", "public double getTotal(){\n return total;\n }", "@Override\n\tpublic double totalSalario() {\n\t\treturn this.precio;\n\t}", "public int precioTotalRepuestos() {\n int sumaTotal = 0;\n for (Dispositivo dispositivo : dispositivos) {\n sumaTotal += dispositivo.getPrecioRepuesto();\n }\n return sumaTotal;\n }", "int getSuma();", "double getSum();", "double getSum();", "int getSumaAdunata();", "public void sumarUnidad() {\r\n\t\tcantidad++;\r\n\t}", "public final void calcular() {\n long dias = Duration.between(retirada, devolucao).toDays();\n valor = veiculo.getModelo().getCategoria().getDiaria().multiply(new BigDecimal(dias));\n }", "public double Get_Total(Context context){\n return ((double) (TrafficStats.getTotalRxBytes()+TrafficStats.getTotalTxBytes())/1048576);\n }", "public void mostrarTotales() { \n // Inicializacion de los atributos en 0\n totalPCs = 0;\n totalLaptops = 0;\n totalDesktops = 0; \n /* Recorrido de la lista de computadores para acumular el precio usar instanceof para comparar el tipo de computador */ \n for (Computador pc : computadores){\n if (pc instanceof PCLaptop) {\n totalLaptops += pc.calcularPrecio(); \n } else if (pc instanceof PCDesktop){\n totalDesktops += pc.calcularPrecio();\n }\n }\n totalPCs = totalLaptops + totalDesktops;\n System.out.println(\"El precio total de los computadores es de \" + totalPCs); \n System.out.println(\"La suma del precio de los Laptops es de \" + totalLaptops); \n System.out.println(\"La suma del precio de los Desktops es de \" + totalDesktops);\n }", "public void calcPrecioTotal() {\n try {\n float result = precioUnidad * Float.parseFloat(unidades.getText().toString());\n prTotal.setText(String.valueOf(result) + \"€\");\n }catch (Exception e){\n prTotal.setText(\"0.0€\");\n }\n }", "public double calcular(){\n double calculo = 1;\n\n for(INodo descendiente : getDescendientes()) {\n calculo *= descendiente.calcular();\n }\n\n return calculo;\n }", "public void totalFacturaVenta(){\n BigDecimal totalVentaFactura = new BigDecimal(0);\n \n try{\n //Recorremos la lista de detalle y calculamos la Venta total de la factura\n for(Detallefactura det: listDetalle){\n //Sumamos a la variable 'totalVentaFactura'\n totalVentaFactura = totalVentaFactura.add(det.getTotal());\n } \n }catch(Exception e){\n e.printStackTrace();\n }\n \n //Setemos al objeto Factura el valor de la variable 'totalFacturaVenta'\n factura.setTotalVenta(totalVentaFactura);\n \n }", "public int getDineroRecaudadoPorMaquina1()\n {\n return maquina1.getTotal();\n }", "@Override\n public void calcularIntGanado() {\n intGanado = saldo;\n for(int i = 0; i < plazoInv; i++){\n intGanado += inve * 12;\n intGanado += intGanado * (intAnual / 100);\n }\n intGanado = intGanado - (inve + saldo);\n }", "public int getTotal(){\n\t\tif (getDistance() < N*1000){\n\t\t\treturn firstNKmCost;\n\t\t} else {\n\t\t\treturn firstNKmCost + (getDistance() - N * 1000 ) * costPerKm / 1000;\n\t\t}\n\t}", "public int totalHabitantes() {\r\n\tIterator<Ciudad> it = ciudades.iterator();\r\n\tint totalhab = 0;\r\n\tint i = 0;\r\n\twhile(it.hasNext()) {\r\n\t\ttotalhab += it.next().getHabitantes();\r\n\t\t\r\n\t}\r\n\t return totalhab;\r\n\r\n }", "public int getTotal() {\n return total[ke];\n }", "public String dimeTuTiempo()\n {\n String cadResultado=\"\";\n if (horas<10)\n {\n cadResultado=cadResultado+\"0\";\n }\n cadResultado=cadResultado+horas;\n cadResultado=cadResultado+\":\";\n if(minutos<10)\n {\n cadResultado=cadResultado+\"0\";\n }\n cadResultado=cadResultado+minutos;\n \n return cadResultado;\n }", "public int getminutoStamina(){\n return tiempoReal;\n }", "public static void calculateTotal(){\n int i=0;\n total=0;\n while(i<CustomAdapter.selecteditems.size()){\n total+= CustomAdapter.selecteditems.get(i).getPrice() * CustomAdapter.selecteditems.get(i).getQuantity();\n i++;\n }\n String s=\"Rs \"+String.valueOf(total);\n tv_total.setText(s);\n }", "@Override\n public double getTotal() {\n return total;\n }", "public Long getProgressTotalToDo();" ]
[ "0.75749165", "0.7473398", "0.70865285", "0.7076656", "0.69262505", "0.6819018", "0.68117017", "0.6787844", "0.67721665", "0.67568606", "0.66685134", "0.6628446", "0.66118824", "0.6595782", "0.6578832", "0.6545941", "0.6545941", "0.6495707", "0.64835835", "0.64833045", "0.6483145", "0.64799124", "0.6458442", "0.64576006", "0.6444309", "0.64256644", "0.6422662", "0.6405609", "0.64037627", "0.6400989", "0.63974917", "0.63810664", "0.63711107", "0.6370282", "0.6370282", "0.6369648", "0.6367728", "0.6354332", "0.63379127", "0.63196504", "0.63037", "0.6292459", "0.62895983", "0.62861955", "0.6284393", "0.6279702", "0.62702537", "0.62698084", "0.6265717", "0.6264798", "0.626284", "0.6260986", "0.6259813", "0.6258518", "0.62509644", "0.62452734", "0.6233007", "0.62322575", "0.62154937", "0.62150943", "0.6199298", "0.6196081", "0.618982", "0.6185613", "0.61821747", "0.6172445", "0.61697346", "0.6164721", "0.61633533", "0.6147855", "0.6143936", "0.61431354", "0.614118", "0.6136134", "0.6136126", "0.61318654", "0.612824", "0.6113605", "0.61121905", "0.61115956", "0.6101908", "0.6101702", "0.6101702", "0.6093399", "0.6091275", "0.6090957", "0.6086148", "0.6082536", "0.6079041", "0.60782653", "0.6078236", "0.60751414", "0.6063244", "0.6062657", "0.6061546", "0.60585994", "0.6055458", "0.6053795", "0.6049671", "0.60477614", "0.60439533" ]
0.0
-1
String datestr = new String("20151120 17:45:19"); DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyyMMdd HH:mm:ss"); LocalDateTime dateFrom = LocalDateTime.parse(datestr, formatter); LocalDateTime dateTo = LocalDateTime.now();
@Override public List<ExpenceSummary> getReportsForMonth(String owner,int year, int month) { AggregationResults<ExpenceSummary> results = operations.aggregate(newAggregation(Expence.class, // match(where("owner").is(owner)) // .andOperator(where("date").lte(LocalDateTime.now()) //.andOperator(where("year(date)").is(year) // .andOperator(where("date").regex("2016") // .andOperator(where("owner").is("admin"))) , // // unwind("items"), // // project("id", "customerId", "items") // // .andExpression("'$items.price' * '$items.quantity'").as("lineTotal"), // project() .andExpression("type").as("type") .andExpression("year(date)").as("year") .andExpression("month(date)").as("month") .andExpression("amount").as("amount") , match(where("year").is(year) .andOperator(where("month").is(month)) ) // .andOperator(where("date").lte(LocalDateTime.now()) //.andOperator(where("year(date)").is(year) , group("type","year","month") // .addToSet("type").as("type")//, // // .addToSet("year").as("year")//, // // .addToSet("month").as("month")//, // .sum("amount").as("totalAmount") // .count().as("count") // project("id", "items", "netAmount") // // .and("orderId").previousOperation() // // .andExpression("netAmount * [0]", 1).as("taxAmount") // // .andExpression("netAmount * (1 + [0])", 1).as("totalAmount") // ), Expence.class,ExpenceSummary.class); logger.info("getReportsForMonth results.size="+results.getMappedResults().size()); return results.getMappedResults(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public LocalDateTime toLocalDateTime(String value) throws DateTimeException {\n String[] valueComponents = value.split(\" \");\n String dateWithStartTime = valueComponents[0] + \" \" + valueComponents[1];\n DateTimeFormatter formatter = DateTimeFormatter.ofPattern(\"dd/MM/yyyy HHmm\");\n return LocalDateTime.parse(dateWithStartTime, formatter);\n }", "public static void main(String[] args) {\n LocalDate date = LocalDate.of(1986, 02, 12);\n LocalTime time = LocalTime.of(12, 30);\n LocalDateTime localDateTime = LocalDateTime.of(date, time);\n System.out.println(localDateTime);\n\n// Exercise 16\n String customizedDate = localDateTime.format(DateTimeFormatter.ofPattern(\"YYYY-MM-dd\"));\n System.out.println(customizedDate);\n LocalDate getDate = LocalDate.parse(customizedDate);\n System.out.println(getDate);\n String customizedTime = localDateTime.format(DateTimeFormatter.ofPattern(\"HH:mm\"));\n System.out.println(customizedTime);\n LocalTime getTime = LocalTime.parse(customizedTime);\n System.out.println(getTime);\n }", "public LocalDateTime parseDate(String str) {\n String time = str.substring(str.indexOf(\",\") + 2);\n int hour = new Integer(time.split(\":\")[0].trim());\n int min = new Integer(time.split(\":\")[1].trim());\n LocalTime localTime = LocalTime.of(hour, min);\n\n str = str.substring(0, str.indexOf(\",\")).trim();\n LocalDate localDate = LocalDate.now();\n\n if (str.contains(\"вчера\")) {\n localDate.minusDays(1);\n } else if (!str.contains(\"сегодня\") && !str.contains(\"вчера\")) {\n int year = new Integer(\"20\" + str.substring(str.length() - 2));\n String strMonth = str.substring(2, 6).trim();\n int day = new Integer(str.substring(0, 2).trim());\n localDate = LocalDate.of(year, parseMonth(strMonth), day);\n }\n return LocalDateTime.of(localDate, localTime);\n }", "public Date createDate(String strDate){\n\n Date date = null;\n\n // Get time\n Calendar cal = Calendar.getInstance();\n Date currentLocalTime = cal.getTime();\n DateFormat dateformat = new SimpleDateFormat(\"HH:mm:ss\");\n String localTime = dateformat.format(currentLocalTime);\n\n // Concat strings\n String tmpDate = strDate + \" \" + localTime;\n //\n SimpleDateFormat format = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n\n try {\n date = format.parse(tmpDate);\n\n } catch (ParseException e) {\n e.printStackTrace();\n }\n\n return date;\n }", "private LocalDateTime parseDate(String s) {\n String[] splitDate = s.split(\" \", 2);\n // Split day, month, year\n String[] splitDateElements = splitDate[0].split(\"/\", 3);\n int day = parseInt(splitDateElements[0]);\n int month = parseInt(splitDateElements[1]);\n int year = parseInt(splitDateElements[2]);\n // Split hours and minutes\n int hours = parseInt(splitDate[1].substring(0, 2));\n int mins = parseInt(splitDate[1].substring(2, 4));\n return LocalDateTime.of(year, month, day, hours, mins);\n }", "public LocalDateTime parseLocalDateTime(String inputString){\r\n LocalDateTime dateTime = null;\r\n\r\n //handle cases like Thu Oct 9 09:43:23 2016 where dayOfMonth has one digit\r\n Pattern patternDateTime1 = Pattern.compile(\"(Mon|Tue|Wed|Thu|Fri|Sat|Sun)\\\\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\\\\s{1,2}\\\\d\\\\s\\\\d{2}:\\\\d{2}:\\\\d{2}\\\\s\\\\d{4}\"); //date pattern\r\n DateTimeFormatter formatter1 = DateTimeFormatter.ofPattern(\"EEE MMM d HH:mm:ss yyyy\");\r\n Matcher matcherDateTime1 = patternDateTime1.matcher(inputString);\r\n\r\n //handle cases like Thu Oct 19 09:43:23 2016 where dayOfMonth has two digit\r\n Pattern patternDateTime2 = Pattern.compile(\"(Mon|Tue|Wed|Thu|Fri|Sat|Sun)\\\\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\\\\s{1,2}\\\\d{2}\\\\s\\\\d{2}:\\\\d{2}:\\\\d{2}\\\\s\\\\d{4}\"); //date pattern\r\n DateTimeFormatter formatter2 = DateTimeFormatter.ofPattern(\"EEE MMM dd HH:mm:ss yyyy\");\r\n Matcher matcherDateTime2 = patternDateTime2.matcher(inputString);\r\n\r\n if (matcherDateTime1.find()){\r\n try {\r\n dateTime = LocalDateTime.parse(matcherDateTime1.group(),formatter1);\r\n } catch (Exception e) {\r\n return null;\r\n }\r\n }else if(matcherDateTime2.find()){\r\n try {\r\n dateTime = LocalDateTime.parse(matcherDateTime2.group(),formatter2);\r\n } catch (Exception e) {\r\n return null;\r\n }\r\n }\r\n return dateTime;\r\n }", "public static Timestamp changeStrToDate(String strInput)\n\t{\n\t\tSimpleDateFormat sdfmt1 = new SimpleDateFormat(\"MM/dd/yyyy hh:mm a\");\n\t\tSimpleDateFormat sdfmt2= new SimpleDateFormat(\"yyyy-MM-dd HH:mm\");\n\t\tjava.util.Date dDate = new Date();\n\t\ttry {\n\t\t\tdDate = sdfmt1.parse( strInput );\n\t\t} catch (ParseException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tString strOutput = sdfmt2.format( dDate );\n\t\tDateTimeFormatter formattert = DateTimeFormatter.ofPattern(\"yyyy-MM-dd HH:mm\");\n\t\tLocalDateTime ldt = LocalDateTime.parse(strOutput,formattert);\n\t\tTimestamp dt = Timestamp.valueOf(ldt);\n\t\t//System.out.println(dDate + \" \" + strOutput + \" \" + dt);\n\t\t//System.out.println(dt);\n\t\treturn dt;\n\n\t}", "private LocalDateTime parseDate(String timeStr) throws DateTimeParseException {\n return LocalDateTime.parse(timeStr, formatter);\n }", "public static void main(String[] args) {\n\t\tLocalDateTime currentTime = LocalDateTime.now();\r\n\t\tSystem.out.println(\"Current DateTime: \" + currentTime);\r\n\r\n\t\tLocalDate date1 = currentTime.toLocalDate();\r\n\t\tSystem.out.println(\"date1: \" + date1);\r\n\r\n\t\tMonth month = currentTime.getMonth();\r\n\t\tint day = currentTime.getDayOfMonth();\r\n\t\tint seconds = currentTime.getSecond();\r\n\r\n\t\tSystem.out.println(\"Month: \" + month + \", Day: \" + day + \", Seconds: \" + seconds);\r\n\r\n\t\tLocalDateTime date2 = currentTime.withDayOfMonth(10).withYear(2012);\r\n\t\tSystem.out.println(\"date2: \" + date2);\r\n\r\n\t\t// 12 december 2014\r\n\t\tLocalDate date3 = LocalDate.of(2014, Month.DECEMBER, 12);\r\n\t\tSystem.out.println(\"date3: \" + date3);\r\n\t\tDateTimeFormatter formatter = DateTimeFormatter.ofPattern(\"yyyyMMdd\");\r\n\t\tSystem.out.println(\"date3 in yyyyMMdd format: \" + date3.format(formatter));\r\n\r\n\t\t// 22 hour 15 minutes\r\n\t\tLocalTime date4 = LocalTime.of(22, 15);\r\n\t\tSystem.out.println(\"date4: \" + date4);\r\n\r\n\t\t// parse a string\r\n\t\tLocalTime date5 = LocalTime.parse(\"20:15:30\");\r\n\t\tSystem.out.println(\"date5: \" + date5);\r\n\r\n\t\t/**\r\n\t\t * Result :\r\n\t\t * \r\n\t\t * Current DateTime: 2020-12-30T15:53:50.256 \r\n\t\t * date1: 2020-12-30 \r\n\t\t * Month: DECEMBER, Day: 30, Seconds: 50 \r\n\t\t * date2: 2012-12-10T15:53:50.256 \r\n\t\t * date3: 2014-12-12 \r\n\t\t * date3 in yyyyMMdd format: 20141212 \r\n\t\t * date4: 22:15 \r\n\t\t * date5: 20:15:30\r\n\t\t */\r\n\t}", "private DateTime goodLocalDateTimeUse2() {\n LocalDateTime ldt = new LocalDateTime(2020, 6, 2, 8, 0, 0, 0);\n return new DateTime(ldt.getYear(), ldt.getMonthOfYear(), ldt.getDayOfYear(), ldt.getHourOfDay(),\n ldt.getMinuteOfHour(), ldt.getSecondOfMinute(), ldt.getMillisOfSecond(),\n DateTimeZone.getDefault())\n .toDateTime(DateTimeZone.forID(\"America/Los_Angeles\"));\n\n }", "private DateTime goodLocalDateTimeUse() {\n LocalDateTime ldt = new LocalDateTime(2020, 6, 2, 8, 0, 0, 0);\n return new DateTime(ldt.getYear(), ldt.getMonthOfYear(), ldt.getDayOfYear(), ldt.getHourOfDay(),\n ldt.getMinuteOfHour(), ldt.getSecondOfMinute(), ldt.getMillisOfSecond(),\n DateTimeZone.forID(\"America/New_York\"))\n .toDateTime(DateTimeZone.forID(\"America/Los_Angeles\"));\n\n }", "public static LocalDateTime unmarshal(String dateTime) {\n \tDateTimeFormatter format = DateTimeFormatter.ISO_LOCAL_DATE_TIME;\n \treturn LocalDateTime.parse(dateTime, format);\n }", "private LocalDateTime parseTime(String time) {\n String[] str = time.split(\" \");\n String[] oldDate = str[0].split(\"/\");\n if (oldDate.length != 3) {\n throw new DukeException(\"OOPS!!! The time is not of the correct format!\");\n }\n LocalDateTime localTime;\n if (str.length > 1) {\n String hour = str[1].substring(0, 2);\n String min = str[1].substring(2, 4);\n\n localTime = LocalDateTime.of(Integer.parseInt(oldDate[2]), Integer.parseInt(oldDate[1]),\n Integer.parseInt(oldDate[0]), Integer.parseInt(hour), Integer.parseInt(min));\n } else {\n localTime = LocalDate.of(Integer.parseInt(oldDate[2]), Integer.parseInt(oldDate[1]),\n Integer.parseInt(oldDate[0]))\n .atStartOfDay();\n hasTime = false;\n }\n return localTime;\n }", "public String generateLocalDateTime() {\n LocalDateTime localDateTime = LocalDateTime.now();\n DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern(\"yyyyMMddHHmmss\");\n String formatLocalDateTime = localDateTime.format(dateTimeFormatter);\n return formatLocalDateTime;\n }", "public static String checkDateTime(String dateTimeDetails) {\n try {\n DateTimeFormatter formatter = DateTimeFormatter.ofPattern(\"MMM d yyyy HH:mm\");\n LocalDateTime dateTime = LocalDateTime.parse(dateTimeDetails);\n dateTimeDetails = dateTime.format(formatter);\n } catch (java.time.format.DateTimeParseException e) {\n Ui.printInvalidDateTimeErrorMessage();\n }\n return dateTimeDetails;\n }", "private Date localTimeToDate(String time) {\n return new Date(Timestamp.valueOf(time.replace(\"T\", \" \").concat(\":00\")).getTime());\n }", "private static void m1() {\n\n String d = \"2019/03/22 10:00-11:00\";\n DateFormat df = new SimpleDateFormat(\"yyyy/MM/dd HH:mm-HH:mm\");\n try {\n Date parse = df.parse(d);\n System.out.println(df.format(parse));\n } catch (ParseException e) {\n e.printStackTrace();\n }\n }", "public LocalDateTime getDateTime(String time) {\n if(!isTimeValid(time)){\n log.log(Level.WARNING, \"wrong time format set it to default\");\n return LocalDateTime.now();\n }\n return LocalDateTime.parse(time, dateTimeFormatter);\n }", "private void showCurrentDateTime(long ts) {\n String target = \"1904/01/01 12:00 AM\"; // Your given date string\n long millis = TimeUnit.MILLISECONDS.convert(ts, TimeUnit.NANOSECONDS);\n DateFormat formatter = new SimpleDateFormat(\"yyyy/MM/dd hh:mm aaa\");\n formatter.setTimeZone(TimeZone.getTimeZone(\"UTC\"));\n Date date = null;\n try {\n date = formatter.parse(target);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n long newTimeInmillis = date.getTime() + millis;\n Date date2 = new Date(newTimeInmillis);\n curT.setText(\"now: \" + date2);\n }", "private LocalDateTime normalizeDate(LocalDateTime until) {\n final Duration diff = Duration.between(LocalDateTime.now(), until);\n final LocalDateTime databaseTime = lockStorage.getCurrentDatabaseTime();\n return databaseTime.plus(diff);\n }", "public static void main(String[] args) {\n LocalDateTime currentTime = LocalDateTime.now();\n System.out.println(\"Current DateTime: \" + currentTime);\n\n LocalDate date1 = currentTime.toLocalDate();\n System.out.println(\"date : \" + date1);\n\n Month month = currentTime.getMonth();\n int day = currentTime.getDayOfMonth();\n int seconds = currentTime.getSecond();\n int nano = currentTime.getNano();\n\n System.out.println(\"Month: \" + month + \" day: \" + day + \" seconds: \" + seconds + \" nano: \" + nano);\n\n LocalDateTime date2 = currentTime.withDayOfMonth(10).withYear(2012);\n System.out.println(\"date2: \" + date2);\n\n //12 december 2014\n LocalDate date3 = LocalDate.of(2014, Month.DECEMBER, 12);\n System.out.println(\"date3: \" + date3);\n\n //22 hour 15 minutes\n LocalTime date4 = LocalTime.of(22, 15);\n System.out.println(\"date4: \" + date4);\n \n //parse a string\n LocalTime date5 = LocalTime.parse(\"20:15:30\");\n System.out.println(\"date5: \" + date5);\n\n System.out.println(\"\");\n // Get the current date and time\n ZonedDateTime zonedDateTime = ZonedDateTime.parse(\"2007-12-03T10:15:30+05:30[Asia/Karachi]\");\n System.out.println(\"date1: \" + zonedDateTime);\n\n ZoneId id = ZoneId.of(\"Europe/Paris\");\n System.out.println(\"ZoneId: \" + id);\n\n ZoneId currentZone = ZoneId.systemDefault();\n System.out.println(\"CurrentZone: \" + currentZone);\n System.out.println(\"\");\n \n //Get the current date\n LocalDate today = LocalDate.now();\n System.out.println(\"Current date: \" + today);\n\n //add 1 week to the current date\n LocalDate nextWeek = today.plus(1, ChronoUnit.WEEKS);\n System.out.println(\"Next week: \" + nextWeek);\n\n //add 1 month to the current date\n LocalDate nextMonth = today.plus(1, ChronoUnit.MONTHS);\n System.out.println(\"Next month: \" + nextMonth);\n\n //add 1 year to the current date\n LocalDate nextYear = today.plus(1, ChronoUnit.YEARS);\n System.out.println(\"Next year: \" + nextYear);\n\n //add 10 years to the current date\n LocalDate nextDecade = today.plus(1, ChronoUnit.DECADES);\n System.out.println(\"Date after ten year: \" + nextDecade);\n System.out.println(\"\");\n// \n// With Java 8, two specialized classes are introduced to deal with the time differences.\n//\n//Period - It deals with date based amount of time.\n//\n//Duration - It deals with time based amount of time.\n //Get the current date working with Periods\n LocalDate datePeriod = LocalDate.now();\n System.out.println(\"Current date: \" + datePeriod);\n\n //add 1 month to the current date\n LocalDate datePeriod2 = datePeriod.plus(1, ChronoUnit.MONTHS);\n System.out.println(\"Next month: \" + datePeriod2);\n\n Period period = Period.between(datePeriod2, datePeriod);\n System.out.println(\"Period: \" + period);\n\n //work with durations\n LocalTime time1 = LocalTime.now();\n Duration twoHours = Duration.ofHours(2);\n\n LocalTime time2 = time1.plus(twoHours);\n Duration duration = Duration.between(time1, time2);\n\n System.out.println(\"Duration: \" + duration);\n\n// TemporalAdjuster is used to perform the date mathematics.\n// For example, get the \"Second Saturday of the Month\" or \"Next Tuesday\".\n// Let us see them in action.\n// \n System.out.println(\"\");\n//Get the current date\n LocalDate dateArithmatic = LocalDate.now();\n System.out.println(\"Current date: \" + dateArithmatic);\n\n //get the next tuesday\n LocalDate nextTuesday = dateArithmatic.with(TemporalAdjusters.next(DayOfWeek.TUESDAY));\n System.out.println(\"Next Tuesday on : \" + nextTuesday);\n\n //get the second saturday of next month\n LocalDate firstInYear = LocalDate.of(dateArithmatic.getYear(), dateArithmatic.getMonth(), 1);\n LocalDate secondSaturday = firstInYear.with(TemporalAdjusters.nextOrSame(DayOfWeek.SATURDAY))\n .with(TemporalAdjusters.next(DayOfWeek.SATURDAY));\n System.out.println(\"Second Saturday on : \" + secondSaturday);\n\n //Sql date time\n java.util.Date javaDate = new java.util.Date();\n long javaTime = javaDate.getTime();\n System.out.println(\"\\n\\nThe Java Date is: \" + javaDate.toString());\n\n java.sql.Date sqlDate = new java.sql.Date(javaTime);\n System.out.println(\"The SQL DATE is: \" + sqlDate.toString());\n\n java.sql.Time sqlTime = new java.sql.Time(javaTime);\n System.out.println(\"The SQL TIME is: \" + sqlTime.toString());\n\n java.sql.Timestamp sqlTimestamp = new java.sql.Timestamp(javaTime);\n System.out.println(\"The SQL TIMESTAMP is: \" + sqlTimestamp.toString());\n }", "private static LocalDateTime readDateTimeFromConsole() {\n\t\tLocalDate date = readDateFromConsole();\n\t\tLocalTime time = readTimeFromConsole();\n\t\treturn date.atTime(time); \n\t}", "private String stringUtcToLocal(String strDate) {\n DateTimeFormatter formatter = DateTimeFormat.forPattern(\"yyyy-MM-dd HH:mm:ss\").withZoneUTC();\n DateTime dt = formatter.parseDateTime(strDate);\n\n //Get local TimeZone and convert collected date to Local.\n DateTimeZone localTz = DateTimeZone.getDefault();\n DateTime local = new DateTime(dt,DateTimeZone.forID(localTz.getID()));\n DateTimeFormatter formatterLocal = DateTimeFormat.forPattern(\"yyyy-MM-dd HH:mm:ss\");\n return formatterLocal.print(local);\n }", "public static void main(String[] args) {\n\t\tLocalDate date1 = LocalDate.of(2020, Month.JANUARY, 20);\r\n\t\tLocalTime time = LocalTime.of(11, 12, 34); \r\n\t\tLocalDate date = LocalDate.of(2020, Month.JANUARY, 20);\r\n\t\tLocalDateTime dateTime = LocalDateTime.of(date1, time);\r\n\t\t DateTimeFormatter shortDateTime = DateTimeFormatter.ofLocalizedDate(FormatStyle.SHORT);\r\n\t // System.out.println(shortDateTime);\r\n\t System.out.println(shortDateTime.format(dateTime)); // 1/20/20 \r\n\t System.out.println(shortDateTime.format(date1)); // 1/20/20 \r\n\t DateTimeFormatter shortDateTime1 = DateTimeFormatter.ofLocalizedDate(FormatStyle.SHORT);\r\n\t System.out.println(dateTime.format(shortDateTime1)); \r\n\t System.out.println(date.format(shortDateTime1));\r\n\t DateTimeFormatter shortDateTime2 = DateTimeFormatter.ofLocalizedTime(FormatStyle.SHORT);\r\n\t /* System.out.println(time.format(shortDateTime1)); // UnsupportedTemporalTypeException\r\n\t System.out.println( shortDateTime1.format(time)); // UnsupportedTemporalTypeException\r\n\t */ System.out.println(time.format(shortDateTime2)); \r\n\t System.out.println( shortDateTime2.format(time));\r\n\t DateTimeFormatter shortF = DateTimeFormatter .ofLocalizedDateTime(FormatStyle.SHORT);\r\n\t DateTimeFormatter mediumF = DateTimeFormatter .ofLocalizedDateTime(FormatStyle.MEDIUM);\r\n\t System.out.println(shortF.format(dateTime)); // 1/20/20 11:12 AM \r\n\t System.out.println(mediumF.format(dateTime)); // Jan 20, 2020 11:12:34 AM\r\n\r\n\r\n\r\n\t}", "private LocalDateTime nowLocalDateTime() {\n\t\tInstant instantNow = Instant.ofEpochMilli( System.currentTimeMillis() );\n\t\tLocalDateTime nowLocalDateTime = instantNow.atOffset(ZoneOffset.UTC).toLocalDateTime();\n\t\treturn nowLocalDateTime;\n\t}", "default LocalDateTime getLocalTime(int year, int month, int day, int hour, int minute, int second) {\n return LocalDateTime.parse(new StringBuilder()\n .append(year).append('-').append(preZero(month)).append('-').append(preZero(day))\n .append('T')\n .append(preZero(hour)).append(':').append(preZero(minute)).append(':').append(preZero(second))\n .toString());\n }", "public static Date strToTime(String strDate)\r\n/* 135: */ {\r\n/* 136:192 */ SimpleDateFormat formatter = new SimpleDateFormat(\"yyyyMMdd HH:mm:ss\");\r\n/* 137:193 */ ParsePosition pos = new ParsePosition(0);\r\n/* 138:194 */ Date strtodate = formatter.parse(strDate, pos);\r\n/* 139:195 */ return strtodate;\r\n/* 140: */ }", "public static LocalDateTime fromDBString(String time) {\n return LocalDateTime.parse(time, dbFormatter);\n }", "public static Date String2Date(String date){\n SimpleDateFormat format = new SimpleDateFormat(\"yyyy-MM-dd hh:mm:ss\");\n\n Date currentDate = null;\n try {\n currentDate = format.parse(date);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n return currentDate;\n }", "public static LocalDateTime now(){\n return LocalDateTime.now();\n }", "private Date convertLocalDateToDate(LocalDateTime localDate) {\n return Date.from(localDate.atZone(ZoneId.systemDefault()).toInstant());\n }", "private Date convertStringToDate(String dateInString){\n DateFormat format = new SimpleDateFormat(\"d-MM-yyyy HH:mm\", Locale.ENGLISH);\n Date date = null;\n try {\n date = format.parse(dateInString);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n return date;\n }", "public String getLocalFromUtc(String date){\n\n //Parse date string to LocalDateTime\n LocalDateTime providedDate = LocalDateTime.parse(date, dateTimeFormatter);\n //Convert LocalDateTime to ZonedDateTime\n ZonedDateTime zonedDateTime = ZonedDateTime.of(providedDate, ZoneId.of(\"UTC\"));\n //Convert UTC time to system default time using an offset\n ZonedDateTime toSysDefault = zonedDateTime.withZoneSameInstant(ZoneOffset.systemDefault());\n //Convert back to a LocalDateTime\n LocalDateTime result = toSysDefault.toLocalDateTime();\n\n return dateTimeFormatter.format(result);\n\n }", "public static LocalDateTime readLocalDateTime(Value value) {\n return OffsetDateTime.parse(readString(value), RFC_3339_DATE_TIME_FORMATTER)\n .atZoneSameInstant(ZoneId.systemDefault())\n .toLocalDateTime();\n }", "private DateTime goodLocalTimeUse2() {\n LocalTime lt = new LocalTime(8, 0, 0, 0);\n return new DateTime().toDateTime(DateTimeZone.getDefault())\n .withTime(lt)\n .toDateTime(DateTimeZone.forID(\"America/Los_Angeles\"));\n }", "public static LocalDateTime parseDateTime(String input) {\n\n if (input.contains(\"Weekly\")) {\n WeeklyFlag = true;\n input = input.replace(\"Weekly\",\"\");\n }\n LocalDateTime dateTime = null;\n ArrayList<String> patterns = getPatterns(false);\n for (String pattern : patterns) {\n if (dateTime == null) {\n try {\n dateTime = LocalDateTime.parse(input.trim(), DateTimeFormatter.ofPattern(pattern));\n } catch (Exception e) {\n e.addSuppressed(new CommandException()); // do nothing basically.\n }\n } else {\n break;\n }\n }\n if (dateTime == null) {\n patterns = getPatterns(true);\n for (String datePattern : patterns) {\n if (dateTime == null) {\n try {\n dateTime = LocalDate.parse(input.trim(),\n DateTimeFormatter.ofPattern(datePattern)).atStartOfDay();\n } catch (Exception e) {\n e.addSuppressed(new CommandException()); // do nothing basically.\n }\n } else {\n break;\n }\n }\n }\n return dateTime;\n }", "public static LocalDateTime convertStringToTime(String time) {\n\t\treturn LocalDateTime.parse(time, DateTimeFormatter.ISO_LOCAL_DATE_TIME)\n\t\t\t\t\t\t\t .truncatedTo(ChronoUnit.MINUTES);\n\t}", "protected LocalDateTime asLocalDateTime(JsonNode jsonNode) {\n Assertion.isNotNull(jsonNode, \"jsonNode is required\");\n return LocalDateTime.parse(jsonNode.asText(), DateTimeFormatter.ISO_DATE_TIME);\n }", "public static void main(String[] args) {\n\n\t\t\n\t\tLocalDateTime Idt = LocalDateTime.now();\n\t\t\n\t\tSystem.out.println(Idt); //2021-03-19T23:06:48.913604300\n\t\tSystem.out.println(Idt.toString());//2021-03-19T23:06:48.913604300\n\t\t\n\t\tString time = Idt.toString();\n\t\t\n\t\tSystem.out.println(time.startsWith(\"2021\")); //true\n\t\t\n\t\t\n\t\t\n\t}", "public static String getDate(String fromatstr) {\n\t\tString\ttoday=\"\";\n\t\t\n\t\tCalendar Datenow=Calendar.getInstance();\n\t\tSimpleDateFormat formatter = new SimpleDateFormat(fromatstr);\n\t today = formatter.format(Datenow.getTime());\n\n\t return today;\n\t}", "public static Date fotmatDate21(String myDate) {\n\t\tDate dDate = new SimpleDateFormat(\"HH:mm:ss\").parse(myDate,\r\n\t\t\t\tnew ParsePosition(0));\r\n\t\treturn dDate;\r\n\t}", "public static void specificDateTime() {\n LocalDate date = LocalDate.of(1996, Month.JUNE, 07);\n LocalDate date2 = LocalDate.of(1996, 06, 07);\n System.out.println(\"Specific localDate: \" + date + \", \" + date2);\n\n LocalTime time = LocalTime.of(12, 05);\n // Can specify seconds and nano seconds\n LocalTime time2 = LocalTime.of(12, 05, 10, 10);\n System.out.println(\"Specific localTime: \" + time + \", \" + time2);\n\n // Can create localDateTime with all values or by combining a localDate and\n // localTime\n LocalDateTime dateTime = LocalDateTime.of(date, time);\n LocalDateTime dateTime2 = LocalDateTime.of(1996, Month.JUNE, 07, 12, 05, 10, 10);\n System.out.println(\"Specific localDateTime: \" + dateTime + \", \" + dateTime2);\n\n // Can create zonedDateTime with localDateTime and zoneID\n ZonedDateTime zonedDateTime = ZonedDateTime.of(dateTime, TimeZone.getDefault().toZoneId());\n // Can create with localDate, localTime and zoneID\n ZonedDateTime zonedDateTime2 = ZonedDateTime.of(date, time, TimeZone.getDefault().toZoneId());\n // Can with with all values specified, however no constructor for enum month and\n // must specify seconds and nano-seconds\n ZoneId zone = ZoneId.of(\"US/Eastern\");\n ZoneId defaultZone = TimeZone.getDefault().toZoneId();\n ZonedDateTime zonedDateTime3 = ZonedDateTime.of(1996, 06, 07, 12, 05, 10, 10, defaultZone);\n System.out.println();\n System.out.println(\"Specific Zoned DateTime:\");\n System.out.println(zonedDateTime);\n System.out.println(zonedDateTime2);\n System.out.println(zonedDateTime3);\n }", "public static void testDate() {\n\t\tDate oldDate = new Date();\r\n\t\tSystem.out.println(oldDate);\r\n\r\n\t\tCalendar c = Calendar.getInstance();\r\n\t\tc.set(2000, 0, 17);\r\n\t\tDate oldDate2 = c.getTime();\r\n\t\tSystem.out.println(oldDate2);\r\n\r\n\t\t// Dates created with Java 8\r\n\t\tLocalDateTime newDateTime = LocalDateTime.now();\r\n\t\tLocalDate newDate = LocalDate.now();\r\n\t\tLocalTime newTime = LocalTime.now();\r\n\t\tSystem.out.println(newTime);\r\n\r\n\t\tnewDateTime = LocalDateTime.of(newDate, newTime);\r\n\t\tSystem.out.println(newDateTime);\r\n\r\n\t\tLocalDateTime newDateTime1 = LocalDateTime.of(2015, 12, 1, 10, 2, 3, 4);\r\n\t\tSystem.out.println(newDateTime1);\r\n\r\n\t\tnewDateTime1 = newDateTime1.plusYears(1);\r\n\t\tSystem.out.println(newDateTime1);\r\n\r\n\t\tDateTimeFormatter dtf = DateTimeFormatter\r\n\t\t\t\t.ofLocalizedDateTime(FormatStyle.SHORT);\r\n\t\tSystem.out.println(dtf.format(newDateTime1));\r\n\t\tdtf = DateTimeFormatter.ofLocalizedDateTime(FormatStyle.MEDIUM);\r\n\t\tSystem.out.println(dtf.format(newDateTime1));\r\n\r\n\t\tdtf = DateTimeFormatter.ofPattern(\"MMMM dd yyyy, hh:mm:ss\");\r\n\t\tSystem.out.println(dtf.format(newDateTime1));\r\n\t}", "private ZonedDateTime resolveLocal(LocalDateTime newDateTime) {\n return ofLocal(newDateTime, zone, offset);\n }", "public static String convertDate(String inputdate, String fromtimezone, String totimezone)\n\n {\n String sDateinto = \"\";\n try {\n SimpleDateFormat formatter = new SimpleDateFormat(DATE_FORMAT);\n\n String dateInString = inputdate.substring(0, 22) ;\n\n formatter.setTimeZone(TimeZone.getTimeZone(fromtimezone));\n Date date = formatter.parse(dateInString);\n Log.i(\"FromDate String : \", formatter.format(date));\n\n\n SimpleDateFormat totime = new SimpleDateFormat(DATE_FORMAT);\n //TimeZone tzlocaltime = TimeZone.getDefault();\n totime.setTimeZone(TimeZone.getTimeZone(totimezone));\n\n sDateinto = totime.format(date); // Convert to String first\n Date dateInTo = formatter.parse(sDateinto); // Create a new Date object\n\n // Log.i(\"ToDate String: \", sDateinto);\n Log.i(\"ToDate Object: \", formatter.format(dateInTo));\n return sDateinto ;\n }\n catch (ParseException e)\n {\n Log.i(\"Date Conversion\" ,\"Error in parsing\" );\n return \"Date parsing error\" ;\n }\n\n }", "public static String convertDateAndTime(String inputString) {\n String trimmedInputString = inputString.trim();\n\n if (trimmedInputString.length() < 10) {\n return convertTime(inputString);\n } else {\n String dateString = trimmedInputString.substring(0, 10).trim();\n String timeString = trimmedInputString.substring(10).trim();\n try {\n String date = LocalDate.parse(dateString).format(DateTimeFormatter.ofPattern(\"d MMM yyyy\"));\n\n if (timeString.length() == 4) {\n return date + \" \" + convertTime(timeString);\n }\n\n return date + timeString;\n } catch (DateTimeParseException e) {\n return inputString;\n }\n }\n }", "@Test\n public void datetimeTest() {\n assertEquals(OffsetDateTime.parse(\"2020-08-12T07:59:11Z\"), authResponse.getDatetime());\n }", "public boolean checkTimePeriod(String from, String to) throws ParseException{\r\n\t\r\n\tDateFormat df = new SimpleDateFormat (\"yyyy-MM-dd\");\r\n boolean b = true;\r\n // Get Date 1\r\n Date d1 = df.parse(from);\r\n\r\n // Get Date 2\r\n Date d2 = df.parse(to);\r\n\r\n //String relation=\"\";\r\n if (d1.compareTo(d2)<=0){\r\n \t b=true;\r\n // relation = \"the date is less\";\r\n }\r\n else {\r\n b=false;\r\n }\r\n return b;\r\n}", "private void setDate(String beginning, String end){\n try {\n\n this.beginTime=ShortDateFormat.parse(beginning);\n this.endTime = ShortDateFormat.parse(end);\n }\n catch(ParseException ex){\n System.out.println(\"Error Parsing the time, please enter valid time, dont forget to include am/pm \" +ex.getMessage());\n System.exit(1);\n }\n }", "public static LocalDateTime dateTimeFromObject(Object object) {\n // validate correct type\n LocalDateTime dateTime;\n if (object instanceof String) {\n // parse the string\n String string = (String) object;\n try {\n dateTime = Util.dateTimeFromISO8601(string);\n } catch (DateTimeParseException e) {\n throw new DateTimeParseException(\n \"DateTime not provided in any supported ISO-8601 format.\", string, 0);\n }\n } else if (object instanceof LocalDateTime) {\n // use the data as-is.\n dateTime = (LocalDateTime) object;\n } else if (object instanceof Number) {\n dateTime = Util.dateTimeFromMilliseconds((Number) object);\n } else {\n throw new DateTimeParseException(\n \"expected String, LocalDateTime, or Number object; \"\n + \"received \" + object.getClass().getSimpleName(), \"\", 0);\n }\n return dateTime;\n }", "@Test\n\tpublic void t3_localdatetime_main() {\n\t\tLocalDateTime in = K_ZDT.toLocalDateTime();\n\t\t\n\t\t_TestEntityWithLocalDateTime toDb = new _TestEntityWithLocalDateTime();\n\t\ttoDb.setId(new Random().nextLong());\n\t\ttoDb.setUserEntered(in);\n\t\t\n\t\tmongo.save(toDb);\n\t\t\n\t\t_TestEntityWithLocalDateTime fromDb = mongo.findById(toDb.getId(), _TestEntityWithLocalDateTime.class);\n\t\tassertNotNull(fromDb);\n\t\t\n\t\tassertEquals(in, fromDb.getUserEntered());\n\t}", "public static Date parseDateTime(String str)\n {\n if(Empty.isEmpty(str))\n return null;\n if(str.length() <= 10)\n return parse(str);\n try{\n \treturn (new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\")).parse(str);\n\t\t}catch(ParseException e){\n\t\t \t return null;\n\t\t}\n }", "public String formatDateAndTime(String date){\n\n return dateTimeFormatter.parse(date).toString();\n\n }", "public String getUtcFromLocal(String date){\n\n //Parse date string to LocalDateTime\n LocalDateTime providedDate = LocalDateTime.parse(date, dateTimeFormatter);\n //Convert LocalDateTime to ZonedDateTime\n ZonedDateTime zonedDateTime = ZonedDateTime.of(providedDate, ZoneId.systemDefault());\n //Convert to UTC\n ZonedDateTime utcDateTime = zonedDateTime.withZoneSameInstant(ZoneOffset.UTC);\n\n return dateTimeFormatter.format(utcDateTime);\n\n }", "public static LocalDateTime dateTimeFromISO8601(String string) {\n if (string == null) {\n throw new DateTimeParseException(\"ISO-8601 string is null.\", \"\", 0);\n }\n\n // If the date-time is specified with a space separating the date and time,\n // convert the space to 'T' so that it is proper ISO-8601. This tolerance is\n // needed to support PostgreSQL-style times.\n if (string.length() > DATE_TIME_DELIMITATION_INDEX\n && string.charAt(DATE_TIME_DELIMITATION_INDEX) == ' ') {\n char[] characters = string.toCharArray();\n characters[DATE_TIME_DELIMITATION_INDEX] = 'T';\n string = new String(characters);\n }\n\n // If the date-time is specified with a two-digit time zone offset instead of\n // an offset in the form [+-]HH:MM, then convert to the latter. This tolerance\n // is needed to support PostgreSQL-style times.\n int length = string.length();\n if (length > 3) {\n char sign = string.charAt(length - 3);\n if (sign == '+' || sign == '-') {\n char d1 = string.charAt(length - 2);\n char d2 = string.charAt(length - 1);\n if (d1 >= '0' && d1 <= '9' && d2 >= '0' && d2 <= '9') {\n string = string + \":00\";\n }\n }\n }\n\n LocalDateTime dateTime;\n try {\n dateTime = LocalDateTime.parse(string);\n } catch (DateTimeParseException e1) {\n try {\n LocalDate date = LocalDate.parse(string);\n dateTime = LocalDateTime.of(date, LocalTime.MIDNIGHT);\n } catch (DateTimeParseException e2) {\n try {\n ZonedDateTime zonedDateTime = ZonedDateTime.parse(string);\n dateTime = LocalDateTime.ofInstant(\n zonedDateTime.toInstant(), ZoneOffset.UTC);\n } catch (DateTimeParseException e3) {\n throw new DateTimeParseException(\n \"DateTime not provided in any supported ISO-8601 format.\", string, 0);\n }\n }\n }\n return dateTime;\n }", "@RequiresApi(api = Build.VERSION_CODES.O)\n public LocalDate convertDateStrToLocalDate(String dateStr) {\n DateTimeFormatter formatter = DateTimeFormatter.ofPattern(\"yyyy-MM-dd\");\n LocalDate localDate = LocalDate.parse(dateStr, formatter);\n return localDate;\n }", "private String getFecha() {\n\t\tLocalDateTime myDateObj = LocalDateTime.now();\n\t\tDateTimeFormatter myFormatObj = DateTimeFormatter.ofPattern(\"dd-MM-yyyy HH:mm:ss\");\n\t\tString formattedDate = myDateObj.format(myFormatObj);\n \n\t\treturn formattedDate;\n }", "public LocalDateTime convertToLocal(ZonedDateTime time){\n ZoneId localZoneID = ZoneId.systemDefault();\n ZonedDateTime localTime = time.withZoneSameInstant(localZoneID);\n return localTime.toLocalDateTime();\n }", "public String gmt_to_local_timezone(String local) {\n\n\t\ttry {\n\t\t\n\t\t\tif ( local == null ) {\n\t\t\t\treturn \"\";\n\t\t\t}\n\t\t\tdate = new Date();\n\t\t\t\n\t\t\tint getTimezoneoffset = date.getTimezoneOffset() * 60 * 1000;\n\t\t\t\n\t\t\t\n\t\t\tlong currenttime = date.getTime();\n\t\t\t\n\t\t\tlong offset = currenttime + getTimezoneoffset;\n\t\t\t\n\t\t\tdateFormatYMDHMS = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss'Z'\");\n\t\t//\tdateObj = dateFormatYMDHMS.parse(local);\n\t\t\tdateObj = parseDate(local,false);\n\t\t\n\t\t\tlong msgPostTime = dateObj.getTime();\n\t\t\t\n\t\t\tlong actualTime = offset - msgPostTime;\n\t\t\tlong diffMinutes = actualTime / (60 * 1000);\n\t\t\t\n\t\t\t\n\t\t\tcurrentTime = Calendar.getInstance();\n\t\t\tString postedTime = gmtToLocal(local);\n\t\t\t//dateObj = dateFormatYMDHMS.parse(postedTime);\n\t\t\tdateObj = parseDate(postedTime,false);\n\t\t\t\n\t\t\tif (diffMinutes <= 59) {\n\t\t\t\t\n\t\t\t\tStringBuilder postTime = new StringBuilder(Integer\n\t\t\t\t\t\t.toString((int) diffMinutes));\n\t\t\t\n\t\t\t\tif (diffMinutes < 1) {\n\t\t\t\n\t\t\t\t\tpostTime = new StringBuilder(\" \"+resource.getString(R.string.justNow));\n\t\t\t\t\treturn postTime.toString();\n\t\t\t\t} else if (diffMinutes < 2) {\n\t\t\t\t\tpostTime.append(\" \"+resource.getString(R.string.min));\n\t\t\t\t} else {\n\t\t\t\t\tpostTime.append(\" \"+resource.getString(R.string.mins));\n\t\t\t\t}\n\n\t\t\t\treturn postTime.toString();\n\n\t\t\t} else if (diffMinutes >= 60 && diffMinutes <= 1439) {\n\n\t\t\t\tint hour = (int) diffMinutes / 60;\n\n\t\t\t\tStringBuilder postTime = new StringBuilder(Integer\n\t\t\t\t\t\t.toString(hour));\n\n\t\t\t\tif (hour < 2) {\n\t\t\t\t\tpostTime.append(\" \"+resource.getString(R.string.hour));\n\t\t\t\t} else {\n\t\t\t\t\tpostTime.append(\" \"+resource.getString(R.string.hours));\n\t\t\t\t}\n\n\t\t\t\treturn postTime.toString();\n\n\t\t\t} else if (diffMinutes >= 1440 && diffMinutes <= 2880) {\n\t\t\t\treturn resource.getString(R.string.yesterday);\n\t\t\t} else if (diffMinutes < (7 * 24 * 60)) {\n\n\t\t\t\tint days = (int) diffMinutes / 60 / 24;\n\t\t\t\treturn days + \" \"+resource.getString(R.string.days);\n\n\t\t\t\t// SimpleDateFormat dateFormat = new\n\t\t\t\t// SimpleDateFormat(\"dd-MM-yyyy HH:mm:ss\");\n\t\t\t\t// return dateFormat.format(dateObj);\n\t\t\t} else if (diffMinutes < (2 * 7 * 24 * 60)) {\n\t\t\t\treturn resource.getString(R.string.lastWeek);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tint months=(currentTime.get(Calendar.YEAR)-(dateObj.getYear()+1900))*12\n\t\t\t\t\t\t +(currentTime.get(Calendar.MONTH)-dateObj.getMonth());\n\t\t\t\tif((currentTime.get(Calendar.DATE)<dateObj.getDate())||\n\t\t\t\t ((currentTime.get(Calendar.HOUR_OF_DAY)<dateObj.getHours())&&\n\t\t\t\t (currentTime.get(Calendar.DATE)==dateObj.getDate())))\n\t\t\t\t\tmonths--;\n\t\t\t\t\n\t\t\t\tif(months<1)\n\t\t\t\t{\n\t\t\t\t\tint weeks=( int ) diffMinutes/ 60 / 24 / 7; \n\t\t\t\t\treturn weeks + \" \"+resource.getString(R.string.weeks);\n\t\t\t\t}\n\t\t\t\telse if(months<2)\n\t\t\t\t{\n\t\t\t\t\treturn resource.getString(R.string.lastMonth);\n\t\t\t\t}\n\t\t\t\telse if(months<12)\n\t\t\t\t{\n\t\t\t\t\treturn months+\" \"+resource.getString(R.string.months);\n\t\t\t\t}\n\t\t\t\telse if(months<24)\n\t\t\t\t{\n\t\t\t\t\treturn resource.getString(R.string.lastYear);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\treturn months/12+\" \"+resource.getString(R.string.years);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\t//Logs.show(e);\n\t\t} finally {\n\t\t\tdate = null;\n\t\t}\n\t\treturn \"\";\n\n\t}", "public static void main(String[] args) {\r\n\t\tDate now = new Date();\r\n\t\tSimpleDateFormat sdf = \r\n\t\tnew SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\r\n\tString str = sdf.format(now);\r\n\tSystem.out.println(str);\r\n\tlong time = now.getTime();\r\n\ttime += 48954644;\r\n\tnow.setTime(time);\r\n\tSystem.out.println(sdf.format(now));\r\n\tDate dat = null;\r\n\ttry {\r\n\t\tdat = sdf.parse(str);\r\n\t} catch (ParseException e) {\r\n\t\t// TODO Auto-generated catch block\r\n\t\te.printStackTrace();\r\n\t}\r\n\tSystem.out.println(dat);\r\n\t\r\n\r\n}", "public static Date currentDate() {\n Date currentDate = new Date();\n SimpleDateFormat format = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n format.setTimeZone(TimeZone.getTimeZone(\"gmt\"));\n String strTime = format.format(currentDate);\n\n SimpleDateFormat formatLocal = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n\n try {\n currentDate = formatLocal.parse(strTime);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n\n return currentDate;\n }", "public String parseTimeToTimeDate(String time) {\n Date date = null;\n try {\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm\", Locale.getDefault());\n String todaysDate = new SimpleDateFormat(\"yyyy-MM-dd\", Locale.getDefault()).format(new Date());\n date = simpleDateFormat.parse(todaysDate + \" \" + time);\n\n SimpleDateFormat sdf = new SimpleDateFormat(\"HH:mm dd,MMM\", Locale.getDefault());\n //sdf.setTimeZone(TimeZone.getTimeZone(\"UTC\"));\n return sdf.format(date);\n\n } catch (ParseException e) {\n e.printStackTrace();\n }\n return null;\n }", "public Date Transfertime(String timetmp) {\n Date timedatetmp = new Date();\n try {\n timedatetmp = sdftime.parse(timetmp);\n }\n catch (ParseException e) { \n e.printStackTrace();\n }\n return timedatetmp;\n }", "@Test\n public void serialize_correct() {\n LocalDateTime taskTime = LocalDateTime.parse(\"25/08/2021 1200\", Task.INPUT_TIME_FORMAT);\n Task task = new DeadlineTask(\"Get help\", taskTime);\n task.markDone();\n assertEquals(\"Deadline,true,Get help,Aug 25 2021 - 12 00 PM\", task.serialize());\n }", "public static Date localDateToDate(LocalDate localDate) {\r\n return Date.from(localDate.atStartOfDay(ZoneId.systemDefault()).toInstant());\r\n }", "public String getDateTime(){\n LocalDateTime ldt = LocalDateTime.ofInstant(Instant.ofEpochMilli(this.datePosted), ZoneId.systemDefault());\n String dateOnly = ldt.toString().substring(0, 10);\n String timeOnly = ldt.toString().substring(11, ldt.toString().length()-4);\n return dateOnly + \" at \" + timeOnly;\n }", "private static String getFormattedCurrentDateAndTime(){\n StringBuilder dateAndTime = new StringBuilder();\n LocalDateTime now = LocalDateTime.now();\n\n String hour = Integer.toString(now.getHour());\n String minute = Integer.toString(now.getMinute());\n\n if (hour.length() == 1){\n hour = \"0\" + hour;\n }\n if (minute.length() == 1){\n minute = \"0\" + minute;\n }\n\n //Creates \"XX/XX/XX @ XX:XX\" format (24 hours)\n dateAndTime.append(now.getMonthValue()).append(\"/\").\n append(now.getDayOfMonth()).append(\"/\").\n append(now.getYear()).append(\" @ \").\n append(hour).append(\":\").\n append(minute);\n\n return dateAndTime.toString();\n }", "@Override\n public LocalDateTime localCreateFromDate(InternalDate idate) {\n return createFromTimestamp(new InternalTimestamp(idate.getYear(), idate.getMonth(), idate.getDay(), 0, 0, 0, 0, 0));\n }", "public LocalDateTime getDateTime(String key) {\n if (!jsonData.has(key)) return null;\n try {\n String date = jsonData.getString(key);\n return LocalDateTime.parse(date, AppConst.DATE_TIME_FORMATTER);\n } catch (Exception ex) {\n return null;\n }\n }", "public static LocalDateTime parseDateTimeString(\n String datetime, String pattern) throws DukeParseException {\n try {\n DateTimeFormatter dtf = DateTimeFormatter.ofPattern(pattern);\n return LocalDateTime.parse(datetime, dtf);\n } catch (DateTimeParseException exception) {\n String msg = String.format(\"Ensure the datetime passed in is of the form: '%s'.\", pattern);\n throw new DukeParseException(msg);\n }\n }", "public static String convertTimeToString(LocalDateTime localDateTime) {\n\t\treturn localDateTime.truncatedTo(ChronoUnit.MINUTES)\n\t\t\t\t\t\t\t .format(DateTimeFormatter.ISO_LOCAL_DATE_TIME);\n\t}", "private String doValidTimeCheck(String pDateTime) {\n String aDateTime = pDateTime;\n\n if (pDateTime.length() > 0) {\n String aTime = pDateTime.substring(8);\n if (aTime.matches(\"240000\")) {\n aDateTime = pDateTime.substring(0,8) + \"235900\";\n }\n }\n return aDateTime;\n }", "private DateTime goodLocalTimeUse() {\n LocalTime lt = new LocalTime(8, 0, 0, 0);\n return new DateTime().toDateTime(DateTimeZone.forID(\"America/New_York\"))\n .withTime(lt)\n .toDateTime(DateTimeZone.forID(\"America/Los_Angeles\"));\n }", "public static void main(String[] args) {\n\t\t\n\t\tLocalDate date = LocalDate.now();\n\t\t\n\t\tSystem.out.println(\"date: \" + date);\n\t\tSystem.out.println(\"DateTimeFormatter.ISO_DATE: \" + date.format(DateTimeFormatter.ISO_DATE));\n\t\t\n\t\tLocalDateTime datetime = LocalDateTime.now();\n\t\t\t\t\n\t\tSystem.out.println(\"datetime: \" + datetime);\n\t\tSystem.out.println(\"DateTimeFormatter.ISO_DATE_TIME: \" + datetime.format(DateTimeFormatter.ISO_DATE_TIME));\n\t\t\n\t\ttry {\n\t\t\tString strDateTime = date.format(DateTimeFormatter.ISO_DATE_TIME); \n\t\t\tSystem.out.println(\"strDateTime: \" + strDateTime);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tString strDate = datetime.format(DateTimeFormatter.ISO_DATE); \n\t\t\tSystem.out.println(\"strDate: \" + strDate);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tLocalDate date1 = LocalDate.parse(\"2020-01-31T12:30:59\", DateTimeFormatter.ISO_DATE_TIME); \n\t\t\tSystem.out.println(\"strDate: \" + date1);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "public static String getDateTime(){\n String pattern = \"MM/dd/yyyy HH:mm:ss\";\n DateFormat df = new SimpleDateFormat(pattern);\n Date today = Calendar.getInstance().getTime();\n String todayAsString = df.format(today);\n return todayAsString;\n }", "private static Date convertFromString(String dateString) throws ParseException {\n return new SimpleDateFormat(\"yyyyMMddHHmm\").parse(dateString);\n }", "public LocalDateTime convertToTimeObject(LocalTime tm) {\n LocalDate date = dateBox.getValue();\n return LocalDateTime.of(date.getYear(), date.getMonthValue(), date.getDayOfMonth(), tm.getHour(), tm.getMinute());\n }", "public static LocalDateTime getStartOfDay(LocalDateTime dateTime) {\n return dateTime.withHour(0).withMinute(0).withSecond(0);\n }", "public static LocalTime getLocalTime(String prompt)\n {\n LocalTime time;\n while(true)\n {\n try\n {\n System.out.print(prompt + \" \");\n time = DateUtility.convertTime((in.nextLine()));\n break;\n }\n catch(Exception e)\n {\n System.out.println(\"Not a valid Time\");\n }\n }\n return time; \n }", "public static String ConvertLocalTimeToUTC(String localDateTime) throws Exception {\n String returnVal = \"\";\n try {\n DateFormat dfParse = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss'Z'\");\n dfParse.setTimeZone(Calendar.getInstance().getTimeZone());\n\n DateFormat df = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss'Z'\");\n df.setTimeZone(TimeZone.getTimeZone(\"UTC\"));\n\n Date dateTime;\n\n dateTime = dfParse.parse(localDateTime);\n returnVal = df.format(dateTime);\n } catch (Exception ex) {\n ApiLog.One.WriteException(ex);\n returnVal = localDateTime;\n }\n return returnVal;\n }", "public void createDate(){\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy_MM_dd\"); //TODO -HHmm si dejo diagonales separa bonito en dia, pero para hacer un armado de excel creo que debo hacer un for mas\n currentDateandTime = sdf.format(new Date());\n Log.e(TAG, \"todays date is: \"+currentDateandTime );\n\n}", "public String convertDateToTime(String date){\n Date test = null;\n if(date !=null) {\n try {\n test = sdf.parse(date);\n } catch (ParseException e) {\n System.out.println(\"Parse not working: \" + e);\n }\n calendar.setTime(test);\n return String.format(\"%02d:%02d\",\n calendar.get(Calendar.HOUR_OF_DAY),\n calendar.get(Calendar.MINUTE)\n );\n }\n return \"n\";\n }", "private ZonedDateTime resolveInstant(LocalDateTime newDateTime) {\n return ofInstant(newDateTime, offset, zone);\n }", "public LocalDateTime getDateTime() {\n return dateTime;\n }", "public interface DateFormatting {\n\n LocalDateTime getLDT (String s);\n\n}", "public static LocalDateTime localTimeDateNow() {\n return TimeService.localTimeDateNow();\n }", "public static LocalDateTime toLocalDateTime(Date date) {\n Instant instant = Instant.ofEpochMilli(date.getTime());\n return LocalDateTime.ofInstant(instant, ZoneId.systemDefault());\n }", "public void setDatetime(LocalDateTime datetime){\n this.datetime = datetime;\n }", "public Object parseDateTime(long systemTimeMillis);", "public static Date getDateFromString(String date) {\r\n Date newdate = null;\r\n SimpleDateFormat dateformat = new SimpleDateFormat(\"yyyy-MM-dd hh:mm:ss\");\r\n\r\n try {\r\n newdate = dateformat.parse(date);\r\n System.out.println(newdate);\r\n } catch (ParseException e) {\r\n e.printStackTrace();\r\n }\r\n\r\n return newdate;\r\n }", "public static Date StringToDate(String strFecha) throws ParseException {\r\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(\"dd/MM/yyyy HH:mm:ss\");\r\n return simpleDateFormat.parse(strFecha);\r\n }", "private String getDate(String str) {\n String[] arr = str.split(\"T\");\n DateFormat formatter = new SimpleDateFormat(\"yyyy-mm-d\", Locale.US);\n Date date = null;\n try {\n date = formatter.parse(arr[0]);\n } catch (java.text.ParseException e) {\n Log.e(LOG_TAG, \"Could not parse date\", e);\n }\n SimpleDateFormat dateFormatter = new SimpleDateFormat(\"MMM d, yyyy\", Locale.US);\n\n return dateFormatter.format(date);\n }", "public String changeDateTimeFormat(String dateStr) {\n String inputPattern = \"MMM-dd-yyyy hh:mm a\";\n String outputPattern = \"MMMM dd, yyyy hh:mm a\";\n SimpleDateFormat inputFormat = new SimpleDateFormat(inputPattern);\n SimpleDateFormat outputFormat = new SimpleDateFormat(outputPattern);\n\n Date date = null;\n String str = null;\n\n try {\n date = inputFormat.parse(dateStr);\n str = outputFormat.format(date);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n return str;\n\n }", "public static String UTCFromLocalDate(String localDate) {\n Pattern pattern = Pattern.compile(\"^\\\\d\\\\d\\\\d\\\\d-\\\\d\\\\d-\\\\d\\\\d$\");\n Matcher matcher = pattern.matcher(localDate);\n if (matcher.matches()) {\n return localDate + \"T00:00:00Z\";\n } else {\n return localDate;\n }\n }", "private Date convertMongoToDate(String dateString, String timeString) {\n int year = Integer.parseInt(dateString.substring(0, 4));\n //Log.e(\"KARA\", \"year \" + year);\n int month = Integer.parseInt(dateString.substring(5, 7));\n //Log.e(\"KARA\", \"month \" + month);\n int day = Integer.parseInt(dateString.substring(8, 10));\n //Log.e(\"KARA\", \"day \" + day);\n int hour = Integer.parseInt(timeString.substring(0, 2));\n //Log.e(\"KARA\", \"hour \" + hour);\n int min = Integer.parseInt(timeString.substring(3, 5));\n return new Date(year - 1900, month - 1, day, hour, min);\n }", "public static Date StringToDate(String dateString) {\n int y = new Integer(dateString.substring(0, 4));\n int m = new Integer(dateString.substring(4, 6));\n int d = new Integer(dateString.substring(6, 8));\n int h = new Integer(dateString.substring(8, 10));\n int min = new Integer(dateString.substring(10, 12));\n\n try {\n Calendar convCal = Calendar.getInstance();\n convCal.set(y, m - 1, d, h, min);\n Date date = convCal.getTime();\n\n return date;\n } catch (Exception ex) {\n System.out.println(\"BwInfo.convertStringToDate() \" + ex);\n return null;\n }\n\n }", "static String timeConversion(String s) {\n /*\n * Write your code here.\n */\n String res = \"\";\n String hrs = s.substring(0, 2);\n String min = s.substring(3, 5);\n String sec = s.substring(6, 8);\n String ampm = s.substring(8);\n int hr = Integer.parseInt(hrs);\n if((ampm.equalsIgnoreCase(\"PM\")) && (hr != 12)) {\n hr += 12;\n if(hr >= 24) {\n hr = 24 - hr;\n }\n }\n else if(ampm.equalsIgnoreCase(\"AM\")) {\n if(hr == 12) {\n hr = 0;\n }\n }\n if(hr < 10) {\n res = res + \"0\" + Integer.toString(hr);\n }\n else {\n res += Integer.toString(hr);\n }\n res = res +\":\" +min +\":\" + sec;\n return res;\n }", "public java.time.LocalDateTime convertToCurrentZone(java.time.LocalDateTime time_input){\r\n java.time.LocalDateTime newDateTime = time_input.atZone(ZoneId.of(\"GMT\")).withZoneSameInstant(getTimeZone().toZoneId()).toLocalDateTime();\r\n return newDateTime;\r\n }", "public String getDateTime() {\n\t\t\n\t\tDateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern(\"yyyy/MM/dd HH:mm:ss\"); \n\t\t\n\t\tLocalDateTime currentDateTime = LocalDateTime.now(); \n\t\t\n\t\treturn dateTimeFormatter.format(currentDateTime);\n\t}", "private LocalDateTime mapTimestampToUtc(final String timestamp) {\n return LocalDateTime.ofInstant(\n Instant.from(LocalDateTime.parse(timestamp).atZone(ZoneOffset.UTC)),\n ZoneOffset.UTC);\n }", "@Test\n @DisplayName(\"convert string to LocaleDate\")\n void convertStringToLocaleDate() {\n String date = \"10 13 2020\";\n LocalDate localDate = DateTimeFormatter.convertStringToLocaleDate(date);\n\n //agenda.addDanceClass(\"Tango Argentin\", \"Tokyo\", date);\n // assertEquals(localDate, );\n }" ]
[ "0.6496194", "0.6447763", "0.6382525", "0.62669367", "0.62410975", "0.6240096", "0.62188756", "0.61561227", "0.60790694", "0.5929711", "0.58870333", "0.58625257", "0.58265513", "0.5774041", "0.5763708", "0.57544905", "0.57370716", "0.5619451", "0.5615536", "0.55898154", "0.5588875", "0.5499272", "0.5494762", "0.5482285", "0.5482267", "0.5424764", "0.5397707", "0.5396419", "0.5350119", "0.5342959", "0.53367484", "0.53330046", "0.5331215", "0.5324979", "0.5320976", "0.53117514", "0.5301542", "0.52890235", "0.52848756", "0.52761", "0.52666986", "0.5256047", "0.5240371", "0.5240367", "0.52176774", "0.5148899", "0.51374424", "0.5124308", "0.5118347", "0.51145524", "0.5113155", "0.51049054", "0.5100863", "0.5097191", "0.5096675", "0.50810945", "0.5071455", "0.5067997", "0.50619984", "0.50573653", "0.5041224", "0.50394", "0.50353605", "0.5029119", "0.50210786", "0.5014583", "0.5011227", "0.4997511", "0.49810082", "0.49789608", "0.49735633", "0.49707597", "0.4966149", "0.49596918", "0.49565357", "0.49532595", "0.49282116", "0.49227533", "0.49092108", "0.49085954", "0.4900369", "0.48802802", "0.4878067", "0.48776326", "0.4870693", "0.48667413", "0.4866404", "0.486175", "0.484621", "0.48438564", "0.48429298", "0.4836125", "0.4827347", "0.4821945", "0.48204157", "0.48168287", "0.48161995", "0.48135886", "0.48128617", "0.48102954", "0.4809667" ]
0.0
-1
first initialize positions Appliction defualt Constructor the constructor initialize the LocalDate to be 1.1.20 and then call the other constructor that recive a year and a month
public Appliction() { date=LocalDate.of(2020,1,1);//just a start point for the calendar Appliction p=new Appliction(date.getYear(),date.getMonthValue()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public LocalDateAdapter() {\r\n\t\tsuper();\r\n\t}", "public Date212 (String s){ //initial constructor\n full_Date = s;\n // System.out.println(full_Date + \"jdjdj\");\n if (!isValidDate(full_Date)) throw new IllegalArgumentException(\"Invalid Date Format!\"); \n //If it is not true that the date is valid then throw a error.\n /* \n The substring methods to pull out the Year, Month, and Day.\n */\n Year = Integer.parseInt(full_Date.substring(0,3)); \n Month = Integer.parseInt(full_Date.substring(4,5));\n Day = Integer.parseInt(full_Date.substring(6,7));\n count++; \n addArray(this); //Calling the function \"addArray\" with 'this isntance of date212'\n // System.out.println(myDates[i]);\n\n }", "public MyDate(int inYear, int inDay, int inMonth)\n {\n year = inYear;\n day = inDay;\n month = inMonth;\n }", "private ARXDate() {\r\n this(\"Default\");\r\n }", "public Payment(int year, int month, int electro_start, int electro_end, int water_start, int water_end) {\n if (month >= 0 & month < 13) {\n this.year = year;\n this.month = month;\n this.electro_start = electro_start;\n this.electro_end = electro_end;\n this.water_start = water_start;\n this.water_end = water_end;\n name = year + \".\" + month + \" (\" + MONTHS[month] + \")\";\n } else {\n throw new ArrayIndexOutOfBoundsException(\"Wrong number of month - Неправильный номер месяца\");\n }\n\n }", "public CinemaDate() {\n }", "public DateUtil (int yyyy, int mm, int dd)\n {\n set(yyyy, mm, dd, CHECK);\n }", "public FillDate() {\n }", "@Before\n\tpublic void init() {\n\t\t\n\n\t\tCalendar cal = Calendar.getInstance();\n\t\t\n\t cal.add(Calendar.DATE, -2); \n\t \n\t fechaOperacion = LocalDate.of(cal.get(Calendar.YEAR), cal.get(Calendar.MONTH), cal.get(Calendar.DAY_OF_MONTH));\n\t \n\n\t\t\n\t\tCiudad buenos_aires = new Ciudad(new Provincia(\"Argentina\", \"Buenos Aires\"), \"Capital Federal\");\n\t \t\n \tProvincia prov_buenos_aires = new Provincia(\"Ciudad Autonoma de Buenos Aires\",\"Capital Federal\");\n \t\n \tDireccionPostal direccionPostal = new DireccionPostal( \"lacarra 180\", buenos_aires, prov_buenos_aires, \"argentina\", new Moneda(\"$\",\"Peso argentino\" ));\n\t\n\t\t\n\t\t entidad1 = new EntidadJuridica(\"chacho bros\", \"grupo chacho\", \"202210\", direccionPostal, new Categoria(\"ONG\"),TipoEmpresa.EMPRESA);\n\n\t\t\n\t\t\n\t}", "public Month () {\n monthNumber = 1;\n }", "public MyDate(){\n this.day = 0;\n this.month = 0;\n this.year = 0;\n }", "@Override\n\tpublic void initDate() {\n\n\t}", "public Date(String month, int year) {\n\t\t\tthis.weekday = 0;\n\t\t\tthis.day = 0;\n\t\t\tthis.month = notEmpty(month);\n\t\t\tthis.year = zeroOrMore(year);\n\t\t}", "private void initializeDate() {\n\t\tfinal Calendar c = Calendar.getInstance();\n\t\tmYear = c.get(Calendar.YEAR);\n\t\tmMonth = c.get(Calendar.MONTH);\n\t\tmDay = c.get(Calendar.DAY_OF_MONTH);\n\t\t\n\t\texpense.setDate(c.getTime());\n\n\t\t// display the current date\n\t\tupdateDateDisplay();\n\t}", "public Computus(int x){\n year = x;\n }", "public Date(int day, Month month, int year){\n\tif (day > 0 && day <= month.nbJours(year)){\n\t this.day = day;\n\t}\t\n\tthis.month = month;\n\tif (year > 0){\n\t this.year = year;\n\t}\n }", "Year createYear();", "public Date(int month, int day, int year) {\r\n\t\t// check if month in range\r\n\t\tif (month <= 0 || month > 12)\r\n\t\t\tthrow new IllegalArgumentException(\"month (\" + month + \") must be 1-12\");\r\n\r\n\t\t// check if day in range for month\r\n\t\tif (day <= 0 || (day > daysPerMonth[month] && !(month == 2 && day == 29)))\r\n\t\t\tthrow new IllegalArgumentException(\"day (\" + day + \") out-of-range for the specified month and year\");\r\n\r\n\t\t// check for leap year if month is 2 and day is 29\r\n\t\tif (month == 2 && day == 29 && !(year % 400 == 0 || (year % 4 == 0 && year % 100 != 0)))\r\n\t\t\tthrow new IllegalArgumentException(\"day (\" + day + \") out-of-range for the specified month and year\");\r\n\r\n\t\tthis.month = month;\r\n\t\tthis.day = day;\r\n\t\tthis.year = year;\r\n\r\n\t\tSystem.out.printf(\"Date object constructor for date %s%n\", this);\r\n\t}", "public DateUtil ( DateUtil b)\n {\n this.ordinal = b.ordinal;\n this.yyyy = b.yyyy;\n this.mm = b.mm;\n this.dd = b.dd;\n }", "public Date(int month, int day) {\r\n this.month = month;\r\n this.day = day;\r\n }", "private DateTimeAdjusters() {\n\n }", "public MyDate(int month, int day, int year) {\n\t\tsetDate(month, day, year);\n\t}", "public Rates() {\n }", "public Date(int day, int month, int year) {\r\n this.day = day;\r\n this.month = month;\r\n this.year = year;\r\n\r\n }", "public InterestRateMonteCarloProductFactory(final LocalDate referenceDate) {\n\t\tsuper();\n\t\tthis.referenceDate = referenceDate;\n\t}", "private DateUtil() {\n\t}", "private DateUtil() {\n\t}", "public ADateDemo() {\n\n\n initComponents();\n\n\n }", "public Date(){\n\t\tyear=0;\n\t\tmonth=0;\n\t\tday=0;\n\t}", "public interface DateInterface \n{\n /*\n Dada uma data, determina a sua estação do ano (Primavera, Verão, Outono ou Inverno) de acordo com o hemisfério Norte.\n */\n public String estacaoDoAno(LocalDate d);\n \n /*\n Determina o dia da semana do primeiro dia de um ano.\n */\n public DayOfWeek primeiroDiaSemanaAno(int ano);\n \n /*\n Determina o dia da semana de uma data.\n */\n public DayOfWeek diaDaSemana(LocalDate d);\n \n /*\n Determina o dia do ano de uma data (por exemplo, 10/01/2018 corresponde ao 10º dia do ano de 2018).\n */\n public int diaDoAno(LocalDate d);\n \n /*\n Determina em que trimestre do ano uma data se situa.\n */\n public int trimestre(LocalDate d);\n \n /*\n Determina o número de semanas completas entre duas datas, sendo uma delas a atual.\n */\n public long numSemanasAteData(LocalDate d);\n \n /*\n Determina se um ano é bissexto ou não.\n */\n public boolean anoBissexto(Year ano);\n \n /*\n Determina o século, o milénio e a era de uma data.\n */\n public TuploSeculoMilenioEra seculoMilenioEraData(LocalDate d);\n \n /*\n Determina quanto tempo falta até à próxima passagem do cometa Halley. Mostra o resultado em dias totais, meses totais\n e anos totais.\n */\n public ParDataDiaMesAno cometaHalley();\n \n /*\n Determina o número de dias úteis entre duas dadas datas.\n */\n public int diasUteisEntreDatas(LocalDate d1, LocalDate d2);\n \n /*\n Determina quantos fins-de-semanas completos um ano tem. Caso o ano inserido possua um sábado ou um domingo extra, \n estes também são sinalizados.\n */\n public ParFimDeSemana numFinsDeSemanaAno(int ano);\n \n /*\n Determina quantos dias faltam até ao próximo Natal.\n */\n public long diasAteNatal();\n \n /*\n Determina o salário de um indivíduo sabendo quanto ganha por hora e o ano que pretende calcular. Apresenta o resultado\n em dias, semanas, meses e ano.\n */\n public SalarioAno salarioDiaMesSemanaAno(float salarioHora, int ano); \n \n /*\n Determina o número de dias úteis (isto é, que não são fins-de-semana) de um ano.\n */\n public int numDiasUteisAno(int ano);\n \n /*\n Determina em que dias são os fins-de-semana de um dado mês. Por exemplo, em Janeiro de 2018 o primeiro fim-de-semana\n ocorre nos dias 6 (Sábado) e 7 (Domingo).\n */\n public Map<Integer, DayOfWeek> finsDeSemanaDoMes(int ano, int mes);\n \n /*\n A uma dada data são somados anos, meses, semanas e dias.\n */\n public LocalDate somaData(LocalDate d, int ano, int mes, int semanas, int dias);\n \n /*\n A uma dada data são subtraidos anos, meses, semanas e dias.\n */\n public LocalDate subtraiData(LocalDate d, int ano, int mes, int semanas, int dias);\n \n /*\n Dado um número de dias, calcula a data daqui a esse número de dias e apresenta ainda qual o dia da semana e quantos\n dias úteis faltam até lá.\n */\n public TuploDataDia_SemanaDias_Uteis eventoDaquiXDias(int dias);\n \n /*\n Dado um número de dias úteis, calcula a data daqui a esse número de dias e apresenta ainda qual o dia da semana.\n */\n public ParDataDiaDaSemana eventoDaquiXDiasUteis(int dias);\n \n /*\n Determina qual a data da próxima Black Friday e quantos dias faltam até essa data.\n */\n public ParDataDia proxBlackFriday();\n \n /*\n Calcula a data da Páscoa de um determinado ano.\n */\n public LocalDate proxPascoa(int ano);\n \n /*\n Para um dado ano apresenta a data dos feriados nacionais e em que dia da semana ocorrem.\n */\n public Map<String, MonthDay> dataFeriadosNacionais(int ano);\n \n /*\n Calcula a diferença entre duas datas. Apresenta o resultado em anos, meses e dias. Por exemplo, de 01/01/2018 até \n 10/02/2018 existe uma diferença de 0 anos, 1 mês e 9 dias.\n */\n public static TuploAnosMesesDias difEntreDatas(LocalDate d1, LocalDate d2)\n { \n boolean stop = false;\n boolean stop2 = false;\n long dias;\n int meses;\n int anos;\n \n anos = 0;\n meses = 0;\n dias = 0;\n\n while((d1.getYear() != d2.getYear() || d1.getMonthValue() != d2.getMonthValue())&&!stop && !stop2)\n {\n \n \n while(d1.getMonthValue() != d2.getMonthValue() && !stop2)\n {\n if(d1.getYear() == (d2.getYear() - 1) && d1.getMonthValue() == 12 && d2.getMonthValue() == 1 && d2.getDayOfMonth() < d1.getDayOfMonth())\n {\n stop2 = true;\n dias = 31 - d1.getDayOfMonth() + d2.getDayOfMonth();\n }\n if(stop2 == false)\n {\n YearMonth anoMes = YearMonth.of(d1.getYear(), d1.getMonth());\n int daysInMonth = anoMes.lengthOfMonth(); \n\n if(((d2.getYear() - d1.getYear()) == 0) \n &&((d2.getMonthValue() - d1.getMonthValue()) == 1)\n &&(d1.getDayOfMonth() > d2.getDayOfMonth()))\n {\n\n dias = d2.getDayOfMonth() + daysInMonth - d1.getDayOfMonth(); \n stop = true;\n break;\n }\n\n meses++;\n\n d1 = d1.plusMonths(1);\n }\n }\n if(stop2 == false)\n {\n if(d1.getMonthValue() == d2.getMonthValue() && d1.getYear() !=d2.getYear())\n {\n meses++;\n d1 = d1.plusMonths(1);\n }\n }\n }\n \n if(d1.getMonthValue() == d2.getMonthValue())\n {\n dias = d2.getDayOfMonth() - d1.getDayOfMonth();\n }\n\n while(meses > 12)\n {\n anos++;\n meses-=12;\n }\n \n return new TuploAnosMesesDias(anos, meses, dias);\n \n }\n}", "public DateUtil ()\n {\n\n }", "private CreateDateUtils()\r\n\t{\r\n\t}", "public Date(int m, int y) {\r\n\r\n\t\tif (!isValid(m, DAYS[m], y))\r\n\t\t\tthrow new RuntimeException(\"Invalid date; correct input\");\r\n\t\tmonth = m;\r\n\t\tday = DAYS[m];\r\n\t\tyear = y;\r\n\t}", "private DateUtil(){\n\n }", "public Date(int y) {\r\n\r\n\t\tmonth = LAST_MONTH;\r\n\t\tday = DAYS[LAST_MONTH];\r\n\t\tyear = y;\r\n\t}", "Person(String fullName, LocalDate birthdate) throws IllegalArgumentException{\n this.fullName = fullName;\n this.setBirthdate(birthdate);\n }", "public Value(int year, int month, int day) {\n\n // Construct the Calendar\n _calendar = Calendar.getInstance();\n _calendar.set(year, month - 1, day);\n }", "public Date(int day, int month, int year) throws DateException{\n\t\tthis.year = year;\n\t\tif (month < 1 || month > 12) {\n\t\t\tthrow new DateException(\"Mes \" + month + \" no valido\" +\n\t\t\t\t\t\" Valores posibles entre 1 y 12.\");\n\t\t} else {\n\t\t\tthis.month = month;\n\t\t}\n\t\t\n\t\tswitch (this.month){\n\t\t\tcase 1:\n\t\t\tcase 3:\n\t\t\tcase 5:\n\t\t\tcase 7:\n\t\t\tcase 8:\n\t\t\tcase 10:\n\t\t\tcase 12:\n\t\t\t\tif(day<1 || day>31){\n\t\t\t\t\tthrow new DateException(\"Error. Fecha no valida. Dia \"+day+\" no valido en el mes \"+month+\".\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\t\tthis.day=day;\n\t\t\t\t}\n\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\tcase 6:\n\t\t\tcase 9:\n\t\t\tcase 11:\n\t\t\t\tif(day<1 || day>30){\n\t\t\t\t\tthrow new DateException(\"Error. Fecha no valida. Dia \"+day+\" no valido en el mes \"+month+\".\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\t\tthis.day=day;\n\t\t\t\t}\n\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tif(day<1 || day>28){\n\t\t\t\t\tthrow new DateException(\"Error. Fecha no valida. Dia \"+day+\" no valido en el mes \"+month+\".\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\t\tthis.day=day;\n\t\t\t\t}\n\n\t\t\t\tbreak;\n\t\t}\n\n\t}", "public Watch(){ //Watch Constuctor\r\n super(); //Values passed in from the super class\r\n month = 1; //Initialize month to 1\r\n day = 1; //Initialize day to 1\r\n year = 1980; //Initialize year to 1980\r\n}", "public DateUtil (int ordinal)\n {\n // save ordinal field and compute Gregorian equivalent\n set(ordinal);\n }", "public static void main(String[] args) {\n\n\t\t\n\t\t DateConstructorExample obj=new DateConstructorExample(6,6,2010);\n\t\t \n\t\t//System.out.println(obj.DateFormat());\n\t\t//if we dont want to write the print statement in main method to display date then we can write the print statement directly in the constructor method\n\t}", "public Date(int month, int day, int year) {\n if (!isValid(month, day, year)) throw new IllegalArgumentException(\"Invalid date\");\n this.month = month;\n this.day = day;\n this.year = year;\n }", "@Test public void Year_0__month__day()\t\t\t\t\t\t\t{tst_date_(\"2001-03-31\"\t\t\t\t, \"2001-03-31\");}", "private DateFormatterManager()\r\n\t{\r\n\r\n\t}", "public DateUtility () {\n dateFormat = new SimpleDateFormat(\"MM/dd/yyyy\");\n }", "private void init() {\n setMinutes(new int[] {});\n setHours(new int[] {});\n setDaysOfMonth(new int[] {});\n setMonths(new int[] {});\n setDaysOfWeek(new int[] {});\n }", "public Month(String name, int year) {\n\t\tthis.name = name;\n\t\tthis.year = year;\n\t\tint offset = getOffset();\n\t\tdays = new Day[42];\n\t\tif (name.equals(\"February\")) {\n\t\t\tif (leap(year)) {\n\t\t\t\tfor (int i = offset; i < 29 + offset; i++) {\n\t\t\t\t\tdays[i] = new Day(i % 7, i - offset, name);\n\t\t\t\t\tnumDays = 29;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tfor (int i = offset; i < 28 + offset; i++) {\n\t\t\t\t\tdays[i] = new Day(i % 7, i - offset, name);\n\t\t\t\t\tnumDays = 28;\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tswitch(name) {\n\t\t\t\tcase \"January\":\n\t\t\t\t\tfor (int i = offset; i < 31 + offset; i++) {\n\t\t\t\t\t\tdays[i] = new Day(i % 7, i - offset, name);\n\t\t\t\t\t\tnumDays = 31;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"March\":\n\t\t\t\t\tfor (int i = offset; i < 31 + offset; i++) {\n\t\t\t\t\t\tdays[i] = new Day(i % 7, i - offset, name);\n\t\t\t\t\t\tnumDays = 31;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"April\":\n\t\t\t\t\tfor (int i = offset; i < 30 + offset; i++) {\n\t\t\t\t\t\tdays[i] = new Day(i % 7, i - offset, name);\n\t\t\t\t\t\tnumDays = 30;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"May\":\n\t\t\t\t\tfor (int i = offset; i < 31 + offset; i++) {\n\t\t\t\t\t\tdays[i] = new Day(i % 7, i - offset, name);\n\t\t\t\t\t\tnumDays = 31;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"June\":\n\t\t\t\t\tfor (int i = offset; i < 30 + offset; i++) {\n\t\t\t\t\t\tdays[i] = new Day(i % 7, i - offset, name);\n\t\t\t\t\t\tnumDays = 30;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"July\":\n\t\t\t\t\tfor (int i = offset; i < 31 + offset; i++) {\n\t\t\t\t\t\tdays[i] = new Day(i % 7, i - offset, name);\n\t\t\t\t\t\tnumDays = 31;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"August\":\n\t\t\t\t\tfor (int i = offset; i < 31 + offset; i++) {\n\t\t\t\t\t\tdays[i] = new Day(i % 7, i - offset, name);\n\t\t\t\t\t\tnumDays = 31;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"September\":\n\t\t\t\t\tfor (int i = offset; i < 30 + offset; i++) {\n\t\t\t\t\t\tdays[i] = new Day(i % 7, i - offset, name);\n\t\t\t\t\t\tnumDays = 30;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"October\":\n\t\t\t\t\tfor (int i = offset; i < 31 + offset; i++) {\n\t\t\t\t\t\tdays[i] = new Day(i % 7, i - offset, name);\n\t\t\t\t\t\tnumDays = 31;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"November\":\n\t\t\t\t\tfor (int i = offset; i < 30 + offset; i++) {\n\t\t\t\t\t\tdays[i] = new Day(i % 7, i - offset, name);\n\t\t\t\t\t\tnumDays = 30;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"December\":\n\t\t\t\t\tfor (int i = offset; i < 31 + offset; i++) {\n\t\t\t\t\t\tdays[i] = new Day(i % 7, i - offset, name);\n\t\t\t\t\t\tnumDays = 31;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "public DateIn(int day, int month, int year){\n\tthis.day = day;\n\tthis.month = month;\n\tthis.year = year;\n\t}", "public Date() {\r\n }", "public Date(int year, int month, int day) {\n this.year = year;\n this.day = day;\n this.month = month;\n }", "public static void main(String[] args) {\n\t\tMonthDay month=MonthDay.now();\n\t\tLocalDate d=month.atYear(2015);\n\t\tSystem.out.println(d);\n\t\tMonthDay m=MonthDay.parse(\"--02-29\");\n\t\tboolean b=m.isValidYear(2019);\n\t\tSystem.out.println(b);\n\t\tlong n= month.get(ChronoField.MONTH_OF_YEAR);\n\t\tSystem.out.println(\"month of the year is:\"+n);\n\t\tValueRange r1=month.range(ChronoField.MONTH_OF_YEAR);\n\t\tSystem.out.println(r1);\n\t\tValueRange r2=month.range(ChronoField.DAY_OF_MONTH);\n\t\tSystem.out.println(r2);\n\n\t}", "public Date(int m, int d, int y) {\r\n\t\tif (!isValid(m, d, y))\r\n\t\t\tthrow new RuntimeException(\"Invalid date\");\r\n\t\tmonth = m;\r\n\t\tday = d;\r\n\t\tyear = y;\r\n\t}", "public pay_date() {\n initComponents();\n }", "@Test public void Day_1__month__year()\t\t\t\t\t\t\t{tst_date_(\"03-31-02\"\t\t\t\t, \"2002-03-31\");}", "public date2(int theYear, int theMonth, int theDay) {\n\t\tmonth = checkMonth(theMonth); // validate month\n\t\tyear = checkYear(theYear); // validate year\n\t\tday = checkDay(theDay); // validate day\n\t}", "private static Calendar createCalendar(int year, int month, int date) {\r\n\t\tCalendar calendar = Calendar.getInstance();\r\n\t\tcalendar.setLenient(false);\r\n\t\tcalendar.set(Calendar.YEAR, year);\r\n\t\tcalendar.set(Calendar.MONTH, month - 1);\r\n\t\tcalendar.set(Calendar.DAY_OF_MONTH, date);\r\n\t\tcalendar.set(Calendar.MINUTE, 0);\r\n\t\tcalendar.set(Calendar.HOUR_OF_DAY, 0);\r\n\t\tcalendar.set(Calendar.SECOND, 0);\r\n\t\treturn calendar;\r\n\t}", "public Restauracion(Date fecha) {\r\n this.fecha = fecha;\r\n }", "public Person (String inName, String inFirstName, LocalDate inDateOfBirth) {\n super(inName);\n this.dateOfBirth = inDateOfBirth;\n this.firstName = inFirstName;\n }", "private void initiateProject() {\n\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"dd-MM-yyyy\", Locale.getDefault());\n\n Date startDay = null;\n Date deadlineMinPace = null;\n Date deadlineMaxPace = null;\n\n try {\n startDay = dateFormat.parse(\"21-08-2018\");\n deadlineMinPace = dateFormat.parse(\"27-08-2018\");\n deadlineMaxPace = dateFormat.parse(\"25-08-2018\");\n } catch (ParseException e) {\n e.printStackTrace();\n }\n\n if (startDay != null && deadlineMinPace != null && deadlineMaxPace != null) {\n\n smp = new SmartProject(\"Test project\", \"Test project description\",\n 35, startDay, deadlineMinPace, deadlineMaxPace);\n\n System.out.println(\"===>>>\" + smp.toString());\n\n } else {\n System.out.println(\"===>>> Some date are null!\");\n }\n\n /*\n // *** print block ***\n smp.printEntries();\n\n for (float f : smp.getYAxisChartValuesMinPace()) {\n System.out.println(f);\n }\n\n for (float f : smp.getYAxisChartValuesMaxPace()) {\n System.out.println(f);\n }\n\n for (float f : smp.getFloatNumbersForXAxis()) {\n System.out.println(f);\n }\n */\n\n }", "public YearProfit(){}", "public DayPeriod() {\n\t}", "private static LocalDate readDateFromArguments(String dayString, String monthString, String yearString) {\n\t\tint day = 0, month = 0, year = 0 ;\n\t\ttry{\n\t\t\tday = Integer.parseInt(dayString);\n\t\t\tmonth = Integer.parseInt(monthString);\n\t\t\tyear = Integer.parseInt(yearString);\n\t\t}\n\t\tcatch(Exception e) {\n\t\t\tSystem.out.println(\"The dates should be in the format DD MM YY in integer numbers\");\n\t\t\texitArgumentError(); \n\t\t}\n\t\t\t\n\t\treturn LocalDate.of(year,month,day);\n\n\t}", "public Date(int y, int m, int d){\n\t\tif((y<2015 || m<=0 || m>12 || d<=0 || d>31)){\n\t\t\tyear=0;\n\t\t\tmonth=0;\n\t\t\tday=0;\n\t\t}else{\n\t\t\tyear=y;\n\t\t\tmonth=m;\n\t\t\tday=d;\n\t\t}\n\t\t\n\t}", "public EventsCalendarYear() {\n initYear();\n }", "public DateCustom(int __day, int __month, int __year) {\n this._day = __day;\n this._month = __month;\n this._year = __year;\n }", "public Entry(Calendar date){\n this.date = date; \n }", "public MyDate(){\t\n\t\tthis(\"00/00/0000\");\n\t}", "private BusinessDateUtility() {\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t\tDate date = new Date();\r\n\t\t\r\n\t\tLocalDate diaHoy = LocalDate.now();\r\n\t\tLocalDate diaFin = diaHoy.plusDays(15);\r\n\t\t\r\n\t\tCursoVacacional curso1 = new CursoVacacional();\r\n\t\tcurso1.setNombre(\"Volley Principiantes\");\r\n\t\tcurso1.setFechaInicio(diaHoy);\r\n\t\tcurso1.setFechaFin(diaFin);\r\n\t\t\r\n\t\tSystem.out.println(\"Nombre: \" +curso1.getNombre());\r\n\t\tSystem.out.println(\"F I: \" + curso1.getFechaInicio());\r\n\t\tSystem.out.println(\"F F: \" + curso1.getFechaFin());\r\n\t\t\r\n\t\tLocalDate diaHoy2 = LocalDate.now();\r\n\t\tLocalDate diaQueInicio = diaHoy2.minusDays(2);\r\n\t\tLocalDate diaQueFinaliza = diaQueInicio.plusDays(20);\r\n\t\t\r\n\t\tCursoVacacional curso2 = new CursoVacacional();\r\n\t\tcurso2.setNombre(\"Volley Principiantes\");\r\n\t\tcurso2.setFechaInicio(diaHoy);\r\n\t\tcurso2.setFechaFin(diaFin);\r\n\t\t\r\n\t\tSystem.out.println(\"Nombre: \" +curso2.getNombre());\r\n\t\tSystem.out.println(\"F I: \" + curso2.getFechaInicio());\r\n\t\tSystem.out.println(\"F F: \" + curso2.getFechaFin());\r\n\t\t\r\n\t\t\r\n\t}", "public ConcreteYear(int year) {\r\n if (year > 0) {\r\n this.year = year;\r\n }\r\n }", "public MyDate(String date){\n \t\tStringTokenizer st;\n\n \t\tst = new StringTokenizer(date,\"/\");\t//tokenizer will always result in 3 tokens \n\n\t\tthis.day = Integer.parseInt(st.nextToken());\n\t\tthis.month = Integer.parseInt(st.nextToken());\n\t\tthis.year = Integer.parseInt(st.nextToken());\t\n\t}", "public void initializeYears() {\n int j, k;\n WaterPurityReport earliest = _purityReportData.get(1);\n WaterPurityReport latest = _purityReportData.get(_purityReportData.getCount());\n if (earliest != null) {\n// j = earliest.getDate().toInstant().atZone(ZoneId.of(\"EST\")).toLocalDate().getYear();\n// k = latest.getDate().toInstant().atZone(ZoneId.of(\"EST\")).toLocalDate().getYear();\n\n Calendar cal = Calendar.getInstance();\n cal.setTime(earliest.getDate());\n j = cal.get(Calendar.YEAR);\n cal.setTime(latest.getDate());\n k = cal.get(Calendar.YEAR);\n dataGraphYear.setItems(FXCollections.observableArrayList(IntStream.range(j, k+1).boxed().collect(Collectors.toList())));\n }\n }", "@Test public void Month_name_1__day__year()\t\t\t\t\t{tst_date_(\"2 Mar 2001\"\t\t\t\t, \"2001-03-02\");}", "public CalendarBasi()\n {\n dia = new DisplayDosDigitos(31);\n mes = new DisplayDosDigitos(13);\n anio = new DisplayDosDigitos(100);\n }", "@Before\n\tpublic void setUp() throws ParseException{\n\t\tbc = new Bank_Control();\n\t\tmyDate = new SimpleDateFormat(\"yyyy-MM-dd\").parse(\"1997-03-20\");\n\t}", "@Test public void Year_2__month__day()\t\t\t\t\t\t\t{tst_date_(\"03/31/2001\"\t\t\t\t, \"2001-03-31\");}", "public DateTime(int year, int month, int date) {\r\n\t\tCalendar calendar = createCalendar(year, month, date);\r\n\t\tthis.timeString = YYYY_MM_DD_FORMATTER.format(calendar.getTime());\r\n\t}", "public CpFldValidDate() { super(10018, 1); }", "public Calendar() {\n }", "Season(String months)\n {\n span = months;\n }", "public AppointmentCard(User user, LocalDate date) {\n this.stage = new Stage();\n this.userId = user.getId();\n this.datePicker.setValue(date);\n System.out.println(\"constructor3: \" + userId);\n }", "private void initDate(){\n\n owa = findViewById(R.id.OWA);\n sda = findViewById(R.id.SWA);\n fida = findViewById(R.id.FIDA);\n fda = findViewById(R.id.FDA);\n trda = findViewById(R.id.TRDA);\n tda = findViewById(R.id.TDA);\n hier = findViewById(R.id.HIER);\n\n dateList.add(hier);\n dateList.add(tda);\n dateList.add(trda);\n dateList.add(fda);\n dateList.add(fida);\n dateList.add(sda);\n dateList.add(owa);\n\n }", "public static void main(String[] args) {\n\t\tLocalDate date = LocalDate.of(2018, 2, 9);\n\t\tint year = date.getYear();\n\t\tMonth month = date.getMonth();\n\t\tint day = date.getDayOfMonth();\n\t\tDayOfWeek dow = date.getDayOfWeek();\n\t\tint len = date.lengthOfMonth();\n\t\tboolean leap = date.isLeapYear();\n\n\t\tSystem.out.println(\"date = \" + date);\n\t\tSystem.out.println(\"year = \" + year);\n\t\tSystem.out.println(\"month = \" + month);\n\t\tSystem.out.println(\"day = \" + day);\n\t\tSystem.out.println(\"dow = \" + dow);\n\t\tSystem.out.println(\"len = \" + len);\n\t\tSystem.out.println(\"leap = \" + leap);\n\n\t\t/*\n\t\t * To obtains the current date from the system clock using the now\n\t\t * factory method:\n\t\t */\n\t\tLocalDate today = LocalDate.now();\n\t\tSystem.out.println(\"today = \" + today);\n\n\t\t/*\n\t\t * Reading LocalDate values using a TemporalField\n\t\t */\n\t\tint year1 = today.get(ChronoField.YEAR);\n\t\tint month1 = today.get(ChronoField.MONTH_OF_YEAR);\n\t\tint day1 = today.get(ChronoField.DAY_OF_MONTH);\n\t\tSystem.out.println(\"year1 = \" + year1);\n\t\tSystem.out.println(\"month1 = \" + month1);\n\t\tSystem.out.println(\"day1 = \" + day1);\n\n\t\t/*\n\t\t * LocalDate can be created by parsing a String representing\n\t\t */\n\t\tLocalDate anotherDate = LocalDate.parse(\"2014-03-18\");\n\t\tSystem.out.println(\"anotherDate = \" + anotherDate);\n\t}", "Data() {\n\t\t// dia = 01;\n\t\t// mes = 01;\n\t\t// ano = 1970;\n\t\tthis(1, 1, 1970); // usar um construtor dentro de outro\n\t}", "public FootballGame(String team1,String team2,LocalDate matchDate,int teamOneScore,int teamTwoScore){\n this.team1=team1;\n this.team2=team2;\n this.matchDate=matchDate;\n this.teamOneScore=teamOneScore;\n this.teamTwoScore=teamTwoScore;\n\n }", "@Test public void Month_name_1__year__day()\t\t\t\t\t{tst_date_(\"2001 Mar 02\"\t\t\t, \"2001-03-02\");}", "@SuppressWarnings(\"static-access\")\n\tprivate void initData() {\n\t\tstartDate = startDate.now();\n\t\tendDate = endDate.now();\n\t}", "public DateValidator(Integer Day,Integer Month,Integer Year) throws InvalidDateException\n\t{\n\t\t\n\t\t\tiDay = Day;\n\t\t\tiMonth = Month;\n\t\t\tiYear = Year;\n\t\t\t//create Calendar object for current date\n\t\t\tCalendar now = Calendar.getInstance ( );\n\t\t\t//create Calendar Object to test\n\t\t\tCalendar test = Calendar.getInstance( );\n\t\t\t//set the attributes of test Calendar\n\t\t\ttest.set (iYear,iMonth,iDay);\n\t\t\t\n\t\t\tboolean leap = true;//holds the boolean value of leap year \n\t\t\t\n\t\t\t/* test year for proper input*/\n\t\t\tif (iYear + 120 < now.get (Calendar.YEAR) || now.before (test))\n\t\t\t{\t\n\t\t\t\tthrow new InvalidDateException(\"year\");\n\t\t\t}\n\t\t\t/* Test the month for proper input*/\n\t\t\tif (iMonth < 0 || iMonth > 12)\n\t\t\t{\t\n\t\t\t\tthrow new InvalidDateException(\"month\");\n\t\t\t}\n\t\t\t\n\t\t\t//algorithm to determine if it is a leap year\n\t\t\tif (iYear % 400 == 0)\n\t\t\t\tleap = true;\n\t\t\telse if (iYear % 100 == 0)\n\t\t\t\tleap = false;\n\t\t\telse if (iYear % 4 == 0)\n\t\t\t\tleap = true;\n\t\t\telse\n\t\t\t\tleap = false;\n\t\t\t\n\t\t\t/*Test to see if user has entered a\n\t\t\t * valid day for that particular month\n\t\t\t */\n\t\t\t\n\t\t\t//if the day entered for February is greater then 29 in a leap year it is invalid\n\t\t\tif ( leap == true && iMonth == 2)\n\t\t\t{\n\t\t\t\tif ( iDay < 0 || iDay > 29 )\n\t\t\t\t{\t\n\t\t\t\t\tthrow new InvalidDateException(\"day\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//if the day entered for February is greater then 28 in a non leap year it is invalid\n\t\t\tif ( leap == false && iMonth == 2)\n\t\t\t{\n\t\t\t\tif ( iDay < 0 || iDay > 28)\n\t\t\t\t{\t\n\t\t\t\t\tthrow new InvalidDateException(\"day\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//in the months of Apr, Jun, Sep, or Nov a day greater then 30 is invalid\n\t\t\tif( iMonth == 4 ||\n\t\t\t\tiMonth == 6 ||\n\t\t\t\tiMonth == 9 ||\n\t\t\t\tiMonth == 11 )\n\t\t\t{\n\t\t\t\tif( iDay < 0 || iDay > 30)\n\t\t\t\t{\t\n\t\t\t\t\tthrow new InvalidDateException(\"day\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//in the remaining months a day greater than 31 is invalid\n\t\t\tif (iDay < 0 || iDay > 31)\n\t\t\t{\t\n\t\t\t\tthrow new InvalidDateException(\"day\");\n\t\t\t}\n\t}", "public static void main(String[] args) {\n\t\t LocalDate ldt = LocalDate.of(2016,12,21);\n DateTimeFormatter format = DateTimeFormatter.ofPattern(\"yyyy-MMM-dd\");\n DateTimeFormatter format1 = DateTimeFormatter.ofPattern(\"YYYY-mmm-dd\");\n System.out.println(ldt.format(format));\n System.out.println(ldt.format(format1));\n\t}", "public Date (final Integer d, final Integer m, final Integer y) throws CGException {\n\n try {\n setSentinel();\n }\n catch (Exception e){\n\n e.printStackTrace(System.out);\n System.out.println(e.getMessage());\n }\n if (!this.pre_Date(d, m, y).booleanValue()) \n UTIL.RunTime(\"Run-Time Error:Precondition failure in Date\");\n {\n\n day = UTIL.NumberToInt(UTIL.clone(d));\n month = UTIL.NumberToInt(UTIL.clone(m));\n year = UTIL.NumberToInt(UTIL.clone(y));\n }\n }", "public DateUtil (int yyyy, int mm, int dd, int how)\n {\n // save yyyy, mm, dd, and compete the ordinal equivalent\n set(yyyy, mm, dd, how);\n }", "DateConstant createDateConstant();", "private void initDates() throws RIFCSException {\n NodeList nl = super.getElements(Constants.ELEMENT_DATE);\n\n for (int i = 0; i < nl.getLength(); i++) {\n dates.add(new DateWithTypeDateFormat(nl.item(i)));\n }\n }", "public Person(String n,int d, int m, int y)\n\t{\n\t\tname=n;\n\t\tdob=new Date(d,m,y);\t\n\t}", "date initdate(date iDate)\n {\n iDate.updateElementValue(\"date\");\n return iDate;\n }", "public Forecastday() {\n }", "protected DateFieldMetadata() {\r\n\r\n\t}", "@Subscribe\n public void onInit(InitEvent event) {\n Date now = new Date();\n dateFrom.setValue(giveMonthStart(now));\n dateTo.setValue(addTime(giveMonthStart(now),1,\"MONTH\"));\n\n }", "public static void main(String[] args) {\n\t\t\n\t\tLocalDate date = LocalDate.now(); \n\t\tSystem.out.println(date);\n\t\t//date.atStartOfDay();\n\t\t int d=date.getDayOfMonth();\n\t\t System.out.println(d);\n\t\t int y=date.getYear();\n\t\t System.out.println(y);\n\t\t int m=date.getMonthValue();\n\t\t System.out.println(m);\n\t\t\n\t\t \n\t\t \n\t\t \n\t\t\n\t\t \n\t\t \n\t}", "@Test public void Month_name_1__day__year__guess()\t\t\t\t{tst_date_(\"02 Mar 01\"\t\t\t\t, \"2001-03-02\");}" ]
[ "0.65794295", "0.63407385", "0.63380975", "0.63357323", "0.6329881", "0.6298115", "0.62552446", "0.6218262", "0.6185036", "0.61200154", "0.61081105", "0.60725474", "0.6004311", "0.59967256", "0.5989643", "0.59820604", "0.5915715", "0.5871773", "0.5839787", "0.58302194", "0.58241796", "0.5818705", "0.5795799", "0.5782297", "0.57789356", "0.57618344", "0.57618344", "0.5756867", "0.5750501", "0.5748892", "0.57431316", "0.5705911", "0.5705412", "0.57052535", "0.56994855", "0.5695195", "0.5681596", "0.5670361", "0.56608903", "0.56334245", "0.5630241", "0.56287044", "0.5626445", "0.56219345", "0.5618525", "0.5618297", "0.5616091", "0.5616064", "0.5595617", "0.5565477", "0.556273", "0.556137", "0.5554799", "0.5554705", "0.5516985", "0.5516082", "0.55143875", "0.551345", "0.55117184", "0.55035996", "0.5502843", "0.54963803", "0.5495043", "0.54943097", "0.5493012", "0.54904544", "0.5481798", "0.54676783", "0.54618406", "0.54558253", "0.5452985", "0.54525304", "0.5437545", "0.54304993", "0.542612", "0.54091436", "0.540724", "0.5407185", "0.54049605", "0.5402894", "0.53980553", "0.53958535", "0.53957736", "0.53954554", "0.5391031", "0.5373833", "0.5347892", "0.53448313", "0.533926", "0.533247", "0.53274244", "0.5321485", "0.5321061", "0.5317482", "0.53132033", "0.53008515", "0.52886325", "0.52875996", "0.5287499", "0.5282953" ]
0.66524124
0
Appliction Constructor to initialize all the instance variables the constuctor also handel the buttons and the listeners
public Appliction(int y,int m) { year=y;month=m; frame=new JFrame("Calender"); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.setSize(1000, 700); panel=new JPanel(); cmdChooseYear=new JButton("change year"); cmdChooseMonth=new JButton("change Month"); cmdPrint=new JButton("print"); cmdNext=new JButton("next>>"); cmdPrev=new JButton("<<prev"); this.cmdPrint.addActionListener(new PrintListner()); this.cmdChooseYear.addActionListener(new ChooseYearListner()); this.cmdChooseMonth.addActionListener(new ChooseMonthListner()); this.cmdNext.addActionListener(new NextListner()); this.cmdPrev.addActionListener(new PrevListner()); panel.add(cmdChooseYear); panel.add(cmdChooseMonth); panel.add(cmdPrint); panel.add(cmdNext); panel.add(cmdPrev); buildMonth(); frame.add(panel); panel.setLayout(null); String st; Font myFont= new Font("Courier", Font.BOLD,20); st=Integer.toString(year); lblyear=new JLabel(st); st=intToMonth(month); lblmonth=new JLabel(st); lblyear.setFont(new Font("David", Font.BOLD, 20)); lblmonth.setFont(new Font("David", Font.BOLD, 20)); panel.add(lblyear); panel.add(lblmonth); panel.add(lblmonth); lblyear.setBounds(frame.getWidth()/2-85,60,120,30); lblmonth.setBounds(frame.getWidth()/2+75,60,120,30); cmdChooseYear.setBounds(frame.getWidth()/2-200,20,120,30); cmdChooseMonth.setBounds(frame.getWidth()/2-70,20,120,30); cmdPrint.setBounds(frame.getWidth()/2+60,20,120,30); cmdPrev.setBounds(frame.getWidth()/2-330,20,120,30); cmdNext.setBounds(frame.getWidth()/2+190,20,120,30); frame.add(panel); frame.setVisible(true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public App() {\n\t\tContainer pane = getContentPane();\n\t\t\n\t\ttetapan = new JButton(\"Tetapan\");\n\t\tpane.add(tetapan);\n\t\ttetapan.setBounds(10, 20, 80, 30);\n\t\t// tetapan.addActionListener(arg0);\n\t\tcarian = new JTextField(\"Cari...\");\n\t\tpane.add(carian);\n\t\tcarian.setBounds(260, 20, 150, 30);\n\t\tcari = new JButton(\"Cari\");\n\t\tpane.add(cari);\n\t\tcari.setBounds(410, 20, 60, 30);\n\t\t// cari.addActionListener(arg0);\n\t}", "public GUI() {\n app = new Aplikasi();\n initComponents();\n }", "public GUICarsApp() {\n initComponents();\n \n aList = new ArrayList<Object>();\n }", "public App() {\n initComponents();\n }", "public App() {\n initComponents();\n }", "public Aplicacao5() {\n initComponents();\n }", "public ClientApp()\n\t{\n\t\tinitComponents();\n\t\tafterInitComponents();\n\t}", "public void init(){\n\t\t//Makes the view\n\t\tsetUpView();\n\n\t\t//Make the controller. Links the action listeners to the view\n\t\tnew Controller(this);\n\t\t\n\t\t//Initilize the array list\n\t\tgameInput = new ArrayList<Integer>();\n\t\tuserInput = new ArrayList<Integer>();\n\t\thighScore = new HighScoreArrayList();\n\t}", "public Client_app() {\n initComponents();\n }", "public MainApp() {\n initComponents();\n }", "public StockApp()\n {\n reader = new InputReader();\n manager = new StockManager();\n menuSetup();\n }", "private void initialize() {\r\n\r\n // add default buttons\r\n addButton(getToggleButton(),\"toggle\");\r\n addButton(getFinishButton(),\"finish\");\r\n addButton(getCancelButton(),\"cancel\");\r\n addActionListener(new ActionListener() {\r\n\r\n public void actionPerformed(ActionEvent e) {\r\n String cmd = e.getActionCommand();\r\n if(\"toggle\".equalsIgnoreCase(cmd)) change();\r\n else if(\"finish\".equalsIgnoreCase(cmd)) finish();\r\n else if(\"cancel\".equalsIgnoreCase(cmd)) cancel();\r\n }\r\n\r\n });\r\n\r\n }", "protected void init(){\n ac = new ButtonEventManager(this);\n \n nameField = new JTextField();\n \n done = new JButton(\"DONE\");\n back = new JButton(\"MAIN MENU\");\n quit = new JButton(\"QUIT\");\n \n done.setActionCommand(\"go to game menu after saving\");\n back.setActionCommand(\"go to the main menu\");\n quit.setActionCommand(\"quit the game\");\n \n Font font = new Font(\"Arial\", Font.PLAIN, 10);\n \n nameField.setFont(font);\n \n nameField.setBounds(2 * this.getWidth() / 3 - buttonWidth / 2, (int)(0.4 * this.getHeight() - textFieldHeight / 2), buttonWidth, textFieldHeight);\n \n done.setBounds((this.getWidth() / 2 - buttonWidth) / 2, (int)(0.7 * this.getHeight() - buttonHeight / 2), buttonWidth, buttonHeight);\n back.setBounds((this.getWidth() - buttonWidth) / 2, (int)(0.7 * this.getHeight() - buttonHeight / 2), buttonWidth, buttonHeight);\n quit.setBounds(3 * (this.getWidth() - buttonWidth) / 2, (int)(0.7 * this.getHeight() - buttonHeight / 2), buttonWidth, buttonHeight);\n \n done.addActionListener(ac);\n back.addActionListener(ac);\n quit.addActionListener(ac);\n \n add(nameField);\n \n add(done);\n add(back);\n add(quit);\n }", "private void init()\n {\n btnUser.setOnAction(buttonHandler);\n btnHome.setOnAction(event -> changeScene(\"store/fxml/home/home.fxml\"));\n btnCategories.setOnAction(event -> changeScene(\"store/fxml/category/categories.fxml\"));\n btnTopApps.setOnAction(buttonHandler);\n btnPurchased.setOnAction(buttonHandler);\n btnMenu.setOnAction(buttonHandler);\n btnSearch.setOnAction(buttonHandler);\n btnFeatured.setOnAction(buttonHandler);\n\n itmLogout = new MenuItem(\"Logout\");\n itmAddApp = new MenuItem(\"Add app\");\n itmUsers = new MenuItem(\"Manage users\");\n itmCategories = new MenuItem(\"Manage categories\");\n\n itmAddApp.setOnAction(itemHandler);\n itmLogout.setOnAction(itemHandler);\n itmUsers.setOnAction(itemHandler);\n itmCategories.setOnAction(itemHandler);\n\n if (user.getId() != null)\n {\n btnMenu.setVisible(true);\n if (user.getAdmin())\n btnMenu.getItems().addAll(itmAddApp, itmCategories, itmUsers, itmLogout);\n else\n btnMenu.getItems().add(itmLogout);\n\n ImageView imageView = new ImageView(user.getPicture());\n imageView.setFitHeight(25);\n imageView.setFitWidth(25);\n\n btnUser.setText(user.getUsername());\n }\n else\n btnMenu.setVisible(false);\n }", "@FXML private void initialize(){\n\n\t\t//Attach Event Handlers\n\t\tbtnLoadLog.setOnAction(new EventHandler<ActionEvent>(){\n\t\t\tpublic void handle(ActionEvent e){\n\t\t\t\tonLoadLogClicked();\n\t\t\t}\n\t\t});\n\n\t\tbtnClearLog.setOnAction(new EventHandler<ActionEvent>(){\n\t\t\tpublic void handle(ActionEvent e){\n\t\t\t\tonClearClicked();\n\t\t\t}\n\t\t});\n\n\t\tbtnSaveLog.setOnAction(new EventHandler<ActionEvent>(){\n\t\t\tpublic void handle(ActionEvent e){\n\t\t\t\tonSaveClicked();\n\t\t\t}\n\t\t});\n\n\t}", "public AplicationGUI() {\n initComponents();\n }", "public DiccionarioApp() {\n initComponents();\n dic = new Diccionario();\n }", "public LeagueChampionApp() {\r\n init();\r\n\r\n main = new JFrame(\"League Champion App\");\r\n main.setFont(new Font(\"Arial\", Font.PLAIN, 40));\r\n main.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);\r\n main.setPreferredSize(new Dimension(938, 950));\r\n main.setLocationRelativeTo(null); //centers in middle of screen\r\n main.getContentPane().setLayout(new BoxLayout(main.getContentPane(), BoxLayout.Y_AXIS));\r\n\r\n startUpMain();\r\n\r\n makeEarnButton();\r\n makePurchaseButton();\r\n makeAcquireButton();\r\n makeObtainButton();\r\n makeCheckBEButton();\r\n makeGetRPButton();\r\n makeReceiveButton();\r\n makeFavouriteButton();\r\n makePrintButton();\r\n makeSaveButton();\r\n makeLoadButton();\r\n\r\n main.pack();\r\n main.setVisible(true);\r\n }", "public Application() {\n\t\tinitComponents();\n\t\tthis.service = new PacienteService();\n\t\tthis.AtualizarTabelaPacientes();\n\t\tthis.sexo = this.rd_nao_informado.getText();\n\t\tthis.cb_estados.setSelectedIndex(24);\n\t}", "@FXML\r\n private void initialize() {\r\n addButton.setOnAction(new EventHandler<ActionEvent>() {\r\n @Override\r\n public void handle(ActionEvent event) {\r\n handleOk();\r\n }\r\n });\r\n\r\n cancelButton.setOnAction(new EventHandler<ActionEvent>() {\r\n @Override\r\n public void handle(ActionEvent event) {\r\n handleCancel();\r\n }\r\n });\r\n }", "public void init()\n\t\t{\n\t\t\t//Makes Lists\n\t\t\tmakeLists();\n\n\t\t\t//layout for GUI\n\t\t\tGridLayout layout = new GridLayout(2,4, 5 ,5);\n\t\t\tsetLayout(layout);\n\n\t\t\t//add panels to window\n\t\t\tadd(Panel_1);\n\t\t\tadd(Panel_2);\n\t\t\tadd(Panel_3);\n\t\t\tadd(Panel_4);\n\n\t\t\t//create buttons\n\t\t\tCalculateButton = new JButton(\"Calculate\");\n\t\t ExitButton = new JButton(\"Exit\");\n\n\t\t\t//connect event handlers to buttons\n\t\t CalculateButton.addActionListener(new ButtonListener());\n\t\t ExitButton.addActionListener(new ButtonListener());\n\n\t\t\t//add buttons to window\n\t\t add(CalculateButton);\n\t\t add(ExitButton);\n\n\t\t //make window visible\n\t\t\tsetVisible(true);\n\t\t}", "public AppColorido() {\n initComponents();\n }", "public Avontool() {\n initComponents();\n }", "public ProductMain() {\n initComponents();\n init();\n addEvent();\n \n }", "public AppoinmentPanel() {\n initComponents();\n }", "public MainFrame() {\n super(\"Gestione Concessionaria\");\n this.initComponents();\n this.generaFasciaPrezzo();\n this.pack();\n this.setLocationRelativeTo(null);\n this.initPanels();\n this.ToggleMenu.addActionListener(this);\n }", "public void init(){\n\t\tsetBackground(Color.green);\n\t\tmsg = \"Let's Play\";\n//\t\tmsg1 = \"Your Frinds Choice\";\n\t\tSystem.out.println(cpu);\n\t\tb1 = new Button(\"Stone\");\n\t\tb2 = new Button(\"Paper\");\n\t\tb3 = new Button(\"Seaser\");\n\t\tb1.addActionListener(this);\n\t\tb2.addActionListener(this);\n\t\tb3.addActionListener(this);\n\t\tadd(b1);\n\t\tadd(b2);\n\t\tadd(b3);\n\t}", "public MainGUI() {\n\t\tString xmlpath = \"classpath:applicationContext.xml\";\n\t\tApplicationContext applicationContext = new ClassPathXmlApplicationContext(xmlpath);\n\t\t\n\t\tcenter = (CenterController)applicationContext.getBean(\"CenterController\");\n\t\t\n\t\tinitialize();\n\t\t\n\t}", "public JFrameApp() {\n initComponents();\n }", "public Authentification() {\n initComponents();\n init_Panel();\n Admin_Button.addActionListener(new Admin_Action()); \n User_Button.addActionListener(new User_Action());\n Retour_Button.addActionListener(new Retour_Action() );\n Retour_Button.addActionListener(new Connexion_Action() );\n \n \n }", "public void init() {\n\t\t//Inits the WEST interactors\n\t\tstatusfield = new JTextField(TEXT_FIELD_SIZE);\n\t\tstatusbutton = new JButton(\"Change Status\");\n\t\tpicturefield = new JTextField(TEXT_FIELD_SIZE);\n\t\tpicturebutton = new JButton(\"Change Picture\");\n\t\tfriendfield = new JTextField(TEXT_FIELD_SIZE);\n\t\tfriendbutton = new JButton(\"Add Friend\");\n\t\t\n\t\tadd(statusfield, WEST);\n\t\tadd(statusbutton, WEST);\n\t\tadd(new JLabel(EMPTY_LABEL_TEXT), WEST);\n\t\tadd(picturefield, WEST);\n\t\tadd(picturebutton, WEST);\n\t\tadd(new JLabel(EMPTY_LABEL_TEXT), WEST);\n\t\tadd(friendfield, WEST);\n\t\tadd(friendbutton, WEST);\n\t\t\n\t\tstatusfield.addActionListener(this);\n\t\tfriendfield.addActionListener(this);\n\t\tpicturefield.addActionListener(this);\n\t\t\n\t\t//Inits the NORTH interactors\n\t\tJLabel namelabel = new JLabel(\"Name\");\n\t\tnamefield = new JTextField(TEXT_FIELD_SIZE);\n\t\tJButton add_button = new JButton(\"Add\");\n\t\tJButton delete_button = new JButton(\"Delete\");\n\t\tJButton lookup_button = new JButton(\"Lookup\");\n\t\t\n\t\tadd(namelabel, NORTH);\n\t\tadd(namefield, NORTH);\n\t\tadd(add_button, NORTH);\n\t\tadd(delete_button, NORTH);\n\t\tadd(lookup_button, NORTH);\n\t\t\n\t\taddActionListeners();\n\t\tcanvas = new FacePamphletCanvas();\n\t\tadd(canvas);\n }", "public Application()\r\n {\r\n pSlot = new ParkingSlot();\r\n cPark = new CarPark();\r\n }", "private void initActions() \n {\n // Quits the application\n this.quitAction = new AbstractAction (\"Quit\") \n {\n public static final long serialVersionUID = 2L;\n\n @Override\n public void actionPerformed (ActionEvent arg0) \n { \n System.exit(0);\n }\n };\n\n // Creates a new model\n this.newGameAction = new AbstractAction (\"New Game\") \n {\n public static final long serialVersionUID = 3L;\n\n @Override\n public void actionPerformed(ActionEvent arg0) \n {\n AsteroidsFrame.this.newGame ();\n }\n };\n }", "@FXML // This method is called by the FXMLLoader when initialization is complete\n\tvoid initialize() {\n\t\tassert btnOK != null : \"fx:id=\\\"btnOK\\\" was not injected: check your FXML file 'Layout1.fxml'.\";\n\t\tassert imgInsper != null : \"fx:id=\\\"imgInsper\\\" was not injected: check your FXML file 'Layout1.fxml'.\";\n\n\t\tfh = new FileHandler();\n\t\ttrigger = new Trigger();\n\t\ttgrHandler = new TriggerHandler();\n\n\t}", "public void init()\n {\n _appContext = SubAppContext.createOMM(System.out);\n _serviceName = CommandLine.variable(\"serviceName\");\n initGUI();\n }", "public mainpagee() {\n initComponents();\n }", "public Gui() { \n preInitComponents(); \n initComponents();\n postInitComponents(); \n setVisible(true);\n appInitialization();\n }", "public window() {\n initComponents();\n letras();\n ArduinoConnection();\n }", "public AlunoView() {\n initComponents();\n bus = new AlunoBus();\n }", "public MainView() {\n initComponents();\n \n }", "public MainActivity() {\n initComponents();\n conn = JavaConnect.ConnectDB();\n displayAllTable();\n\n }", "public ParkingApp() {\n runApp();\n }", "public AnaPencere() {\n initComponents();\n }", "public void init() {\t\n\t\tcolorMap = loadXKCDColors();\n\t\t\n\t\t/* Ensure we get a \"Graph\" message from the text box. */\n\t\tcolorInput.addActionListener(this);\n\t\tcolorInput.setActionCommand(\"Graph\");\n\t\tadd(colorInput, SOUTH);\n\t\t\n\t\tJButton graphButton = new JButton(\"Graph\");\n\t\tadd(graphButton, SOUTH);\n\t\t\n\t\tJButton clearButton = new JButton(\"Clear\");\n\t\tadd(clearButton, SOUTH);\n\t\t\n\t\taddActionListeners();\n\t}", "public MusicClientApp() {\n\n tlm = new TrackListModel(new RecordDto());\n rcm = new RecordComboBoxModel(new MusicCollectionDto());\n scm = new PlayerComboBoxModel(new ArrayList<>());\n sercm = new ServerComboBoxModel(new ArrayList<>());\n\n initComponents();\n\n EventQueue.invokeLater(new Runnable() {\n @Override\n public void run() {\n StartMusicClient smc = new StartMusicClient(MusicClientApp.this);\n new Thread(smc).start();\n }\n });\n }", "private void init() {\n initView();\n setListener();\n }", "private void initUI() {\n\t\tthis.horizontalLayout = new XdevHorizontalLayout();\n\t\tthis.gridLayout = new XdevGridLayout();\n\t\tthis.button = new XdevButton();\n\t\tthis.button2 = new XdevButton();\n\t\tthis.label = new XdevLabel();\n\n\t\tthis.button.setCaption(\"go to HashdemoView\");\n\t\tthis.button2.setCaption(\"go to CommonView\");\n\t\tthis.label.setValue(\"Go into code tab to view comments\");\n\n\t\tthis.gridLayout.setColumns(2);\n\t\tthis.gridLayout.setRows(2);\n\t\tthis.button.setWidth(200, Unit.PIXELS);\n\t\tthis.button.setHeight(-1, Unit.PIXELS);\n\t\tthis.gridLayout.addComponent(this.button, 0, 0);\n\t\tthis.button2.setWidth(200, Unit.PIXELS);\n\t\tthis.button2.setHeight(-1, Unit.PIXELS);\n\t\tthis.gridLayout.addComponent(this.button2, 1, 0);\n\t\tthis.label.setWidth(100, Unit.PERCENTAGE);\n\t\tthis.label.setHeight(-1, Unit.PIXELS);\n\t\tthis.gridLayout.addComponent(this.label, 0, 1, 1, 1);\n\t\tthis.gridLayout.setComponentAlignment(this.label, Alignment.TOP_CENTER);\n\t\tthis.gridLayout.setSizeUndefined();\n\t\tthis.horizontalLayout.addComponent(this.gridLayout);\n\t\tthis.horizontalLayout.setComponentAlignment(this.gridLayout, Alignment.MIDDLE_CENTER);\n\t\tthis.horizontalLayout.setExpandRatio(this.gridLayout, 10.0F);\n\t\tthis.horizontalLayout.setSizeFull();\n\t\tthis.setContent(this.horizontalLayout);\n\t\tthis.setSizeFull();\n\n\t\tthis.button.addClickListener(event -> this.button_buttonClick(event));\n\t\tthis.button2.addClickListener(event -> this.button2_buttonClick(event));\n\t}", "public MainFrame() {\n initComponents();\n\n mAlmondUI.addWindowWatcher(this);\n mAlmondUI.initoptions();\n\n initActions();\n init();\n\n if (IS_MAC) {\n initMac();\n }\n\n initMenus();\n mActionManager.setEnabledDocumentActions(false);\n }", "private void initialise() {\n\t\tok=(Button)findViewById(R.id.button1);\n clear=(Button)findViewById(R.id.bExit);\n symptoms=(EditText)findViewById(R.id.edAppointTime);\n other=(EditText)findViewById(R.id.edSecondName);\n headache = (CheckBox) findViewById(R.id.cbHeadache);\n stomach = (CheckBox) findViewById(R.id.cbStomach);\n fever = (CheckBox) findViewById(R.id.cbFever);\n diarrhoea = (CheckBox) findViewById(R.id.cbDiarrhoea);\n hiv = (CheckBox) findViewById(R.id.cbHiv);\n disability = (CheckBox) findViewById(R.id.cbDisability);\n\t}", "public MainFrame() {\n\t\tsuper(\"Contry Detail\");\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tsetPreferredSize(new Dimension(450, 300));\n\t\tsetResizable(false);\n\t\t\n\t\tinitComponents();\n\t\t\n\t\tcontroller = new Service(this);\n\t}", "private void initComponents() {\n\t\tbtn_pause =new JButton(\"暂停游戏\");\n\t\tbtn_continue =new JButton(\"继续游戏\");\n\t\tbtn_restart =new JButton(\"重新开始\");\n\t\tbtn_rank =new JButton(\"游戏排行\");\n\t\tbtn_admin =new JButton(\"后台管理\");\n\t\t\n\t\t\n\t\t//给按钮设置单击监听\n\t\tbtn_pause.addActionListener(this);\n\t\tbtn_continue.addActionListener(this);\n\t\tbtn_restart.addActionListener(this);\n\t\tbtn_rank.addActionListener(this);\n\t\tbtn_admin.addActionListener(this);\n\t}", "public AuctionApp() {\r\n runAuctionApp();\r\n }", "private void initialize() {\n\t\t@SuppressWarnings(\"unused\")\n\t\tKanaSyllabary kanaSyllabary = new KanaSyllabary();\n\n\t\t// initialize interface elements with click listeners\n\t\thiraganaLayout = (LinearLayout) findViewById(R.id.hiraganaLayout);\n\t\thiraganaLayout.setOnClickListener(this);\n\t\tkatakanaLayout = (LinearLayout) findViewById(R.id.katakanaLayout);\n\t\tkatakanaLayout.setOnClickListener(this);\n\t\tkanjiLayout = (LinearLayout) findViewById(R.id.kanjiLayout);\n\t\tkanjiLayout.setOnClickListener(this);\n\t}", "@Override\n public void simpleInitApp() {\n this.viewPort.setBackgroundColor(ColorRGBA.LightGray);\n im = new InteractionManager();\n setEdgeFilter();\n initEnemies();\n initCamera();\n initScene();\n initPlayer();\n initCrossHairs();\n }", "protected void init(){\n\t\n\t\tsetBounds(getControllerScreenPosition());\n\t\taddComponentListener(new ComponentListener(){\n\n\t\t\tpublic void componentResized(ComponentEvent arg0) {\n\t\t\t\t//AppLogger.debug2(arg0.toString());\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\tint w = arg0.getComponent().getWidth();\n\t\t\t\tint h = arg0.getComponent().getHeight();\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t \tProperties props = getAppSettings();\t\n\t\t\t \tprops.setProperty(PREFIX+DSC_WIN_W, String.valueOf(w));\n\t\t\t \tprops.setProperty(PREFIX+DSC_WIN_H, String.valueOf(h));\t \t\t\t\t\t\t\n\t\t\t}\n\n\t\t\tpublic void componentMoved(ComponentEvent arg0) {\n\t\t\t\t//AppLogger.debug2(arg0.toString());\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\tint x = arg0.getComponent().getX();\n\t\t\t\tint y = arg0.getComponent().getY();\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t \tProperties props = getAppSettings();\t\t\t\t \t\n\t\t\t \tprops.setProperty(PREFIX+DSC_WIN_X, String.valueOf(x));\n\t\t\t \tprops.setProperty(PREFIX+DSC_WIN_Y, String.valueOf(y));\t \t\t\n\t\t\t}\n\n\t\t\tpublic void componentShown(ComponentEvent arg0) {}\n\t\t\tpublic void componentHidden(ComponentEvent arg0) {}\n\t\t\t\n\t\t});\n\t\t\n\t\tthis.addWindowListener(new WindowAdapter(){\n\t\t\n\t\t\tpublic void windowClosing(WindowEvent evt){\n\t\t\t\tstoreAppSettings();\n\t\t\t}\n\t\t});\n\t\t\n\t}", "public App() {\n\n //Ação do botão ****\n btnHomensNegros.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n //Tenta abrir o gráfico passando para o método escolhaTipo(nomeArquivo, tituloGráfico)\n try {\n escolhaTipo(HOMENS_NEGROS_PAIS, \"Homicídios Homens Negros\");\n } catch (IOException ioException) {\n ioException.printStackTrace();\n //printa a Exceção\n }\n }\n });\n\n //Ação do botão ****\n btnHomensNaoNegros.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n //Tenta abrir o gráfico passando para o método escolhaTipo(nomeArquivo, tituloGráfico)\n try {\n escolhaTipo(HOMENS_NAO_NEGROS_PAIS, \"Homicídios Homens Não Negros\");\n } catch (IOException ioException) {\n ioException.printStackTrace();\n //printa a Exceção\n }\n }\n });\n\n //Ação do botão ****\n btnMulheresNaoNegras.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n //Tenta abrir o gráfico passando para o método escolhaTipo(nomeArquivo, tituloGráfico)\n try {\n escolhaTipo(MULHERES_NAO_NEGRAS_PAIS, \"Homicídios Mulheres Não Negras\");\n } catch (IOException ioException) {\n ioException.printStackTrace();\n //printa a Exceção\n }\n }\n });\n\n //Ação do botão ****\n btnHomicidiosMulheresNegrasButton.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n //Tenta abrir o gráfico passando para o método escolhaTipo(nomeArquivo, tituloGráfico)\n try {\n escolhaTipo(MULHERES_NEGRAS_PAIS, \"Homicídios Mulheres Negras\");\n } catch (IOException ioException) {\n ioException.printStackTrace();\n //printa a Exceção\n }\n }\n });\n\n //Ação do botão ****\n btnMulheresPais.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n //Tenta abrir o gráfico passando para o método escolhaTipo(nomeArquivo, tituloGráfico)\n try {\n escolhaTipo(MULHERES_PAIS, \"Homicídios Mulheres\");\n } catch (IOException ioException) {\n ioException.printStackTrace();\n //printa a Exceção\n }\n }\n });\n\n //Ação do botão ****\n btnHomicidiosNaoNegros.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n //Tenta abrir o gráfico passando para o método escolhaTipo(nomeArquivo, tituloGráfico)\n try {\n escolhaTipo(HOMICIDIOS_PESSOAS_NAO_NEGRAS, \"Homicídios Pessoas Não Negras\");\n } catch (IOException ioException) {\n ioException.printStackTrace();\n //printa a Exceção\n }\n }\n });\n\n //Ação do botão ****\n btnHomicidiosPessoasNegras.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n //Tenta abrir o gráfico passando para o método escolhaTipo(nomeArquivo, tituloGráfico)\n try {\n escolhaTipo(HOMICIDIOS_PESSOAS_NEGRAS, \"Homicídios Pessoas Negras\");\n\n } catch (IOException ioException) {\n ioException.printStackTrace();\n //printa a Exceção\n }\n }\n });\n\n //Ação do botão ****\n btnHomicidiosHomens.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n //Tenta abrir o gráfico passando para o método escolhaTipo(nomeArquivo, tituloGráfico)\n try {\n escolhaTipo(HOMICIDIOS_HOMENS, \"Homicídios de Homens\");\n } catch (IOException ioException) {\n ioException.printStackTrace();\n //printa a Exceção\n }\n }\n });\n\n //Acao do RadioButton\n rdnTotal.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n //Deixa o clicado marcado e desmarca o outro\n rdnMedia.setSelected(false);\n rdnTotal.setSelected(true);\n }\n });\n //Acao do RadioButton\n rdnMedia.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n //Deixa o clicado marcado e desmarca o outro\n rdnTotal.setSelected(false);\n rdnMedia.setSelected(true);\n }\n });\n //Ação do botão Sair do aplicativo\n btnSair.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n frame.dispose();\n btnSair.setBounds(12, 12, 30, 25);\n //setBounds arredondamento das bordas;\n }\n });\n }", "private void initialize() {\n\t\tthis.setSize(430, 280);\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setUndecorated(true);\n\t\tthis.setModal(true);\n\t\tthis.setBackground(new java.awt.Color(226,226,222));\n\t\tthis.setTitle(\"Datos del Invitado\");\n\t\tthis.addComponentListener(this);\n\t}", "private void initThings() {\n\t\tmyApp = (MyApp) getApplicationContext();\n\t\tnextIntent = new Intent(this, AnimActivity2.class);\n\t\t// nextIntent = new Intent(this, SelectEventActivity.class);\n\t\tnextIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK\n\t\t\t\t| Intent.FLAG_ACTIVITY_CLEAR_TASK);\n\t\tuserDAO = new UserDAO(this);\n\t\tdialog = new CreateDialog(this);\n\t\tprogressDialog = dialog.createProgressDialog(null, \"Logging In\", false,\n\t\t\t\tnull, false);\n\t\ttypeface = myApp.getTypefaceRegular();\n\n\t\t// <<<<<<< HEAD\n\t\t//\n\t\t// GsonBuilder builder = new GsonBuilder();\n\t\t// gson = builder.create();\n\t\t//\n\t\t// queue = Volley.newRequestQueue(this);\n\t\t// =======\n\t\t// >>>>>>> parent of 48afbfc... setup android again\n\t}", "private void initEvent() {\n\t\tmBtnPower.setOnClickListener(this);\n\t\tmBtnProfile.setOnClickListener(this);\n\t\tmBtnArea.setOnClickListener(this);\n\t\tmBtnSkipTime.setOnClickListener(this);\n\t\tmBtnFrequencyPoint.setOnClickListener(this);\n\t\tmBtnAlgorithm.setOnClickListener(this);\n\t}", "private void init()\n {\n // Add listeners to the view\n addEventListeners();\n addSelectionChangeListeners();\n\n // Add listeners to the model\n addBackgroundImageHandler();\n addFrameWidgetHandler();\n addWidgetShapeChangeHandler();\n\n project.addHandler(this,\n Project.DesignChange.class,\n new AlertHandler()\n {\n\n public void handleAlert(EventObject alert)\n {\n Project.DesignChange chg =\n (Project.DesignChange) alert;\n\n if ((! chg.isAdd) &&\n (chg.element == design))\n {\n closeOpenController();\n }\n }\n });\n\n design.addHandler(this,\n Design.FrameChange.class,\n new AlertHandler()\n {\n\n public void handleAlert(EventObject alert)\n {\n Design.FrameChange chg =\n (Design.FrameChange) alert;\n\n if ((! chg.isAdd) &&\n (chg.element == frame))\n {\n closeOpenController();\n }\n }\n });\n\n design.addHandler(this,\n Design.DeviceTypeChange.class,\n new AlertHandler()\n {\n\n public void handleAlert(EventObject alert)\n {\n Set<DeviceType> dts =\n design.getDeviceTypes();\n int deviceTypes =\n DeviceType.buildDeviceSet(dts);\n\n view.resetDeviceTypes(deviceTypes);\n }\n });\n\n // Add listeners to rename events on project and design\n frame.addHandler(this, NameChangeAlert.class, renameHandler);\n design.addHandler(this,\n NameChangeAlert.class,\n renameHandler);\n\n // Some items should always be enabled.\n // Should be the last call in the constructor\n setInitiallyEnabled(true);\n }", "void init(){\n\n //to do associations\n mButtonBottomLeftCorner = findViewById(R.id.idButtonBottomLeftCorner);\n mButtonBottomRightCorner = findViewById(R.id.idButtonBottomRightCorner);\n mButtonTopLeftCorner = findViewById(R.id.idButtonTopLeftCorner);\n mButtonTopRightCorner = findViewById(R.id.idButtonTopRightCorner);\n\n //to set behavior\n\n mButtonBottomLeftCorner.setOnClickListener(this);\n mButtonBottomRightCorner.setOnClickListener(this);\n mButtonTopLeftCorner.setOnClickListener(this);\n mButtonTopRightCorner.setOnClickListener(this);\n\n }", "public Mainwindow(){\n \n try \n {\n //LookAndFeel asd = new SyntheticaAluOxideLookAndFeel();\n //UIManager.setLookAndFeel(asd);\n } \n catch (Exception e) \n {\n e.printStackTrace();\n }\n initComponents();\n \n \n userinitComponents();\n \n \n }", "void inicializaComponentes(){\r\n\t\t\r\n\t\t//Botão com status\r\n\t\ttgbGeral = (ToggleButton) findViewById(R.id.tgbGeral);\r\n\t\ttgbGeral.setOnClickListener(this);\r\n\t\ttgbMovimento = (ToggleButton) findViewById(R.id.tgbMovimento);\r\n\t\ttgbMovimento.setOnClickListener(this);\r\n\t\ttgbfogo = (ToggleButton) findViewById(R.id.tgbFogo);\r\n\t\ttgbfogo.setOnClickListener(this);\r\n\r\n\t\t//botão\r\n\t\tbtnTemperatura = (Button) findViewById(R.id.btnTemperatura);\r\n\t\tbtnTemperatura.setOnClickListener(this);\r\n\t\t\r\n\t\t//label\r\n\t\ttxtLegenda = (TextView) findViewById(R.id.txtSensorLegenda);\r\n\t}", "public ChatbotAppController()\n\t{\n\t\tapplicationView = new ChatbotView(this);\n\t\tbaseFrame = new ChatbotFrame(this);\n\t\tmySillyChatbot = new Chatbot(\"Derf\");\n\t\tstartMessage = \"Welcome to the \" + mySillyChatbot.getName() + \" chatbot. What is your name?\";\n\t\tquitMessage = \"goodbye cruel user :(\";\n\t\tcontentMessages = \"That's really cool I love riding motorcycles too!\";\n\t}", "@FXML\n\tprivate void initialize() {\n\n\t\thelp.setOnAction(new EventHandler<ActionEvent>() {\n\n\t\t\t@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tlogger.info(\"click rootstage's help button\");\n\t\t\t\tshowRootDocumentScreen(ID_HELP);\n\t\t\t}\n\t\t});\n\t\tcomparator.setOnAction(new EventHandler<ActionEvent>() {\n\n\t\t\t@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tlogger.info(\"click rootstage's comparator button\");\n\t\t\t\tshowRootDocumentScreen(ID_COMPARATOR);\n\t\t\t}\n\t\t});\n\t\tsetting.setOnAction(new EventHandler<ActionEvent>() {\n\n\t\t\t@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tlogger.info(\"click rootstage's setting button\");\n\t\t\t\tshowRootDocumentScreen(ID_SETTING);\n\t\t\t}\n\t\t});\n\t\tsubmitButton.setOnAction(new EventHandler<ActionEvent>() {\n\n\t\t\t@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tlogger.info(\"click rootstage's submit button\");\n\n\t\t\t\tScreensContainer container = new ScreensContainer();\n\t\t\t\tcontainer.registerScreen(ID_SHOWPROBLEM, file_showproblem);\n\t\t\t\tcontainer.registerScreen(ID_SUBMITCODE, file_submitcode);\n\n\t\t\t\tStage dialogStage = new Stage();\n\t\t\t\tdialogStage.setTitle(\"在线提交\");\n\t\t\t\tdialogStage.initModality(Modality.WINDOW_MODAL);\n\t\t\t\tdialogStage.initOwner(rootLayout.getScene().getWindow());\n\n\t\t\t\tScene scene = new Scene(container);\n\t\t\t\tdialogStage.setScene(scene);\n\t\t\t\tcontainer.setScreen(ID_SHOWPROBLEM);\n\n\t\t\t\tdialogStage.showAndWait();\n\n\t\t\t}\n\t\t});\n\t\ttabPane.setTabClosingPolicy(TabPane.TabClosingPolicy.SELECTED_TAB);\n\t}", "public Main() {\n\t\tsuper();\n\t\tInitScreen screen = new InitScreen();\n\t\tpushScreen(screen);\n\t\tUiApplication.getUiApplication().repaint();\n\t}", "public App() {\n\t\tLog.d(\"App\", \"App created\");\n\t\tinstance = this;\n\t}", "public GUIController() {\n\n }", "@Override\r\n public void initialize(URL url, ResourceBundle rb) {\r\n // TODO \r\n instance = this;\r\n\r\n colNombre.setCellValueFactory(new PropertyValueFactory<>(\"nombre\")); \r\n colTelefono.setCellValueFactory(new PropertyValueFactory<>(\"telefono\"));\r\n colSaldo.setCellValueFactory(new PropertyValueFactory<>(\"saldo\"));\r\n colObservacion.setCellValueFactory(new PropertyValueFactory<>(\"observacion\"));\r\n\r\n btnAdd.setOnAction(e -> this.add());\r\n btnEdit.setOnAction(e -> this.edit());\r\n btnMenu.setOnAction(e -> MainApp.showMe(102));\r\n\r\n InitService();\r\n loadDataCliente();\r\n }", "public Window()\n {\n // sets title\n super(\"Awesome Calculator\");\n\n // generated design code\n initComponents();\n\n conversions.addListSelectionListener(this);\n\n // sets up the map\n buttons = new JButton[]{\n zero, one, two, three, four,\n five, six, seven, eight, nine\n };\n\n // stores the initial button color\n init = zero.getBackground();\n\n // center frame on screen\n setLocationRelativeTo(null);\n\n // don't have to worry about component focus\n KeyboardFocusManager.getCurrentKeyboardFocusManager()\n .addKeyEventDispatcher(new KeyEventDispatcher()\n {\n @Override\n public boolean dispatchKeyEvent(KeyEvent event)\n {\n if (event.getID() == KeyEvent.KEY_PRESSED)\n {\n keyPressed(event);\n }\n\n return false;\n }\n }\n );\n }", "@FXML\n\tprivate void initialize() {\n\n\t\t\n\n\t\tchooseLangCombo.getItems().setAll(\"English\", \"Vietnamese\");\n\t\tchooseLangCombo.setValue(\"English\");\n\t\t;\n\n\t\tspeechCalculator.setInfoArea(infoArea);\n\n\t\t// start\n\t\tstart.setOnAction(a -> {\n\t\t\tSystem.out.println(\"choose:\" + chooseLangCombo.getSelectionModel().getSelectedItem());\n\t\t\tspeechCalculator.setChooseLang(chooseLangCombo.getSelectionModel().getSelectedItem());\n\t\t\tstatusLabel.setText(\"Status : [Running]\");\n\t\t\tinfoArea.appendText(\"Starting Speech Recognizer\\n\");\n\t\t\tspeechCalculator.startSpeechThread();\n\t\t});\n\n\t\t// stop\n\t\tstop.setOnAction(a -> {\n\t\t\tstatusLabel.setText(\"Status : [Stopped]\");\n\t\t\tinfoArea.appendText(\"Stopping Speech Recognizer\\n\");\n\t\t\tspeechCalculator.stopSpeechThread();\n\t\t\tchooseLangCombo.setValue(\"English\");\n\t\t\t;\n\t\t});\n\n\t\t// restart\n\t\trestart.setDisable(true);\n\n\t\treportBtn.setOnAction((ActionEvent event) -> {\n System.out.println(\"report button\");\n infoArea.appendText(\"You've just export report to excel. Please check file path:\" + ReportResult.REPORT_FILE_PATH + \"\\n\");\n ReportResult.createExcelFile();\n });\n\t\tcreateRadioGroup();\n\t}", "private void initializeButtons() {\n confirmChange.setOnAction((ActionEvent e) -> {\n if (seatNum != null) {\n //If alert box returns true: update the database with changes\n SceneController.AlertBox.draw(\"Confirm Change\", \"Accept booking changes?\");\n if (SceneController.AlertBox.answer) {\n updateEmployeeSeating();\n goLandingPage();\n }\n } else {\n noBookingsLabel.setText(\"You need to select a seat first.\");\n noBookingsLabel.setVisible(true);\n }\n });\n\n deleteBooking.setOnAction((ActionEvent e) -> {\n //If alert box returns true: delete the entry from the database\n SceneController.AlertBox.draw(\"Delete Booking\", \"Really delete booking?\");\n if (SceneController.AlertBox.answer) {\n deleteEmployeeBooking();\n goLandingPage();\n }\n });\n\n returnHome.setOnAction((ActionEvent e) -> goLandingPage());\n }", "public Analizer() {\n initComponents();\n }", "@SuppressWarnings(\"UnusedParameters\")\n private void initInstances(View rootView, Bundle savedInstanceState) {\n toolbar = (Toolbar)rootView.findViewById(R.id.toolbar);\n ((AppCompatActivity)getActivity()).setSupportActionBar(toolbar);\n // set up button\n setHasOptionsMenu(true);\n ((AppCompatActivity)getActivity()).getSupportActionBar().setHomeButtonEnabled(true);\n ((AppCompatActivity)getActivity()).getSupportActionBar().setDisplayHomeAsUpEnabled(true);\n ((AppCompatActivity)getActivity()).getSupportActionBar().setTitle(\"Chat\");\n\n btnCall = (ImageButton)rootView.findViewById(R.id.btnCall);\n btnCall.setOnClickListener(ImageButtonClick);\n }", "public crackerClicker() {\n initComponents();\n }", "public FlickrAppGUI() {\n\n initComponents();\n // Create the service flickr app\n flickrService = new FlickrImpl();\n // add the FlickrAppGUI to the Service to notify it \n // when an error response Http is occured \n flickrService.addObserver(this);\n // to avoid worst handling by the user\n validatedUrlButton.setEnabled(false);\n }", "public MainScreen() {\n initComponents();\n \n }", "public void init(){\n \n }", "public JavierGUI() {\r\n\t\tsuper();\r\n\t\tinitialize();\r\n\t\tthis.setJavier(getJavier());\r\n\t\tbtnHome.doClick();\r\n\t}", "public Gui() {\n initComponents();\n encrypter = new DesEncrypter();\n }", "public Home() {\n initComponents();\n \n }", "@Override\n public void initialize(URL url, ResourceBundle rb) {\n \n // TODO\n // lignecommandeService = new LigneCommandeService();\n \n \n nomfield.setText(FronteventController.obs.get(i).getNom());\n descriptionfield.setText(FronteventController.obs.get(i).getDescription());\n i++;\n // t = FronteventController.obs.get(i).getId_event();\n //e=FronteventController.obs.get(i);\n //S=FrontEventController.obsl.get(i).getNomEvnet();\n \n \n /*\n participer.setOnAction((event) -> {\n try {\n\n FXMLLoader loader = new FXMLLoader(getClass().getResource(\"ParticipVol.fxml\"));\n Parent root = loader.load();\n ParticipVolController rc = loader.getController();\n participer.getScene().setRoot(root);\n \n } catch (IOException ex) {\n System.out.println(ex.getMessage());\n\n }\n });\n*/\n \n \n // TODO\n }", "public Controller() {\n\t\t//Set the file to null as default\n\t\tprojectFile = null;\n\t\t\n\t\t//Set the action log\n\t\tactionLog = new ActionLog(this);\n\t\t\n\t\t//Set the selected instrument ID\n\t\tselectedInstrumentID = 0;\n\t\t\n\t\t//Set the gson reader/writer\n\t\tgson = new GsonBuilder()\n\t\t\t\t.setPrettyPrinting()\n\t\t\t\t.create();\n\t\t\n\t\t//Set the File Chooser\n\t\tfileChooser = new FileChooser();\n\t\t\n\t\tfileChooser.setTitle(\"Save Project\");\n\t\t\n\t\tfileChooser.getExtensionFilters().add(new ExtensionFilter(\"JSON\", \"*.json\"));\n\t\t\t\t\n\t\t//Set note frequencies\n\t\tnoteFrequencies = new double[]{-1.0, -1.0, -1.0, -1.0, -1.0, -1.0, -1.0, -1.0, -1.0, -1.0, -1.0, -1.0, -1.0, -1.0, -1.0, -1.0};\n\t\t\n\t\t//Set selected notes\n\t\tselectedNotes = new Button[] {null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null};\n\t}", "public IntroducereDisponibiltate() {\n initComponents();\n \n \n \n \n }", "public Home() {\n initComponents();\n ShowLauncher();\n }", "public ViewClass() {\n\t\tcreateGUI();\n\t\taddComponentsToFrame();\n\t\taddActionListeners();\n\t}", "public MainKredit() {\n initComponents();\n setLocationRelativeTo(null);\n setAwalTampilan();\n setTitle(\"APLIKASI PENGAJUAN KREDIT\");\n }", "private void initialization() {\n\t\tprogressbar = (ProgressBar) findViewById(R.id.progressBar1);\n\t\tprogressbar.getIndeterminateDrawable().setColorFilter(0xFFFFC107,\n\t\t\t\tandroid.graphics.PorterDuff.Mode.MULTIPLY);\n\t\ttheBrow = (WebView) findViewById(R.id.clickBrower);\n\t\trel = (RelativeLayout) findViewById(R.id.reL);\n\t\tbringBack = (Button) findViewById(R.id.bBack);\n\t\tbringForward = (Button) findViewById(R.id.bForward);\n\t\tbRefresh = (Button) findViewById(R.id.brefresh);\n\t\tinputText = (EditText) findViewById(R.id.editUrl);\n\t\tbingo = (Button) findViewById(R.id.bGo);\n\t}", "public MainWindow() {\n this.controlador = new MainControler(this);\n initComponents();\n }", "public MainView() {\n initComponents();\n addWindowListener(new AreYouSure());\n }", "private void init() {\n message = (ListView) findViewById(R.id.message);\n sure = (Button) findViewById(R.id.sure);\n cancel = (Button) findViewById(R.id.cancel);\n cancel.setOnClickListener(this);\n sure.setOnClickListener(this);\n // title.setText(\"提示\");\n }", "public GuiMain02() {\r\n\t\tinitialize();\r\n\t}", "private void initialize() {\r\n\t\tsetLabels();\r\n\t\tinitPoints();\r\n\t\tsetButtons();\r\n\t\tthis.setTitle(\"Digite os pesos dos pontos\");\r\n\t\tthis.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);\r\n\t}", "public UI() {\n initComponents();\n }", "public Ajuda() {\n initComponents();\n }", "@Override\n public void initialize(URL url, ResourceBundle rb) {\n btnStart.setOnAction((event) -> {\n\thandleBtnStart(event);\n });\n btnStop.setOnAction((event) -> {\n\thandleBtnStop(event);\n });\n }", "private void init() {\n setBackground(LIGHT_GRAY);\n Box layout = new Box(BoxLayout.Y_AXIS);\n\n jump = createButton(\"Jump\", null);\n exit = createButton(\"Exit!\", null);\n fly = createButton(\"Fly\", null);\n Jfloat = createButton(\"Float\", null);\n layout.add(Box.createRigidArea(new Dimension(0, 150)));\n layout.add(jump);\n layout.add(Box.createRigidArea(new Dimension(0, 25)));\n layout.add(Jfloat);\n layout.add(Box.createRigidArea(new Dimension(0, 25)));\n layout.add(fly);\n layout.add(Box.createRigidArea(new Dimension(0, 25)));\n layout.add(exit);\n add(layout);\n }", "public CommunicationController() {\r\n _context = new Context(\"MyContext\");\r\n _app = UiApplication.getUiApplication();\r\n try {\r\n // Read settings from config.xml\r\n ECHO_SERVER_URI = Utils.getEchoServerUri();\r\n TIMEOUT = Utils.getTimeout();\r\n } catch (final Exception e) {\r\n alertDialog(e.toString());\r\n }\r\n }", "public InscricaoView() {\n initComponents();\n\n controller.carregarInscricoes();\n controller.carregarOficinas();\n controller.carregarPessoas();\n\n doBindings();\n firstButton.doClick();\n }", "public Ablak() {\n initComponents();\n }", "public void startUp() {\n\t\t/* Language of App */\n\t\t\n\t\t/* Init Icons */\n\t\tPaintShop.initIcons(display);\n\t\t/* Init all components */\n\t\tinitComponents();\n\t\t\n\t\t\n\t}" ]
[ "0.7566183", "0.726741", "0.708662", "0.7068794", "0.7068794", "0.70388484", "0.7024178", "0.70213544", "0.7015959", "0.69545424", "0.69540596", "0.6885812", "0.68567514", "0.68405825", "0.6808263", "0.67625594", "0.6744217", "0.6740151", "0.6721181", "0.67150533", "0.66376114", "0.6634537", "0.6632715", "0.66305184", "0.66304517", "0.6628745", "0.66259044", "0.6604279", "0.65912837", "0.6565196", "0.6559297", "0.65546346", "0.65446675", "0.6533165", "0.6531359", "0.65066093", "0.64985365", "0.64947474", "0.6494374", "0.64930737", "0.6491581", "0.64914834", "0.6490093", "0.64887124", "0.6488555", "0.6488532", "0.64837074", "0.6480685", "0.64727885", "0.64662313", "0.64642906", "0.6456579", "0.6455758", "0.6450234", "0.6448825", "0.6441601", "0.64391327", "0.6436991", "0.64359254", "0.64349586", "0.64310956", "0.6430948", "0.64240235", "0.6423982", "0.64224654", "0.6419008", "0.6416245", "0.64138275", "0.64125496", "0.6399851", "0.6395579", "0.63821507", "0.6381946", "0.63788134", "0.6377476", "0.63769114", "0.6372384", "0.63716394", "0.6371374", "0.6366698", "0.6364077", "0.63631904", "0.6360916", "0.63605225", "0.6354755", "0.63518155", "0.63486034", "0.6343441", "0.6340622", "0.6339872", "0.6336113", "0.6335819", "0.6334689", "0.6328653", "0.63215363", "0.6321068", "0.63178277", "0.63105494", "0.6309343", "0.630318", "0.63030994" ]
0.0
-1
Method intToMonth convert an to a month as a String
public String intToMonth(int a) { if(a==1)return "Januray"; else if(a==2)return "February"; else if(a==3)return "March"; else if(a==4)return "April"; else if(a==5)return "May"; else if(a==6)return "June"; else if(a==7)return "July"; else if(a==8)return "August"; else if(a==9)return "September"; else if(a==10)return "October"; else if(a==11)return "November"; else if(a==12)return "December"; else return ""; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String numToMonth(int m)\n {\n return monthsArray[m-1];\n }", "public String monthConvert(int month) {\n\t\t\tif (month == 1) return \"Jan\";\r\n\t\t\telse if (month == 2) return \"Feb\";\r\n\t\t\telse if (month == 3) return \"Mar\";\r\n\t\t\telse if (month == 4) return \"Apr\";\r\n\t\t\telse if (month == 5) return \"May\";\r\n\t\t\telse if (month == 6) return \"Jun\";\r\n\t\t\telse if (month == 7) return \"Jul\";\r\n\t\t\telse if (month == 8) return \"Aug\";\r\n\t\t\telse if (month == 9) return \"Sep\";\r\n\t\t\telse if (month == 10) return \"Oct\";\r\n\t\t\telse if (month == 11) return \"Nov\";\r\n\t\t\telse return \"Dec\";\r\n\t\t}", "private String getMonth(int i) {\n String month = \"\";\n switch (i) {\n case 0:\n month = \"Jan\";\n break;\n case 1:\n month = \"Feb\";\n break;\n case 2:\n month = \"Mar\";\n break;\n case 3:\n month = \"Apr\";\n break;\n case 4:\n month = \"May\";\n break;\n case 5:\n month = \"Jun\";\n break;\n case 6:\n month = \"Jul\";\n break;\n case 7:\n month = \"Aug\";\n break;\n case 8:\n month = \"Sep\";\n break;\n case 9:\n month = \"Oct\";\n break;\n case 10:\n month = \"Nov\";\n break;\n case 11:\n month = \"Dec\";\n break;\n }\n return month;\n }", "private String getMonthForInt(int number) {\n int num = number - 1;\n String month = \"Wrong number\";\n String[] months = dfs.getMonths();\n if (num >= 0 && num <= 11) {\n month = months[num];\n } else {\n throw new IllegalArgumentException(\"There is no month with number: \" + number);\n }\n return month;\n }", "private String monthIntToString (int month){\n String mese = \"\";\n Log.d(TAG, \"valore di mese in monthIntToString: \" + month);\n switch (month){\n case 0:\n mese = \"Gennaio\";\n break;\n case 1:\n mese = \"Febbraio\";\n break;\n case 2:\n mese = \"Marzo\";\n break;\n case 3:\n mese = \"Aprile\";\n break;\n case 4:\n mese = \"Maggio\";\n break;\n case 5:\n mese = \"Giugno\";\n break;\n case 6:\n mese = \"Luglio\";\n break;\n case 7:\n mese = \"Agosto\";\n break;\n case 8:\n mese = \"Settembre\";\n break;\n case 9:\n mese = \"Ottobre\";\n break;\n case 10:\n mese = \"Novembre\";\n break;\n case 11:\n mese = \"Dicembre\";\n break;\n }\n Log.d(TAG, \"a fine metodo monthIntToString se mese è \" + month + \" allora siamo nel mese di: \" + mese);\n return mese;\n }", "public String convertMonthNameToNumAsString(String name) {\n\t\t String month = null;\n\t\t name = name.substring(0,3);\n\t\t if (name.equals(\"Jan\")) { month = \"01\"; }\n\t\t if (name.equals(\"Feb\")) { month = \"02\"; }\n\t\t if (name.equals(\"Mar\")) { month = \"03\"; }\n\t\t if (name.equals(\"Apr\")) { month = \"04\"; }\n\t\t if (name.equals(\"May\")) { month = \"05\"; }\n\t\t if (name.equals(\"Jun\")) { month = \"06\"; }\n\t\t if (name.equals(\"Jul\")) { month = \"07\"; }\n\t\t if (name.equals(\"Aug\")) { month = \"08\"; }\n\t\t if (name.equals(\"Sep\")) { month = \"09\"; }\n\t\t if (name.equals(\"Oct\")) { month = \"10\"; }\n\t\t if (name.equals(\"Nov\")) { month = \"11\"; }\n\t\t if (name.equals(\"Dec\")) { month = \"12\"; }\n\t\t \treturn month;\n\t\t\t}", "public String getMonth(int month) {\r\n\t\tString str = \"\";\r\n\t\tswitch (month) {\r\n\t\tcase 1:\r\n\t\t\tstr = \"January\";\r\n\t\t\tbreak;\r\n\t\tcase 2:\r\n\t\t\tstr = \"February\";\r\n\t\t\tbreak;\r\n\t\tcase 3:\r\n\t\t\tstr = \"March\";\r\n\t\t\tbreak;\r\n\t\tcase 4:\r\n\t\t\tstr = \"April\";\r\n\t\t\tbreak;\r\n\t\tcase 5:\r\n\t\t\tstr = \"May\";\r\n\t\t\tbreak;\r\n\t\tcase 6:\r\n\t\t\tstr = \"June\";\r\n\t\t\tbreak;\r\n\t\tcase 7:\r\n\t\t\tstr = \"July\";\r\n\t\t\tbreak;\r\n\t\tcase 8:\r\n\t\t\tstr = \"August\";\r\n\t\t\tbreak;\r\n\t\tcase 9:\r\n\t\t\tstr = \"September\";\r\n\t\t\tbreak;\r\n\t\tcase 10:\r\n\t\t\tstr = \"October\";\r\n\t\t\tbreak;\r\n\t\tcase 11:\r\n\t\t\tstr = \"November\";\r\n\t\t\tbreak;\r\n\t\tcase 12:\r\n\t\t\tstr = \"December\";\r\n\t\t}\r\n\t\treturn str;\r\n\t}", "public String convertMonthToDigit(String newMonth){\n switch(newMonth){\n case \"January\":\n newMonth = \"01\";\n break;\n case \"February\":\n newMonth = \"02\";\n break;\n case \"March\":\n newMonth = \"03\";\n break;\n case \"April\":\n newMonth = \"04\";\n break;\n case \"May\":\n newMonth = \"05\";\n break;\n case \"June\":\n newMonth = \"06\";\n break;\n case \"July\":\n newMonth = \"07\";\n break;\n case \"August\":\n newMonth = \"08\";\n break;\n case \"September\":\n newMonth = \"09\";\n break;\n case \"October\":\n newMonth = \"10\";\n break;\n case \"November\":\n newMonth = \"11\";\n break;\n case \"December\":\n newMonth = \"12\";\n break; \n default:\n break;\n }\n \n return newMonth;\n }", "public String convertMonthNumToName(int month) {\n\t\t\t\treturn new DateFormatSymbols().getMonths()[month-1];\n\t\t\t}", "public static String monthToString(int month){\r\n\r\n if(month == 1) {return \"jan\"}\r\n else if(month == 2) {return \"feb\"}\r\n else if(month == 3) {return \"mar\"}\r\n else if(month == 4) {return \"apl\"}\r\n else if(month == 5) {return \"may\"}\r\n else if(month == 6) {return \"jun\"}\r\n else if(month == 7) {return \"jul\"}\r\n else if(month == 8) {return \"aug\"}\r\n else if(month == 9) {return \"sep\"}\r\n else if(month == 10) {return \"oct\"}\r\n else if(month == 11) {return \"nov\"}\r\n else if (month == 12) {return \"dec\"}\r\n else {}\r\n return \"broken\";\r\n\r\n}", "public int getMonthInt(int monthint,String month){\n switch (month) {\n case \"JANUARY\": monthint = 1;\n break;\n case \"FEBUARY\": monthint = 2;\n break;\n case \"MARCH\": monthint = 3;\n break;\n case \"APRIL\": monthint = 4;\n break;\n case \"MAY\": monthint = 5;\n break;\n case \"JUNE\": monthint = 6;\n break;\n case \"JULY\": monthint = 7;\n break;\n case \"AUGUST\": monthint = 8;\n break;\n case \"SEPTEMBER\": monthint = 9;\n break;\n case \"OCTOBER\": monthint = 10;\n break;\n case \"NOVEMBER\": monthint = 11;\n break;\n case \"DECEMBER\": \n monthint = 12;\n break;\n// default: JOptionPane.showMessageDialog(null,\"Error\",\"INVALID INPUT\", JOptionPane.ERROR_MESSAGE);\n \n// break;\n }\n return monthint;\n }", "public int getMonthInteger() \n\t{\n\t\t// 1 will be added here to be able to use this func alone to construct e.g adate\n\t\t// to get the name of the month from getMonth(), 1 must be deducted.\n\t\treturn 1+m_calendar.get(Calendar.MONTH);\n\n\t}", "public String getMonth(int month) {\n\t\t\t\treturn new DateFormatSymbols().getMonths()[month];\n\t\t\t}", "public String getMonth(int Month)\n {\n String[] months = {\"January\", \"February\", \"March\", \"April\", \"May\", \"June\", \"July\", \"August\", \"September\", \"October\", \"November\", \"December\"};\n String realMonth = months[Month] + \" \" + i.getYear();\n return realMonth;\n }", "public String getMonth(int month) {\n\t\treturn new DateFormatSymbols().getMonths()[month-1];\n\t}", "public int getMonthInt() {\n return month;\r\n }", "private static int monthStringToInteger(String month){\r\n\r\n\t\tswitch (month){\r\n\t\t\tcase \"Jan\": return 1;\r\n\t\t\tcase \"Feb\": return 2;\r\n\t\t\tcase \"Mar\": return 3;\r\n\t\t\tcase \"Apr\": return 4;\r\n\t\t\tcase \"May\": return 5;\r\n\t\t\tcase \"Jun\": return 6;\r\n\t\t\tcase \"Jul\": return 7;\r\n\t\t\tcase \"Aug\": return 8;\r\n\t\t\tcase \"Sep\": return 9;\r\n\t\t\tcase \"Oct\": return 10;\r\n\t\t\tcase \"Nov\": return 11;\r\n\t\t\tcase \"Dec\": return 12; \r\n\t\t}\r\n\t\treturn 0;\r\n\t}", "public String asMonth() {\n \treturn new SimpleDateFormat(\"MM\").format(expiredAfter);\n }", "public int monthStringToNum (String month){\n int mese = 0;\n switch (month){\n case \"Gennaio\":\n mese = 0;\n break;\n case \"Febbraio\":\n mese = 1;\n break;\n case \"Marzo\":\n mese = 2;\n break;\n case \"Aprile\":\n mese = 3;\n break;\n case \"Maggio\":\n mese = 4;\n break;\n case \"Giugno\":\n mese = 5;\n break;\n case \"Luglio\":\n mese = 6;\n break;\n case \"Agosto\":\n mese = 7;\n break;\n case \"Settembre\":\n mese = 8;\n break;\n case \"Ottobre\":\n mese = 9;\n break;\n case \"Novembre\":\n mese = 10;\n break;\n case \"Dicembre\":\n mese = 11;\n break;\n }\n return mese;\n }", "public static String getCalendarMonthString(int month)\r\n\t{\r\n\t\tString[] arrMonths = {\"Jan\",\"Feb\",\"Mar\",\"Apr\",\"May\",\"Jun\",\"Jul\",\"Aug\",\"Sep\",\"Oct\",\"Nov\",\"Dec\"};\r\n\t\treturn arrMonths[month];\r\n\t}", "public int getMonth() {\r\n return FormatUtils.uint8ToInt(mMonth);\r\n }", "public static String formatMonth(String time) {\n Date tempTime = DateUtils.parseStringToDateYYMMDD(time);\n DateFormat format = new SimpleDateFormat(MONTH);\n return format.format(tempTime);\n }", "public String getMonth(String x){\n\n if(x.contains(\"Apr\")){\n return \"April\";\n }\n else if(x.contains(\"Mar\")){\n return \"March\";\n }\n else if(x.contains(\"Jan\")){\n return \"January\";\n }\n else if(x.contains(\"Feb\")){\n return \"February\";\n }\n else if(x.contains(\"May\")){\n return \"May\";\n }\n else if(x.contains(\"Jun\")){\n return \"June\";\n }\n else if(x.contains(\"Jul\")){\n return \"July\";\n }\n else if(x.contains(\"Aug\")){\n return \"August\";\n }\n else if(x.contains(\"Sep\")){\n return \"September\";}\n else if(x.contains(\"Oct\")){\n return \"October\";}\n else if(x.contains(\"Nov\")){\n return \"November\";}\n else{\n return \"December\";}\n }", "public static String convertToMonthName(int calendarIndex, Context context) {\n if(calendarIndex == Calendar.JANUARY) {\n return context.getString(R.string.Jan);\n }\n if(calendarIndex == Calendar.FEBRUARY) {\n return context.getString(R.string.Feb);\n }\n if(calendarIndex == Calendar.MARCH) {\n return context.getString(R.string.Mar);\n }\n if(calendarIndex == Calendar.APRIL) {\n return context.getString(R.string.Apr);\n }\n if(calendarIndex == Calendar.MAY) {\n return context.getString(R.string.May);\n }\n if(calendarIndex == Calendar.JUNE) {\n return context.getString(R.string.Jun);\n }\n if(calendarIndex == Calendar.JULY) {\n return context.getString(R.string.Jul);\n }\n if(calendarIndex == Calendar.AUGUST) {\n return context.getString(R.string.Aug);\n }\n if(calendarIndex == Calendar.SEPTEMBER) {\n return context.getString(R.string.Sep);\n }\n if(calendarIndex == Calendar.OCTOBER) {\n return context.getString(R.string.Oct);\n }\n if(calendarIndex == Calendar.NOVEMBER) {\n return context.getString(R.string.Nov);\n }\n if(calendarIndex == Calendar.DECEMBER) {\n return context.getString(R.string.Dec);\n }\n return \"\";\n }", "@Test\n\tvoid teststringtoint(){\n\t\tCalendar cal=Calendar.getInstance();\n\t\tint m=cal.get(Calendar.MONTH);\n\t\tint d=cal.get(Calendar.DATE);\n\t\tSystem.out.println(\"m==\"+m+\" d==\"+d);\n\t}", "public String getMonthName(int month){\n\t\t\tString monthname;\n\t\t\tswitch(month){\n\t\t\t\tcase 1:\n\t\t\t\t\tmonthname = \"Enero\";\n\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\t\tmonthname = \"Febrero\";\n\t\t\t\tbreak;\n\t\t\t\tcase 3:\n\t\t\t\t\tmonthname = \"Marzo\";\n\t\t\t\tbreak;\n\t\t\t\tcase 4:\n\t\t\t\t\tmonthname = \"Abril\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase 5:\n\t\t\t\t\tmonthname = \"Mayo\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase 6:\n\t\t\t\t\tmonthname = \"Junio\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase 7:\n\t\t\t\t\tmonthname = \"Julio\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase 8:\n\t\t\t\t\tmonthname = \"Agosto\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase 9:\n\t\t\t\t\tmonthname = \"Septiembre\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase 10:\n\t\t\t\t\tmonthname = \"Octubre\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase 11:\n\t\t\t\t\tmonthname = \"Noviembre\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase 12:\n\t\t\t\t\tmonthname = \"Diciembre\";\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tdefault:\n\t\t\t\t\tmonthname = \"No existe ese mes\";\n\t\t\t}\n\t\t\t\treturn monthname;\n\t\t}", "public String convertCalendarMillisecondsAsLongToMonthNumAsString(long fingerprint) {\n\t\t\t\tDateFormat format = new SimpleDateFormat(\"MM\"); // not \"yyyy-MM-dd HH:mm:ss\"\n\t\t\t\tDate date = new Date(fingerprint);\n\t\t\t\treturn format.format(date);\n\t\t\t}", "private int getCalendarMonth(String month){\n month = month.toUpperCase();\n if (month.indexOf(\"JAN\") == 0 ) {\n return Calendar.JANUARY;\n } else if (month.indexOf(\"FEB\") == 0) {\n return Calendar.FEBRUARY;\n } else if (month.indexOf(\"MAR\") == 0) {\n return Calendar.MARCH ;\n } else if (month.indexOf(\"APR\") == 0) {\n return Calendar.APRIL;\n } else if (month.indexOf(\"MAY\") == 0) {\n return Calendar.MAY;\n } else if (month.indexOf(\"JUN\") == 0) {\n return Calendar.JUNE;\n } else if (month.indexOf(\"JUL\") == 0) {\n return Calendar.JULY;\n } else if (month.indexOf(\"AUG\") == 0) {\n return Calendar.AUGUST;\n } else if (month.indexOf(\"SEP\") == 0) {\n return Calendar.SEPTEMBER;\n } else if (month.indexOf(\"OCT\") == 0) {\n return Calendar.OCTOBER;\n } else if (month.indexOf(\"NOV\") == 0) {\n return Calendar.NOVEMBER;\n } else if (month.indexOf(\"DEC\") == 0) {\n return Calendar.DECEMBER;\n } else {\n throw new IllegalArgumentException(\"month must be one of {JAN, \" +\n \"FEB, MAR, APR, MAY, JUN, JUL, AUG, SEP, OCT, NOV ,DEC)\");\n }\n }", "public static final String convertMonth(String monthSlashYear) {\r\n \tString[] monthYear = monthSlashYear.split(\"/\");\r\n \tString month = monthYear[0];\r\n \tString year = monthYear[1];\r\n \treturn getEnMonth(month) + \" \" + year;\r\n }", "public static String getFormatyyMMToMonth(String time, Integer amount) {\n StringBuffer sb = new StringBuffer(time);\n sb.append(\"-01\");\n Date tempTime = DateUtils.parseStringToDateYYMMDD(sb.toString());\n DateFormat format = new SimpleDateFormat(MONTH);\n Calendar calendar = Calendar.getInstance();\n calendar.setTime(tempTime);\n calendar.add(Calendar.MONTH, amount);\n return format.format(calendar.getTime());\n }", "public static String getMonth(int year, int month) {\n return getMonthTitle(year, month) + getMonthBody(year, month);\n }", "private void monthFormat() {\n\t\ttry {\n\t\t\tString currentMonth = monthFormat.format(new Date()); //Get current month\n\t\t\tstartDate = monthFormat.parse(currentMonth); //Parse to first of the month\n\t\t\tString[] splitCurrent = currentMonth.split(\"-\");\n\t\t\tint month = Integer.parseInt(splitCurrent[0]) + 1; //Increase the month\n\t\t\tif (month == 13) { //If moving to next year\n\t\t\t\tint year = Integer.parseInt(splitCurrent[1]) + 1;\n\t\t\t\tendDate = monthFormat.parse(\"01-\" + year);\n\t\t\t} else {\n\t\t\t\tendDate = monthFormat.parse(month + \"-\" + splitCurrent[1]);\n\t\t\t}\n\t\t\t//Create SQL times\n\t\t\tstartDateSQL = new java.sql.Date(startDate.getTime());\n\t\t\tendDateSQL = new java.sql.Date(endDate.getTime());\n\t\t\tmonthString = new SimpleDateFormat(\"MMMM\").format(startDate);\n\t\t} catch (ParseException e) {\n\t\t\t_.log(Level.SEVERE, GameMode.Sonic, \"Failed to parse dates. Monthly leaderboard disabled.\");\n\t\t}\n\t}", "public static String getMonthNameByNumber(int Month){\n\t\tString MonthName = \"\";\n\t\tif(Month == 1){\n\t\t\tMonthName = \"January\" ;\t\n\t\t}else if(Month == 2){\n\t\t\tMonthName = \"February\";\n\t\t}else if(Month == 3){\n\t\t\tMonthName = \"March\";\n\t\t}else if(Month == 4){\n\t\t\tMonthName = \"April\";\n\t\t}else if(Month == 5){\n\t\t\tMonthName = \"May\";\n\t\t}else if(Month == 6){\n\t\t\tMonthName = \"June\";\n\t\t}else if(Month == 7){\n\t\t\tMonthName = \"July\";\n\t\t}else if(Month == 8){\n\t\t\tMonthName = \"August\";\n\t\t}else if(Month == 9){\n\t\t\tMonthName = \"September\";\n\t\t}else if(Month == 10){\n\t\t\tMonthName = \"October\";\n\t\t}else if(Month == 11){\n\t\t\tMonthName = \"November\";\n\t\t}else if(Month == 12){\n\t\t\tMonthName = \"December\";\n\t\t}\n\t\treturn MonthName;\n\t}", "public int convertMonthNameToNumAsInt(String name) {\n\t\t int month = 0;\n\t\t name = name.substring(0,3);\n\t\t if (name.equals(\"Jan\")) { month = 1; }\n\t\t if (name.equals(\"Feb\")) { month = 2; }\n\t\t if (name.equals(\"Mar\")) { month = 3; }\n\t\t if (name.equals(\"Apr\")) { month = 4; }\n\t\t if (name.equals(\"May\")) { month = 5; }\n\t\t if (name.equals(\"Jun\")) { month = 6; }\n\t\t if (name.equals(\"Jul\")) { month = 7; }\n\t\t if (name.equals(\"Aug\")) { month = 8; }\n\t\t if (name.equals(\"Sep\")) { month = 9; }\n\t\t if (name.equals(\"Oct\")) { month = 10; }\n\t\t if (name.equals(\"Nov\")) { month = 11; }\n\t\t if (name.equals(\"Dec\")) { month = 12; }\n\t\t \treturn month;\n\t\t\t}", "private String getMonthName(int month)\n\t{\n\t\tswitch (month)\n\t\t{\n\t\tcase 1:\n\t\t\treturn \"January\";\n\t\tcase 2:\n\t\t\treturn \"February\";\n\t\tcase 3:\n\t\t\treturn \"March\";\n\t\tcase 4:\n\t\t\treturn \"April\";\n\t\tcase 5:\n\t\t\treturn \"May\";\n\t\tcase 6:\n\t\t\treturn \"June\";\n\t\tcase 7:\n\t\t\treturn \"July\";\n\t\tcase 8:\n\t\t\treturn \"August\";\n\t\tcase 9:\n\t\t\treturn \"September\";\n\t\tcase 10:\n\t\t\treturn \"October\";\n\t\tcase 11:\n\t\t\treturn \"November\";\n\t\tcase 12:\n\t\t\treturn \"December\";\n\t\t}\n\t\treturn \"MonthNameFail\";\n\t}", "public String getMonthName()\r\n {\r\n int mn = theMonthNumber;\r\n if (mn == 1)\r\n {return \"January\";}\r\n else if (mn == 2)\r\n {return \"February\";}\r\n else if (mn == 3)\r\n {return \"March\";}\r\n else if (mn == 4)\r\n {return \"April\";}\r\n else if (mn == 5)\r\n {return \"May\";}\r\n else if (mn == 6)\r\n {return \"June\";}\r\n else if (mn == 7)\r\n {return \"July\";}\r\n else if (mn == 8)\r\n {return \"August\";}\r\n else if (mn == 9)\r\n {return \"September\";}\r\n else if (mn == 10)\r\n {return \"October\";}\r\n else if (mn == 11)\r\n {return \"November\";}\r\n else\r\n {return \"December\";}\r\n }", "public static String getMonthName(Integer monthNo){\r\n return MONTHS[monthNo-1];\r\n }", "public String getMonth()\n {\n SimpleDateFormat newDateFormat = new SimpleDateFormat(\"dd/MM\");\n String MySDate = newDateFormat.format(this.dueDate);\n return MySDate;\n }", "public int getMonth(){\n\t\treturn month;\n\t}", "public String getMonth() {\r\n return month;\r\n }", "public int getMonth() {\n\t\treturn month;\n\t}", "public int getMonth() {\n return month;\n }", "public int getMonth()\n {\n return month;\n }", "public String getMonth()\n {\n return Month.get();\n }", "public String getJP_AcctMonth();", "public String checkDateMonth(Date aDate){\n if (aDate.getMonth() < 10) {\r\n String newDate = \"0\" + Integer.toString(aDate.getMonth()+1);\r\n \r\n return newDate;\r\n }\r\n return Integer.toString(aDate.getMonth());\r\n \r\n }", "public String getMonth() {\n return month;\n }", "@Test\n public void test_getMonth_by_short_string() throws AppException {\n assertEquals(getMonth(\"DEC\"),12);\n assertEquals(getMonth(\"feb\"),2);\n assertEquals(getMonth(\"SeP\"),9);\n assertEquals(getMonth(\"Jan\"),1);\n }", "public String getMonthName(int monthNumber) {\n String month = \"\";\n switch (monthNumber) {\n case 0:\n month = \"January\";\n break;\n case 1:\n month = \"February\";\n break;\n case 2:\n month = \"March\";\n break;\n case 3:\n month = \"April\";\n break;\n case 4:\n month = \"May\";\n break;\n case 5:\n month = \"June\";\n break;\n case 6:\n month = \"July\";\n break;\n case 7:\n month = \"August\";\n break;\n case 8:\n month = \"September\";\n break;\n case 9:\n month = \"October\";\n break;\n case 10:\n month = \"November\";\n break;\n case 11:\n month = \"December\";\n break;\n default:\n month = \"Invalid Month\";\n break;\n }\n return month;\n }", "public Integer getMonth() {\r\n return month;\r\n }", "private void parseMonthYearFromString(MonthYear my, String toParse) {\n String[] results = toParse.split(\" \");\n System.out.println(results[0]);\n System.out.println(results[1]);\n\n for(int i=0;i<MONTHS.length;i++) {\n if(results[0].equals(MONTHS[i])) {\n my.setMonth(i + 1);\n break;\n }\n }\n\n my.setYear(Integer.parseInt(results[1]));\n }", "public final native int getMonth() /*-{\n return this.getMonth();\n }-*/;", "protected static int getMonth(String dateTime) {\n return Integer.parseInt(dateTime.substring(3, 5)) - 1;\n }", "public String getMonthAlphabet(int month) {\n\t\treturn new DateFormatSymbols().getShortMonths()[month];\n\t}", "public int getMonth() {\n return this.month;\n }", "public int getMonth() {\n return this.month;\n }", "public int getMonth() {\n\t\treturn month;\n\t}", "public int getMonth() {\r\n\t\treturn (this.month);\r\n\t}", "public Integer getMonth() {\n return month;\n }", "public Integer getMonth() {\n return month;\n }", "public static String monthNameToNumber(String name) {\n\t\tMONTHS[] arrayOfMonths = MONTHS.values();\n\t\tint toReturn = -1;\n\t\tfor (int i = 0; i < arrayOfMonths.length; i++) {\n\t\t\tif (arrayOfMonths[i].name().equals(name)) {\n\t\t\t\ttoReturn = i + 1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tString temp = Integer.toString(toReturn);\n\t\tif (toReturn <= 9) {\n\t\t\ttemp = \"0\" + toReturn;\n\t\t}\n\t\treturn temp;\n\t}", "private java.sql.Date convertMonthIntToSQLDate (int monthInt) {\n Calendar calendar = Calendar.getInstance();\n String yearString = String.valueOf(calendar.getInstance().get(Calendar.YEAR));\n String MonthString = String.valueOf(monthInt);\n if (monthInt < 10) {\n MonthString = \"0\" + MonthString;\n }\n String firstDayOfMonthString = yearString + \"-\" + MonthString + \"-01\"; \n LocalDate date = LocalDate.parse(firstDayOfMonthString);\n java.sql.Date sqlDate = java.sql.Date.valueOf(date);\n return sqlDate; // First day of the month given in SQL firmat\n }", "private static int monthNum(String month) {\n switch (month) {\n case \"1\": case \"january\": return 1;\n case \"2\": case \"february\": return 2;\n case \"3\": case \"march\": return 3;\n case \"4\": case \"april\": return 4;\n case \"5\": case \"may\": return 5;\n case \"6\": case \"june\": return 6;\n case \"7\": case \"july\": return 7;\n case \"8\": case \"august\": return 8;\n case \"9\": case \"september\": return 9;\n case \"10\": case \"october\": return 10;\n case \"11\": case \"november\": return 11;\n case \"12\": case \"december\": return 12;\n }\n\n return 0; // default\n }", "public String convertCalendarMillisecondsAsLongToMonthNameShort(long fingerprint) {\n\t\t\t\tDateFormat format = new SimpleDateFormat(\"MMM\"); // not \"yyyy-MM-dd HH:mm:ss\"\n\t\t\t\tDate date = new Date(fingerprint);\n\t\t\t\treturn format.format(date);\n\t\t\t}", "public int intValue()\n {\n return this.month;\n }", "public int getMonth() {\r\n // ersetzt deprecated Methode Date.getMonth()\r\n return this.month;\r\n }", "public static String getTaskScheduleMonths(long taskScheduleMonts){\r\n\t\tString\ttaskScheduleMontsSt = \"\";\r\n\t\ttaskScheduleMontsSt = \"\";\r\n\t\tif(taskScheduleMonts == -1 || ((taskScheduleMonts & MONTH_OF_YEAR.EVERY_MONTH.getMont()) == MONTH_OF_YEAR.EVERY_MONTH.getMont())) taskScheduleMontsSt+=\" EVERY_MONTH\";\r\n\t\telse{\r\n\t\t\tif((taskScheduleMonts & MONTH_OF_YEAR.JANUARY.getMont()) != 0) taskScheduleMontsSt+=\" JANUARY\";\r\n\t\t if((taskScheduleMonts & MONTH_OF_YEAR.FEBRUARY.getMont()) != 0) taskScheduleMontsSt+=\" FEBRUARY\";\r\n\t\t\tif((taskScheduleMonts & MONTH_OF_YEAR.MARCH.getMont()) != 0) taskScheduleMontsSt+=\" MARCH\";\r\n\t\t\tif((taskScheduleMonts & MONTH_OF_YEAR.APRIL.getMont()) != 0) taskScheduleMontsSt+=\" APRIL\";\r\n\t\t\tif((taskScheduleMonts & MONTH_OF_YEAR.MAY.getMont()) != 0) taskScheduleMontsSt+=\" MAY\";\r\n\t\t\tif((taskScheduleMonts & MONTH_OF_YEAR.JUNE.getMont()) != 0) taskScheduleMontsSt+=\" JUNE\";\r\n\t\t\tif((taskScheduleMonts & MONTH_OF_YEAR.JULY.getMont()) != 0) taskScheduleMontsSt+=\" JULY\";\r\n\t\t\tif((taskScheduleMonts & MONTH_OF_YEAR.AUGUST.getMont()) != 0) taskScheduleMontsSt+=\" AUGUST\";\r\n\t\t\tif((taskScheduleMonts & MONTH_OF_YEAR.SEPTEMBER.getMont()) != 0) taskScheduleMontsSt+=\" SEPTEMBER\";\r\n\t\t\tif((taskScheduleMonts & MONTH_OF_YEAR.OCTOBER.getMont()) != 0) taskScheduleMontsSt+=\" OCTOBER\";\r\n\t\t\tif((taskScheduleMonts & MONTH_OF_YEAR.NOVEMBER.getMont()) != 0) taskScheduleMontsSt+=\" NOVEMBER\";\r\n\t\t\tif((taskScheduleMonts & MONTH_OF_YEAR.DECEMBER.getMont()) != 0) taskScheduleMontsSt+=\" DECEMBER\";\r\n\t\t}\r\n\t\treturn taskScheduleMontsSt;\r\n\t}", "public int getMonthValue(){\n\t\treturn monthValue;\n\t}", "public boolean isMonth(String input){\r\n if(!isInteger(input)) return false;\r\n int month = Integer.parseInt(input);\r\n if(12 < month) return false;\r\n return true;\r\n }", "public static void printMonthTitle(int year, int month) {\n\n }", "public static String formatFileNameMonth(String time) {\n Date tempTime = DateUtils.parseStringToDateYYMMDD(time);\n DateFormat format = new SimpleDateFormat(FILENAME_MONTH);\n return format.format(tempTime);\n }", "public String getMonth() {\n return month.getText();\n }", "public int getMonth() {\n\t\treturn date.getMonthValue();\n\t}", "private static String generateDateString(int year, int month, int dayOfMonth){\n //Add one to month b/c Android is zero-based while SimpleDateFormatter is not\n month++;\n String yearString = String.format(Locale.getDefault(), \"%04d\", year);\n String monthString = String.format(Locale.getDefault(), \"%02d\", month);\n String dayOfMonthString = String.format(Locale.getDefault(), \"%02d\", dayOfMonth);\n\n String result = yearString + \".\" + monthString + \".\" + dayOfMonthString;\n return result;\n }", "public byte getMonth() {\r\n return month;\r\n }", "public CopticMonth getMonth() {\n\n return CopticMonth.valueOf(this.cmonth);\n\n }", "public Month parseMonth(String str) {\n return this.months.get(str);\n }", "String getDayOfMonthSuffix(final int n) {\n if (n >= 11 && n <= 13) {\n return \"th\";\n }\n switch (n % 10) {\n case 1:\n return \"st\";\n case 2:\n return \"nd\";\n case 3:\n return \"rd\";\n default:\n return \"th\";\n }\n }", "public byte getMonth() {\n return month;\n }", "public byte getMonth() {\n return month;\n }", "public byte getMonth() {\n return month;\n }", "private String getMonth(Date date) {\n\t\tLocalDate localDate = date.toInstant().atZone(ZoneId.systemDefault()).toLocalDate();\n\n\t\tMonth month = localDate.getMonth();\n\n\t\treturn month.name();\n\t}", "public byte getMonth() {\n return month;\n }", "private int[] parseMonths(String str) {\n try {\n return enumerate(str, 1, 12);\n } catch (IllegalArgumentException e) {\n throw new IllegalArgumentException(\"Error parsing months: \" + e.getMessage());\n }\n }", "public final native double setMonth(int month) /*-{\n this.setMonth(month);\n return this.getTime();\n }-*/;", "public byte getMonth() {\n return month;\n }", "public void setMonth(Integer month) {\r\n this.month = month;\r\n }", "@Test\n public void test_getMonth_by_full_string() throws AppException {\n assertEquals(getMonth(\"January\"),1);\n assertEquals(getMonth(\"October\"),10);\n assertEquals(getMonth(\"SePtember\"),9);\n assertEquals(getMonth(\"february\"),2);\n }", "public static String getGMonth( String month ) {\r\n String ret = null;\r\n ret = \"January\".equals( month ) == true ? \"01\" : ret;\r\n ret = \"February\".equals( month ) == true ? \"02\" : ret;\r\n ret = \"March\".equals( month ) == true ? \"03\" : ret;\r\n ret = \"April\".equals( month ) == true ? \"04\" : ret;\r\n ret = \"May\".equals( month ) == true ? \"05\" : ret;\r\n ret = \"June\".equals( month ) == true ? \"06\" : ret;\r\n ret = \"July\".equals( month ) == true ? \"07\" : ret;\r\n ret = \"August\".equals( month ) == true ? \"08\" : ret;\r\n ret = \"September\".equals( month ) == true ? \"09\" : ret;\r\n ret = \"October\".equals( month ) == true ? \"10\" : ret;\r\n ret = \"November\".equals( month ) == true ? \"11\" : ret;\r\n ret = \"December\".equals( month ) == true ? \"12\" : ret;\r\n return ret;\r\n }", "public static String getMonth(String date) {\n Date dateDT = parseDate(date);\n\n if (dateDT == null) {\n return null;\n }\n\n // Get current date\n Calendar c = Calendar.getInstance();\n // it is very important to\n // set the date of\n // the calendar.\n c.setTime(dateDT);\n int day = c.get(Calendar.MONTH);\n\n String dayStr = null;\n\n switch (day) {\n\n case Calendar.JANUARY:\n dayStr = \"January\";\n break;\n\n case Calendar.FEBRUARY:\n dayStr = \"February\";\n break;\n\n case Calendar.MARCH:\n dayStr = \"March\";\n break;\n\n case Calendar.APRIL:\n dayStr = \"April\";\n break;\n\n case Calendar.MAY:\n dayStr = \"May\";\n break;\n\n case Calendar.JUNE:\n dayStr = \"June\";\n break;\n\n case Calendar.JULY:\n dayStr = \"July\";\n break;\n\n case Calendar.AUGUST:\n dayStr = \"August\";\n break;\n\n case Calendar.SEPTEMBER:\n dayStr = \"September\";\n break;\n\n case Calendar.OCTOBER:\n dayStr = \"October\";\n break;\n\n case Calendar.NOVEMBER:\n dayStr = \"November\";\n break;\n\n case Calendar.DECEMBER:\n dayStr = \"December\";\n break;\n }\n\n return dayStr;\n }", "int getExpMonth(String bookingRef);", "public static int getMonthNumber(String monthName) {\r\n switch (monthName) {\r\n case \"Januar\": return 1;\r\n case \"Februar\": return 2;\r\n case \"Mars\": return 3;\r\n case \"April\": return 4;\r\n case \"Mai\": return 5;\r\n case \"Juni\": return 6;\r\n case \"Juli\": return 7;\r\n case \"August\": return 8;\r\n case \"September\": return 9;\r\n case \"Oktober\": return 10;\r\n case \"November\": return 11;\r\n case \"Desember\": return 12;\r\n default: return 0;\r\n }\r\n }", "public int getDate(String month)\n\t{\n\t\tint a[] = {1,2,3};\n\t\t//17 Feb 2011 00:00:00\n\t\t\n\t\t\n\t\tHashMap<String, Integer> map = new HashMap<String, Integer>();\n\t\tmap.put(\"Jan\", 1);\n\t\tmap.put(\"Feb\", 2);\n\t\tmap.put(\"Mar\", 3);\n\t\tmap.put(\"Apr\", 4);\n\t\tmap.put(\"May\", 5);\n\t\tmap.put(\"Jun\", 6);\n\t\tmap.put(\"Jul\", 7);\n\t\tmap.put(\"Aug\", 8);\n\t\tmap.put(\"Sep\", 9);\n\t\tmap.put(\"Oct\", 10);\n\t\tmap.put(\"Nov\", 11);\n\t\tmap.put(\"Dec\", 12);\n\t\t\n\t\tint mon = (int) map.get(month);\n\t\treturn mon;\n\t}", "public static int getMonthFromString(String date) {\r\n\t\t\r\n\t\ttry {\r\n\t\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\", Locale.UK);\r\n\t\t\tDateTime dt = new DateTime((Date) sdf.parse(date));\r\n\t\t\treturn dt.getMonthOfYear();\r\n\t\t} catch (Exception e) {\r\n\t\t\treturn -1;\r\n\t\t}\t\r\n\t\t\r\n\t}", "public java.lang.String getMonth() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: gov.nist.javax.sip.header.SIPDate.getMonth():java.lang.String, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: gov.nist.javax.sip.header.SIPDate.getMonth():java.lang.String\");\n }", "public int getMonthDate()\n\t{\n\t\tif (m_nType == AT_MONTH_DATE)\n\t\t\treturn ((Integer)m_oData).intValue();\n\t\telse\n\t\t\treturn -1;\n\t}", "private static String getYearMonth() {\n LocalDate oneMonthAgo = LocalDate.now().minusMonths(1);\n return oneMonthAgo.getYear() + String.format(\"%02d\", oneMonthAgo.getMonth().getValue());\n }", "@Test\n\tpublic void parseDateTextFieldMonthTest() {\n\t\tassertEquals(01,\n\t\t\t\tInteger.parseInt(textFieldDate.getText().substring(5, 7)));\n\t}", "@Test\n public void Month() {\n System.out.printf(\"%d%n\", Month.FEBRUARY.maxLength());\n\n Month month = Month.AUGUST;\n Locale locale = Locale.getDefault();\n System.out.println(month.getDisplayName(TextStyle.FULL, locale));\n System.out.println(month.getDisplayName(TextStyle.NARROW, locale));\n System.out.println(month.getDisplayName(TextStyle.SHORT, locale));\n }", "public static String getMonthTitle(int year, int month) {\n String result = \"\";\n result += \" \" + getMonthName(month) + \" \" + year + \"\\n\";\n result += \"---------------------------------------------\" + \"\\n\";\n result += \" Sun Mon Tue Wed Thu Fri Sat\" + \"\\n\";\n return result;\n }" ]
[ "0.7729356", "0.7521924", "0.74424905", "0.73307717", "0.7190045", "0.7078463", "0.6952815", "0.6876545", "0.6828376", "0.68136233", "0.67788345", "0.67428553", "0.67325324", "0.6710722", "0.66863275", "0.664482", "0.6632225", "0.66292995", "0.6623255", "0.65485746", "0.65265685", "0.65265626", "0.6470071", "0.63742846", "0.6312606", "0.6302379", "0.6272195", "0.62659746", "0.6235903", "0.6232275", "0.618231", "0.6181561", "0.61805993", "0.61642206", "0.6156501", "0.61547434", "0.6087462", "0.60129386", "0.5971421", "0.5944849", "0.59389055", "0.5906072", "0.58949924", "0.588825", "0.5888187", "0.5887651", "0.5884516", "0.58328193", "0.5828501", "0.58228976", "0.5814742", "0.5795914", "0.5783969", "0.5778615", "0.57782626", "0.57782626", "0.57747793", "0.57445335", "0.57422996", "0.57422996", "0.57182866", "0.57053196", "0.5683935", "0.5661806", "0.56535083", "0.5632775", "0.5627665", "0.5613476", "0.56034845", "0.55972576", "0.55749834", "0.5569554", "0.55614007", "0.55521846", "0.5541216", "0.5538656", "0.55291176", "0.5524191", "0.5515796", "0.5515796", "0.5515796", "0.55156374", "0.5513978", "0.55086786", "0.55067694", "0.5500708", "0.5481426", "0.547379", "0.5471845", "0.5465467", "0.54594076", "0.54570866", "0.54518515", "0.5451458", "0.54471266", "0.5433632", "0.54162705", "0.5413065", "0.5411813", "0.54117835" ]
0.8342121
0
Method buildMonth bulding the wanted month on the frame. the method uses the instance varibles of the month and year and start to run the for loop and create buttons and the listeners, and after locate the buttons in the correct postion in the frame
public void buildMonth() { int i=0,k=0; date=LocalDate.of(year,month,1); String st; for(int j=0;date.getMonthValue()==month;j++) { if(date.getDayOfWeek().name()=="SUNDAY"){k=0;i++;} else if(date.getDayOfWeek().name()=="MONDAY"){k=1;} else if(date.getDayOfWeek().name()=="TUESDAY"){k=2;} else if(date.getDayOfWeek().name()=="WEDNESDAY"){k=3;} else if(date.getDayOfWeek().name()=="THURSDAY"){k=4;} else if(date.getDayOfWeek().name()=="FRIDAY"){k=5;} else if(date.getDayOfWeek().name()=="SATURDAY"){k=6;} st=String.valueOf(date.getDayOfMonth()); cmdDate=new JButton(st); cmdDate.setBounds(xpos+k*110,ypos+i*50,100,50); this.cmdDate.addActionListener(new DayListner()); panel.add(cmdDate); date = date.plusDays(1); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Appliction(int y,int m)\r\n {\r\n year=y;month=m;\r\n frame=new JFrame(\"Calender\");\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n frame.setSize(1000, 700);\r\n panel=new JPanel();\r\n cmdChooseYear=new JButton(\"change year\");\r\n cmdChooseMonth=new JButton(\"change Month\");\r\n cmdPrint=new JButton(\"print\");\r\n cmdNext=new JButton(\"next>>\");\r\n cmdPrev=new JButton(\"<<prev\");\r\n this.cmdPrint.addActionListener(new PrintListner());\r\n this.cmdChooseYear.addActionListener(new ChooseYearListner());\r\n this.cmdChooseMonth.addActionListener(new ChooseMonthListner());\r\n this.cmdNext.addActionListener(new NextListner());\r\n this.cmdPrev.addActionListener(new PrevListner());\r\n panel.add(cmdChooseYear);\r\n panel.add(cmdChooseMonth);\r\n panel.add(cmdPrint);\r\n panel.add(cmdNext);\r\n panel.add(cmdPrev);\r\n buildMonth();\r\n frame.add(panel);\r\n panel.setLayout(null);\r\n String st;\r\n Font myFont= new Font(\"Courier\", Font.BOLD,20);\r\n st=Integer.toString(year);\r\n lblyear=new JLabel(st);\r\n st=intToMonth(month);\r\n\r\n lblmonth=new JLabel(st);\r\n lblyear.setFont(new Font(\"David\", Font.BOLD, 20));\r\n lblmonth.setFont(new Font(\"David\", Font.BOLD, 20));\r\n panel.add(lblyear);\r\n panel.add(lblmonth);\r\n panel.add(lblmonth);\r\n lblyear.setBounds(frame.getWidth()/2-85,60,120,30);\r\n lblmonth.setBounds(frame.getWidth()/2+75,60,120,30);\r\n cmdChooseYear.setBounds(frame.getWidth()/2-200,20,120,30);\r\n cmdChooseMonth.setBounds(frame.getWidth()/2-70,20,120,30);\r\n cmdPrint.setBounds(frame.getWidth()/2+60,20,120,30);\r\n cmdPrev.setBounds(frame.getWidth()/2-330,20,120,30);\r\n cmdNext.setBounds(frame.getWidth()/2+190,20,120,30);\r\n frame.add(panel);\r\n frame.setVisible(true);\r\n }", "public void populateCalendar(YearMonth yearMonth) {\n LocalDate calendarDate = LocalDate.of(yearMonth.getYear(), yearMonth.getMonthValue(), 1);\n // Dial back the day until it is SUNDAY (unless the month starts on a sunday)\n while (!calendarDate.getDayOfWeek().toString().equals(\"MONDAY\")) {\n calendarDate = calendarDate.minusDays(1);\n }\n // Populate the calendar with day numbers\n for (AnchorPaneNode ap : allCalendarDays) {\n if (ap.getChildren().size() != 0) {\n ap.getChildren().remove(0);\n }\n LocalDate date = calendarDate;\n Text dayText = new Text(String.valueOf(date.getDayOfMonth()));\n ap.setDate(calendarDate);\n AnchorPane.setTopAnchor(dayText, 5.0);\n AnchorPane.setLeftAnchor(dayText, 5.0);\n ap.getChildren().add(dayText);\n MyNotes myNotes = Main.getRepository().getByDate(date);\n if (myNotes.getCountNotes() > 0) {\n Text notes = new Text(String.valueOf(myNotes.getCountNotes()));\n notes.setFill(Color.GREEN);\n AnchorPane.setTopAnchor(notes, 35.0);\n AnchorPane.setLeftAnchor(notes, 35.0);\n ap.getChildren().add(notes);\n }\n calendarDate = calendarDate.plusDays(1);\n }\n // Change the title of the calendar\n calendarTitle.setText(\" \" + Transcription.getMonth(yearMonth) + \" \" + yearMonth.getYear() + \" \");\n }", "private void makeDayButtons() \n\t{\n\t\t\n\t\tSystem.out.println(monthMaxDays);\n\t\tfor (int i = 1; i <= monthMaxDays; i++) \n\t\t{\n\t\t\t//the first day starts from 1\n\t\t\tfinal int dayNumber = i;\n\t\t\t\n\t\t\t//create new button\n\t\t\tJButton day = new JButton(Integer.toString(dayNumber));\n\t\t\tday.setBackground(Color.WHITE);\n\t\n\t\t\t//attach a listener\n\t\t\tday.addActionListener(new \n\t\t\t\t\tActionListener() \n\t\t\t\t\t{\n\t\t\t\t\t\tpublic void actionPerformed(ActionEvent arg0) \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t//if button is pressed, highlight it \n\t\t\t\t\t\t\tborderSelected(dayNumber -1);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//show the event items in the box on the right\n\t\t\t\t\t\t\twriteEvents(dayNumber);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tchangeDateLabel(dayNumber);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//make these buttons available for use\n\t\t\t\t\t\t\tnextDay.setEnabled(true);\n\t\t\t\t\t\t\tprevDay.setEnabled(true);\n\t\t\t\t\t\t\tcreateButton.setEnabled(true);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\n\t\t\t//add this button to the day button ArrayList\n\t\t\tbuttonArray.add(day);\n\t\t}\n\t}", "private MonthlyCalendar(YearMonth targetMonth) {\n stageChangeListener = new ParentWindowChangeListener(sceneProperty());\n stageChangeListener.currentStageProperty().addListener((observable, oldValue, newValue) -> {\n if (null != newValue) {\n newValue.setTitle(\"Month Calendar\");\n }\n LOG.exiting(LogHelper.toLambdaSourceClass(LOG, \"new\", \"stageChangeHandler#currentStage\"), \"change\");\n });\n this.targetMonth = new ReadOnlyObjectWrapper<>(this, \"targetMonth\", (null == targetMonth) ? YearMonth.now() : targetMonth);\n modelFilter = new ReadOnlyObjectWrapper<>(this, \"modelFilter\");\n allAppointments = FXCollections.observableArrayList();\n appointmentDays = FXCollections.observableArrayList();\n root = new TreeItem<>();\n allAppointments.addListener(this::onAllAppointmentsChanged);\n modelFilter.addListener(this::onModelFilterChanged);\n appointmentInsertEventHandler = WeakEventHandlingReference.create(this::onAppointmentInserted);\n appointmentUpdateEventHandler = WeakEventHandlingReference.create(this::onAppointmentUpdated);\n appointmentDeleteEventHandler = WeakEventHandlingReference.create(this::onAppointmentDeleted);\n }", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tfor(int i = 0; i<month.length; i++){\n\t\t\tif(e.getActionCommand()==month[i]){\n\t\t\t\tlblImage.setIcon(new ImageIcon(getClass().getResource(pics[i/3] + \".jpg\")));\n\t\t\t\tString th = new String();\n\t\t\t\tif(i%3 == 1){\n\t\t\t\t\t th = \"st\";\n\t\t\t\t}else if(1%3 ==2){\n\t\t\t\t\t th = \"nd\";\n\t\t\t\t}else{\n\t\t\t\t\t th = \"rd\";\n\t\t\t\t}\n\t\t\t\tdiscription.setText(\"Month of \" + month[i] + \" the \" + i%3 + th +\" month of \" + pics[i/3] \n\t\t\t\t\t\t+ \" and the \" + i + \"th month of the year\");\n\t\t\t}\n\t\t}\n\t}", "public CalendarView(CalendarModel model) \n\t{\n\t\t//make no date be selected by giving it an impossible number\n\t\tbordered = -1;\n\t\t\n\t\tframe.setSize(700, 270);\n\t\tcModel = model;\n\t\tmonthMaxDays = cModel.getMonthMaxDays();\n\t\t\n\t\t//initialize all buttons\n\t\tnextMonth = new JButton(\"Month>\");\n\t\tprevMonth = new JButton(\"<Month\");\n\t\tnextDay = new JButton(\">\");\n\t\tprevDay = new JButton(\"<\");\n\t\tcreateButton = new JButton(\"Create\");\n\t\tcreateButton.setBackground(Color.GREEN);\n\t\tcreateButton.setFont(new Font(\"newFont\", Font.BOLD, 18));\n\t\t\n\t\tquitButton = new JButton(\"Quit\");\n\t\tquitButton.setBackground(Color.RED);\n\t\tquitButton.setForeground(Color.WHITE);\n\t\tquitButton.setFont(new Font(\"newFont\", Font.BOLD, 18));\n\t\t\n\t\t//part where all the dates are on\n\t\tnumberPanel.setLayout(new GridLayout(0,7));\n\t\t\n\t\t//box that contains the events\n\t\tDimension dim = new Dimension(300, 140);\n\t\teventsPane.setPreferredSize(dim);\n\t\teventsPane.setEditable(false);\n\t\t\n\t\t//make the new number buttons\n\t\t\n\t\tmakeDayButtons();\n\t\t\n\t\t//put in the empty buttons\n\t\tfor (int i = 1; i < cModel.findDayOfWeek(1); i++) \n\t\t{\n\t\t\tJButton emptyButton = new JButton();\n\t\t\t\n\t\t\t//these buttons will not work\n\t\t\temptyButton.setEnabled(false);\n\t\t\tnumberPanel.add(emptyButton); //add to panel\n\t\t}\n\t\t\n\t\t//add each button from ArrayList to the panel\n\t\tfor (JButton day : buttonArray) \n\t\t{\n\t\t\tnumberPanel.add(day);\n\t\t}\n\t\t\n\t\t//highlightEvents();\n\t\twriteEvents(cModel.getSelectedDate());\n\t\tborderSelected(cModel.getSelectedDate() - 1);\n\t\t\n\t\t//start adding actionListeners to the buttons\n\t\t\n\t\tnextDay.addActionListener(new \n\t\t\t\tActionListener() \n\t\t\t\t{\n\t\t\t\t\tpublic void actionPerformed(ActionEvent e) \n\t\t\t\t\t{\n\t\t\t\t\t\tmodel.nextDay();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\n\t\tprevDay.addActionListener(new \n\t\t\t\tActionListener() \n\t\t\t\t{\n\t\t\t\t\tpublic void actionPerformed(ActionEvent e) \n\t\t\t\t\t{\n\t\t\t\t\t\tmodel.previousDay();\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\n\t\tnextMonth.addActionListener(new \n\t\t\t\tActionListener() \n\t\t\t\t{\n\t\t\t\t\tpublic void actionPerformed(ActionEvent e) \n\t\t\t\t\t{\n\t\t\t\t\t\tcModel.nextMonth();\n\t\t\t\t\t\tcreateButton.setEnabled(false);\n\t\t\t\t\t\teventsPane.setText(\"\");\n\t\t\t\t\t\t\n\t\t\t\t\t\t//can't switch to next date unless you select one\n\t\t\t\t\t\tnextDay.setEnabled(false);\n\t\t\t\t\t\tprevDay.setEnabled(false);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\n\t\tprevMonth.addActionListener(new \n\t\t\t\tActionListener() \n\t\t\t\t{\n\t\t\t\t\tpublic void actionPerformed(ActionEvent e) \n\t\t\t\t\t{\n\t\t\t\t\t\tcModel.previousMonth();\n\t\t\t\t\t\tcreateButton.setEnabled(false);\n\t\t\t\t\t\teventsPane.setText(\"\");\n\t\t\t\t\t\t\n\t\t\t\t\t\t//can't switch to next date unless you select one\n\t\t\t\t\t\tnextDay.setEnabled(false);\n\t\t\t\t\t\tprevDay.setEnabled(false);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\n\t\tcreateButton.addActionListener(new ActionListener() \n\t\t{\n\t\t\tpublic void actionPerformed(ActionEvent e) \n\t\t\t{\n\t\t\t\tshowEventWindow();\n\t\t\t}\n\t\t});\n\t\t\n\t\tquitButton.addActionListener(new \n\t\t\t\tActionListener() \n\t\t\t\t{\n\t\t\t\t\tpublic void actionPerformed(ActionEvent e) \n\t\t\t\t\t{\n\t\t\t\t\t\t//save everything and exit screen\n\t\t\t\t\t\tcModel.saveData();\n\t\t\t\t\t\tSystem.exit(0);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\n\t\t\n\t\tleftContainer.setLayout(new BorderLayout());\n\t\tmonthYearLabel.setText(monthArray[cModel.getCalMonth()] + \" \" + model.getCalYear());;\n\t\tSMTWTFS.setText(\" S M T W T F S\");\n\t\t\n\t\tJPanel monthYearSMTWTFS = new JPanel();\n\t\tmonthYearSMTWTFS.setLayout(new BorderLayout());\n\t\tmonthYearSMTWTFS.add(monthYearLabel,BorderLayout.NORTH);\n\t\tmonthYearSMTWTFS.add(SMTWTFS,BorderLayout.SOUTH);\n\t\t\n\t\tJPanel createAndNextDays = new JPanel();\n\t\tcreateAndNextDays.add(createButton);\n\t\tcreateAndNextDays.add(prevDay);\n\t\tcreateAndNextDays.add(nextDay);\n\t\t\n\t\tleftContainer.add(createAndNextDays, BorderLayout.NORTH);\n\t\tleftContainer.add(monthYearSMTWTFS, BorderLayout.CENTER);\n\t\tleftContainer.add(numberPanel, BorderLayout.SOUTH);\n\t\t\n\t\t\n\t\trightContainer.setLayout(new BorderLayout());\n\t\tJScrollPane eventScroller = new JScrollPane(eventsPane);\n\t\teventScroller.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED);\n\t\t\n\t\tJPanel nextMonthsAndQuit = new JPanel();\n\t\tnextMonthsAndQuit.add(prevMonth);\n\t\tnextMonthsAndQuit.add(nextMonth);\n\t\tnextMonthsAndQuit.add(quitButton);\n\t\t\n\t\tdayDateLabel.setText(dayArray[cModel.findDayOfWeek(cModel.getSelectedDate()) - 1] + \" \" + cModel.getCalMonth() + \"/\" + cModel.getCalDate());\n\t\t\n\t\trightContainer.add(nextMonthsAndQuit, BorderLayout.NORTH);\n\t\trightContainer.add(dayDateLabel, BorderLayout.CENTER);\n\t\trightContainer.add(eventScroller, BorderLayout.SOUTH);\n\t\t\n\t\t\n\t\t//add everything to the frame\n\t\tframe.setLayout(new FlowLayout());\n\t\tframe.add(leftContainer);\n\t\tframe.add(rightContainer);\n\t\t\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t//frame.pack();\n\t\tframe.setVisible(true);\n\t}", "private void loadCalendarLabels(){\n int year = Model.getInstance().viewing_year;\n int month = Model.getInstance().viewing_month;\n \n // Note: Java's Gregorian Calendar class gives us the right\n // \"first day of the month\" for a given calendar & month\n // This accounts for Leap Year\n GregorianCalendar gc = new GregorianCalendar(year, month, 1);\n int firstDay = gc.get(Calendar.DAY_OF_WEEK);\n int daysInMonth = gc.getActualMaximum(Calendar.DAY_OF_MONTH);\n \n // We are \"offsetting\" our start depending on what the\n // first day of the month is.\n // For example: Sunday start, Monday start, Wednesday start.. etc\n int offset = firstDay;\n int gridCount = 1;\n int lblCount = 1;\n \n // Go through calendar grid\n for(Node node : calendarGrid.getChildren()){\n \n VBox day = (VBox) node;\n \n day.getChildren().clear();\n day.setStyle(\"-fx-backgroud-color: white\");\n day.setStyle(\"-fx-font: 14px \\\"System\\\" \");\n \n // Start placing labels on the first day for the month\n if (gridCount < offset) {\n gridCount++;\n // Darken color of the offset days\n day.setStyle(\"-fx-background-color: #E9F2F5\"); \n } else {\n \n // Don't place a label if we've reached maximum label for the month\n if (lblCount > daysInMonth) {\n // Instead, darken day color\n day.setStyle(\"-fx-background-color: #E9F2F5\"); \n } else {\n \n // Make a new day label \n Label lbl = new Label(Integer.toString(lblCount));\n lbl.setPadding(new Insets(5));\n lbl.setStyle(\"-fx-text-fill:darkslategray\");\n\n day.getChildren().add(lbl);\n }\n \n lblCount++; \n }\n }\n }", "private void jumpMonth() {\n\t\tJFrame frame = new JFrame(\"Enter Date\");\n\t\tContainer content = frame.getContentPane();\n\t\tcontent.setLayout(new BorderLayout());\n\t\tframe.setSize(new Dimension(270, 105));\n\t\t\n\t\tJLabel prompt = new JLabel(\"Please enter the target date MM/YYYY\");\n\t\tcontent.add(prompt, BorderLayout.NORTH);\n\t\t\n\t\tTextField input = new TextField(15);\n\t\tcontent.add(input, BorderLayout.CENTER);\n\t\t\n\t\tJButton submit = new JButton(\"OK\");\n\t\tsubmit.addActionListener(e -> {\n\t\t\tString[] strDate = input.getText().split(\"/\");\n\t\t\tDriver.getApp().getMView()\n\t\t\t.jumpToMonth(Integer.parseInt(strDate[0])-1, Integer.parseInt(strDate[1]));\n\t\t\tframe.setVisible(false);\n\t\t});\n\t\tcontent.add(submit, BorderLayout.SOUTH);\n\t\t\n\t\tframe.setVisible(true);\n\t}", "public void initMonthLayout(){\n monthCheckQueue = new LinkedList<>();\n nextMonth = new LinkedList<>();\n monthCount = 0;\n monthCheckQueue.add(MONTH_FLAG+3);\n monthCheckQueue.add(MONTH_FLAG);\n monthCheckQueue.add(MONTH_FLAG);\n nextMonth.add(cMonth);\n nextMonth.add(cMonth-1);\n nextMonth.add(cMonth+1);\n }", "public CalendarDemo() {\r\n super();\r\n JPanel tmpPanel = new JPanel();\r\n tmpPanel.setLayout( new GridBagLayout() );\r\n GridBagConstraints c = new GridBagConstraints();\r\n\r\n c.fill = GridBagConstraints.BOTH;\r\n c.gridx = 0;\r\n c.gridy = 0;\r\n c.weightx = 1;\r\n c.weighty = 1;\r\n c.gridheight = 2;\r\n tmpPanel.add(chart[0], c);\r\n\r\n c.gridx = 1;\r\n c.gridy = 0;\r\n c.weightx = 0.4;\r\n c.weighty = 0.4;\r\n c.gridheight = 1;\r\n tmpPanel.add(chart[1], c);\r\n\r\n c.gridx = 1;\r\n c.gridy = 1;\r\n c.weightx = 0.3;\r\n c.weighty = 0.6;\r\n c.gridheight = 1;\r\n tmpPanel.add(chart[2], c);\r\n\r\n setSamplePane(tmpPanel);\r\n\r\n weekDaysButton.addItemListener(this);\r\n monthNameButton.addItemListener(this);\r\n editButton.addActionListener(this);\r\n }", "public void generateMonth(int year,int month,Graphics g, int offsetX,int offsetY) throws Exception\n {\n int m = month-1;\n //set calendar to get day of week\n Calendar calendar = Calendar.getInstance();\n calendar.set(year,m,1);\n\n int days = months[m];\n if (m==1 && year % 4 == 0)\n days = 29;\n int dayOfWeek = calendar.get(Calendar.DAY_OF_WEEK)-1;\n\n int weeks = (int)Math.ceil((days+dayOfWeek)/7.0);\n BufferedImage baseImage = getImageFromFile(basePath+\"/calendar\"+Integer.toString(weeks)+\"Row.png\");\n\n g.drawImage(baseImage, offsetX+mTagWidth, offsetY,null);\n\n BufferedImage baseMonthImage = getImageFromFile(baseMonthPath);\n\n int sx1 = 0;\n int sy1 = mTagHeight*m;\n int sx2 = mTagWidth;\n int sy2 = sy1 + mTagHeight;\n g.drawImage(baseMonthImage, offsetX, offsetY, offsetX+mTagWidth,offsetY+mTagHeight,sx1,sy1,sx2,sy2,null);\n\n //draw date\n drawDate(g,days,dayOfWeek, offsetX, offsetY);\n }", "private void initMonthControl() {\r\n monthMenu = new JPopupMenu();\r\n updateMonthMenu();\r\n\r\n monthControl = new JLabel();\r\n monthControl.setBorder(null);\r\n monthControl.addMouseListener(new MouseAdapter() {\r\n public void mousePressed(MouseEvent e) {\r\n int month = getMonth();\r\n int y = 0;\r\n for (int i = 0; i < month; i++) {\r\n y -= monthMenu.getComponent(i).getPreferredSize().getHeight();\r\n }\r\n monthMenu.show(monthControl, 0, y);\r\n }\r\n });\r\n }", "private void initializeMonthSelector(){\n monthSelect.getSelectionModel().selectedItemProperty().addListener(new ChangeListener<String>() {\n \n \n @Override\n public void changed(ObservableValue<? extends String> observable, String oldValue, String newValue) {\n// System.out.println(monthSelect.getSelectionModel().getSelectedItem());\n // Necessary to check for null because change listener will\n // also detect clear() calls\n if (newValue != null) {\n \n // Show selected/current month above calendar\n monthLabel.setText(newValue);\n System.out.println(\"mounth new \"+newValue);\n // Update the VIEWING MONTH;\n Model.getInstance().viewing_month = Model.getInstance().getMonthIndex(newValue);\n \n \n //Model.getInstance().viewing_month = monthSelect.getSelectionModel().getSelectedIndex();\n \n \n // System.out.println(\"mounth\"+Model.getInstance().viewing_month);\n\n // Update view\n repaintView();\n }\n \n }\n });\n \n // Add event listener to each year item, allowing user to change years\n selectedYear.getSelectionModel().selectedItemProperty().addListener(new ChangeListener<String>() {\n \n @Override\n public void changed(ObservableValue<? extends String> observable, String oldValue, String newValue) {\n \n if (newValue != null){\n \n // Update the VIEWING YEAR\n Model.getInstance().viewing_year = Integer.parseInt(newValue);\n \n // Update view\n repaintView();\n }\n }\n });\n }", "public MonthPanel(DayPanel dp) {\n \t\tsuper(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED, JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);\n \t\t\n \t\tJPanel panel = new JPanel(new GridLayout(6,7));\n \n \t\tDayDto day = dp.getDay();\n \t\tthis.d = day.getDate();\n \t\t\n \t\t//GregorianCalendar cal = new GregorianCalendar();\n \t\tCalendar cal = GregorianCalendar.getInstance();\n \t\tcal.setTime(this.d);\n \t\t\n \t\t//cal.set(Calendar.DATE, 1);\n \t\t//cal.set(Calendar.MONTH, d.getMonth() - 1);\n \t\t//cal.set(Calendar.YEAR, d.getYear());\n \t\t\n \t\tint m= cal.get(Calendar.MONTH) + 1;\n \t\t\n \t\tString month = \"December\";\n \t\tif (m == 1) month = \"January\";\n \t\telse if (m == 2) month = \"February\";\n \t\telse if (m == 3) month = \"March\";\n \t\telse if (m == 4) month = \"April\";\n \t\telse if (m == 5) month = \"May\";\n \t\telse if (m == 6) month = \"June\";\n \t\telse if (m == 7) month = \"July\";\n \t\telse if (m == 8) month = \"August\";\n \t\telse if (m == 9) month = \"September\";\n \t\telse if (m == 10) month = \"October\";\n \t\telse if (m == 11) month = \"November\";\n \t\t\n \t\tmonth = month + \" \" + cal.get(Calendar.YEAR);\n \t\t\n \t\t//prevDays is the number of boxes in the upper left, before the first of the month, needed since the \n \t\t//calendar is going to be a 6x7 set of boxes. Calendar.SUNDAY is 1 and so forth, so we use day of week - 1\n \t\tint prevDays = cal.get(Calendar.DAY_OF_WEEK) - 1; \n \t\tint endDays = 42 - cal.getActualMaximum(Calendar.DAY_OF_MONTH) - prevDays;\n \t\t\n \t\t/*System.out.println(\"Calendar.DAY_OF_WEEK: \" + Calendar.DAY_OF_WEEK);\n \t\t//System.out.println(\"Calendar.DATE\" + Calendar.DATE);\n \t\t//System.out.println(\"Calendar.MONTH\" + cal.get(Calendar.MONTH));\n \t\t//System.out.println(\"Calendar.YEAR\" + cal.get(Calendar.YEAR));\n \t\t//System.out.println(\"prevDays: \" + prevDays);\n \t\t//System.out.println(\"endDays: \" + endDays);*/\n \t\t\n\t\tcal.roll(Calendar.MONTH, false);\n \t\t\n \t\tfor (int i = 1; i <= prevDays; i++) {\n\t\t\tCalendar c = new GregorianCalendar(cal.get(Calendar.MONTH) + 1, cal.getActualMaximum(Calendar.DAY_OF_MONTH) - prevDays + i, cal.get(Calendar.YEAR));\n \t\t\tjava.sql.Date date = new Date(c.getTime().getTime());\n \t\t\tpanel.add(new DayBlock(date, Color.LIGHT_GRAY));\n \t\t}\n\t\t\n\t\tcal.roll(Calendar.MONTH, true);\n\t\t\n \t\tfor (int i = 1; i <= cal.getActualMaximum(Calendar.DAY_OF_MONTH); i++) {\n\t\t\tCalendar c = new GregorianCalendar(cal.get(Calendar.MONTH), i, cal.get(Calendar.YEAR));\n \t\t\tjava.sql.Date date = new Date(c.getTime().getTime());\n \t\t\tpanel.add(new DayBlock(date));\n \t\t}\n \t\t\n\t\tcal.roll(Calendar.MONTH, true);\n\t\t\n \t\tfor (int i = 1; i <= endDays; i++) {\n\t\t\tCalendar c = new GregorianCalendar(cal.get(Calendar.MONTH) + 1, i, cal.get(Calendar.YEAR));\n \t\t\tjava.sql.Date date = new Date(c.getTime().getTime());\n \t\t\tpanel.add(new DayBlock(date, Color.LIGHT_GRAY));\n \t\t}\n \t\t\n \t\tMonthHeadingPanel mhp = new MonthHeadingPanel(month);\n \t\tJPanel main = new JPanel(new BorderLayout());\n \t\tmain.add(mhp, BorderLayout.NORTH);\n \t\t\n \t\tmain.add(panel, BorderLayout.CENTER);\n \t\t\n \t\tsetViewportView(main);\n \t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jScrollPane1 = new javax.swing.JScrollPane();\n jTable1 = new javax.swing.JTable();\n jLabel1 = new javax.swing.JLabel();\n jMonthChooser1 = new com.toedter.calendar.JMonthChooser();\n jButton1 = new javax.swing.JButton();\n\n setClosable(true);\n setTitle(\"Clientes que no realizaron compras en mes seleccionado anio en curso\");\n\n jTable1.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null}\n },\n new String [] {\n \"Title 1\", \"Title 2\", \"Title 3\", \"Title 4\"\n }\n ));\n jScrollPane1.setViewportView(jTable1);\n\n jLabel1.setText(\"Seleccione mes:\");\n\n jButton1.setText(\"Buscar\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 684, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel1)\n .addGap(18, 18, 18)\n .addComponent(jMonthChooser1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jButton1)))\n .addContainerGap(19, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(45, 45, 45)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jMonthChooser1, javax.swing.GroupLayout.DEFAULT_SIZE, 26, Short.MAX_VALUE)\n .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addComponent(jButton1))\n .addGap(18, 18, 18)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 144, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(103, Short.MAX_VALUE))\n );\n\n pack();\n }", "private void monthFieldDfActionPerformed(java.awt.event.ActionEvent evt) {\n\t}", "@Override\n public void actionPerformed(ActionEvent e) {\n String[] tokens = {\"next_month\"};\n try {\n caseScanner.processInstructions(tokens);\n } catch (IOException ioException) {\n ioException.printStackTrace();\n } catch (ClassNotFoundException classNotFoundException) {\n classNotFoundException.printStackTrace();\n }\n /* Close current panel*/\n currentDate.setText(\"Current Time: \" + TestCaseReader.getMonthTimeStamp() + \"/\" + TestCaseReader.getYearTimeStamp());\n }", "private void createGrpDateInfo() {\n\n\t\tgrpDateInfo = new Group(getShell(), SWT.NONE);\n\t\tgrpDateInfo.setBounds(new org.eclipse.swt.graphics.Rectangle(160, 180,\n\t\t\t\t280, 100));\n\n\t\tlblInstructions = new Label(grpDateInfo, SWT.NONE);\n\t\tlblInstructions.setBounds(new org.eclipse.swt.graphics.Rectangle(60,\n\t\t\t\t20, 160, 20));\n\t\tlblInstructions.setText(\"Select a Month and Year:\");\n\t\tlblInstructions.setFont(ResourceUtils.getFont(iDartFont.VERASANS_8));\n\n\t\tcmbMonth = new CCombo(grpDateInfo, SWT.BORDER);\n\t\tcmbMonth.setBounds(new org.eclipse.swt.graphics.Rectangle(40, 50, 100,\n\t\t\t\t20));\n\t\tcmbMonth.setEditable(false);\n\t\tcmbMonth.setFont(ResourceUtils.getFont(iDartFont.VERASANS_8));\n\t\tString qs[] = { \"Quarter 1\", \"Quarter 2\", \"Quarter 3\", \"Quarter 4\" };\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tthis.cmbMonth.add(qs[i]);\n\t\t}\n\n\t\tint intMonth = 1;\n\t\tcmbMonth.setText(\"Quarter \" + intMonth);\n\t\tcmbMonth.setEditable(false);\n\t\tcmbMonth.setBackground(ResourceUtils.getColor(iDartColor.WHITE));\n\t\tcmbMonth.setVisibleItemCount(4);\n\n\t\t// cmdYear\n\t\tcmbYear = new CCombo(grpDateInfo, SWT.BORDER);\n\t\tcmbYear.setBounds(new org.eclipse.swt.graphics.Rectangle(160, 50, 80,\n\t\t\t\t20));\n\t\tcmbYear.setEditable(false);\n\t\tcmbYear.setBackground(ResourceUtils.getColor(iDartColor.WHITE));\n\t\tcmbYear.setFont(ResourceUtils.getFont(iDartFont.VERASANS_8));\n\n\t\t// get the current date12\n\t\tCalendar rightNow = Calendar.getInstance();\n\t\tint currentYear = rightNow.get(Calendar.YEAR);\n\t\tfor (int i = currentYear - 2; i <= currentYear + 1; i++) {\n\t\t\tthis.cmbYear.add(Integer.toString(i));\n\t\t}\n\t\tcmbYear.setText(String.valueOf(Calendar.getInstance()\n\t\t\t\t.get(Calendar.YEAR)));\n\n\t}", "public void stateChanged(ChangeEvent e) \n\t{\n\t\t//if user has changed clicked the next month, redraw all the buttons\n\t\tif (cModel.hasUpdated()) \n\t\t{\n\t\t\t//find and update the new amount of days in the month\n\t\t\tmonthMaxDays = cModel.getMonthMaxDays();\n\t\t\t\n\t\t\t//erase buttons from panel\n\t\t\tnumberPanel.removeAll();\n\t\t\t\n\t\t\t//delete all the buttons from the array\n\t\t\tbuttonArray.clear();\n\t\t\t\n\t\t\t//erase the date since none is selected\n\t\t\teraseDateLabel();\n\t\t\t\n\t\t\t//update the label for the month/year\n\t\t\tmonthYearLabel.setText(monthArray[cModel.getCalMonth()] + \" \" + cModel.getCalYear());\n\t\t\t\n\t\t\t//make the new number buttons\t\t\t\n\t\t\tmakeDayButtons();\n\t\t\t\n\t\t\t//put in the empty buttons\n\t\t\tfor (int i = 1; i < cModel.findDayOfWeek(1); i++) \n\t\t\t{\n\t\t\t\tJButton emptyButton = new JButton();\n\t\t\t\t\n\t\t\t\t//these buttons will not work\n\t\t\t\temptyButton.setEnabled(false);\n\t\t\t\tnumberPanel.add(emptyButton); //add to panel\n\t\t\t}\n\t\t\t\n\t\t\t//add each button from ArrayList to the panel\n\t\t\tfor (JButton day : buttonArray) \n\t\t\t{\n\t\t\t\tnumberPanel.add(day);\n\t\t\t}\n\t\t\t\n\t\t\t//highlightEvents();\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t//no bordered button\n\t\t\tbordered = -1;\n\t\t\t\n\t\t\tcModel.unupdated();\n\t\t\tframe.pack();\n\t\t\tframe.repaint();\n\t\t} \n\t\telse \n\t\t{\n\t\t\twriteEvents(cModel.getSelectedDate());\n\t\t\tchangeDateLabel(cModel.getSelectedDate());\n\t\t\tborderSelected(cModel.getSelectedDate() - 1);\n\t\t}\n\t}", "@Override\n public void initialize(URL url, ResourceBundle rb) {\n gsd = GlobalDataStore.getInstance();\n loggedInUser = gsd.getLoggedInUser();\n Date date = new Date();\n Calendar cal = Calendar.getInstance();\n cal.setTime(date);\n month = cal.get(Calendar.MONTH);\n month++; \n year = cal.get(Calendar.YEAR);\n week = cal.get(Calendar.WEEK_OF_YEAR);\n\n try {\n getByMonthAppts(month, year); \n } catch (Exception e) {\n e.printStackTrace();\n }\n \n viewByMonth.setOnAction((ActionEvent event) -> {\n\n try {\n \n getByMonthAppts(month, year);\n } catch (Exception e) {\n System.err.println(e);\n }\n \n }); \n \n viewByWeek.setOnAction((ActionEvent event) -> {\n try {\n getByWeekAppts(week, year);\n } catch (Exception e) {\n }\n });\n \n incrementWeekMonth.setOnAction((ActionEvent event) -> {\n if (isMonthlyView)\n if (month == 12) {\n month = 1;\n year++;\n getByMonthAppts(month, year);}\n else {month++;\n getByMonthAppts(month, year);\n }\n \n else {\n if (week == 52) {\n week = 1;\n year++;\n }\n else {\n week++;\n }\n try { \n getByWeekAppts(week, year);\n } catch (Exception e) {\n week--;\n e.printStackTrace();\n }\n }\n \n });\n \n \n \n decrementWeekMonth.setOnAction((ActionEvent event) -> {\n if (isMonthlyView)\n \n if (month == 1) {\n month = 12;\n year--;\n getByMonthAppts(month, year);}\n else {\n month--;\n getByMonthAppts(month, year);\n }\n else {\n if (week == 1) {\n week = 52;\n year--;\n }\n else {\n week--;\n }\n try { \n getByWeekAppts(week, year);\n } catch (Exception e) {\n week++;\n e.printStackTrace();\n }\n }\n \n });\n \n addNewAppt.setOnAction((ActionEvent event) -> {\n\n try {\n Control c = Control.getInstance();\n \n Stage stage = c.getStage();\n c.SetStage(stage);\n c.SetPane(\"newAppt\"); \n\t\t\t\t\n } catch (Exception e1) {\n System.err.println(e1);\n \n }\n });\n \n\n }", "private void createMonthCombo() {\n \t\t\tmonthCombo = new Combo(this, SWT.READ_ONLY);\n \t\t\tmonthCombo.setItems(dateFormatSymbols.getMonths());\n \t\t\tmonthCombo.remove(12);\n \t\t\tmonthCombo.select(date.get(Calendar.MONTH));\n \t\t\tmonthCombo.setVisibleItemCount(12);\n \t\t\tmonthCombo.addModifyListener(new ModifyListener() {\n \n \t\t\t\tpublic void modifyText(ModifyEvent arg0) {\n \t\t\t\t\tdate.set(Calendar.MONTH, monthCombo.getSelectionIndex());\n \t\t\t\t\tupdateCalendar();\n \t\t\t\t}\n \n \t\t\t});\n \t\t\tmonthCombo.addKeyListener(this);\n \t\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jtfRange = new javax.swing.JTextField();\n jbRange = new javax.swing.JButton();\n jbCurrentDate = new javax.swing.JButton();\n jbCurrentMonth = new javax.swing.JButton();\n jbCurrentYear = new javax.swing.JButton();\n\n setLayout(new java.awt.FlowLayout(0, 5, 0));\n\n jtfRange.setEditable(false);\n jtfRange.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n jtfRange.setText(\"01/01/2001 - 01/01/2001\");\n jtfRange.setToolTipText(\"Rango de fechas\");\n jtfRange.setFocusable(false);\n jtfRange.setPreferredSize(new java.awt.Dimension(135, 23));\n add(jtfRange);\n\n jbRange.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sba/lib/img/cal_cal.gif\"))); // NOI18N\n jbRange.setToolTipText(\"Seleccionar rango de fechas\");\n jbRange.setPreferredSize(new java.awt.Dimension(23, 23));\n jbRange.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jbRangeActionPerformed(evt);\n }\n });\n add(jbRange);\n\n jbCurrentDate.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sba/lib/img/cal_date_day.gif\"))); // NOI18N\n jbCurrentDate.setToolTipText(\"Día actual\");\n jbCurrentDate.setPreferredSize(new java.awt.Dimension(23, 23));\n jbCurrentDate.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jbCurrentDateActionPerformed(evt);\n }\n });\n add(jbCurrentDate);\n\n jbCurrentMonth.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sba/lib/img/cal_date_month.gif\"))); // NOI18N\n jbCurrentMonth.setToolTipText(\"Mes actual\");\n jbCurrentMonth.setPreferredSize(new java.awt.Dimension(23, 23));\n jbCurrentMonth.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jbCurrentMonthActionPerformed(evt);\n }\n });\n add(jbCurrentMonth);\n\n jbCurrentYear.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sba/lib/img/cal_date_year.gif\"))); // NOI18N\n jbCurrentYear.setToolTipText(\"Año actual\");\n jbCurrentYear.setPreferredSize(new java.awt.Dimension(23, 23));\n jbCurrentYear.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jbCurrentYearActionPerformed(evt);\n }\n });\n add(jbCurrentYear);\n }", "private void updateMonthMenu() {\r\n String[] months = getDateFormatSymbols().getMonths();\r\n monthMenu.removeAll();\r\n for (int i = 0; i < months.length; i++) {\r\n JMenuItem x = new JMenuItem(months[i]);\r\n x.addActionListener(new DateActionListener(Calendar.MONTH, i));\r\n monthMenu.add(x);\r\n }\r\n if (monthControl != null) {\r\n updateControlsFromTable();\r\n }\r\n }", "public void showByMonthBtn(ActionEvent event) throws IOException, Exception {\r\n\r\n appointments.clear();\r\n appointments.addAll(Appointment.getAppointmentsByMonth());\r\n\r\n }", "void updateMonthAndData(int i) {\n c.getFirstDayOfWeek();\n //compute change in month and year. Note we are operating on the calendar range of 0-11\n month = month + i;\n if (month < 0) {\n year--;\n month = 11;\n } else if (month > 11) {\n year++;\n month = 0;\n }\n //set the new date in calendar\n c.set(Calendar.YEAR, year);\n c.set(Calendar.MONTH, month);\n monthName = c.getDisplayName(Calendar.MONTH, Calendar.LONG, Locale.getDefault());\n daysInMonth = c.getActualMaximum(Calendar.DAY_OF_MONTH);\n dayOfWeek = c.get(Calendar.DAY_OF_WEEK_IN_MONTH);\n\n //notify the adapter of new date. This will also change the selected date in the grid part\n //and pull new data if necessary.\n calendarAdapter.update(year, month);\n //this is fact also passes the calendarAdapter new list of days with events\n // and calls notifyDataSetChanged on it!\n listEvents.update(year, month);\n //so that events are displayed for the first day of month or, if the month is the current one,\n //for \"today\"\n listEvents.setmSelectedDayOfMonth(calendarAdapter.getDayNumber(calendarAdapter.getCurrentlySelected()));\n //ask listEvents to redraw. Note that calendarAdapter already did that when we updated listEvents!\n listEvents.notifyDataSetChanged();\n //set the proper name of month at the header of the calendar\n ((TextView) ((RelativeLayout) (((RelativeLayout) rootView).getChildAt(0))).getChildAt(1)).setText(monthName);\n }", "@Override\n public void onClick(View v) {\n currentCalendar.add(Calendar.MONTH, 1);\n //drawMonth(workingDays);\n //drawMonth(workingDays, holidays);\n Log.i(\"***********\", \"DrawMonth called on nextmonth\");\n drawMonth(workingDays, holidays, requestedHolidays, generalCalendar);\n }", "private void jbInit() { //GEN-BEGIN:jbInit\n\n\t\tjPanel1=new javax.swing.JPanel();\n\t\tprevMonth=new javax.swing.JLabel();\n\t\tprevDay=new javax.swing.JLabel();\n\t\tdateLabel=new javax.swing.JLabel();\n\t\tnextDay=new javax.swing.JLabel();\n\t\tnextMonth=new javax.swing.JLabel();\n\t\tjPanel2=new javax.swing.JPanel();\n\t\tjTable1=new javax.swing.JTable();\n\t\tjPanel3=new javax.swing.JPanel();\n\n\t\ttitledBorder1=new TitledBorder(\"\");\n\t\ttitledBorder2=new TitledBorder(\"\");\n\t\tsetLayout(new java.awt.BorderLayout());\n\n\t\tsetMinimumSize(new java.awt.Dimension(100, 100));\n\t\tsetPreferredSize(new java.awt.Dimension(100, 156));\n\t\tprevMonth.setText(\"<<\");\n\t\tprevMonth.addMouseListener(new PickDateTime_prevMonth_mouseAdapter(this));\n\t\tprevDay.addMouseListener(new PickDateTime_prevDay_mouseAdapter(this));\n\t\tnextDay.addMouseListener(new PickDateTime_nextDay_mouseAdapter(this));\n\t\tnextMonth.addMouseListener(new PickDateTime_nextMonth_mouseAdapter(this));\n\t\tokButton.setActionCommand(\"jButton1\");\n\t\tokButton.setMnemonic('O');\n\t\tokButton.setText(\"OK\");\n\t\tcancelButton.setMnemonic('C');\n\t\tcancelButton.setText(\"Cancel\");\n\t\tcancelButton.addMouseListener(new\n\t\t\t\t\t\t\t\t\t PickDateTime_cancelButton_mouseAdapter(this));\n\t\tdateLabel.setBorder(BorderFactory.createLoweredBevelBorder());\n\t\tjPanel1.add(prevMonth);\n\t\tjPanel1.add(prevDay);\n\t\tjPanel1.add(dateLabel);\n\t\tjPanel1.add(nextDay, null);\n\t\tjPanel1.add(nextMonth);\n\n\t\tprevDay.setText(\"<\");\n\n\t\tdateLabel.setText(\"YYYY-MM-DD\");\n\n\t\tnextDay.setText(\">\");\n\n\t\tnextMonth.setText(\">>\");\n\n\t\tjPanel2.setLayout(new java.awt.BorderLayout());\n\n\t\tjTable1.setModel((table=new DateTableModel()));\n\t\tjTable1.setRowSelectionAllowed(false);\n\t\tjPanel2.add(jTable1, java.awt.BorderLayout.CENTER);\n\t\tjPanel2.add(jPanel3, BorderLayout.SOUTH);\n\t\tjPanel3.add(okButton, null);\n\t\tjPanel3.add(cancelButton, null);\n\n\t\tadd(jPanel2, java.awt.BorderLayout.CENTER);\n\n\t\tjPanel2.add(jPanel1, BorderLayout.NORTH);\n\n\t}", "private void buildMonthly(int year, int month, int numdays, int dataIndex, Bundle bundle) {\n\n double[] raw_xdata = new double[numdays + 2];\n double[] raw_ydata1 = new double[numdays + 2];\n double[] raw_ydata2 = new double[numdays + 2];\n double[] raw_ydata3 = null;\n if (dataIndex == Constants.DATA_MONTHLY_TEMPERATURE) {\n raw_ydata3 = new double[numdays + 2];\n Arrays.fill(raw_ydata1, Constants.DATA_INVALID);\n Arrays.fill(raw_ydata2, Constants.DATA_INVALID);\n Arrays.fill(raw_ydata3, Constants.DATA_INVALID);\n }\n\n // set the first y1 and y2 values\n int xstart = bundle.getInt(\"xorigin1\", 0);\n raw_xdata[0] = xstart;\n\n // set the y1 and y2 values for the month\n for (int i = 1; i < numdays + 1; i++) {\n raw_xdata[i] = i;\n String filename = UtilsMisc.getDecimalFormat(year, 4) + \"-\" +\n UtilsMisc.getDecimalFormat(month + 1, 2) + \"-\" +\n UtilsMisc.getDecimalFormat(i, 2);\n if (summaryDB.isInSummaryTable(context, filename)) {\n int log_id = summaryDB.getMonitorID(context, filename);\n SummaryProvider.Summary summary = summaryDB.getSummary(context, log_id);\n switch (dataIndex) {\n case Constants.DATA_PEAKWATTS:\n raw_ydata1[i] = summary.getPeak_watts();\n raw_ydata2[i] = summary.getGenerated_watts();\n break;\n case Constants.DATA_PEAKTIME:\n long midnight = UtilsDate.get_midNightTimestamp(summary.getStart_time(), lat, lon);\n raw_ydata1[i] = UtilsDate.getTimeSeconds(summary.getPeak_time() - midnight);\n raw_ydata2[i] = summary.getGenerated_watts();\n break;\n case Constants.DATA_SUNLIGHT:\n raw_ydata1[i] = UtilsDate.getTimeSeconds(summary.getEnd_time() - summary.getStart_time());\n raw_ydata2[i] = summary.getGenerated_watts();\n break;\n case Constants.DATA_READINGS:\n raw_ydata1[i] = summaryDB.getDetailCount(context, log_id);\n raw_ydata2[i] = summary.getGenerated_watts();\n break;\n case Constants.DATA_MONTHLY_TEMPERATURE:\n raw_ydata1[i] = summary.getMinTemperature();\n raw_ydata2[i] = summary.getMaxTemperature();\n raw_ydata3[i] = summary.getGenerated_watts();\n break;\n case Constants.DATA_MONTHLY_CLOUDS:\n raw_ydata1[i] = summary.getAvgClouds();\n raw_ydata2[i] = summary.getGenerated_watts();\n break;\n default:\n break;\n }\n } else {\n if (dataIndex != Constants.DATA_MONTHLY_TEMPERATURE) {\n raw_ydata1[i] = 0.0;\n raw_ydata2[i] = 0.0;\n }\n }\n }\n\n // set the first and last y1 and y2 values\n int xend = numdays;\n raw_xdata[numdays+1] = xend + 1;\n switch (dataIndex) {\n case Constants.DATA_PEAKWATTS :\n raw_ydata1[numdays+1] = raw_ydata1[numdays]; raw_ydata2[numdays+1] = raw_ydata2[numdays];\n raw_ydata1[0] = raw_ydata1[1]; raw_ydata2[0] = raw_ydata2[1]; break;\n case Constants.DATA_PEAKTIME :\n raw_ydata1[numdays+1] = raw_ydata1[numdays]; raw_ydata2[numdays+1] = raw_ydata2[numdays];\n raw_ydata1[0] = raw_ydata1[1]; raw_ydata2[0] = raw_ydata2[1]; break;\n case Constants.DATA_SUNLIGHT :\n raw_ydata1[numdays+1] = raw_ydata1[numdays]; raw_ydata2[numdays+1] = raw_ydata2[numdays];\n raw_ydata1[0] = raw_ydata1[1]; raw_ydata2[0] = raw_ydata2[1]; break;\n case Constants.DATA_READINGS :\n raw_ydata1[numdays+1] = raw_ydata1[numdays]; raw_ydata2[numdays+1] = raw_ydata2[numdays];\n raw_ydata1[0] = raw_ydata1[1]; raw_ydata2[0] = raw_ydata2[1]; break;\n case Constants.DATA_MONTHLY_CLOUDS :\n raw_ydata1[numdays+1] = raw_ydata1[numdays]; raw_ydata2[numdays+1] = raw_ydata2[numdays];\n raw_ydata1[0] = raw_ydata1[1]; raw_ydata2[0] = raw_ydata2[1]; break;\n case Constants.DATA_MONTHLY_TEMPERATURE :\n Number[] numbers = UtilsMisc.toNumber(raw_ydata1, -273); // convert from kelvin to centigrade\n numbers = UtilsMisc.fix_end_numbers(numbers, true);\n numbers = UtilsMisc.fix_mid_numbers(numbers);\n raw_ydata1 = UtilsMisc.toDouble(numbers);\n\n numbers = UtilsMisc.toNumber(raw_ydata2, -273);\n numbers = UtilsMisc.fix_end_numbers(numbers, true);\n numbers = UtilsMisc.fix_mid_numbers(numbers);\n raw_ydata2 = UtilsMisc.toDouble(numbers);\n\n numbers = UtilsMisc.toNumber(raw_ydata3);\n numbers = UtilsMisc.fix_end_numbers(numbers, true);\n numbers = UtilsMisc.fix_mid_numbers(numbers);\n raw_ydata3 = UtilsMisc.toDouble(numbers);\n default :\n break;\n }\n\n LinearInterpolation lp1 = new LinearInterpolation(raw_xdata, raw_ydata1);\n LinearInterpolation lp2 = new LinearInterpolation(raw_xdata, raw_ydata2);\n LinearInterpolation lp3 = (raw_ydata3 != null)? new LinearInterpolation(raw_xdata, raw_ydata3): null;\n int time = xstart;\n ArrayList<Integer> xList = new ArrayList<>();\n ArrayList<Float> yList1 = new ArrayList<>();\n ArrayList<Float> yList2 = new ArrayList<>();\n ArrayList<Float> yList3 = new ArrayList<>();\n while (time < (xend+1)) {\n xList.add(time);\n yList1.add((float) lp1.interpolate(time));\n yList2.add((float) lp2.interpolate(time));\n if (lp3 != null)\n yList3.add((float) lp3.interpolate(time));\n time += 1;\n }\n\n int[] xdata = Ints.toArray(xList);\n float[] ydata1 = Floats.toArray(yList1);\n float[] ydata2 = Floats.toArray(yList2);\n float[] ydata3 = Floats.toArray(yList3);\n bundle.putIntArray(\"xdata1\", xdata);\n bundle.putIntArray(\"xdata2\", xdata);\n bundle.putIntArray(\"xdata3\", xdata);\n bundle.putFloatArray(\"ydata1\", ydata1);\n bundle.putFloatArray(\"ydata2\", ydata2);\n bundle.putFloatArray(\"ydata3\", ydata3.length > 0? ydata3: null);\n\n switch (dataIndex) {\n case Constants.DATA_MONTHLY_TEMPERATURE:\n smooth_plot(bundle, true, \"1\");\n smooth_plot(bundle, true, \"2\");\n break;\n case Constants.DATA_MONTHLY_CLOUDS:\n smooth_plot(bundle, true, \"1\");\n break;\n }\n\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n lblError = new javax.swing.JLabel();\n lblResultado = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n monthField = new javax.swing.JTextField();\n yearField = new javax.swing.JTextField();\n nominasBtn = new javax.swing.JButton();\n nominasBtn.addActionListener(controlador);\n jLabel1 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(255, 255, 255));\n\n lblError.setForeground(new java.awt.Color(255, 0, 51));\n\n jLabel2.setText(\"Mes\");\n\n jLabel3.setText(\"Año\");\n\n monthField.setText(\"12\");\n\n yearField.setText(\"2019\");\n yearField.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n yearFieldActionPerformed(evt);\n }\n });\n\n nominasBtn.setText(\"Nominas\");\n nominasBtn.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n nominasBtnActionPerformed(evt);\n }\n });\n\n jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(lblError, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 277, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(yearField, javax.swing.GroupLayout.PREFERRED_SIZE, 69, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(monthField, javax.swing.GroupLayout.PREFERRED_SIZE, 69, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(48, 48, 48)\n .addComponent(nominasBtn))\n .addGroup(layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 140, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(lblResultado, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(lblError)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(layout.createSequentialGroup()\n .addGap(8, 8, 8)\n .addComponent(nominasBtn)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(layout.createSequentialGroup()\n .addGap(18, 18, 18)\n .addComponent(lblResultado, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addGap(9, 9, 9)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(monthField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel2))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(yearField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel3))))\n .addContainerGap(20, Short.MAX_VALUE))\n );\n\n pack();\n }", "private void init() {\r\n setLayout(new BorderLayout());\r\n\r\n // the embedded table\r\n calendarTable = new JCalendarTable();\r\n // catch property change event and forward them\r\n calendarTable.addPropertyChangeListener(new PropertyChangeListener() {\r\n public void propertyChange(PropertyChangeEvent evt) {\r\n firePropertyChange(evt.getPropertyName(), evt.getOldValue(),\r\n evt.getOldValue());\r\n }\r\n });\r\n // put the calendar table in a scroll pane in this component\r\n JScrollPane x = new JScrollPane(calendarTable);\r\n x.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);\r\n x.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_NEVER);\r\n add(x, BorderLayout.CENTER);\r\n\r\n // the controls panel\r\n controlsPanel = new JPanel();\r\n add(controlsPanel,\r\n (controlsPosition == TOP ? BorderLayout.NORTH : BorderLayout.SOUTH));\r\n controlsPanel.setLayout(new BoxLayout(controlsPanel, BoxLayout.X_AXIS));\r\n\r\n // add controls\r\n controlsPanel.add(createControlButton(Calendar.YEAR, -1, 2));\r\n controlsPanel.add(createControlButton(Calendar.MONTH, -1));\r\n\r\n //the today button\r\n// JButton todayButton = new JButton(\"*\") {\r\n// public String getToolTipText(MouseEvent e) {\r\n// return getTooltipDateFormat().format(new Date());\r\n// }\r\n// };\r\n// todayButton.setToolTipText(\"Today\");\r\n// todayButton.setBorder(BorderFactory.createEmptyBorder(2, 2, 2, 2));\r\n// todayButton.setMargin(new Insets(0, 0, 0, 0));\r\n// todayButton.addActionListener(new ActionListener() {\r\n// public void actionPerformed(ActionEvent e) {\r\n// setTodayDate();\r\n// }\r\n// });\r\n// controlsPanel.add(todayButton);\r\n\r\n controlsPanel.add(Box.createHorizontalGlue());\r\n\r\n initMonthControl();\r\n controlsPanel.add(monthControl);\r\n\r\n controlsPanel.add(Box.createHorizontalStrut(3));\r\n\r\n initYearControl();\r\n controlsPanel.add(yearControl);\r\n\r\n controlsPanel.add(Box.createHorizontalGlue());\r\n\r\n controlsPanel.add(createControlButton(Calendar.MONTH, 1));\r\n\r\n controlsPanel.add(createControlButton(Calendar.YEAR, 1, 2));\r\n\r\n updateControlsFromTable();\r\n }", "private void monthFieldDtActionPerformed(java.awt.event.ActionEvent evt) {\n\t}", "public static String displayMainMenu(Calendar c) { \n\t\tlistOfButtons.clear();\n\t\tspaceCounter = 0;\n\t\tString toReturn = \"\";\n\t\tMONTHS[] arrayOfMonths = MONTHS.values(); // should be in constructor\n\t\tDAYS[] arrayOfDays = DAYS.values();\n\t\ttodayDate = c.get(Calendar.DAY_OF_MONTH);\n\t\tSystem.out.println(\"todaydate: \" + todayDate);\n\t\tint todayDayOfWeek = c.get(Calendar.DAY_OF_WEEK);\n\t\tint month = c.get(Calendar.MONTH);\n\t\t\n\t\t\n\n\t\tGregorianCalendar temp1 = new GregorianCalendar(c.get(Calendar.YEAR), c.get(Calendar.MONTH), 1);\n\t\tint firstDayOfWeek = temp1.get(Calendar.DAY_OF_WEEK);\n\t\tnumberOfDays = temp1.getActualMaximum(Calendar.DAY_OF_MONTH);\n\t\tmonthString = (arrayOfMonths[temp1.get(GregorianCalendar.MONTH)] + \" \" + temp1.get(GregorianCalendar.YEAR));\n\t\ttoReturn += monthString;\n\t\ttoReturn += \"\\n\";\n\n\t\tfor (int i = 0; i < arrayOfDays.length; i++) {\n\t\t\ttoReturn += (arrayOfDays[i] + \" \");\n\t\t}\n//\t\tSystem.out.println();\n//\t\ttoReturn += \"\\n\";\n\t\t\n\t\tfor (int i = 1; i < numberOfDays + firstDayOfWeek; i++) {\n\t\t\tif (i < firstDayOfWeek) {\n//\t\t\t\ttoReturn += (\" \");\n\t\t\t\tspaceCounter++;\n\t\t\t} else {\n\t\t\t\tif (i % 7 != 1 && i != firstDayOfWeek) {\n\n//\t\t\t\t\ttoReturn += (\" \");\n\t\t\t\t\tif ((i - firstDayOfWeek + 1) <= 9) {\n//\t\t\t\t\t\ttoReturn += (\" \");\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\tif (((i - firstDayOfWeek + 1) == todayDate) && (month == temp1.get(GregorianCalendar.MONTH))\n\t\t\t\t\t\t&& (c.get(Calendar.YEAR) == temp1.get(GregorianCalendar.YEAR))) {\n\t\t\t\t\tJButton button = new JButton ( Integer.toString(i - firstDayOfWeek + 1) );\n\t\t\t\t\tlistOfButtons.add(button);\n\t\t\t\t} else {\n\t\t\t\t\tJButton button = new JButton (Integer.toString(i - firstDayOfWeek + 1));\n\t\t\t\t\tlistOfButtons.add(button);\n\t\t\t\t}\n\t\t\t\tif ((i) % 7 == 0) {\n//\t\t\t\t\ttoReturn += \"\\n\";\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn toReturn;\n\t}", "public String setStartDate(int year, String month, int day) {\n WebElement dayChooser;\n String currentYear; // Year that is given by default\n clickElement(startDateSelect);\n // Here we are choosing year\n currentYear = setYear.getAttribute(\"textContent\");\n int currentYearNumber = Integer.parseInt(currentYear);\n // System.out.println(\"setYear\" + currentYearNumber);\n if( year - currentYearNumber > 0 )\n for (int i = 1; i <= (year - currentYearNumber)*12; i++){ clickElement(yearStepUp); }\n if( year - currentYearNumber < 0 )\n for (int i = 1; i <= (currentYearNumber - year)*12; i++){ clickElement(yearStepDown); }\n\n selectValueInDropdown(chooseMonth, month); // Here we are choosing month\n\n switch (day) { // Here we are choosing day\n case 1: dayChooser = dayChooser_1;\n break;\n case 2: dayChooser = dayChooser_2;\n break;\n case 3: dayChooser = dayChooser_3;\n break;\n case 4: dayChooser = dayChooser_4;\n break;\n case 5: dayChooser = dayChooser_5;\n break;\n case 6: dayChooser = dayChooser_6;\n break;\n case 7: dayChooser = dayChooser_7;\n break;\n case 8: dayChooser = dayChooser_8;\n break;\n case 9: dayChooser = dayChooser_9;\n break;\n case 10: dayChooser = dayChooser_10;\n break;\n case 11: dayChooser = dayChooser_11;\n break;\n case 12: dayChooser = dayChooser_12;\n break;\n case 13: dayChooser = dayChooser_13;\n break;\n case 14: dayChooser = dayChooser_14;\n break;\n case 15: dayChooser = dayChooser_15;\n break;\n case 16: dayChooser = dayChooser_16;\n break;\n case 17: dayChooser = dayChooser_17;\n break;\n case 18: dayChooser = dayChooser_18;\n break;\n case 19: dayChooser = dayChooser_19;\n break;\n case 20: dayChooser = dayChooser_20;\n break;\n case 21: dayChooser = dayChooser_21;\n break;\n case 22: dayChooser = dayChooser_22;\n break;\n case 23: dayChooser = dayChooser_23;\n break;\n case 24: dayChooser = dayChooser_24;\n break;\n case 25: dayChooser = dayChooser_25;\n break;\n case 26: dayChooser = dayChooser_26;\n break;\n case 27: dayChooser = dayChooser_27;\n break;\n case 28: dayChooser = dayChooser_28;\n break;\n case 29: dayChooser = dayChooser_29;\n break;\n case 30: dayChooser = dayChooser_30;\n break;\n case 31: dayChooser = dayChooser_31;\n break;\n default: { System.out.println(\" Such day is not exist\" ); return null; }\n }\n clickElement(dayChooser);\n return startDateSelect.getAttribute(\"value\");\n }", "public JMonthChooser() {\n initComponents();\n this.initMonths();\n this.setDate(DateUtils.Ahora());\n this.setMonth(DateUtils.monthOfYear(this.getDate()));\n }", "private void agendaFrame() {\n\t\tEventQueue.invokeLater(new Runnable() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tfinal JFrame frame = new JFrame(\"Please select a time period.\");\n\t\t\t\tframe.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n\t\t\t\ttry {\n\t\t\t\t\tUIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tJPanel panel = new JPanel();\n\t\t\t\tpanel.setLayout(new GridLayout(1, 4));\n\t\t\t\t//JTextField d = new JTextField(\"\" + year + \"/\" + month + \"/\" + day);\n\t\t\t\tfinal JTextField startDate = new JTextField(\"1\" + \"/1\" + \"/2016\");\n\t\t\t\tJTextField to = new JTextField(\"to\");\n\t\t\t\tto.setEditable(false);\n\t\t\t\tfinal JTextField endDate = new JTextField(\"1\" + \"/2\" + \"/2016\");\n\t\t\t\tJButton go = new JButton(\"Go\");\n\t\t\t\t\n\t\t\t\tgo.addActionListener(new ActionListener() {\n\t\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\t\teventsRender = new AgendaViewRender();\n\t\t\t\t\t\tAgendaViewRender.setStartDate(startDate.getText());\n\t\t\t\t\t\tAgendaViewRender.setEndDate(endDate.getText());\n\t\t\t\t\t\tupdateEventsView(eventsRender);\n\t\t\t\t\t\tframe.dispatchEvent(new WindowEvent(frame, WindowEvent.WINDOW_CLOSING));\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\tpanel.add(startDate);\n\t\t\t\tpanel.add(to);\n\t\t\t\tpanel.add(endDate);\n\t\t\t\tpanel.add(go);\n\t\t\t\t\n\t\t\t\tframe.setSize(500, 100);\n\t\t\t\tframe.setLayout(new GridLayout(2, 1));\n\t\t\t\tframe.add(panel);\n\t\t\t\tframe.setLocationByPlatform(true);\n\t\t\t\tframe.setVisible(true);\n\n\t\t\t}\n\t\t});\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jXPanel1 = new org.jdesktop.swingx.JXPanel();\n jXMonthView1 = new org.jdesktop.swingx.JXMonthView();\n lblTime = new org.jdesktop.swingx.JXLabel();\n jXLabel2 = new org.jdesktop.swingx.JXLabel();\n jXLabel1 = new org.jdesktop.swingx.JXLabel();\n jXPanel2 = new org.jdesktop.swingx.JXPanel();\n\n setLayout(null);\n\n jXPanel1.setBackground(new java.awt.Color(0, 0, 0));\n jXPanel1.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jXMonthView1.setBackground(new java.awt.Color(255, 255, 255));\n jXMonthView1.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jXPanel1.add(jXMonthView1, new org.netbeans.lib.awtextra.AbsoluteConstraints(780, 130, -1, 180));\n\n lblTime.setForeground(new java.awt.Color(255, 255, 255));\n lblTime.setFont(new java.awt.Font(\"Tahoma\", 0, 48)); // NOI18N\n jXPanel1.add(lblTime, new org.netbeans.lib.awtextra.AbsoluteConstraints(770, 10, 290, 80));\n\n jXLabel2.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/lk/ijse/sellingsystem/view/image/background-blur.png\"))); // NOI18N\n jXPanel1.add(jXLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(740, 0, 1140, 560));\n\n jXLabel1.setBackground(new java.awt.Color(0, 135, 135));\n jXLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/lk/ijse/sellingsystem/view/image/new-vehicle-prices-in-Sri-Lanka.jpg\"))); // NOI18N\n jXPanel1.add(jXLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, -150, 2050, 880));\n\n javax.swing.GroupLayout jXPanel2Layout = new javax.swing.GroupLayout(jXPanel2);\n jXPanel2.setLayout(jXPanel2Layout);\n jXPanel2Layout.setHorizontalGroup(\n jXPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 280, Short.MAX_VALUE)\n );\n jXPanel2Layout.setVerticalGroup(\n jXPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 60, Short.MAX_VALUE)\n );\n\n jXPanel1.add(jXPanel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(780, 480, 280, 60));\n\n add(jXPanel1);\n jXPanel1.setBounds(0, 0, 2050, 730);\n }", "public static void main(String[] args) throws InterruptedException {should know before hand\n\t\t//target day,month,year\n\t\t//current day,month,year\n\t\t//jump to the month\n\t\t//increment or decrement\n\t\t//\n\t\t\n\t\tgettargetdate(targetdate);\n\t\t getcurrentdate();\n\t\t howmanymonthstojump();\n\t\t WebDriver d = new FirefoxDriver();\n\t\td.manage().timeouts().implicitlyWait(20L, TimeUnit.SECONDS);\n\t\t d.get(\"https://jqueryui.com/datepicker/\");\n\t\t System.out.println((d.findElements(By.tagName(\"iframe\")).size()));\n\t\t\td.switchTo().frame(d.findElements(By.tagName(\"iframe\")).get(0));\n\t\t\t\n\t\t d.findElement(By.xpath(\".//*[@id='datepicker']\")).click();\n\t\t// Thread.sleep(1000L);\n\t\t \n\t\t \n\t\t WebElement left= d.findElement(By.xpath(\".//*[@id='ui-datepicker-div']/div/a[1]\"));//left\n\t\t WebElement right= d.findElement(By.xpath(\".//*[@id='ui-datepicker-div']/div/a[2]\"));//right\n\t\t \n\t\t for (int i=0;i<monthstojump;i++)\n\t\t {\n\t\t\t if(increment == true)\n\t\t\t {\n\t\t\t\t left.click();\n\t\t\t }\n\t\t\t else\n\t\t\t {\n\t\t\t\t right.click();\n\t\t\t }\n\t\t\t Thread.sleep(1000L);\n\t\t\t \n\t\t\t \n\t\t }\n\t\t d.findElement(By.linkText(Integer.toString(targetday))).click();\n\t\t Thread.sleep(1000L);\n\n\t}", "public static void printMonthBody(int year, int month) {\n int startDay = getStartDay(year, month);\n //call the method getStartDay to get the start day for each month of the year \n print(startDay,year,month);\n //call the method print to print the calender for the month and pass the first day of the month as the parameter \n \n }", "private void updateDisplay(int year, int month, int day) {\n\t\tDate = new StringBuilder().append(month + 1).append(\"-\").append(day).append(\"-\").append(year).append(\" \").toString();\r\n\t\tSystem.out.println(\"BirthDate==>\" + Date);\r\n\t\t btnBirthDate.setText(fun.getBirthDate(String.valueOf(month+1),String.valueOf(day),String.valueOf(year)));\r\n\t\t//btnBirthDate.setText(new StringBuilder().append(month + 1).append(\"-\").append(day).append(\"-\").append(year).append(\" \").toString());\r\n\t\t// Date=new StringBuilder().append(month + 1).append(\"-\").append(day).append(\"-\").append(year).append(\" \").toString();\r\n\t}", "@FXML\n private void changeMonth() throws NoSuchMethodException\n {\n String selected = cmbMonth.getValue();\n for (int i = 0; i < months.size(); i++)\n {\n if (selected.equals(months.get(i)))\n {\n month = i;\n }\n }\n fillCalendar();\n setMonth();\n parentContr.updatePieChart();\n\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n //setContentView(R.layout.main);\n \n calendar.moveCurrentDate();\n \n // Create a simple layout\n RelativeLayout layout = new RelativeLayout(this);\n layout.setLayoutParams(new RelativeLayout.LayoutParams(\n \t\tLayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT));\n\n mPrevYearButton = new Button(this); \n layout.addView(mPrevYearButton, \n \t\tnew RelativeLayout.LayoutParams(\n \t\t60,LayoutParams.WRAP_CONTENT));\n mPrevYearButton.setText(\"<<\");\n mPrevYearButton.setId(1);\n mPrevYearButton.setOnClickListener(new View.OnClickListener(){\n\t\t\t@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tcalendar.movePrevYear();\n\t\t\t\tdisplayCalendar();\n\t\t\t}\n });\n \n mPrevButton = new Button(this);\n mPrevButton.setText(\"<\"); \n layout.addView(mPrevButton);\n {\n\t RelativeLayout.LayoutParams lp = new RelativeLayout.LayoutParams(\n\t \t\t50,LayoutParams.WRAP_CONTENT);\n\t\t\tlp.addRule(RelativeLayout.RIGHT_OF, 1);\n\t\t\tmPrevButton.setLayoutParams(lp);\n }\n mPrevButton.setId(11);\n mPrevButton.setOnClickListener(new View.OnClickListener(){\n\t\t\t@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tcalendar.movePrevMonth();\n\t\t\t\tdisplayCalendar();\n\t\t\t}\n });\n \n mNextButton = new Button(this);\n mNextButton.setText(\">\"); \n layout.addView(mNextButton);\n {\n\t RelativeLayout.LayoutParams lp = new RelativeLayout.LayoutParams(\n\t \t\t50,LayoutParams.WRAP_CONTENT);\n\t\t\tlp.addRule(RelativeLayout.LEFT_OF, 3);\n\t mNextButton.setLayoutParams(lp);\n }\n mNextButton.setId(13);\n mNextButton.setOnClickListener(new View.OnClickListener(){\n\t\t\t@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tcalendar.moveNextMonth();\n\t\t\t\tdisplayCalendar();\n\t\t\t}\n });\n \n mNextYearButton = new Button(this);\n mNextYearButton.setText(\">>\"); \n layout.addView(mNextYearButton);\n {\n\t RelativeLayout.LayoutParams lp = new RelativeLayout.LayoutParams(\n\t \t\t60,LayoutParams.WRAP_CONTENT);\n\t\t\t//lp.addRule(RelativeLayout.RIGHT_OF, 2);\n\t lp.addRule(RelativeLayout.ALIGN_PARENT_RIGHT, 1);\n\t mNextYearButton.setLayoutParams(lp);\n }\n mNextYearButton.setId(3);\n mNextYearButton.setOnClickListener(new View.OnClickListener(){\n\t\t\t@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tcalendar.moveNextYear();\n\t\t\t\tdisplayCalendar();\n\t\t\t}\n });\n\n mDateText = new EditText(this);\n mDateText.setFocusableInTouchMode(false);\n layout.addView(mDateText);\n {\n\t RelativeLayout.LayoutParams lp = new RelativeLayout.LayoutParams(\n\t\t \t\tLayoutParams.WRAP_CONTENT,LayoutParams.WRAP_CONTENT);\n\t lp.addRule(RelativeLayout.RIGHT_OF, 11);\n\t lp.addRule(RelativeLayout.LEFT_OF, 13);\n\t mDateText.setLayoutParams(lp);\n }\n mDateText.setId(2); \n mDateText.setText(calendar.getCurrentYear()+\"년 \"+\n \t\tcalendar.getCurrentMonth()+\"월 \"+\n \t\tcalendar.getCurrentDay()+\"일\");\n \n /////////////////////////////////////////////////////////////////\n \n \n // Create Sheet View\n mCalendarView = new CalendarView(this);\n layout.addView(mCalendarView);\n {\n \tRelativeLayout.LayoutParams lp = new RelativeLayout.LayoutParams(\n\t LayoutParams.FILL_PARENT, LayoutParams.WRAP_CONTENT); \n \tlp.addRule(RelativeLayout.BELOW, 2);\n \tmCalendarView.setLayoutParams(lp);\n }\n mCalendarView.setId(5);\n \n // Set the layout as our content view\n setContentView(layout); \n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n background = new javax.swing.JPanel();\n barChart = new javax.swing.JPanel();\n barChartMonth = new javax.swing.JPanel();\n inputSearch = new javax.swing.JTextField();\n statisBtn = new javax.swing.JButton();\n jLabel1 = new javax.swing.JLabel();\n yearLabel = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n barChart.setBackground(new java.awt.Color(255, 255, 255));\n barChart.setLayout(new java.awt.BorderLayout());\n\n barChartMonth.setBackground(new java.awt.Color(255, 255, 255));\n barChartMonth.setLayout(new java.awt.BorderLayout());\n\n inputSearch.setFont(new java.awt.Font(\"Times New Roman\", 0, 24)); // NOI18N\n\n statisBtn.setBackground(new java.awt.Color(255, 255, 255));\n statisBtn.setFont(new java.awt.Font(\"Times New Roman\", 0, 24)); // NOI18N\n statisBtn.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Icon/area_chart_48px.png\"))); // NOI18N\n statisBtn.setText(\"Thống kê\");\n\n jLabel1.setFont(new java.awt.Font(\"Times New Roman\", 1, 16)); // NOI18N\n jLabel1.setForeground(new java.awt.Color(51, 51, 255));\n jLabel1.setText(\"Năm thống kê\");\n\n yearLabel.setFont(new java.awt.Font(\"Times New Roman\", 0, 36)); // NOI18N\n yearLabel.setForeground(new java.awt.Color(51, 51, 255));\n yearLabel.setText(\"Năm\");\n\n javax.swing.GroupLayout backgroundLayout = new javax.swing.GroupLayout(background);\n background.setLayout(backgroundLayout);\n backgroundLayout.setHorizontalGroup(\n backgroundLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(barChart, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(barChartMonth, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, backgroundLayout.createSequentialGroup()\n .addContainerGap()\n .addComponent(yearLabel)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 533, Short.MAX_VALUE)\n .addGroup(backgroundLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1)\n .addGroup(backgroundLayout.createSequentialGroup()\n .addComponent(inputSearch, javax.swing.GroupLayout.PREFERRED_SIZE, 345, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(26, 26, 26)\n .addComponent(statisBtn, javax.swing.GroupLayout.PREFERRED_SIZE, 190, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(27, 27, 27))\n );\n backgroundLayout.setVerticalGroup(\n backgroundLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(backgroundLayout.createSequentialGroup()\n .addGroup(backgroundLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(yearLabel)\n .addGroup(backgroundLayout.createSequentialGroup()\n .addComponent(jLabel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(backgroundLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(inputSearch, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(statisBtn, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(barChart, javax.swing.GroupLayout.PREFERRED_SIZE, 300, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(barChartMonth, javax.swing.GroupLayout.PREFERRED_SIZE, 300, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap())\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(background, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(background, javax.swing.GroupLayout.PREFERRED_SIZE, 683, javax.swing.GroupLayout.PREFERRED_SIZE)\n );\n\n pack();\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\n\t\t\t\tgetLayouts();\n\n\t\t\t\tCalendar next = (Calendar) calendar.clone();\n\n\t\t\t\tif (currentMonth > 11) {\n\t\t\t\t\tcurrentMonth = 1;\n\t\t\t\t\tcurrentYear++;\n\t\t\t\t} else {\n\t\t\t\t\tcurrentMonth++;\n\t\t\t\t}\n\n\t\t\t\tnext.set(Calendar.MONTH, currentMonth);\n\t\t\t\tnext.set(Calendar.YEAR, currentYear);\n\t\t\t\tnext.set(Calendar.DATE, 1);\n\n\t\t\t\tpositionNext = next.getTime().toString().split(\" \");\n\t\t\t\tgetCalendar(\n\t\t\t\t\t\tReturnCalendarDetails.getCurrentMonth(positionNext[1]),\n\t\t\t\t\t\tReturnCalendarDetails.getPosition(positionNext[0]),\n\t\t\t\t\t\tInteger.parseInt(positionNext[5]));\n\t\t\t}", "public void addMonthLabel(Model i)\n {\n String months = getMonth(i.getMonth());\n labelMonth = new JLabel(months);\n calendarPanel.add(labelMonth);\n labelMonth.setBounds(160- labelMonth.getPreferredSize().width/2, 25, 160, 25);\n }", "private void showMonth() {\n\t\tJPanel monthList = new JPanel();\n\t\tmonthList.setLayout(new BoxLayout(monthList, BoxLayout.Y_AXIS));\n\t\tString currentMonth = this.currentMonday.getDisplayName(Calendar.MONTH,\n\t\t\t\tCalendar.LONG, DEFAULT_LOCALE);\n\t\tJLabel monthName = new JLabel(currentMonth);\n\t\tmonthList.add(monthName);\n\t\tArrayList<Event> thismonth = this.calendar\n\t\t\t\t.getMonthsEvents(this.currentMonday);\n\t\tif (thismonth.isEmpty()) {\n\t\t\tmonthList.add(new JLabel(\"No high-priority\"));\n\t\t\tmonthList.add(new JLabel(\"events this month\"));\n\t\t} else {\n\t\t\tHashMap<String, Long> durations = new HashMap<String, Long>(\n\t\t\t\t\tthismonth.size());\n\t\t\tLong duration;\n\t\t\tLong previous;\n\t\t\tGregorianCalendar firstOf = (GregorianCalendar) this.currentMonday\n\t\t\t\t\t.clone();\n\t\t\tfirstOf = DateCalc.startOf(firstOf, Calendar.MONTH);\n\t\t\tfor (Event current : thismonth) {\n\t\t\t\tduration = new Long(current.getDurationInMonth(firstOf));\n\t\t\t\tprevious = durations.get(current.getCategory());\n\t\t\t\tif (previous != null) {\n\t\t\t\t\tprevious += duration;\n\t\t\t\t} else {\n\t\t\t\t\tdurations.put(current.getCategory(), duration);\n\t\t\t\t}\n\t\t\t\tmonthList.add(new JEventPreview(this, current));\n\t\t\t}\n\n\t\t\tJPanel summary = new JPanel();\n\t\t\tsummary.setLayout(new BoxLayout(summary, BoxLayout.Y_AXIS));\n\n\t\t\tJLabel label = new JLabel(\"Durations:\");\n\t\t\tsummary.add(label);\n\t\t\tJLabel line;\n\t\t\tfor (String current : durations.keySet()) {\n\t\t\t\tline = new JLabel(current\n\t\t\t\t\t\t+ \": \"\n\t\t\t\t\t\t+ TCalParser.presentDuration(durations.get(current)\n\t\t\t\t\t\t\t\t.longValue()));\n\t\t\t\tsummary.add(line);\n\t\t\t}\n\n\t\t\tmonthList.add(summary);\n\t\t}\n\n\t\tthis.toolPane.add(monthList);\n\t\tthis.toolPane.validate();\n\t}", "public void createCalenderView() {\n fill();\n\n int currentDateGrid = 0;\n everydayGridPane.setBackground(new Background(\n new BackgroundFill(Color.valueOf(\"383838\"), CornerRadii.EMPTY, Insets.EMPTY)));\n dateGridPane.setBackground(new Background(\n new BackgroundFill(Color.valueOf(\"383838\"), CornerRadii.EMPTY, Insets.EMPTY)));\n\n for (int row = 0; row <= 5; row++) {\n for (int col = 0; col <= 6; col++) {\n VBox holder = placeHolderForLabel();\n\n if ((currentDateGrid < previousMonthBalance)\n || (currentDateGrid > TOTAL_NUM_OF_DATEGRID - 1 - nextMonthBalance)) {\n holder.setBlendMode(BlendMode.SOFT_LIGHT);\n }\n\n if ((currentDateGrid == previousMonthBalance + day - 1)\n && (isSameMonth(datePointer, fixedDatePointer))) {\n holder.setBackground(new Background(\n new BackgroundFill(Color.DARKORANGE.darker(), CornerRadii.EMPTY, Insets.EMPTY)));\n\n holder.setBorder(new Border(new BorderStroke(Color.valueOf(\"#FFFFFF\"),\n BorderStrokeStyle.SOLID, CornerRadii.EMPTY, new BorderWidths(1))));\n }\n\n Label labelDay = createLabelDay(simulateGridPane[currentDateGrid]);\n holder.getChildren().add(labelDay);\n dateGridPane.add(holder, col, row);\n GridPane.setHalignment(holder, HPos.CENTER);\n GridPane.setValignment(holder, VPos.CENTER);\n\n currentDateGrid++;\n }\n }\n }", "private void dateView(){\n Jan1.setBackgroundResource(R.color.black);\n Jan2.setBackgroundResource(R.color.black);\n Jan3.setBackgroundResource(R.color.black);\n Jan4.setBackgroundResource(R.color.black);\n Jan5.setBackgroundResource(R.color.black);\n Jan6.setBackgroundResource(R.color.black);\n Jan7.setBackgroundResource(R.color.black);\n Jan8.setBackgroundResource(R.color.black);\n Jan9.setBackgroundResource(R.color.black);\n Jan10.setBackgroundResource(R.color.black);\n Jan11.setBackgroundResource(R.color.black);\n Jan12.setBackgroundResource(R.color.black);\n Jan13.setBackgroundResource(R.color.black);\n Jan14.setBackgroundResource(R.color.black);\n Jan15.setBackgroundResource(R.color.black);\n Jan16.setBackgroundResource(R.color.black);\n Jan17.setBackgroundResource(R.color.black);\n Jan18.setBackgroundResource(R.color.black);\n Jan19.setBackgroundResource(R.color.black);\n Jan20.setBackgroundResource(R.color.black);\n Jan21.setBackgroundResource(R.color.black);\n Jan22.setBackgroundResource(R.color.black);\n Jan23.setBackgroundResource(R.color.black);\n Jan24.setBackgroundResource(R.color.black);\n Jan25.setBackgroundResource(R.color.black);\n Jan26.setBackgroundResource(R.color.black);\n Jan27.setBackgroundResource(R.color.black);\n Jan28.setBackgroundResource(R.color.black);\n Jan29.setBackgroundResource(R.color.black);\n Jan30.setBackgroundResource(R.color.black);\n Jan31.setBackgroundResource(R.color.black);\n Feb1.setBackgroundResource(R.color.black);\n Feb2.setBackgroundResource(R.color.black);\n Feb3.setBackgroundResource(R.color.black);\n Feb4.setBackgroundResource(R.color.black);\n Feb5.setBackgroundResource(R.color.black);\n Feb6.setBackgroundResource(R.color.black);\n Feb7.setBackgroundResource(R.color.black);\n Feb8.setBackgroundResource(R.color.black);\n Feb9.setBackgroundResource(R.color.black);\n Feb10.setBackgroundResource(R.color.black);\n Feb11.setBackgroundResource(R.color.black);\n Feb12.setBackgroundResource(R.color.black);\n Feb13.setBackgroundResource(R.color.black);\n Feb14.setBackgroundResource(R.color.black);\n Feb15.setBackgroundResource(R.color.black);\n Feb16.setBackgroundResource(R.color.black);\n Feb17.setBackgroundResource(R.color.black);\n Feb18.setBackgroundResource(R.color.black);\n Feb19.setBackgroundResource(R.color.black);\n Feb20.setBackgroundResource(R.color.black);\n Feb21.setBackgroundResource(R.color.black);\n Feb22.setBackgroundResource(R.color.black);\n Feb23.setBackgroundResource(R.color.black);\n Feb24.setBackgroundResource(R.color.black);\n Feb25.setBackgroundResource(R.color.black);\n Feb26.setBackgroundResource(R.color.black);\n Feb27.setBackgroundResource(R.color.black);\n Feb28.setBackgroundResource(R.color.black);\n Feb29.setBackgroundResource(R.color.black);\n Mar1.setBackgroundResource(R.color.black);\n Mar2.setBackgroundResource(R.color.black);\n Mar3.setBackgroundResource(R.color.black);\n Mar4.setBackgroundResource(R.color.black);\n Mar5.setBackgroundResource(R.color.black);\n Mar6.setBackgroundResource(R.color.black);\n Mar7.setBackgroundResource(R.color.black);\n Mar8.setBackgroundResource(R.color.black);\n Mar9.setBackgroundResource(R.color.black);\n Mar10.setBackgroundResource(R.color.black);\n Mar11.setBackgroundResource(R.color.black);\n Mar12.setBackgroundResource(R.color.black);\n Mar13.setBackgroundResource(R.color.black);\n Mar14.setBackgroundResource(R.color.black);\n Mar15.setBackgroundResource(R.color.black);\n Mar16.setBackgroundResource(R.color.black);\n Mar17.setBackgroundResource(R.color.black);\n Mar18.setBackgroundResource(R.color.black);\n Mar19.setBackgroundResource(R.color.black);\n Mar20.setBackgroundResource(R.color.black);\n Mar21.setBackgroundResource(R.color.black);\n Mar22.setBackgroundResource(R.color.black);\n Mar23.setBackgroundResource(R.color.black);\n Mar24.setBackgroundResource(R.color.black);\n Mar25.setBackgroundResource(R.color.black);\n Mar26.setBackgroundResource(R.color.black);\n Mar27.setBackgroundResource(R.color.black);\n Mar28.setBackgroundResource(R.color.black);\n Mar29.setBackgroundResource(R.color.black);\n Mar30.setBackgroundResource(R.color.black);\n Mar31.setBackgroundResource(R.color.black);\n Apr1.setBackgroundResource(R.color.black);\n Apr2.setBackgroundResource(R.color.black);\n Apr3.setBackgroundResource(R.color.black);\n Apr4.setBackgroundResource(R.color.black);\n Apr5.setBackgroundResource(R.color.black);\n Apr6.setBackgroundResource(R.color.black);\n Apr7.setBackgroundResource(R.color.black);\n Apr8.setBackgroundResource(R.color.black);\n Apr9.setBackgroundResource(R.color.black);\n Apr10.setBackgroundResource(R.color.black);\n Apr11.setBackgroundResource(R.color.black);\n Apr12.setBackgroundResource(R.color.black);\n Apr13.setBackgroundResource(R.color.black);\n Apr14.setBackgroundResource(R.color.black);\n Apr15.setBackgroundResource(R.color.black);\n Apr16.setBackgroundResource(R.color.black);\n Apr17.setBackgroundResource(R.color.black);\n Apr18.setBackgroundResource(R.color.black);\n Apr19.setBackgroundResource(R.color.black);\n Apr20.setBackgroundResource(R.color.black);\n Apr21.setBackgroundResource(R.color.black);\n Apr22.setBackgroundResource(R.color.black);\n Apr23.setBackgroundResource(R.color.black);\n Apr24.setBackgroundResource(R.color.black);\n Apr25.setBackgroundResource(R.color.black);\n Apr26.setBackgroundResource(R.color.black);\n Apr27.setBackgroundResource(R.color.black);\n Apr28.setBackgroundResource(R.color.black);\n Apr29.setBackgroundResource(R.color.black);\n Apr30.setBackgroundResource(R.color.black);\n May1.setBackgroundResource(R.color.black);\n May2.setBackgroundResource(R.color.black);\n May3.setBackgroundResource(R.color.black);\n May4.setBackgroundResource(R.color.black);\n May5.setBackgroundResource(R.color.black);\n May6.setBackgroundResource(R.color.black);\n May7.setBackgroundResource(R.color.black);\n May8.setBackgroundResource(R.color.black);\n May9.setBackgroundResource(R.color.black);\n May10.setBackgroundResource(R.color.black);\n May11.setBackgroundResource(R.color.black);\n May12.setBackgroundResource(R.color.black);\n May13.setBackgroundResource(R.color.black);\n May14.setBackgroundResource(R.color.black);\n May15.setBackgroundResource(R.color.black);\n May16.setBackgroundResource(R.color.black);\n May17.setBackgroundResource(R.color.black);\n May18.setBackgroundResource(R.color.black);\n May19.setBackgroundResource(R.color.black);\n May20.setBackgroundResource(R.color.black);\n May21.setBackgroundResource(R.color.black);\n May22.setBackgroundResource(R.color.black);\n May23.setBackgroundResource(R.color.black);\n May24.setBackgroundResource(R.color.black);\n May25.setBackgroundResource(R.color.black);\n May26.setBackgroundResource(R.color.black);\n May27.setBackgroundResource(R.color.black);\n May28.setBackgroundResource(R.color.black);\n May29.setBackgroundResource(R.color.black);\n May30.setBackgroundResource(R.color.black);\n May31.setBackgroundResource(R.color.black);\n Jun1.setBackgroundResource(R.color.black);\n Jun2.setBackgroundResource(R.color.black);\n Jun3.setBackgroundResource(R.color.black);\n Jun4.setBackgroundResource(R.color.black);\n Jun5.setBackgroundResource(R.color.black);\n Jun6.setBackgroundResource(R.color.black);\n Jun7.setBackgroundResource(R.color.black);\n Jun8.setBackgroundResource(R.color.black);\n Jun9.setBackgroundResource(R.color.black);\n Jun10.setBackgroundResource(R.color.black);\n Jun11.setBackgroundResource(R.color.black);\n Jun12.setBackgroundResource(R.color.black);\n Jun13.setBackgroundResource(R.color.black);\n Jun14.setBackgroundResource(R.color.black);\n Jun15.setBackgroundResource(R.color.black);\n Jun16.setBackgroundResource(R.color.black);\n Jun17.setBackgroundResource(R.color.black);\n Jun18.setBackgroundResource(R.color.black);\n Jun19.setBackgroundResource(R.color.black);\n Jun20.setBackgroundResource(R.color.black);\n Jun21.setBackgroundResource(R.color.black);\n Jun22.setBackgroundResource(R.color.black);\n Jun23.setBackgroundResource(R.color.black);\n Jun24.setBackgroundResource(R.color.black);\n Jun25.setBackgroundResource(R.color.black);\n Jun26.setBackgroundResource(R.color.black);\n Jun27.setBackgroundResource(R.color.black);\n Jun28.setBackgroundResource(R.color.black);\n Jun29.setBackgroundResource(R.color.black);\n Jun30.setBackgroundResource(R.color.black);\n Jul1.setBackgroundResource(R.color.black);\n Jul2.setBackgroundResource(R.color.black);\n Jul3.setBackgroundResource(R.color.black);\n Jul4.setBackgroundResource(R.color.black);\n Jul5.setBackgroundResource(R.color.black);\n Jul6.setBackgroundResource(R.color.black);\n Jul7.setBackgroundResource(R.color.black);\n Jul8.setBackgroundResource(R.color.black);\n Jul9.setBackgroundResource(R.color.black);\n Jul10.setBackgroundResource(R.color.black);\n Jul11.setBackgroundResource(R.color.black);\n Jul12.setBackgroundResource(R.color.black);\n Jul13.setBackgroundResource(R.color.black);\n Jul14.setBackgroundResource(R.color.black);\n Jul15.setBackgroundResource(R.color.black);\n Jul16.setBackgroundResource(R.color.black);\n Jul17.setBackgroundResource(R.color.black);\n Jul18.setBackgroundResource(R.color.black);\n Jul19.setBackgroundResource(R.color.black);\n Jul20.setBackgroundResource(R.color.black);\n Jul21.setBackgroundResource(R.color.black);\n Jul22.setBackgroundResource(R.color.black);\n Jul23.setBackgroundResource(R.color.black);\n Jul24.setBackgroundResource(R.color.black);\n Jul25.setBackgroundResource(R.color.black);\n Jul26.setBackgroundResource(R.color.black);\n Jul27.setBackgroundResource(R.color.black);\n Jul28.setBackgroundResource(R.color.black);\n Jul29.setBackgroundResource(R.color.black);\n Jul30.setBackgroundResource(R.color.black);\n Jul31.setBackgroundResource(R.color.black);\n Aug1.setBackgroundResource(R.color.black);\n Aug2.setBackgroundResource(R.color.black);\n Aug3.setBackgroundResource(R.color.black);\n Aug4.setBackgroundResource(R.color.black);\n Aug5.setBackgroundResource(R.color.black);\n Aug6.setBackgroundResource(R.color.black);\n Aug7.setBackgroundResource(R.color.black);\n Aug8.setBackgroundResource(R.color.black);\n Aug9.setBackgroundResource(R.color.black);\n Aug10.setBackgroundResource(R.color.black);\n Aug11.setBackgroundResource(R.color.black);\n Aug12.setBackgroundResource(R.color.black);\n Aug13.setBackgroundResource(R.color.black);\n Aug14.setBackgroundResource(R.color.black);\n Aug15.setBackgroundResource(R.color.black);\n Aug16.setBackgroundResource(R.color.black);\n Aug17.setBackgroundResource(R.color.black);\n Aug18.setBackgroundResource(R.color.black);\n Aug19.setBackgroundResource(R.color.black);\n Aug20.setBackgroundResource(R.color.black);\n Aug21.setBackgroundResource(R.color.black);\n Aug22.setBackgroundResource(R.color.black);\n Aug23.setBackgroundResource(R.color.black);\n Aug24.setBackgroundResource(R.color.black);\n Aug25.setBackgroundResource(R.color.black);\n Aug26.setBackgroundResource(R.color.black);\n Aug27.setBackgroundResource(R.color.black);\n Aug28.setBackgroundResource(R.color.black);\n Aug29.setBackgroundResource(R.color.black);\n Aug30.setBackgroundResource(R.color.black);\n Aug31.setBackgroundResource(R.color.black);\n Sep1.setBackgroundResource(R.color.black);\n Sep2.setBackgroundResource(R.color.black);\n Sep3.setBackgroundResource(R.color.black);\n Sep4.setBackgroundResource(R.color.black);\n Sep5.setBackgroundResource(R.color.black);\n Sep6.setBackgroundResource(R.color.black);\n Sep7.setBackgroundResource(R.color.black);\n Sep8.setBackgroundResource(R.color.black);\n Sep9.setBackgroundResource(R.color.black);\n Sep10.setBackgroundResource(R.color.black);\n Sep11.setBackgroundResource(R.color.black);\n Sep12.setBackgroundResource(R.color.black);\n Sep13.setBackgroundResource(R.color.black);\n Sep14.setBackgroundResource(R.color.black);\n Sep15.setBackgroundResource(R.color.black);\n Sep16.setBackgroundResource(R.color.black);\n Sep17.setBackgroundResource(R.color.black);\n Sep18.setBackgroundResource(R.color.black);\n Sep19.setBackgroundResource(R.color.black);\n Sep20.setBackgroundResource(R.color.black);\n Sep21.setBackgroundResource(R.color.black);\n Sep22.setBackgroundResource(R.color.black);\n Sep23.setBackgroundResource(R.color.black);\n Sep24.setBackgroundResource(R.color.black);\n Sep25.setBackgroundResource(R.color.black);\n Sep26.setBackgroundResource(R.color.black);\n Sep27.setBackgroundResource(R.color.black);\n Sep28.setBackgroundResource(R.color.black);\n Sep29.setBackgroundResource(R.color.black);\n Sep30.setBackgroundResource(R.color.black);\n Oct1.setBackgroundResource(R.color.black);\n Oct2.setBackgroundResource(R.color.black);\n Oct3.setBackgroundResource(R.color.black);\n Oct4.setBackgroundResource(R.color.black);\n Oct5.setBackgroundResource(R.color.black);\n Oct6.setBackgroundResource(R.color.black);\n Oct7.setBackgroundResource(R.color.black);\n Oct8.setBackgroundResource(R.color.black);\n Oct9.setBackgroundResource(R.color.black);\n Oct10.setBackgroundResource(R.color.black);\n Oct11.setBackgroundResource(R.color.black);\n Oct12.setBackgroundResource(R.color.black);\n Oct13.setBackgroundResource(R.color.black);\n Oct14.setBackgroundResource(R.color.black);\n Oct15.setBackgroundResource(R.color.black);\n Oct16.setBackgroundResource(R.color.black);\n Oct17.setBackgroundResource(R.color.black);\n Oct18.setBackgroundResource(R.color.black);\n Oct19.setBackgroundResource(R.color.black);\n Oct20.setBackgroundResource(R.color.black);\n Oct21.setBackgroundResource(R.color.black);\n Oct22.setBackgroundResource(R.color.black);\n Oct23.setBackgroundResource(R.color.black);\n Oct24.setBackgroundResource(R.color.black);\n Oct25.setBackgroundResource(R.color.black);\n Oct26.setBackgroundResource(R.color.black);\n Oct27.setBackgroundResource(R.color.black);\n Oct28.setBackgroundResource(R.color.black);\n Oct29.setBackgroundResource(R.color.black);\n Oct30.setBackgroundResource(R.color.black);\n Oct31.setBackgroundResource(R.color.black);\n Nov1.setBackgroundResource(R.color.black);\n Nov2.setBackgroundResource(R.color.black);\n Nov3.setBackgroundResource(R.color.black);\n Nov4.setBackgroundResource(R.color.black);\n Nov5.setBackgroundResource(R.color.black);\n Nov6.setBackgroundResource(R.color.black);\n Nov7.setBackgroundResource(R.color.black);\n Nov8.setBackgroundResource(R.color.black);\n Nov9.setBackgroundResource(R.color.black);\n Nov10.setBackgroundResource(R.color.black);\n Nov11.setBackgroundResource(R.color.black);\n Nov12.setBackgroundResource(R.color.black);\n Nov13.setBackgroundResource(R.color.black);\n Nov14.setBackgroundResource(R.color.black);\n Nov15.setBackgroundResource(R.color.black);\n Nov16.setBackgroundResource(R.color.black);\n Nov17.setBackgroundResource(R.color.black);\n Nov18.setBackgroundResource(R.color.black);\n Nov19.setBackgroundResource(R.color.black);\n Nov20.setBackgroundResource(R.color.black);\n Nov21.setBackgroundResource(R.color.black);\n Nov22.setBackgroundResource(R.color.black);\n Nov23.setBackgroundResource(R.color.black);\n Nov24.setBackgroundResource(R.color.black);\n Nov25.setBackgroundResource(R.color.black);\n Nov26.setBackgroundResource(R.color.black);\n Nov27.setBackgroundResource(R.color.black);\n Nov28.setBackgroundResource(R.color.black);\n Nov29.setBackgroundResource(R.color.black);\n Nov30.setBackgroundResource(R.color.black);\n Dec1.setBackgroundResource(R.color.black);\n Dec2.setBackgroundResource(R.color.black);\n Dec3.setBackgroundResource(R.color.black);\n Dec4.setBackgroundResource(R.color.black);\n Dec5.setBackgroundResource(R.color.black);\n Dec6.setBackgroundResource(R.color.black);\n Dec7.setBackgroundResource(R.color.black);\n Dec8.setBackgroundResource(R.color.black);\n Dec9.setBackgroundResource(R.color.black);\n Dec10.setBackgroundResource(R.color.black);\n Dec11.setBackgroundResource(R.color.black);\n Dec12.setBackgroundResource(R.color.black);\n Dec13.setBackgroundResource(R.color.black);\n Dec14.setBackgroundResource(R.color.black);\n Dec15.setBackgroundResource(R.color.black);\n Dec16.setBackgroundResource(R.color.black);\n Dec17.setBackgroundResource(R.color.black);\n Dec18.setBackgroundResource(R.color.black);\n Dec19.setBackgroundResource(R.color.black);\n Dec20.setBackgroundResource(R.color.black);\n Dec21.setBackgroundResource(R.color.black);\n Dec22.setBackgroundResource(R.color.black);\n Dec23.setBackgroundResource(R.color.black);\n Dec24.setBackgroundResource(R.color.black);\n Dec25.setBackgroundResource(R.color.black);\n Dec26.setBackgroundResource(R.color.black);\n Dec27.setBackgroundResource(R.color.black);\n Dec28.setBackgroundResource(R.color.black);\n Dec29.setBackgroundResource(R.color.black);\n Dec30.setBackgroundResource(R.color.black);\n Dec31.setBackgroundResource(R.color.black);\n\n /* Sets active date */\n switch (currentDateSelection) {\n case \"1/1\":\n Jan1.setBackgroundResource(R.color.darkGray);\n focusOnView(Jan1);\n readDatabase();\n break;\n case \"1/2\":\n Jan2.setBackgroundResource(R.color.darkGray);\n focusOnView(Jan1);\n break;\n case \"1/3\":\n Jan3.setBackgroundResource(R.color.darkGray);\n focusOnView(Jan1);\n break;\n case \"1/4\":\n Jan4.setBackgroundResource(R.color.darkGray);\n focusOnView(Jan2);\n break;\n case \"1/5\":\n Jan5.setBackgroundResource(R.color.darkGray);\n focusOnView(Jan3);\n break;\n case \"1/6\":\n Jan6.setBackgroundResource(R.color.darkGray);\n focusOnView(Jan4);\n break;\n case \"1/7\":\n Jan7.setBackgroundResource(R.color.darkGray);\n focusOnView(Jan5);\n break;\n case \"1/8\":\n Jan8.setBackgroundResource(R.color.darkGray);\n focusOnView(Jan6);\n break;\n case \"1/9\":\n Jan9.setBackgroundResource(R.color.darkGray);\n focusOnView(Jan7);\n break;\n case \"1/10\":\n Jan10.setBackgroundResource(R.color.darkGray);\n focusOnView(Jan8);\n break;\n case \"1/11\":\n Jan11.setBackgroundResource(R.color.darkGray);\n focusOnView(Jan9);\n break;\n case \"1/12\":\n Jan12.setBackgroundResource(R.color.darkGray);\n focusOnView(Jan10);\n break;\n case \"1/13\":\n Jan13.setBackgroundResource(R.color.darkGray);\n focusOnView(Jan11);\n break;\n case \"1/14\":\n Jan14.setBackgroundResource(R.color.darkGray);\n focusOnView(Jan12);\n break;\n case \"1/15\":\n Jan15.setBackgroundResource(R.color.darkGray);\n focusOnView(Jan13);\n break;\n case \"1/16\":\n Jan16.setBackgroundResource(R.color.darkGray);\n focusOnView(Jan14);\n break;\n case \"1/17\":\n Jan17.setBackgroundResource(R.color.darkGray);\n focusOnView(Jan15);\n break;\n case \"1/18\":\n Jan18.setBackgroundResource(R.color.darkGray);\n focusOnView(Jan16);\n break;\n case \"1/19\":\n Jan19.setBackgroundResource(R.color.darkGray);\n focusOnView(Jan17);\n break;\n case \"1/20\":\n Jan20.setBackgroundResource(R.color.darkGray);\n focusOnView(Jan18);\n break;\n case \"1/21\":\n Jan21.setBackgroundResource(R.color.darkGray);\n focusOnView(Jan19);\n break;\n case \"1/22\":\n Jan22.setBackgroundResource(R.color.darkGray);\n focusOnView(Jan20);\n break;\n case \"1/23\":\n Jan23.setBackgroundResource(R.color.darkGray);\n focusOnView(Jan21);\n break;\n case \"1/24\":\n Jan24.setBackgroundResource(R.color.darkGray);\n focusOnView(Jan22);\n break;\n case \"1/25\":\n Jan25.setBackgroundResource(R.color.darkGray);\n focusOnView(Jan23);\n break;\n case \"1/26\":\n Jan26.setBackgroundResource(R.color.darkGray);\n focusOnView(Jan24);\n break;\n case \"1/27\":\n Jan27.setBackgroundResource(R.color.darkGray);\n focusOnView(Jan25);\n break;\n case \"1/28\":\n Jan28.setBackgroundResource(R.color.darkGray);\n focusOnView(Jan26);\n break;\n case \"1/29\":\n Jan29.setBackgroundResource(R.color.darkGray);\n focusOnView(Jan27);\n break;\n case \"1/30\":\n Jan30.setBackgroundResource(R.color.darkGray);\n focusOnView(Jan28);\n break;\n case \"1/31\":\n Jan31.setBackgroundResource(R.color.darkGray);\n focusOnView(Jan29);\n break;\n case \"2/1\":\n Feb1.setBackgroundResource(R.color.darkGray);\n focusOnView(Jan30);\n break;\n case \"2/2\":\n Feb2.setBackgroundResource(R.color.darkGray);\n focusOnView(Jan31);\n break;\n case \"2/3\":\n Feb3.setBackgroundResource(R.color.darkGray);\n focusOnView(Feb1);\n break;\n case \"2/4\":\n Feb4.setBackgroundResource(R.color.darkGray);\n focusOnView(Feb2);\n break;\n case \"2/5\":\n Feb5.setBackgroundResource(R.color.darkGray);\n focusOnView(Feb3);\n break;\n case \"2/6\":\n Feb6.setBackgroundResource(R.color.darkGray);\n focusOnView(Feb4);\n break;\n case \"2/7\":\n Feb7.setBackgroundResource(R.color.darkGray);\n focusOnView(Feb5);\n break;\n case \"2/8\":\n Feb8.setBackgroundResource(R.color.darkGray);\n focusOnView(Feb6);\n break;\n case \"2/9\":\n Feb9.setBackgroundResource(R.color.darkGray);\n focusOnView(Feb7);\n break;\n case \"2/10\":\n Feb10.setBackgroundResource(R.color.darkGray);\n focusOnView(Feb8);\n break;\n case \"2/11\":\n Feb11.setBackgroundResource(R.color.darkGray);\n focusOnView(Feb9);\n break;\n case \"2/12\":\n Feb12.setBackgroundResource(R.color.darkGray);\n focusOnView(Feb10);\n break;\n case \"2/13\":\n Feb13.setBackgroundResource(R.color.darkGray);\n focusOnView(Feb11);\n break;\n case \"2/14\":\n Feb14.setBackgroundResource(R.color.darkGray);\n focusOnView(Feb12);\n break;\n case \"2/15\":\n Feb15.setBackgroundResource(R.color.darkGray);\n focusOnView(Feb13);\n break;\n case \"2/16\":\n Feb16.setBackgroundResource(R.color.darkGray);\n focusOnView(Feb14);\n break;\n case \"2/17\":\n Feb17.setBackgroundResource(R.color.darkGray);\n focusOnView(Feb15);\n break;\n case \"2/18\":\n Feb18.setBackgroundResource(R.color.darkGray);\n focusOnView(Feb16);\n break;\n case \"2/19\":\n Feb19.setBackgroundResource(R.color.darkGray);\n focusOnView(Feb17);\n break;\n case \"2/20\":\n Feb20.setBackgroundResource(R.color.darkGray);\n focusOnView(Feb18);\n break;\n case \"2/21\":\n Feb21.setBackgroundResource(R.color.darkGray);\n focusOnView(Feb19);\n break;\n case \"2/22\":\n Feb22.setBackgroundResource(R.color.darkGray);\n focusOnView(Feb20);\n break;\n case \"2/23\":\n Feb23.setBackgroundResource(R.color.darkGray);\n focusOnView(Feb21);\n break;\n case \"2/24\":\n Feb24.setBackgroundResource(R.color.darkGray);\n focusOnView(Feb22);\n break;\n case \"2/25\":\n Feb25.setBackgroundResource(R.color.darkGray);\n focusOnView(Feb23);\n break;\n case \"2/26\":\n Feb26.setBackgroundResource(R.color.darkGray);\n focusOnView(Feb24);\n break;\n case \"2/27\":\n Feb27.setBackgroundResource(R.color.darkGray);\n focusOnView(Feb25);\n break;\n case \"2/28\":\n Feb28.setBackgroundResource(R.color.darkGray);\n focusOnView(Feb26);\n break;\n case \"2/29\":\n Feb29.setBackgroundResource(R.color.darkGray);\n focusOnView(Feb27);\n break;\n case \"3/1\":\n Mar1.setBackgroundResource(R.color.darkGray);\n focusOnView(Feb28);\n break;\n case \"3/2\":\n Mar2.setBackgroundResource(R.color.darkGray);\n focusOnView(Feb29);\n break;\n case \"3/3\":\n Mar3.setBackgroundResource(R.color.darkGray);\n focusOnView(Mar1);\n break;\n case \"3/4\":\n Mar4.setBackgroundResource(R.color.darkGray);\n focusOnView(Mar2);\n break;\n case \"3/5\":\n Mar5.setBackgroundResource(R.color.darkGray);\n focusOnView(Mar3);\n break;\n case \"3/6\":\n Mar6.setBackgroundResource(R.color.darkGray);\n focusOnView(Mar4);\n break;\n case \"3/7\":\n Mar7.setBackgroundResource(R.color.darkGray);\n focusOnView(Mar5);\n break;\n case \"3/8\":\n Mar8.setBackgroundResource(R.color.darkGray);\n focusOnView(Mar6);\n break;\n case \"3/9\":\n Mar9.setBackgroundResource(R.color.darkGray);\n focusOnView(Mar7);\n break;\n case \"3/10\":\n Mar10.setBackgroundResource(R.color.darkGray);\n focusOnView(Mar8);\n break;\n case \"3/11\":\n Mar11.setBackgroundResource(R.color.darkGray);\n focusOnView(Mar9);\n break;\n case \"3/12\":\n Mar12.setBackgroundResource(R.color.darkGray);\n focusOnView(Mar10);\n break;\n case \"3/13\":\n Mar13.setBackgroundResource(R.color.darkGray);\n focusOnView(Mar11);\n break;\n case \"3/14\":\n Mar14.setBackgroundResource(R.color.darkGray);\n focusOnView(Mar12);\n break;\n case \"3/15\":\n Mar15.setBackgroundResource(R.color.darkGray);\n focusOnView(Mar13);\n break;\n case \"3/16\":\n Mar16.setBackgroundResource(R.color.darkGray);\n focusOnView(Mar14);\n break;\n case \"3/17\":\n Mar17.setBackgroundResource(R.color.darkGray);\n focusOnView(Mar15);\n break;\n case \"3/18\":\n Mar18.setBackgroundResource(R.color.darkGray);\n focusOnView(Mar16);\n break;\n case \"3/19\":\n Mar19.setBackgroundResource(R.color.darkGray);\n focusOnView(Mar17);\n break;\n case \"3/20\":\n Mar20.setBackgroundResource(R.color.darkGray);\n focusOnView(Mar18);\n break;\n case \"3/21\":\n Mar21.setBackgroundResource(R.color.darkGray);\n focusOnView(Mar19);\n break;\n case \"3/22\":\n Mar22.setBackgroundResource(R.color.darkGray);\n focusOnView(Mar20);\n break;\n case \"3/23\":\n Mar23.setBackgroundResource(R.color.darkGray);\n focusOnView(Mar21);\n break;\n case \"3/24\":\n Mar24.setBackgroundResource(R.color.darkGray);\n focusOnView(Mar22);\n break;\n case \"3/25\":\n Mar25.setBackgroundResource(R.color.darkGray);\n focusOnView(Mar23);\n break;\n case \"3/26\":\n Mar26.setBackgroundResource(R.color.darkGray);\n focusOnView(Mar24);\n break;\n case \"3/27\":\n Mar27.setBackgroundResource(R.color.darkGray);\n focusOnView(Mar25);\n break;\n case \"3/28\":\n Mar28.setBackgroundResource(R.color.darkGray);\n focusOnView(Mar26);\n break;\n case \"3/29\":\n Mar29.setBackgroundResource(R.color.darkGray);\n focusOnView(Mar27);\n break;\n case \"3/30\":\n Mar30.setBackgroundResource(R.color.darkGray);\n focusOnView(Mar28);\n break;\n case \"3/31\":\n Mar31.setBackgroundResource(R.color.darkGray);\n focusOnView(Mar29);\n break;\n case \"4/1\":\n Apr1.setBackgroundResource(R.color.darkGray);\n focusOnView(Mar30);\n break;\n case \"4/2\":\n Apr2.setBackgroundResource(R.color.darkGray);\n focusOnView(Mar31);\n break;\n case \"4/3\":\n Apr3.setBackgroundResource(R.color.darkGray);\n focusOnView(Apr1);\n break;\n case \"4/4\":\n Apr4.setBackgroundResource(R.color.darkGray);\n focusOnView(Apr2);\n break;\n case \"4/5\":\n Apr5.setBackgroundResource(R.color.darkGray);\n focusOnView(Apr3);\n break;\n case \"4/6\":\n Apr6.setBackgroundResource(R.color.darkGray);\n focusOnView(Apr4);\n break;\n case \"4/7\":\n Apr7.setBackgroundResource(R.color.darkGray);\n focusOnView(Apr5);\n break;\n case \"4/8\":\n Apr8.setBackgroundResource(R.color.darkGray);\n focusOnView(Apr6);\n break;\n case \"4/9\":\n Apr9.setBackgroundResource(R.color.darkGray);\n focusOnView(Apr7);\n break;\n case \"4/10\":\n Apr10.setBackgroundResource(R.color.darkGray);\n focusOnView(Apr8);\n break;\n case \"4/11\":\n Apr11.setBackgroundResource(R.color.darkGray);\n focusOnView(Apr9);\n break;\n case \"4/12\":\n Apr12.setBackgroundResource(R.color.darkGray);\n focusOnView(Apr10);\n break;\n case \"4/13\":\n Apr13.setBackgroundResource(R.color.darkGray);\n focusOnView(Apr11);\n break;\n case \"4/14\":\n Apr14.setBackgroundResource(R.color.darkGray);\n focusOnView(Apr12);\n break;\n case \"4/15\":\n Apr15.setBackgroundResource(R.color.darkGray);\n focusOnView(Apr13);\n break;\n case \"4/16\":\n Apr16.setBackgroundResource(R.color.darkGray);\n focusOnView(Apr14);\n break;\n case \"4/17\":\n Apr17.setBackgroundResource(R.color.darkGray);\n focusOnView(Apr15);\n break;\n case \"4/18\":\n Apr18.setBackgroundResource(R.color.darkGray);\n focusOnView(Apr16);\n break;\n case \"4/19\":\n Apr19.setBackgroundResource(R.color.darkGray);\n focusOnView(Apr17);\n break;\n case \"4/20\":\n Apr20.setBackgroundResource(R.color.darkGray);\n focusOnView(Apr18);\n break;\n case \"4/21\":\n Apr21.setBackgroundResource(R.color.darkGray);\n focusOnView(Apr19);\n break;\n case \"4/22\":\n Apr22.setBackgroundResource(R.color.darkGray);\n focusOnView(Apr20);\n break;\n case \"4/23\":\n Apr23.setBackgroundResource(R.color.darkGray);\n focusOnView(Apr21);\n break;\n case \"4/24\":\n Apr24.setBackgroundResource(R.color.darkGray);\n focusOnView(Apr22);\n break;\n case \"4/25\":\n Apr25.setBackgroundResource(R.color.darkGray);\n focusOnView(Apr23);\n break;\n case \"4/26\":\n Apr26.setBackgroundResource(R.color.darkGray);\n focusOnView(Apr24);\n break;\n case \"4/27\":\n Apr27.setBackgroundResource(R.color.darkGray);\n focusOnView(Apr25);\n break;\n case \"4/28\":\n Apr28.setBackgroundResource(R.color.darkGray);\n focusOnView(Apr26);\n break;\n case \"4/29\":\n Apr29.setBackgroundResource(R.color.darkGray);\n focusOnView(Apr27);\n break;\n case \"4/30\":\n Apr30.setBackgroundResource(R.color.darkGray);\n focusOnView(Apr28);\n break;\n case \"5/1\":\n May1.setBackgroundResource(R.color.darkGray);\n focusOnView(Apr29);\n break;\n case \"5/2\":\n May2.setBackgroundResource(R.color.darkGray);\n focusOnView(Apr30);\n break;\n case \"5/3\":\n May3.setBackgroundResource(R.color.darkGray);\n focusOnView(May1);\n break;\n case \"5/4\":\n May4.setBackgroundResource(R.color.darkGray);\n focusOnView(May2);\n break;\n case \"5/5\":\n May5.setBackgroundResource(R.color.darkGray);\n focusOnView(May3);\n break;\n case \"5/6\":\n May6.setBackgroundResource(R.color.darkGray);\n focusOnView(May4);\n break;\n case \"5/7\":\n May7.setBackgroundResource(R.color.darkGray);\n focusOnView(May5);\n break;\n case \"5/8\":\n May8.setBackgroundResource(R.color.darkGray);\n focusOnView(May6);\n break;\n case \"5/9\":\n May9.setBackgroundResource(R.color.darkGray);\n focusOnView(May7);\n break;\n case \"5/10\":\n May10.setBackgroundResource(R.color.darkGray);\n focusOnView(May8);\n break;\n case \"5/11\":\n May11.setBackgroundResource(R.color.darkGray);\n focusOnView(May9);\n break;\n case \"5/12\":\n May12.setBackgroundResource(R.color.darkGray);\n focusOnView(May10);\n break;\n case \"5/13\":\n May13.setBackgroundResource(R.color.darkGray);\n focusOnView(May11);\n break;\n case \"5/14\":\n May14.setBackgroundResource(R.color.darkGray);\n focusOnView(May12);\n break;\n case \"5/15\":\n May15.setBackgroundResource(R.color.darkGray);\n focusOnView(May13);\n break;\n case \"5/16\":\n May16.setBackgroundResource(R.color.darkGray);\n focusOnView(May14);\n break;\n case \"5/17\":\n May17.setBackgroundResource(R.color.darkGray);\n focusOnView(May15);\n break;\n case \"5/18\":\n May18.setBackgroundResource(R.color.darkGray);\n focusOnView(May16);\n break;\n case \"5/19\":\n May19.setBackgroundResource(R.color.darkGray);\n focusOnView(May17);\n break;\n case \"5/20\":\n May20.setBackgroundResource(R.color.darkGray);\n focusOnView(May18);\n break;\n case \"5/21\":\n May21.setBackgroundResource(R.color.darkGray);\n focusOnView(May19);\n break;\n case \"5/22\":\n May22.setBackgroundResource(R.color.darkGray);\n focusOnView(May20);\n break;\n case \"5/23\":\n May23.setBackgroundResource(R.color.darkGray);\n focusOnView(May21);\n break;\n case \"5/24\":\n May24.setBackgroundResource(R.color.darkGray);\n focusOnView(May22);\n break;\n case \"5/25\":\n May25.setBackgroundResource(R.color.darkGray);\n focusOnView(May23);\n break;\n case \"5/26\":\n May26.setBackgroundResource(R.color.darkGray);\n focusOnView(May24);\n break;\n case \"5/27\":\n May27.setBackgroundResource(R.color.darkGray);\n focusOnView(May25);\n break;\n case \"5/28\":\n May28.setBackgroundResource(R.color.darkGray);\n focusOnView(May26);\n break;\n case \"5/29\":\n May29.setBackgroundResource(R.color.darkGray);\n focusOnView(May27);\n break;\n case \"5/30\":\n May30.setBackgroundResource(R.color.darkGray);\n focusOnView(May28);\n break;\n case \"5/31\":\n May31.setBackgroundResource(R.color.darkGray);\n focusOnView(May29);\n break;\n case \"6/1\":\n Jun1.setBackgroundResource(R.color.darkGray);\n focusOnView(May30);\n break;\n case \"6/2\":\n Jun2.setBackgroundResource(R.color.darkGray);\n focusOnView(May31);\n break;\n case \"6/3\":\n Jun3.setBackgroundResource(R.color.darkGray);\n focusOnView(Jun1);\n break;\n case \"6/4\":\n Jun4.setBackgroundResource(R.color.darkGray);\n focusOnView(Jun2);\n break;\n case \"6/5\":\n Jun5.setBackgroundResource(R.color.darkGray);\n focusOnView(Jun3);\n break;\n case \"6/6\":\n Jun6.setBackgroundResource(R.color.darkGray);\n focusOnView(Jun4);\n break;\n case \"6/7\":\n Jun7.setBackgroundResource(R.color.darkGray);\n focusOnView(Jun5);\n break;\n case \"6/8\":\n Jun8.setBackgroundResource(R.color.darkGray);\n focusOnView(Jun6);\n break;\n case \"6/9\":\n Jun9.setBackgroundResource(R.color.darkGray);\n focusOnView(Jun7);\n break;\n case \"6/10\":\n Jun10.setBackgroundResource(R.color.darkGray);\n focusOnView(Jun8);\n break;\n case \"6/11\":\n Jun11.setBackgroundResource(R.color.darkGray);\n focusOnView(Jun9);\n break;\n case \"6/12\":\n Jun12.setBackgroundResource(R.color.darkGray);\n focusOnView(Jun10);\n break;\n case \"6/13\":\n Jun13.setBackgroundResource(R.color.darkGray);\n focusOnView(Jun11);\n break;\n case \"6/14\":\n Jun14.setBackgroundResource(R.color.darkGray);\n focusOnView(Jun12);\n break;\n case \"6/15\":\n Jun15.setBackgroundResource(R.color.darkGray);\n focusOnView(Jun13);\n break;\n case \"6/16\":\n Jun16.setBackgroundResource(R.color.darkGray);\n focusOnView(Jun14);\n break;\n case \"6/17\":\n Jun17.setBackgroundResource(R.color.darkGray);\n focusOnView(Jun15);\n break;\n case \"6/18\":\n Jun18.setBackgroundResource(R.color.darkGray);\n focusOnView(Jun16);\n break;\n case \"6/19\":\n Jun19.setBackgroundResource(R.color.darkGray);\n focusOnView(Jun17);\n break;\n case \"6/20\":\n Jun20.setBackgroundResource(R.color.darkGray);\n focusOnView(Jun18);\n break;\n case \"6/21\":\n Jun21.setBackgroundResource(R.color.darkGray);\n focusOnView(Jun19);\n break;\n case \"6/22\":\n Jun22.setBackgroundResource(R.color.darkGray);\n focusOnView(Jun20);\n break;\n case \"6/23\":\n Jun23.setBackgroundResource(R.color.darkGray);\n focusOnView(Jun21);\n break;\n case \"6/24\":\n Jun24.setBackgroundResource(R.color.darkGray);\n focusOnView(Jun22);\n break;\n case \"6/25\":\n Jun25.setBackgroundResource(R.color.darkGray);\n focusOnView(Jun23);\n break;\n case \"6/26\":\n Jun26.setBackgroundResource(R.color.darkGray);\n focusOnView(Jun24);\n break;\n case \"6/27\":\n Jun27.setBackgroundResource(R.color.darkGray);\n focusOnView(Jun25);\n break;\n case \"6/28\":\n Jun28.setBackgroundResource(R.color.darkGray);\n focusOnView(Jun26);\n break;\n case \"6/29\":\n Jun29.setBackgroundResource(R.color.darkGray);\n focusOnView(Jun27);\n break;\n case \"6/30\":\n Jun30.setBackgroundResource(R.color.darkGray);\n focusOnView(Jun28);\n break;\n case \"7/1\":\n Jul1.setBackgroundResource(R.color.darkGray);\n focusOnView(Jun29);\n break;\n case \"7/2\":\n Jul2.setBackgroundResource(R.color.darkGray);\n focusOnView(Jun30);\n break;\n case \"7/3\":\n Jul3.setBackgroundResource(R.color.darkGray);\n focusOnView(Jul1);\n break;\n case \"7/4\":\n Jul4.setBackgroundResource(R.color.darkGray);\n focusOnView(Jul2);\n break;\n case \"7/5\":\n Jul5.setBackgroundResource(R.color.darkGray);\n focusOnView(Jul3);\n break;\n case \"7/6\":\n Jul6.setBackgroundResource(R.color.darkGray);\n focusOnView(Jul4);\n break;\n case \"7/7\":\n Jul7.setBackgroundResource(R.color.darkGray);\n focusOnView(Jul5);\n break;\n case \"7/8\":\n Jul8.setBackgroundResource(R.color.darkGray);\n focusOnView(Jul6);\n break;\n case \"7/9\":\n Jul9.setBackgroundResource(R.color.darkGray);\n focusOnView(Jul7);\n break;\n case \"7/10\":\n Jul10.setBackgroundResource(R.color.darkGray);\n focusOnView(Jul8);\n break;\n case \"7/11\":\n Jul11.setBackgroundResource(R.color.darkGray);\n focusOnView(Jul9);\n break;\n case \"7/12\":\n Jul12.setBackgroundResource(R.color.darkGray);\n focusOnView(Jul10);\n break;\n case \"7/13\":\n Jul13.setBackgroundResource(R.color.darkGray);\n focusOnView(Jul11);\n break;\n case \"7/14\":\n Jul14.setBackgroundResource(R.color.darkGray);\n focusOnView(Jul12);\n break;\n case \"7/15\":\n Jul15.setBackgroundResource(R.color.darkGray);\n focusOnView(Jul13);\n break;\n case \"7/16\":\n Jul16.setBackgroundResource(R.color.darkGray);\n focusOnView(Jul14);\n break;\n case \"7/17\":\n Jul17.setBackgroundResource(R.color.darkGray);\n focusOnView(Jul15);\n break;\n case \"7/18\":\n Jul18.setBackgroundResource(R.color.darkGray);\n focusOnView(Jul16);\n break;\n case \"7/19\":\n Jul19.setBackgroundResource(R.color.darkGray);\n focusOnView(Jul17);\n break;\n case \"7/20\":\n Jul20.setBackgroundResource(R.color.darkGray);\n focusOnView(Jul18);\n break;\n case \"7/21\":\n Jul21.setBackgroundResource(R.color.darkGray);\n focusOnView(Jul19);\n break;\n case \"7/22\":\n Jul22.setBackgroundResource(R.color.darkGray);\n focusOnView(Jul20);\n break;\n case \"7/23\":\n Jul23.setBackgroundResource(R.color.darkGray);\n focusOnView(Jul21);\n break;\n case \"7/24\":\n Jul24.setBackgroundResource(R.color.darkGray);\n focusOnView(Jul22);\n break;\n case \"7/25\":\n Jul25.setBackgroundResource(R.color.darkGray);\n focusOnView(Jul23);\n break;\n case \"7/26\":\n Jul26.setBackgroundResource(R.color.darkGray);\n focusOnView(Jul24);\n break;\n case \"7/27\":\n Jul27.setBackgroundResource(R.color.darkGray);\n focusOnView(Jul25);\n break;\n case \"7/28\":\n Jul28.setBackgroundResource(R.color.darkGray);\n focusOnView(Jul26);\n break;\n case \"7/29\":\n Jul29.setBackgroundResource(R.color.darkGray);\n focusOnView(Jul27);\n break;\n case \"7/30\":\n Jul30.setBackgroundResource(R.color.darkGray);\n focusOnView(Jul28);\n break;\n case \"7/31\":\n Jul31.setBackgroundResource(R.color.darkGray);\n focusOnView(Jul29);\n break;\n case \"8/1\":\n Aug1.setBackgroundResource(R.color.darkGray);\n focusOnView(Jul30);\n break;\n case \"8/2\":\n Aug2.setBackgroundResource(R.color.darkGray);\n focusOnView(Jul31);\n break;\n case \"8/3\":\n Aug3.setBackgroundResource(R.color.darkGray);\n focusOnView(Aug1);\n break;\n case \"8/4\":\n Aug4.setBackgroundResource(R.color.darkGray);\n focusOnView(Aug2);\n break;\n case \"8/5\":\n Aug5.setBackgroundResource(R.color.darkGray);\n focusOnView(Aug3);\n break;\n case \"8/6\":\n Aug6.setBackgroundResource(R.color.darkGray);\n focusOnView(Aug4);\n break;\n case \"8/7\":\n Aug7.setBackgroundResource(R.color.darkGray);\n focusOnView(Aug5);\n break;\n case \"8/8\":\n Aug8.setBackgroundResource(R.color.darkGray);\n focusOnView(Aug6);\n break;\n case \"8/9\":\n Aug9.setBackgroundResource(R.color.darkGray);\n focusOnView(Aug7);\n break;\n case \"8/10\":\n Aug10.setBackgroundResource(R.color.darkGray);\n focusOnView(Aug8);\n break;\n case \"8/11\":\n Aug11.setBackgroundResource(R.color.darkGray);\n focusOnView(Aug9);\n break;\n case \"8/12\":\n Aug12.setBackgroundResource(R.color.darkGray);\n focusOnView(Aug10);\n break;\n case \"8/13\":\n Aug13.setBackgroundResource(R.color.darkGray);\n focusOnView(Aug11);\n break;\n case \"8/14\":\n Aug14.setBackgroundResource(R.color.darkGray);\n focusOnView(Aug12);\n break;\n case \"8/15\":\n Aug15.setBackgroundResource(R.color.darkGray);\n focusOnView(Aug13);\n break;\n case \"8/16\":\n Aug16.setBackgroundResource(R.color.darkGray);\n focusOnView(Aug14);\n break;\n case \"8/17\":\n Aug17.setBackgroundResource(R.color.darkGray);\n focusOnView(Aug15);\n break;\n case \"8/18\":\n Aug18.setBackgroundResource(R.color.darkGray);\n focusOnView(Aug16);\n break;\n case \"8/19\":\n Aug19.setBackgroundResource(R.color.darkGray);\n focusOnView(Aug17);\n break;\n case \"8/20\":\n Aug20.setBackgroundResource(R.color.darkGray);\n focusOnView(Aug18);\n break;\n case \"8/21\":\n Aug21.setBackgroundResource(R.color.darkGray);\n focusOnView(Aug19);\n break;\n case \"8/22\":\n Aug22.setBackgroundResource(R.color.darkGray);\n focusOnView(Aug20);\n break;\n case \"8/23\":\n Aug23.setBackgroundResource(R.color.darkGray);\n focusOnView(Aug21);\n break;\n case \"8/24\":\n Aug24.setBackgroundResource(R.color.darkGray);\n focusOnView(Aug22);\n break;\n case \"8/25\":\n Aug25.setBackgroundResource(R.color.darkGray);\n focusOnView(Aug23);\n break;\n case \"8/26\":\n Aug26.setBackgroundResource(R.color.darkGray);\n focusOnView(Aug24);\n break;\n case \"8/27\":\n Aug27.setBackgroundResource(R.color.darkGray);\n focusOnView(Aug25);\n break;\n case \"8/28\":\n Aug28.setBackgroundResource(R.color.darkGray);\n focusOnView(Aug26);\n break;\n case \"8/29\":\n Aug29.setBackgroundResource(R.color.darkGray);\n focusOnView(Aug27);\n break;\n case \"8/30\":\n Aug30.setBackgroundResource(R.color.darkGray);\n focusOnView(Aug28);\n break;\n case \"8/31\":\n Aug31.setBackgroundResource(R.color.darkGray);\n focusOnView(Aug29);\n break;\n case \"9/1\":\n Sep1.setBackgroundResource(R.color.darkGray);\n focusOnView(Aug30);\n break;\n case \"9/2\":\n Sep2.setBackgroundResource(R.color.darkGray);\n focusOnView(Aug31);\n break;\n case \"9/3\":\n Sep3.setBackgroundResource(R.color.darkGray);\n focusOnView(Sep1);\n break;\n case \"9/4\":\n Sep4.setBackgroundResource(R.color.darkGray);\n focusOnView(Sep2);\n break;\n case \"9/5\":\n Sep5.setBackgroundResource(R.color.darkGray);\n focusOnView(Sep3);\n break;\n case \"9/6\":\n Sep6.setBackgroundResource(R.color.darkGray);\n focusOnView(Sep4);\n break;\n case \"9/7\":\n Sep7.setBackgroundResource(R.color.darkGray);\n focusOnView(Sep5);\n break;\n case \"9/8\":\n Sep8.setBackgroundResource(R.color.darkGray);\n focusOnView(Sep6);\n break;\n case \"9/9\":\n Sep9.setBackgroundResource(R.color.darkGray);\n focusOnView(Sep7);\n break;\n case \"9/10\":\n Sep10.setBackgroundResource(R.color.darkGray);\n focusOnView(Sep8);\n break;\n case \"9/11\":\n Sep11.setBackgroundResource(R.color.darkGray);\n focusOnView(Sep9);\n break;\n case \"9/12\":\n Sep12.setBackgroundResource(R.color.darkGray);\n focusOnView(Sep10);\n break;\n case \"9/13\":\n Sep13.setBackgroundResource(R.color.darkGray);\n focusOnView(Sep11);\n break;\n case \"9/14\":\n Sep14.setBackgroundResource(R.color.darkGray);\n focusOnView(Sep12);\n break;\n case \"9/15\":\n Sep15.setBackgroundResource(R.color.darkGray);\n focusOnView(Sep13);\n break;\n case \"9/16\":\n Sep16.setBackgroundResource(R.color.darkGray);\n focusOnView(Sep14);\n break;\n case \"9/17\":\n Sep17.setBackgroundResource(R.color.darkGray);\n focusOnView(Sep15);\n break;\n case \"9/18\":\n Sep18.setBackgroundResource(R.color.darkGray);\n focusOnView(Sep16);\n break;\n case \"9/19\":\n Sep19.setBackgroundResource(R.color.darkGray);\n focusOnView(Sep17);\n break;\n case \"9/20\":\n Sep20.setBackgroundResource(R.color.darkGray);\n focusOnView(Sep18);\n break;\n case \"9/21\":\n Sep21.setBackgroundResource(R.color.darkGray);\n focusOnView(Sep19);\n break;\n case \"9/22\":\n Sep22.setBackgroundResource(R.color.darkGray);\n focusOnView(Sep20);\n break;\n case \"9/23\":\n Sep23.setBackgroundResource(R.color.darkGray);\n focusOnView(Sep21);\n break;\n case \"9/24\":\n Sep24.setBackgroundResource(R.color.darkGray);\n focusOnView(Sep22);\n break;\n case \"9/25\":\n Sep25.setBackgroundResource(R.color.darkGray);\n focusOnView(Sep23);\n break;\n case \"9/26\":\n Sep26.setBackgroundResource(R.color.darkGray);\n focusOnView(Sep24);\n break;\n case \"9/27\":\n Sep27.setBackgroundResource(R.color.darkGray);\n focusOnView(Sep25);\n break;\n case \"9/28\":\n Sep28.setBackgroundResource(R.color.darkGray);\n focusOnView(Sep26);\n break;\n case \"9/29\":\n Sep29.setBackgroundResource(R.color.darkGray);\n focusOnView(Sep27);\n break;\n case \"9/30\":\n Sep30.setBackgroundResource(R.color.darkGray);\n focusOnView(Sep28);\n break;\n case \"10/1\":\n Oct1.setBackgroundResource(R.color.darkGray);\n focusOnView(Sep29);\n break;\n case \"10/2\":\n Oct2.setBackgroundResource(R.color.darkGray);\n focusOnView(Sep30);\n break;\n case \"10/3\":\n Oct3.setBackgroundResource(R.color.darkGray);\n focusOnView(Oct1);\n break;\n case \"10/4\":\n Oct4.setBackgroundResource(R.color.darkGray);\n focusOnView(Oct2);\n break;\n case \"10/5\":\n Oct5.setBackgroundResource(R.color.darkGray);\n focusOnView(Oct3);\n break;\n case \"10/6\":\n Oct6.setBackgroundResource(R.color.darkGray);\n focusOnView(Oct4);\n break;\n case \"10/7\":\n Oct7.setBackgroundResource(R.color.darkGray);\n focusOnView(Oct5);\n break;\n case \"10/8\":\n Oct8.setBackgroundResource(R.color.darkGray);\n focusOnView(Oct6);\n break;\n case \"10/9\":\n Oct9.setBackgroundResource(R.color.darkGray);\n focusOnView(Oct7);\n break;\n case \"10/10\":\n Oct10.setBackgroundResource(R.color.darkGray);\n focusOnView(Oct8);\n break;\n case \"10/11\":\n Oct11.setBackgroundResource(R.color.darkGray);\n focusOnView(Oct9);\n break;\n case \"10/12\":\n Oct12.setBackgroundResource(R.color.darkGray);\n focusOnView(Oct10);\n break;\n case \"10/13\":\n Oct13.setBackgroundResource(R.color.darkGray);\n focusOnView(Oct11);\n break;\n case \"10/14\":\n Oct14.setBackgroundResource(R.color.darkGray);\n focusOnView(Oct12);\n break;\n case \"10/15\":\n Oct15.setBackgroundResource(R.color.darkGray);\n focusOnView(Oct13);\n break;\n case \"10/16\":\n Oct16.setBackgroundResource(R.color.darkGray);\n focusOnView(Oct14);\n break;\n case \"10/17\":\n Oct17.setBackgroundResource(R.color.darkGray);\n focusOnView(Oct15);\n break;\n case \"10/18\":\n Oct18.setBackgroundResource(R.color.darkGray);\n focusOnView(Oct16);\n break;\n case \"10/19\":\n Oct19.setBackgroundResource(R.color.darkGray);\n focusOnView(Oct17);\n break;\n case \"10/20\":\n Oct20.setBackgroundResource(R.color.darkGray);\n focusOnView(Oct18);\n break;\n case \"10/21\":\n Oct21.setBackgroundResource(R.color.darkGray);\n focusOnView(Oct19);\n break;\n case \"10/22\":\n Oct22.setBackgroundResource(R.color.darkGray);\n focusOnView(Oct20);\n break;\n case \"10/23\":\n Oct23.setBackgroundResource(R.color.darkGray);\n focusOnView(Oct21);\n break;\n case \"10/24\":\n Oct24.setBackgroundResource(R.color.darkGray);\n focusOnView(Oct22);\n break;\n case \"10/25\":\n Oct25.setBackgroundResource(R.color.darkGray);\n focusOnView(Oct23);\n break;\n case \"10/26\":\n Oct26.setBackgroundResource(R.color.darkGray);\n focusOnView(Oct24);\n break;\n case \"10/27\":\n Oct27.setBackgroundResource(R.color.darkGray);\n focusOnView(Oct25);\n break;\n case \"10/28\":\n Oct28.setBackgroundResource(R.color.darkGray);\n focusOnView(Oct26);\n break;\n case \"10/29\":\n Oct29.setBackgroundResource(R.color.darkGray);\n focusOnView(Oct27);\n break;\n case \"10/30\":\n Oct30.setBackgroundResource(R.color.darkGray);\n focusOnView(Oct28);\n break;\n case \"10/31\":\n Oct31.setBackgroundResource(R.color.darkGray);\n focusOnView(Oct29);\n break;\n case \"11/1\":\n Nov1.setBackgroundResource(R.color.darkGray);\n focusOnView(Oct30);\n break;\n case \"11/2\":\n Nov2.setBackgroundResource(R.color.darkGray);\n focusOnView(Oct31);\n break;\n case \"11/3\":\n Nov3.setBackgroundResource(R.color.darkGray);\n focusOnView(Nov1);\n break;\n case \"11/4\":\n Nov4.setBackgroundResource(R.color.darkGray);\n focusOnView(Nov2);\n break;\n case \"11/5\":\n Nov5.setBackgroundResource(R.color.darkGray);\n focusOnView(Nov3);\n break;\n case \"11/6\":\n Nov6.setBackgroundResource(R.color.darkGray);\n focusOnView(Nov4);\n break;\n case \"11/7\":\n Nov7.setBackgroundResource(R.color.darkGray);\n focusOnView(Nov5);\n break;\n case \"11/8\":\n Nov8.setBackgroundResource(R.color.darkGray);\n focusOnView(Nov6);\n break;\n case \"11/9\":\n Nov9.setBackgroundResource(R.color.darkGray);\n focusOnView(Nov7);\n break;\n case \"11/10\":\n Nov10.setBackgroundResource(R.color.darkGray);\n focusOnView(Nov8);\n break;\n case \"11/11\":\n Nov11.setBackgroundResource(R.color.darkGray);\n focusOnView(Nov9);\n break;\n case \"11/12\":\n Nov12.setBackgroundResource(R.color.darkGray);\n focusOnView(Nov10);\n break;\n case \"11/13\":\n Nov13.setBackgroundResource(R.color.darkGray);\n focusOnView(Nov11);\n break;\n case \"11/14\":\n Nov14.setBackgroundResource(R.color.darkGray);\n focusOnView(Nov12);\n break;\n case \"11/15\":\n Nov15.setBackgroundResource(R.color.darkGray);\n focusOnView(Nov13);\n break;\n case \"11/16\":\n Nov16.setBackgroundResource(R.color.darkGray);\n focusOnView(Nov14);\n break;\n case \"11/17\":\n Nov17.setBackgroundResource(R.color.darkGray);\n focusOnView(Nov15);\n break;\n case \"11/18\":\n Nov18.setBackgroundResource(R.color.darkGray);\n focusOnView(Nov16);\n break;\n case \"11/19\":\n Nov19.setBackgroundResource(R.color.darkGray);\n focusOnView(Nov17);\n break;\n case \"11/20\":\n Nov20.setBackgroundResource(R.color.darkGray);\n focusOnView(Nov18);\n break;\n case \"11/21\":\n Nov21.setBackgroundResource(R.color.darkGray);\n focusOnView(Nov19);\n break;\n case \"11/22\":\n Nov22.setBackgroundResource(R.color.darkGray);\n focusOnView(Nov20);\n break;\n case \"11/23\":\n Nov23.setBackgroundResource(R.color.darkGray);\n focusOnView(Nov21);\n break;\n case \"11/24\":\n Nov24.setBackgroundResource(R.color.darkGray);\n focusOnView(Nov22);\n break;\n case \"11/25\":\n Nov25.setBackgroundResource(R.color.darkGray);\n focusOnView(Nov23);\n break;\n case \"11/26\":\n Nov26.setBackgroundResource(R.color.darkGray);\n focusOnView(Nov24);\n break;\n case \"11/27\":\n Nov27.setBackgroundResource(R.color.darkGray);\n focusOnView(Nov25);\n break;\n case \"11/28\":\n Nov28.setBackgroundResource(R.color.darkGray);\n focusOnView(Nov26);\n break;\n case \"11/29\":\n Nov29.setBackgroundResource(R.color.darkGray);\n focusOnView(Nov27);\n break;\n case \"11/30\":\n Nov30.setBackgroundResource(R.color.darkGray);\n focusOnView(Nov28);\n break;\n case \"12/1\":\n Dec1.setBackgroundResource(R.color.darkGray);\n focusOnView(Nov29);\n break;\n case \"12/2\":\n Dec2.setBackgroundResource(R.color.darkGray);\n focusOnView(Nov30);\n break;\n case \"12/3\":\n Dec3.setBackgroundResource(R.color.darkGray);\n focusOnView(Dec1);\n break;\n case \"12/4\":\n Dec4.setBackgroundResource(R.color.darkGray);\n focusOnView(Dec2);\n break;\n case \"12/5\":\n Dec5.setBackgroundResource(R.color.darkGray);\n focusOnView(Dec3);\n break;\n case \"12/6\":\n Dec6.setBackgroundResource(R.color.darkGray);\n focusOnView(Dec4);\n break;\n case \"12/7\":\n Dec7.setBackgroundResource(R.color.darkGray);\n focusOnView(Dec5);\n break;\n case \"12/8\":\n Dec8.setBackgroundResource(R.color.darkGray);\n focusOnView(Dec6);\n break;\n case \"12/9\":\n Dec9.setBackgroundResource(R.color.darkGray);\n focusOnView(Dec7);\n break;\n case \"12/10\":\n Dec10.setBackgroundResource(R.color.darkGray);\n focusOnView(Dec8);\n break;\n case \"12/11\":\n Dec11.setBackgroundResource(R.color.darkGray);\n focusOnView(Dec9);\n break;\n case \"12/12\":\n Dec12.setBackgroundResource(R.color.darkGray);\n focusOnView(Dec10);\n break;\n case \"12/13\":\n Dec13.setBackgroundResource(R.color.darkGray);\n focusOnView(Dec11);\n break;\n case \"12/14\":\n Dec14.setBackgroundResource(R.color.darkGray);\n focusOnView(Dec12);\n //readDatabase();\n break;\n case \"12/15\":\n Dec15.setBackgroundResource(R.color.darkGray);\n focusOnView(Dec13);\n break;\n case \"12/16\":\n Dec16.setBackgroundResource(R.color.darkGray);\n focusOnView(Dec14);\n break;\n case \"12/17\":\n Dec17.setBackgroundResource(R.color.darkGray);\n focusOnView(Dec15);\n break;\n case \"12/18\":\n Dec18.setBackgroundResource(R.color.darkGray);\n focusOnView(Dec16);\n break;\n case \"12/19\":\n Dec19.setBackgroundResource(R.color.darkGray);\n focusOnView(Dec17);\n break;\n case \"12/20\":\n Dec20.setBackgroundResource(R.color.darkGray);\n focusOnView(Dec18);\n break;\n case \"12/21\":\n Dec21.setBackgroundResource(R.color.darkGray);\n focusOnView(Dec19);\n break;\n case \"12/22\":\n Dec22.setBackgroundResource(R.color.darkGray);\n focusOnView(Dec20);\n break;\n case \"12/23\":\n Dec23.setBackgroundResource(R.color.darkGray);\n focusOnView(Dec21);\n break;\n case \"12/24\":\n Dec24.setBackgroundResource(R.color.darkGray);\n focusOnView(Dec22);\n break;\n case \"12/25\":\n Dec25.setBackgroundResource(R.color.darkGray);\n focusOnView(Dec23);\n break;\n case \"12/26\":\n Dec26.setBackgroundResource(R.color.darkGray);\n focusOnView(Dec24);\n break;\n case \"12/27\":\n Dec27.setBackgroundResource(R.color.darkGray);\n focusOnView(Dec25);\n break;\n case \"12/28\":\n Dec28.setBackgroundResource(R.color.darkGray);\n focusOnView(Dec26);\n break;\n case \"12/29\":\n Dec29.setBackgroundResource(R.color.darkGray);\n focusOnView(Dec27);\n break;\n case \"12/30\":\n Dec30.setBackgroundResource(R.color.darkGray);\n focusOnView(Dec28);\n break;\n case \"12/31\":\n Dec31.setBackgroundResource(R.color.darkGray);\n focusOnView(Dec29);\n break;\n default:\n wodTest.setText(\"Error\");\n break;\n }\n\n\n\n }", "public static void monthSelect(WebDriver driver, String munth, String dey) {\n\tdriver.findElement(By.id(\"travel_date\")).click();// opens up calender\n\t\n\t\n\t\t\n\t\tString month = driver.findElement(By.cssSelector(\"[class='datepicker-days'] [class='datepicker-switch']\")).getText();\n\t\tSystem.out.println(month);\n\t\t// prints out the first visible month\n\t\t\n\t\t\n\t\twhile(!\tdriver.findElement(By.cssSelector(\"[class='datepicker-days'] [class='datepicker-switch']\")).getText().contains(munth)) {\n\t\t\t\tdriver.findElement(By.cssSelector(\"[class=' table-condensed'] [class='next']\")).click();\n\t\t\t\t// clicks on the next button\n\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\tList <WebElement> dates = driver.findElements(By.cssSelector(\".day\"));\n\t\t//42\n\t\t// select all calenders\n\t\t\n\t\tint count = dates.size();\n\t\t// returns the size as 0\n\t\t\n\t\t\n\t\tfor(int i =0; i<count;i++) {\n\t\t\t//String Day = \"24\";\n\t\t\tString text = driver.findElements(By.cssSelector(\".day\")).get(i).getText();\n\t\t\tSystem.out.println(text);\n\t\t\t\n\t\t\tif(text.equalsIgnoreCase(dey)){\n\t\t\t\tdriver.findElements(By.cssSelector(\".day\")).get(i).click();\n\t\t\t\t// clicks on the 24\n\t\t\t}\n\t\t}\n\t\t\n\t}", "private void jbInit() throws Exception {\r\n setLayout(new BorderLayout());\r\n\r\n // set how the cloning should be done\r\n if (this.FORCE_SERIALIZE_COPY) {\r\n getMonthSelectorStyle().forceSerializeCopy(true);\r\n getDaySelectorStyle().forceSerializeCopy(true);\r\n getTodaySelectorStyle().forceSerializeCopy(true);\r\n }\r\n\r\n // update or set the locale\r\n getMonthSelectorStyle().setLocale(locale);\r\n getDaySelectorStyle().setLocale(locale);\r\n\r\n // set up the calendar panel\r\n daySelector = new DaySelector(getDaySelectorStyle());\r\n daySelector.addActionListener(new ActionListener() {\r\n public void actionPerformed(ActionEvent e) {\r\n if (e.getID() == DateChooserAction.calendarButtonSelected) {\r\n currentDate.set(java.util.Calendar.DAY_OF_MONTH,\r\n ( (DaySelector) e.getSource()).selectedDay);\r\n selectedDate = (Calendar) currentDate.clone();\r\n getParent().setVisible(false);\r\n }\r\n }\r\n });\r\n add(daySelector, daySelectorPosition);\r\n\r\n // set up the month selector panel\r\n if (showMonthSelector) {\r\n monthSelector = new MonthSelector(getMonthSelectorStyle());\r\n monthSelector.addActionListener(new ActionListener() {\r\n public void actionPerformed(ActionEvent e) {\r\n if (e.getID() == DateChooserAction.previousMonthSelected) {\r\n currentDate.add(java.util.Calendar.MONTH, -1);\r\n update();\r\n }\r\n if (e.getID() == DateChooserAction.nextMonthSelected) {\r\n currentDate.add(java.util.Calendar.MONTH, 1);\r\n update();\r\n }\r\n }\r\n });\r\n add(monthSelector, monthSelectorPosition);\r\n }\r\n\r\n // add the today selector panel\r\n if (showTodaySelector) {\r\n todaySelector = new TodaySelector(getTodaySelectorStyle());\r\n todaySelector.addActionListener(new ActionListener() {\r\n public void actionPerformed(ActionEvent e) {\r\n if (e.getID() == DateChooserAction.todaySelected) {\r\n currentDate.setTime(Calendar.getInstance().getTime());\r\n selectedDate = (Calendar) currentDate.clone();\r\n getParent().setVisible(false);\r\n }\r\n }\r\n });\r\n add(todaySelector, todaySelectorPosition);\r\n }\r\n update();\r\n }", "public void addMonthActionListener(ActionListener l)\n {\n nextButton.addActionListener(l);\n }", "public void uiBuilder(){\n fontLoader();\n\n jfFrame = new JFrame(String.format(\"Coronos - %s\", username));\n jfFrame.setLayout(new BorderLayout());\n //Instantiate JFrame, add Title, add LayoutManager GridLayout\n\n\n jmMenuBar = new JMenuBar();\n //Instantiate JMenuBar\n\n jmFile = new JMenu(\"File\");\n jmHelp = new JMenu(\"Help\");\n //Adding Menus to JMenuBar\n\n jmExit = new JMenuItem(\"Exit\");\n jmAbout = new JMenuItem(\"About\");\n //Instantiating Options for JMenus\n\n jmExit.addActionListener(this);\n jmAbout.addActionListener(this);\n\n jmFile.add(jmExit);\n jmHelp.add(jmAbout);\n //adding Options to JMenus\n\n jmMenuBar.add(jmFile);\n jmMenuBar.add(jmHelp);\n //adding JMenus to JMenuBar\n\n jfFrame.setJMenuBar(jmMenuBar);\n //adding JMenuBar to JFrame\n\n jpClockPanel = new JPanel(new FlowLayout());\n jpContainerPanel = new JPanel(new FlowLayout());\n Border blackLine = BorderFactory.createTitledBorder(\"Current Time\");\n jpClockPanel.setBorder(blackLine);\n //instantiate JPanel for clock\n\n clockLabelOne = new JLabel();\n clockLabelOne.setFont(customFont);\n clockLabelOne.setForeground(Color.BLACK);\n jpClockPanel.add(clockLabelOne);\n //instantiating JLabel, setting Font and Color, adding to clockPanel\n\n clockLabelTwo = new JLabel();\n clockLabelTwo.setFont(customFont);\n clockLabelTwo.setForeground(Color.BLACK);\n jpClockPanel.add(clockLabelTwo);\n clockLabelTwo.setVisible(false);\n //instantiating JLabel, setting Font and Color, adding to clockPanel\n\n jpGridPanel1 = new JPanel(new GridLayout(4, 1, 15, 15));\n jpGridPanel2 = new JPanel(new GridLayout(4, 1, 15, 15));\n\n jbPunchIn = new JButton(\"Punch In\");\n jbReport = new JButton(\"View Report\");\n jbProfile = new JButton(\"View Profile\");\n jbSave = new JButton(\"Save\");\n jbPunchOut = new JButton(\"Punch Out\");\n jbViewPunches = new JButton(\"View Punches\");\n jbFormatTime = new JButton(\"12/24HR Time\");\n jbHideChat = new JButton(\"Hide Chat\");\n\n jbHideChat.setToolTipText(\"Hate your co-workers? Want to hide from your boss? Just close chat!\");\n\n jbPunchIn.addActionListener(this);\n jbReport.addActionListener(this);\n jbProfile.addActionListener(this);\n jbSave.addActionListener(this);\n jbPunchOut.addActionListener(this);\n jbViewPunches.addActionListener(this);\n jbFormatTime.addActionListener(this);\n jbHideChat.addActionListener(this);\n\n jpGridPanel1.add(jbPunchIn);\n jpGridPanel1.add(jbReport);\n jpGridPanel1.add(jbProfile);\n jpGridPanel1.add(jbSave);\n\n jpGridPanel2.add(jbPunchOut);\n jpGridPanel2.add(jbViewPunches);\n jpGridPanel2.add(jbFormatTime);\n jpGridPanel2.add(jbHideChat);\n\n jpActionPanel = new JPanel(new FlowLayout());\n Border actionBorder = BorderFactory.createTitledBorder(\"Employee Actions\");\n jpActionPanel.setBorder(actionBorder);\n jpActionPanel.add(jpGridPanel1);\n jpActionPanel.add(jpGridPanel2);\n jpContainerPanel.add(jpActionPanel);\n\n jpChatPanel = new JPanel(new BorderLayout());\n jpAreaPanel = new JPanel(new FlowLayout());\n jtaChatArea = new JTextArea(10, 10);\n jtaChatArea.setLineWrap(true);\n jtaChatArea.setWrapStyleWord(true);\n jtaChatArea.setEditable(false);\n jspChatPane = new JScrollPane(jtaChatArea);\n jtfChatField = new JTextField(12);\n jtfChatField.addActionListener(this);\n jtfChatField.setActionCommand(\"Send\");\n chatButton = new JButton(\"Send\");\n chatButton.addActionListener(this);\n jpSendPanel = new JPanel(new FlowLayout());\n jpSendPanel.add(jtfChatField);\n jpSendPanel.add(chatButton);\n Border chatBorder = BorderFactory.createTitledBorder(\"Chat\");\n jpChatPanel.setBorder(chatBorder);\n jpChatPanel.add(jspChatPane, BorderLayout.NORTH);\n jpChatPanel.add(jpSendPanel, BorderLayout.SOUTH);\n jpContainerPanel.add(jpChatPanel);\n\n // jfFrame.add(clockPanelTwo, BorderLayout.NORTH);\n jfFrame.add(jpClockPanel, BorderLayout.NORTH);\n jfFrame.add(jpContainerPanel, BorderLayout.SOUTH);\n\n //adding JPanels to JFrame\n\n jfFrame.setLocationRelativeTo(null);\n jfFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n jfFrame.setVisible(false);\n jfFrame.pack();\n jfFrame.setSize(600, 375);\n jfFrame.setResizable(false);\n \n //settings for frame\n\n ActionListener clockUpdateOne = new ActionListener(){\n /**\n * actionPerformed: A method to handle Events from a Timer\n * @param ae an ActionEvent\n */\n public void actionPerformed(ActionEvent ae){\n Date date = new Date();\n //instantiate new Date object\n\n DateFormat format = new SimpleDateFormat(\"E, MMM d y HH:mm:ss\");\n //set format of clock\n\n DateFormat otherFormat = new SimpleDateFormat(\"E, MMM, d y KK:mm:ss a\");\n //12 hour time\n\n String dateTime = format.format(date);\n //formatting date object using format template\n\n String otherDateTime = otherFormat.format(date);\n\n clockLabelOne.setText(dateTime);\n //setting clock text to formatted String\n }\n };\n clockTimerOne = new javax.swing.Timer(0, clockUpdateOne);\n clockTimerOne.start();\n //timer to update clockLabel\n ActionListener clockUpdateTwo = new ActionListener(){\n /**\n * actionPerformed: A method to handle Events from a Timer\n * @param ae an ActionEvent\n */\n public void actionPerformed(ActionEvent ae){\n Date date = new Date();\n //instantiate new Date object\n\n DateFormat otherFormat = new SimpleDateFormat(\"E, MMM, d y K:mm:ss a\");\n //12 hour time\n\n String otherDateTime = otherFormat.format(date);\n\n clockLabelTwo.setText(otherDateTime);\n //setting clock text to formatted String\n }\n };\n clockTimerTwo = new javax.swing.Timer(0, clockUpdateTwo);\n clockTimerTwo.start();\n\n }", "CalendarFrame(EventModel eM) {\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tsetTitle(\"CS151Project\");\n\t\tsetSize(1200, 400);\n\t\tsetVisible(true);\n\t\tsetLayout(new GridLayout(1, 2));\n\t\taddWindowListener(new WindowAdapter()\n\t\t{\n\t\t public void windowClosing(WindowEvent e)\n\t\t {\n\t\t \tObjectOutputStream out = null;\n\t\t\t\ttry {\n\t\t\t\t\tout = new ObjectOutputStream(new FileOutputStream(\"events.data\"));\n\t\t\t\t\tout.writeObject(eventsData.getAllEvents());\n\t\t\t\t\tout.close();\n\t\t\t\t} catch (FileNotFoundException e1) {\n\t\t\t\t\tpromptMsg(e1.getMessage(), \"Message\");\n\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\tpromptMsg(e1.getMessage(), \"Message\");\n\t\t\t\t}\n\t\t }\n\t\t});\n\n\t\teventsData = eM;\n\t\teventsRender = new DayViewRender();\n\n\t\teventsData.attach(new ChangeListener() {\n\n\t\t\t@Override\n\t\t\tpublic void stateChanged(ChangeEvent e) {\n\t\t\t\tupdateData();\n\t\t\t\tupdateTableView();\n\t\t\t\tupdateEventsView(eventsRender);\n\t\t\t}\n\t\t});\n\n\t\t// previous day button\n\t\tJButton preDay = new JButton(\"<-\");\n\t\tpreDay.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent ae) {\n\t\t\t\tcal.add(Calendar.DAY_OF_MONTH, -1);\n\t\t\t\teventsData.updateDate(cal);\n\t\t\t}\n\t\t});\n\n\t\t// current day button\n\t\tJButton today = new JButton(\"Today\");\n\t\ttoday.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent ae) {\n\t\t\t\tcal = new GregorianCalendar();\n\t\t\t\teventsData.updateDate(cal);\n\t\t\t}\n\t\t});\n\n\t\t// next day button\n\t\tJButton nextDay = new JButton(\"->\");\n\t\tnextDay.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent ae) {\n\t\t\t\tcal.add(Calendar.DAY_OF_MONTH, +1);\n\t\t\t\teventsData.updateDate(cal);\n\t\t\t}\n\t\t});\n\n\t\t// Top1 left: panel1\n\t\tJPanel panel1 = new JPanel();\n\t\tpanel1.setLayout(new BorderLayout());\n\t\tpanel1.add(preDay, BorderLayout.WEST);\n\t\tpanel1.add(today, BorderLayout.CENTER);\n\t\tpanel1.add(nextDay, BorderLayout.EAST);\n\n\t\t// previous month button\n\t\tJButton b1 = new JButton(\"<-\");\n\t\tb1.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent ae) {\n\t\t\t\tcal.add(Calendar.MONTH, -1);\n\t\t\t\teventsData.updateDate(cal);\n\t\t\t}\n\t\t});\n\n\t\t// next month button\n\t\tJButton b2 = new JButton(\"->\");\n\t\tb2.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent ae) {\n\t\t\t\tcal.add(Calendar.MONTH, +1);\n\t\t\t\teventsData.updateDate(cal);\n\t\t\t}\n\t\t});\n\n\t\t// Month year label\n\t\tlabel = new JLabel();\n\t\tlabel.setHorizontalAlignment(SwingConstants.CENTER);\n\n\t\t// Top2 left: panel2\n\t\tJPanel panel2 = new JPanel();\n\t\tpanel2.setLayout(new BorderLayout());\n\t\tpanel2.add(b1, BorderLayout.WEST);\n\t\tpanel2.add(label, BorderLayout.CENTER);\n\t\tpanel2.add(b2, BorderLayout.EAST);\n\n\t\tJPanel topLeft = new JPanel();\n\t\ttopLeft.setLayout(new GridLayout(2, 1));\n\t\ttopLeft.add(panel1);\n\t\ttopLeft.add(panel2);\n\n\t\t// Calendar model\n\t\tString[] columns = { \"Sun\", \"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\" };\n\t\tmodel = new DefaultTableModel(null, columns) {\n\t\t\tpublic boolean isCellEditable(int row, int column) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t};\n\n\t\t// Calendar table\n\t\ttable = new JTable(model) {\n\t\t\tpublic TableCellRenderer getCellRenderer(int row, int column) {\n\t\t\t\treturn new CellRenderer();\n\t\t\t}\n\t\t};\n\t\ttable.setCellSelectionEnabled(true);\n\t\ttable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n\t\ttable.addMouseListener(new MouseAdapter() {\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tint rowCal = table.getSelectedRow();\n\t\t\t\tint columnCal = table.getSelectedColumn();\n\t\t\t\tint val = (int) model.getValueAt(rowCal, columnCal);\n\t\t\t\tcal.set(Calendar.DAY_OF_MONTH, val);\n\t\t\t\teventsData.updateDate(cal);\n\t\t\t}\n\t\t});\n\n\t\t// middle left: pane1\n\t\tJScrollPane pane1 = new JScrollPane(table);\n\n\t\t// bottom left: create\n\t\tJButton create = new JButton(\"Create\");\n\t\tcreate.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tcreateFrame();\n\t\t\t}\n\t\t});\n\n\t\t// left: paneLeft\n\t\tJPanel panelLeft = new JPanel();\n\t\tpanelLeft.setLayout(new BorderLayout());\n\t\tpanelLeft.add(topLeft, BorderLayout.NORTH);\n\t\tpanelLeft.add(pane1, BorderLayout.CENTER);\n\t\tpanelLeft.add(create, BorderLayout.SOUTH);\n\n\t\t// top right\n\t\tJButton dayView = new JButton(\"Day\");\n\t\tdayView.addActionListener(eventsViewListener(DAY));\n\t\tJButton weekView = new JButton(\"Week\");\n\t\tweekView.addActionListener(eventsViewListener(WEEK));\n\t\tJButton monthView = new JButton(\"Month\");\n\t\tmonthView.addActionListener(eventsViewListener(MONTH));\n\t\tJButton agendaView = new JButton(\"Agenda\");\n\t\tagendaView.addActionListener(eventsViewListener(AGENDA));\n\t\tJButton inputFile = new JButton(\"From File\");\n\t\tinputFile.addActionListener(loadFile());\n\t\tJPanel topRightPanel = new JPanel();\n\t\ttopRightPanel.setLayout(new GridLayout(1, 5));\n\t\ttopRightPanel.add(dayView);\n\t\ttopRightPanel.add(weekView);\n\t\ttopRightPanel.add(monthView);\n\t\ttopRightPanel.add(agendaView);\n\t\ttopRightPanel.add(inputFile);\n\n\t\t// Events table\n\t\teventsTable = new JTable() {\n\t\t\tpublic Component prepareRenderer(TableCellRenderer renderer, int row, int column) {\n\t\t\t\tComponent result = super.prepareRenderer(renderer, row, column);\n\t\t\t\tif (result instanceof JComponent) {\n\t\t\t\t\t((JComponent) result).setBorder(new MatteBorder(1, 1, 0, 0, Color.BLACK));\n\t\t\t\t}\n\t\t\t\treturn result;\n\t\t\t}\n\t\t};\n\n\t\tJScrollPane pane2 = new JScrollPane(eventsTable);\n\n\t\tJPanel panelRight = new JPanel();\n\t\tpanelRight.setLayout(new BorderLayout());\n\t\tpanelRight.add(topRightPanel, BorderLayout.NORTH);\n\t\tpanelRight.add(pane2, BorderLayout.CENTER);\n\n\t\tadd(panelLeft);\n\t\tadd(panelRight);\n\n\t\teventsRender = new DayViewRender();\n\t\tupdateData();\n\t\tupdateTableView();\n\t\tupdateEventsView(eventsRender);\n\n\t}", "private HBox setButtons() {\r\n\r\n\t\tButton btnNewBuild = new Button(\"First Building\"); //button to select the first building\r\n\t\tbtnNewBuild.setOnAction(new EventHandler<ActionEvent>() {\r\n\t\t\t@Override\r\n\t\t\tpublic void handle(ActionEvent event) {\r\n\t\t\t\ttheBuilding = new Building(buildingString());\r\n\r\n\t\t\t\tdrawBuilding(); // then redraw the building\r\n\t\t\t}\r\n\t\t});\r\n\t\tButton btnNewBuild2 = new Button(\"Second Building\"); //Button to select the second building\r\n\t\tbtnNewBuild2.setOnAction(new EventHandler<ActionEvent>() {\r\n\t\t\t@Override\r\n\t\t\tpublic void handle(ActionEvent event) {\r\n\t\t\t\ttheBuilding = new Building(buildingString2());\r\n\r\n\t\t\t\tdrawBuilding(); // then redraw the building\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tButton btnStart = new Button(\"Start\"); //button to start the animation \r\n\t\tbtnStart.setOnAction(new EventHandler<ActionEvent>() {\r\n\t\t\t@Override\r\n\t\t\tpublic void handle(ActionEvent event) {\r\n\t\t\t\ttimer.start(); // whose action is to start the timer\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tButton btnStop = new Button(\"Pause\"); //button to pause the animation\r\n\t\tbtnStop.setOnAction(new EventHandler<ActionEvent>() {\r\n\t\t\t@Override\r\n\t\t\tpublic void handle(ActionEvent event) {\r\n\t\t\t\ttimer.stop(); // and its action to stop the timer\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tButton btnRestart = new Button(\"RstBuilding1\"); // new button for restarting the first building\r\n\t\tbtnRestart.setOnAction(new EventHandler<ActionEvent>() {\r\n\t\t\t@Override\r\n\t\t\tpublic void handle(ActionEvent event) {\r\n\t\t\t\ttheBuilding = new Building(buildingString()); //calling the first building\r\n\t\t\t\ttimer.stop();\t\t\t\t\t\t\t\t\t//setting the animation to stop\r\n\t\t\t\tdrawBuilding();\t\t\t\t\t\t\t\t\t//redrawing the building\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tButton btnRestart2 = new Button(\"RstBuilding2\"); // new button for restarting building 2\r\n\t\tbtnRestart2.setOnAction(new EventHandler<ActionEvent>() {\r\n\t\t\t@Override\r\n\t\t\tpublic void handle(ActionEvent event) {\r\n\t\t\t\ttheBuilding = new Building(buildingString2()); //calling the second building\r\n\t\t\t\ttimer.stop();\t\t\t\t\t\t\t\t\t//setting the animation time to stop\r\n\t\t\t\tdrawBuilding();\t\t\t\t\t\t\t\t\t//redrawing the building\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tButton btnAdd = new Button(\"Another Person\"); // new button for adding person\r\n\t\tbtnAdd.setOnAction(new EventHandler<ActionEvent>() {\r\n\t\t\t@Override\r\n\t\t\tpublic void handle(ActionEvent event) {\r\n\t\t\t\ttheBuilding.addPerson(); // and its action to stop the timer\r\n\t\t\t\tdrawBuilding();\t\t\t//re drawing the building \r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tButton btnRemove = new Button(\"Remove A Person\"); // new button for removing person\r\n\t\tbtnRemove.setOnAction(new EventHandler<ActionEvent>() {\r\n\t\t\t@Override\r\n\t\t\tpublic void handle(ActionEvent event) {\r\n\t\t\t\ttheBuilding.removePerson(); // and its action to stop the timer\r\n\t\t\t\tdrawBuilding(); // redrawing the buildinf\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\t// now add these buttons + labels to a HBox\r\n\t\tHBox hbox = new HBox(new Label(\"Config: \"), btnNewBuild, btnNewBuild2, new Label(\"Run: \"), btnStart, btnStop,\r\n\t\t\t\tnew Label(\"Person: \"), btnAdd, btnRemove, new Label(\"RstBuildings: \"), btnRestart, btnRestart2);\r\n\t\treturn hbox;\r\n\t}", "public static void print(int startDay, int year, int month) {\n //call the method getNumberOfdaysInMonth to find out the number of the days in the month \n //use a for loop to print spaces up to the start day for each month\n //use another for loop to print the rest of the days in the calender\n //if the month is November calculate the thanksgiving day and output }\n int amount = getNumberOfDaysInMonth(year,month);\n for(int e = 0; e < startDay; e++){//this print outs the spaces for the months and aligns the dates together\n System.out.print(\" \");//use a for loop to print spaces up to the start day for each month\n }\n for(int e = 1; e <= amount; e++){//use another for loop to print the rest of the days in the calender\n if(e < 10){\n System.out.print(\" \" + e + \" \");//for the spaces\n }\n else{\n System.out.print(\" \" + e + \" \");\n }\n if((startDay + e) % 7 == 0){ \n System.out.println();\n }\n }\n thanks(startDay, month);//call the method thanks so it can work correctly\n }", "static public void main(String[] s) {\n JFrame frame = new JFrame(\"MonthChooser\");\n frame.getContentPane().add(new JMonthChooser());\n frame.pack();\n frame.setVisible(true);\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n buttonGroup1 = new javax.swing.ButtonGroup();\n jPanel1 = new javax.swing.JPanel();\n jButton2 = new javax.swing.JButton();\n Inicio = new com.toedter.calendar.JDateChooser();\n Final = new com.toedter.calendar.JDateChooser();\n Inicio2 = new javax.swing.JLabel();\n Final2 = new javax.swing.JLabel();\n jScrollPane1 = new javax.swing.JScrollPane();\n Lote = new javax.swing.JTable();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jPanel1.setBackground(new java.awt.Color(17, 111, 172));\n jPanel1.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jButton2.setFont(new java.awt.Font(\"Dialog\", 1, 14)); // NOI18N\n jButton2.setForeground(new java.awt.Color(255, 255, 255));\n jButton2.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/iconoso/icons8-multiedición-50.png\"))); // NOI18N\n jButton2.setText(\"Generar reporte\");\n jButton2.setContentAreaFilled(false);\n jButton2.setRolloverIcon(new javax.swing.ImageIcon(getClass().getResource(\"/iconoso/icons8-multiedición-filled-50.png\"))); // NOI18N\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n jPanel1.add(jButton2, new org.netbeans.lib.awtextra.AbsoluteConstraints(870, 20, -1, -1));\n jPanel1.add(Inicio, new org.netbeans.lib.awtextra.AbsoluteConstraints(80, 40, 139, -1));\n jPanel1.add(Final, new org.netbeans.lib.awtextra.AbsoluteConstraints(300, 40, 140, -1));\n\n Inicio2.setForeground(new java.awt.Color(255, 255, 255));\n Inicio2.setText(\"Inicio\");\n jPanel1.add(Inicio2, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 40, -1, -1));\n\n Final2.setForeground(new java.awt.Color(255, 255, 255));\n Final2.setText(\"Final\");\n jPanel1.add(Final2, new org.netbeans.lib.awtextra.AbsoluteConstraints(240, 40, -1, -1));\n\n Lote.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null}\n },\n new String [] {\n \"Title 1\", \"Title 2\", \"Title 3\", \"Title 4\"\n }\n ));\n Lote.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n LoteMouseClicked(evt);\n }\n });\n jScrollPane1.setViewportView(Lote);\n\n jPanel1.add(jScrollPane1, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 110, 1270, 420));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, 1291, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, 546, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n );\n\n pack();\n }", "@Override\n public List<? extends WeekViewEvent> onMonthChange(int newYear, int newMonth) {\n\n List<WeekViewEvent> eventsList = new ArrayList<WeekViewEvent>();\n\n for (int i = 0; i < events.size(); i++) {\n if (newMonth - 2 == fromEpoch(events.get(i).getTimeInMillis())) {\n Calendar startTime = Calendar.getInstance();\n WeekViewEvent event;\n startTime.setTimeInMillis(events.get(i).getTimeInMillis());\n //startTime.set(Calendar.MONTH, newMonth-2);\n Calendar endTime = (Calendar) startTime.clone();\n endTime.setTimeInMillis(events.get(i).getTimeInMillis() + (3600000 * events.get(i).getDurationHour())\n + (60000 * events.get(i).getDurationMin()));\n //endTime.set(Calendar.MONTH, newMonth-2);\n event = new WeekViewEvent(events.get(i).getID(), events.get(i).getData().toString(), startTime, endTime);\n event.setColor(events.get(i).getColor());\n eventsList.add(event);\n }\n }\n\n return eventsList;\n }", "private void initializeCalendarTab() {\r\n\r\n calTab = new JPanel(new GridBagLayout());\r\n calTab.setBackground(MainGUI.backgroundColor);\r\n calTab.setBorder(BorderFactory.createLineBorder(Color.BLACK, 1));\r\n calendarConstraints = new GridBagConstraints();\r\n\r\n // calendar\r\n cal_calendarLabel = new JLabel(\"Search Appointments\");\r\n cal_chooseDateLabel = new JLabel(\"Choose Date\");\r\n cal_calendarDisplayLabel = new JLabel(\"Calendar\");\r\n cal_chooseDateButton = new JButton(\"Look Up\");\r\n cal_datePicker = createDatePicker(false);\r\n\r\n // set font\r\n cal_calendarLabel.setFont(new Font((cal_calendarLabel.getFont().getFontName()), Font.PLAIN, 40));\r\n\r\n cal_calendarLabel.setForeground(MainGUI.fontColor);\r\n cal_chooseDateLabel.setForeground(MainGUI.fontColor);\r\n cal_calendarDisplayLabel.setForeground(MainGUI.fontColor);\r\n cal_chooseDateLabel.setForeground(MainGUI.fontColor);\r\n\r\n // create table\r\n\r\n String[] columnNames = {\"Time\", \"Patient\"};\r\n String[][] data = {\r\n {cal_datePicker.getText(), \"\"},\r\n {\"9:00am\", \"\"}, {\"10:00am\", \"\"},\r\n {\"11:00am\", \"\"}, {\"12:00pm\", \"\"},\r\n {\"1:00pm\", \"\"}, {\"2:00pm\", \"\"},\r\n {\"3:00pm\", \"\"}, {\"4:00pm\", \"\"}};\r\n\r\n cal_table = new JTable(data, columnNames);\r\n cal_table.setRowHeight(20);\r\n DefaultTableCellRenderer centerRenderer = new DefaultTableCellRenderer();\r\n centerRenderer.setHorizontalAlignment(JLabel.CENTER);\r\n cal_table.getColumnModel().getColumn(0).setCellRenderer(centerRenderer);\r\n cal_table.getColumnModel().getColumn(1).setCellRenderer(centerRenderer);\r\n\r\n cal_scrollPane = new JScrollPane(cal_table);\r\n cal_scrollPane.setPreferredSize(new Dimension(220, 203));\r\n\r\n // add calendar label\r\n calendarConstraints.gridx = 10;\r\n calendarConstraints.gridy = 10;\r\n calendarConstraints.weighty = 0.2;\r\n calendarConstraints.gridwidth = 20;\r\n calendarConstraints.anchor = GridBagConstraints.NORTH;\r\n calendarConstraints.insets = new Insets(30, 0, 0, 0);\r\n\r\n calTab.add(cal_calendarLabel, calendarConstraints);\r\n\r\n // add chooseDateLabel\r\n calendarConstraints.gridy = 20;\r\n calendarConstraints.weightx = 1;\r\n calendarConstraints.weighty = 0.1;\r\n calendarConstraints.gridwidth = 10;\r\n calendarConstraints.anchor = GridBagConstraints.NORTHEAST;\r\n calendarConstraints.insets = new Insets(30, 0, 0, 100);\r\n\r\n calTab.add(cal_chooseDateLabel, calendarConstraints);\r\n\r\n // add datePicker\r\n calendarConstraints.anchor = GridBagConstraints.EAST;\r\n calendarConstraints.insets = new Insets(0, 0, 215, 50);\r\n\r\n calTab.add(cal_datePicker, calendarConstraints);\r\n\r\n // add choose date button\r\n calendarConstraints.weighty = 1;\r\n calendarConstraints.ipady = 5;\r\n calendarConstraints.insets = new Insets(0, 0, 115, 100);\r\n\r\n calTab.add(cal_chooseDateButton, calendarConstraints);\r\n\r\n // add calendar label\r\n calendarConstraints.gridx = 20;\r\n calendarConstraints.ipady = 0;\r\n calendarConstraints.weighty = 0.2;\r\n calendarConstraints.anchor = GridBagConstraints.NORTHWEST;\r\n calendarConstraints.insets = new Insets(30, 135, 0, 0);\r\n\r\n calTab.add(cal_calendarDisplayLabel, calendarConstraints);\r\n\r\n // add calendar table\r\n calendarConstraints.weighty = 1;\r\n calendarConstraints.anchor = GridBagConstraints.WEST;\r\n calendarConstraints.insets = new Insets(0, 50, 35, 0);\r\n\r\n calTab.add(cal_scrollPane, calendarConstraints);\r\n }", "public void setDate(int day, String month, int year) {\n\t\telement(titleButton).waitUntilVisible();\n\t\ttitleButton.click();\n\t\twaitABit(2000);\n\t\ttitleButton.click();\n\t\twaitABit(2000);\n\t\t\n\n\t\t// select year\n\t\tfor (WebElementFacade i : datePickerYearList)\n\t\t\tif (i.getText().contentEquals(Integer.toString(year))) {\n\t\t\t\ti.click();\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t// select month\n\t\tfor (WebElementFacade i : datePickerMonthList)\n\t\t\tif (i.getText().contentEquals(month)) {\n\t\t\t\ti.click();\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t// select day\n\t\tfor (WebElementFacade i : datePickerDayList)\n\t\t\tif (i.getText().contentEquals(Integer.toString(day))) {\n\t\t\t\ti.click();\n\t\t\t\tbreak;\n\t\t\t}\n\t\twaitABit(2000);\n\t}", "private void addadvanceOneMonthButtonFunction() {\n\t\tadvanceOneMonthButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tBank.getInstance().passOneMonth();\n\t\t\t\tsuccess.setText(\"success! One month has passed..\");\n\t\t\t}\t\t\n\t\t});\n\t\t\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jButton6 = new javax.swing.JButton();\n jButton5 = new javax.swing.JButton();\n jButton3 = new javax.swing.JButton();\n jButton2 = new javax.swing.JButton();\n jButton1 = new javax.swing.JButton();\n jButton8 = new javax.swing.JButton();\n jPanel2 = new javax.swing.JPanel();\n jPanel1 = new javax.swing.JPanel();\n jCalendar1 = new com.toedter.calendar.JCalendar();\n jLabel1 = new javax.swing.JLabel();\n jButton4 = new javax.swing.JButton();\n rSLabelImage2 = new rojerusan.RSLabelImage();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jButton6.setBackground(new java.awt.Color(255, 255, 255));\n jButton6.setFont(new java.awt.Font(\"Tahoma\", 1, 11)); // NOI18N\n jButton6.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Data/Calendar-icon.png\"))); // NOI18N\n jButton6.setText(\"Calender\");\n jButton6.setFocusable(false);\n jButton6.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jButton6.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n getContentPane().add(jButton6, new org.netbeans.lib.awtextra.AbsoluteConstraints(520, 20, -1, 60));\n\n jButton5.setBackground(new java.awt.Color(255, 255, 255));\n jButton5.setFont(new java.awt.Font(\"Tahoma\", 1, 11)); // NOI18N\n jButton5.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Data/print32.png\"))); // NOI18N\n jButton5.setText(\"Print\");\n jButton5.setFocusable(false);\n jButton5.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jButton5.setMaximumSize(new java.awt.Dimension(57, 57));\n jButton5.setMinimumSize(new java.awt.Dimension(57, 57));\n jButton5.setPreferredSize(new java.awt.Dimension(57, 57));\n jButton5.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jButton5.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton5ActionPerformed(evt);\n }\n });\n getContentPane().add(jButton5, new org.netbeans.lib.awtextra.AbsoluteConstraints(450, 20, 70, -1));\n\n jButton3.setBackground(new java.awt.Color(255, 255, 255));\n jButton3.setFont(new java.awt.Font(\"Tahoma\", 1, 11)); // NOI18N\n jButton3.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Data/Collection-2-icon.png\"))); // NOI18N\n jButton3.setText(\"Collection\");\n jButton3.setFocusable(false);\n jButton3.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jButton3.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jButton3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton3ActionPerformed(evt);\n }\n });\n getContentPane().add(jButton3, new org.netbeans.lib.awtextra.AbsoluteConstraints(360, 20, -1, -1));\n\n jButton2.setBackground(new java.awt.Color(255, 255, 255));\n jButton2.setFont(new java.awt.Font(\"Tahoma\", 1, 11)); // NOI18N\n jButton2.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Data/money-icon.png\"))); // NOI18N\n jButton2.setText(\"Transaction\");\n jButton2.setFocusable(false);\n jButton2.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jButton2.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n getContentPane().add(jButton2, new org.netbeans.lib.awtextra.AbsoluteConstraints(260, 20, -1, -1));\n\n jButton1.setBackground(new java.awt.Color(255, 255, 255));\n jButton1.setFont(new java.awt.Font(\"Tahoma\", 1, 11)); // NOI18N\n jButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Data/new32.png\"))); // NOI18N\n jButton1.setText(\"New Client\");\n jButton1.setFocusable(false);\n jButton1.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jButton1.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n getContentPane().add(jButton1, new org.netbeans.lib.awtextra.AbsoluteConstraints(170, 20, -1, -1));\n\n jButton8.setBackground(new java.awt.Color(255, 255, 255));\n jButton8.setFont(new java.awt.Font(\"Tahoma\", 1, 11)); // NOI18N\n jButton8.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Data/1-Normal-Home-icon.png\"))); // NOI18N\n jButton8.setText(\"Home\");\n jButton8.setFocusable(false);\n jButton8.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jButton8.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jButton8.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton8ActionPerformed(evt);\n }\n });\n getContentPane().add(jButton8, new org.netbeans.lib.awtextra.AbsoluteConstraints(100, 20, -1, -1));\n\n jPanel2.setBackground(new java.awt.Color(255, 255, 255));\n jPanel2.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jPanel1.setBackground(new java.awt.Color(255, 255, 255));\n jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(null, \"Current Month\", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Tahoma\", 1, 18), new java.awt.Color(51, 153, 255))); // NOI18N\n jPanel1.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n jPanel1.add(jCalendar1, new org.netbeans.lib.awtextra.AbsoluteConstraints(16, 35, 290, 210));\n\n jPanel2.add(jPanel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(300, 180, -1, -1));\n\n jLabel1.setFont(new java.awt.Font(\"Trajan Pro 3\", 1, 36)); // NOI18N\n jLabel1.setText(\"Current Month\");\n jPanel2.add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(270, 120, -1, -1));\n\n jButton4.setBackground(new java.awt.Color(255, 255, 255));\n jButton4.setFont(new java.awt.Font(\"Tahoma\", 1, 11)); // NOI18N\n jButton4.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Data/search-icon.png\"))); // NOI18N\n jButton4.setText(\"Search\");\n jButton4.setFocusable(false);\n jButton4.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jButton4.setMaximumSize(new java.awt.Dimension(57, 57));\n jButton4.setMinimumSize(new java.awt.Dimension(57, 57));\n jButton4.setPreferredSize(new java.awt.Dimension(57, 57));\n jButton4.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jButton4.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton4ActionPerformed(evt);\n }\n });\n jPanel2.add(jButton4, new org.netbeans.lib.awtextra.AbsoluteConstraints(610, 20, 100, -1));\n\n rSLabelImage2.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/imgonline-com-ua-ReplaceColor-hgMWcqNo5oH9B.jpg\"))); // NOI18N\n jPanel2.add(rSLabelImage2, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 960, 490));\n\n getContentPane().add(jPanel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 960, 490));\n\n setSize(new java.awt.Dimension(977, 528));\n setLocationRelativeTo(null);\n }", "public void repaintView(){\n \n loadCalendarLabels();\n if (!checkBoxesHaveBeenClicked)\n {\n populateMonthWithEvents();\n }\n else\n {\n ActionEvent actionEvent = new ActionEvent();\n handleCheckBoxAction(actionEvent);\n }\n //populateMonthWithEvents();\n }", "public static void printMonthBody(int year, int month) {\n\n }", "@Override\r\n public List<? extends WeekViewEvent> onMonthChange(int newYear, int newMonth) {\n int[] colors = this.getColors(calendarTheme);\r\n List<WeekViewEvent> events = new ArrayList<>();\r\n int id = 0;\r\n for(EventIncomingStruct event: eventList) {\r\n String eventStartTime = event.getStartTime();\r\n String eventStartDate = event.getStartDate();\r\n String eventEndTime = event.getEndTime();\r\n String eventEndDate = event.getEndDate();\r\n String[] strStTime = eventStartTime.split(\":\");\r\n String[] strStDate = eventStartDate.split(\"/\");\r\n String[] strEndTime = eventEndTime.split(\":\");\r\n String[] strEndDate = eventEndDate.split(\"/\");\r\n Log.i(\"Calendar\", eventStartDate);\r\n if (Integer.parseInt(strStDate[2]) == newYear\r\n && Integer.parseInt(strStDate[1]) == newMonth) {\r\n WeekViewEvent wkEvent = new WeekViewEvent(id, event.getName(),\r\n Integer.parseInt(strStDate[2]),\r\n Integer.parseInt(strStDate[1]),\r\n Integer.parseInt(strStDate[0]),\r\n Integer.parseInt(strStTime[0]),\r\n Integer.parseInt(strStTime[1]),\r\n Integer.parseInt(strEndDate[2]),\r\n Integer.parseInt(strEndDate[1]),\r\n Integer.parseInt(strEndDate[0]),\r\n Integer.parseInt(strEndTime[0]),\r\n Integer.parseInt(strEndTime[1]));\r\n wkEvent.setColor(colors[id % 5]);\r\n events.add(wkEvent);\r\n }\r\n id++;\r\n }\r\n\r\n return events;\r\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n jTextField1 = new javax.swing.JTextField();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jTextField2 = new javax.swing.JTextField();\n jLabel4 = new javax.swing.JLabel();\n jTextField3 = new javax.swing.JTextField();\n jLabel5 = new javax.swing.JLabel();\n jTextField4 = new javax.swing.JTextField();\n jLabel12 = new javax.swing.JLabel();\n jTextField11 = new javax.swing.JTextField();\n demoDateField1 = new com.jp.samples.comp.calendarnew.DemoDateField();\n jLabel6 = new javax.swing.JLabel();\n jTextField5 = new javax.swing.JTextField();\n jLabel15 = new javax.swing.JLabel();\n jTextField12 = new javax.swing.JTextField();\n jLabel16 = new javax.swing.JLabel();\n jButton1 = new javax.swing.JButton();\n jPanel2 = new javax.swing.JPanel();\n jLabel13 = new javax.swing.JLabel();\n jComboBox2 = new javax.swing.JComboBox();\n jFormattedTextField2 = new javax.swing.JFormattedTextField();\n jLabel17 = new javax.swing.JLabel();\n jLabel14 = new javax.swing.JLabel();\n jComboBox1 = new javax.swing.JComboBox();\n jLabel7 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n jTextField6 = new javax.swing.JTextField();\n jLabel9 = new javax.swing.JLabel();\n jTextField7 = new javax.swing.JTextField();\n jLabel10 = new javax.swing.JLabel();\n jTextField8 = new javax.swing.JTextField();\n jLabel11 = new javax.swing.JLabel();\n jTextField9 = new javax.swing.JTextField();\n dfs = new DecimalFormatSymbols();\n dfs.setDecimalSeparator('.');\n dfs.setGroupingSeparator(',');\n dFormat= new DecimalFormat(\"#0.##\", dfs);\n jFormattedTextField1 = new javax.swing.JFormattedTextField(dFormat);\n jLabel18 = new javax.swing.JLabel();\n jFormattedTextField3 = new javax.swing.JFormattedTextField();\n jFormattedTextField4 = new javax.swing.JFormattedTextField();\n jSeparator1 = new javax.swing.JSeparator();\n jLabel19 = new javax.swing.JLabel();\n jLabel20 = new javax.swing.JLabel();\n jLabel21 = new javax.swing.JLabel();\n demoDateField2 = new com.jp.samples.comp.calendarnew.DemoDateField();\n demoDateField3 = new com.jp.samples.comp.calendarnew.DemoDateField();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(\"\"));\n\n jLabel1.setText(\"Raison Sociale\");\n\n DocumentFilter filter = new UppercaseDocumentFilter();\n ((AbstractDocument) jTextField1.getDocument()).setDocumentFilter(filter);\n jTextField1.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusLost(java.awt.event.FocusEvent evt) {\n jTextField1FocusLost(evt);\n }\n });\n\n jLabel2.setText(\"Date de création\");\n\n jLabel3.setText(\"Activité principale\");\n\n jTextField2.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusLost(java.awt.event.FocusEvent evt) {\n jTextField2FocusLost(evt);\n }\n });\n\n jLabel4.setText(\"Adresse\");\n\n jTextField3.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusLost(java.awt.event.FocusEvent evt) {\n jTextField3FocusLost(evt);\n }\n });\n\n jLabel5.setText(\"Num COE\");\n\n jTextField4.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusLost(java.awt.event.FocusEvent evt) {\n jTextField4FocusLost(evt);\n }\n });\n\n jLabel12.setText(\"Lieu de création\");\n\n jTextField11.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusLost(java.awt.event.FocusEvent evt) {\n jTextField11FocusLost(evt);\n }\n });\n\n demoDateField1.setYearDigitsAmount(4);\n\n jLabel6.setText(\"Personne de référence\");\n\n ((AbstractDocument) jTextField5.getDocument()).setDocumentFilter(filter);\n jTextField5.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusLost(java.awt.event.FocusEvent evt) {\n jTextField5FocusLost(evt);\n }\n });\n\n jLabel15.setText(\"Nom\");\n\n jTextField12.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusLost(java.awt.event.FocusEvent evt) {\n jTextField12FocusLost(evt);\n }\n });\n jTextField12.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n jTextField12KeyTyped(evt);\n }\n });\n\n jLabel16.setText(\"Prénoms\");\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel5)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jTextField4, javax.swing.GroupLayout.PREFERRED_SIZE, 160, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(demoDateField1, javax.swing.GroupLayout.PREFERRED_SIZE, 160, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel4)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, 160, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 82, Short.MAX_VALUE)\n .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, 160, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel12)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jTextField11, javax.swing.GroupLayout.PREFERRED_SIZE, 160, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 160, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel6)\n .addGap(44, 44, 44)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel16)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel15)\n .addComponent(jTextField5, javax.swing.GroupLayout.DEFAULT_SIZE, 158, Short.MAX_VALUE)\n .addComponent(jTextField12)))))\n .addContainerGap(165, Short.MAX_VALUE))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(23, 23, 23)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1)\n .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(29, 29, 29)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(demoDateField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel2))\n .addGap(25, 25, 25)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel12)\n .addComponent(jTextField11, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(28, 28, 28)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3)\n .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(28, 28, 28)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel4)\n .addComponent(jTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(28, 28, 28)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel5)\n .addComponent(jTextField4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addComponent(jLabel15, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel6)\n .addComponent(jTextField5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel16, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(2, 2, 2)\n .addComponent(jTextField12, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(68, Short.MAX_VALUE))\n );\n\n jButton1.setText(\"Enregistrer\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder(\"\"));\n\n jLabel13.setText(\"Téléphone\");\n\n jComboBox2.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"National \", \"International\" }));\n jComboBox2.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n jComboBox2ItemStateChanged(evt);\n }\n });\n\n try {\n jFormattedTextField2.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.MaskFormatter(\"##-##-##-##\")));\n } catch (java.text.ParseException ex) {\n ex.printStackTrace();\n }\n jFormattedTextField2.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n jFormattedTextField2FocusGained(evt);\n }\n public void focusLost(java.awt.event.FocusEvent evt) {\n jFormattedTextField2FocusLost(evt);\n }\n });\n\n jLabel17.setText(\"\");\n\n jLabel14.setText(\"Type adhésion\");\n\n jComboBox1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Epargne \", \"Tontine\", \"Epargne & Tontine\" }));\n jComboBox1.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n jComboBox1ItemStateChanged(evt);\n }\n });\n jComboBox1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jComboBox1ActionPerformed(evt);\n }\n });\n\n jLabel7.setText(\"Versements initiaux\");\n\n jLabel8.setText(\"Droit d'adhésion\");\n\n DocumentListener documentListener = new DocumentListener() {\n\n @Override\n public void removeUpdate(DocumentEvent e) {\n performSummation(null);\n }\n\n @Override\n public void insertUpdate(DocumentEvent e) {\n performSummation(null);\n }\n\n @Override\n public void changedUpdate(DocumentEvent e) {\n }\n };\n\n DocumentFilter numericFilter = new DocumentFilter(){\n\n // @Override\n // public void insertString(FilterBypass fb, int offset,\n // String string, AttributeSet attr)\n // throws BadLocationException {\n // fb.insertString(offset, string.replaceAll(\"[^\\\\d]\", \"\"), attr);\n // }\n\n // @Override\n // public void replace(FilterBypass fb, int offset, int length,\n // String text, AttributeSet attrs)\n // throws BadLocationException {\n\n // fb.replace(offset, length, text.replaceAll(\"[^\\\\d]\", \"\"), attrs);\n // }\n @Override\n public void insertString(FilterBypass fb, int offset, String text,\n AttributeSet attr) throws BadLocationException {\n super.insertString(fb, offset, revise(text), attr);\n }\n\n @Override\n public void replace(FilterBypass fb, int offset, int length, String text,\n AttributeSet attrs) throws BadLocationException {\n super.replace(fb, offset, length, revise(text), attrs);\n }\n\n private String revise(String text) {\n StringBuilder builder = new StringBuilder(text);\n int index = 0;\n while (index < builder.length()) {\n if (accept(builder.charAt(index))) {\n index++;\n } else {\n // Don't increment index here, or you'll skip the next character!\n builder.deleteCharAt(index);\n }\n }\n return builder.toString();\n }\n\n /**\n * Determine if the character should remain in the String. You may\n * override this to get any matching criteria you want.\n * @param c The character in question\n * @return true if it's valid, false if it should be removed.\n */\n public boolean accept(final char c) {\n return Character.isDigit(c) || c == ' ';\n }\n };\n ((AbstractDocument) jTextField6.getDocument()).setDocumentFilter(numericFilter);\n ((AbstractDocument) jTextField7.getDocument()).setDocumentFilter(numericFilter);\n ((AbstractDocument) jTextField8.getDocument()).setDocumentFilter(numericFilter);\n\n jTextField6.getDocument().addDocumentListener(documentListener);\n jTextField7.getDocument().addDocumentListener(documentListener);\n jTextField8.getDocument().addDocumentListener(documentListener);\n jTextField6.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusLost(java.awt.event.FocusEvent evt) {\n jTextField6FocusLost(evt);\n }\n });\n\n jLabel9.setText(\"Part Sociale\");\n\n jFormattedTextField4.setEnabled(false);\n\n jLabel10.setText(\"Dépôt\");\n\n jLabel11.setText(\"TOTAL\");\n\n jFormattedTextField1.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.NumberFormatter()));\n jFormattedTextField1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jFormattedTextField1ActionPerformed(evt);\n }\n });\n jFormattedTextField1.setVisible(false);\n\n jLabel18.setText(\"N° Carnet\");\n\n try {\n jFormattedTextField3.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.MaskFormatter(\"####\")));\n } catch (java.text.ParseException ex) {\n ex.printStackTrace();\n }\n //jFormattedTextField3.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new RegexFormatter(\"\\\\(\\\\d{3}\\\\)\\\\d{3}-\\\\d{4}\")));\n\n try {\n jFormattedTextField4.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.MaskFormatter(\"####\")));\n } catch (java.text.ParseException ex) {\n ex.printStackTrace();\n }\n\n jLabel19.setText(\"Date d'adhésion:\");\n\n jLabel20.setText(\"Epargne\");\n\n jLabel21.setText(\"Tontine\");\n\n demoDateField3.setEnabled(false);\n\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jSeparator1)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel13)\n .addComponent(jLabel14)\n .addComponent(jLabel18)\n .addComponent(jLabel7)\n .addComponent(jLabel8)\n .addComponent(jLabel9)\n .addComponent(jLabel10)\n .addComponent(jLabel11))\n .addGap(44, 44, 44)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jTextField6, javax.swing.GroupLayout.PREFERRED_SIZE, 160, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jFormattedTextField1, javax.swing.GroupLayout.DEFAULT_SIZE, 145, Short.MAX_VALUE))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jComboBox2, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(27, 27, 27)\n .addComponent(jLabel17))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(18, 18, 18)\n .addComponent(jFormattedTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, 137, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jFormattedTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, 121, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jFormattedTextField4)))\n .addGap(0, 0, Short.MAX_VALUE)))\n .addGap(18, 18, 18))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jTextField7, javax.swing.GroupLayout.PREFERRED_SIZE, 160, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jTextField9, javax.swing.GroupLayout.PREFERRED_SIZE, 160, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jTextField8, javax.swing.GroupLayout.PREFERRED_SIZE, 160, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(0, 0, Short.MAX_VALUE))))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel19)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel21)\n .addGap(18, 18, 18)\n .addComponent(demoDateField3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel20)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(demoDateField2, javax.swing.GroupLayout.PREFERRED_SIZE, 173, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(0, 0, Short.MAX_VALUE))))\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel17, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(8, 8, 8)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel13)\n .addComponent(jComboBox2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jFormattedTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel14)\n .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel18)\n .addComponent(jFormattedTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jFormattedTextField4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel7)\n .addGap(16, 16, 16)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel8)\n .addComponent(jTextField6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jFormattedTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel9)\n .addComponent(jTextField7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel10)\n .addGap(29, 29, 29)\n .addComponent(jLabel11))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jTextField8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jTextField9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(18, 18, 18)\n .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel19)\n .addComponent(jLabel20)))\n .addComponent(demoDateField2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel21))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(demoDateField3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(62, 62, 62))\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGap(25, 25, 25)\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap(529, Short.MAX_VALUE)\n .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 156, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(468, 468, 468))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGap(27, 27, 27)\n .addComponent(jButton1)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n pack();\n }", "private void initialize() {\r\n\t\tCalculadoraGUI = new JFrame();\r\n\t\tCalculadoraGUI.setResizable(false);\r\n\t\tCalculadoraGUI.getContentPane().setBackground(new Color(0, 204, 153));\r\n\t\tCalculadoraGUI.setTitle(\"Calculadora\");\r\n\t\tCalculadoraGUI.setBounds(100, 100, 292, 306);\r\n\t\tCalculadoraGUI.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tCalculadoraGUI.getContentPane().setLayout(null);\r\n\t\t\r\n\t\tJSeparator separator = new JSeparator();\r\n\t\tseparator.setBounds(7, 94, 1, 2);\r\n\t\tCalculadoraGUI.getContentPane().add(separator);\r\n\t\t\r\n\t\tJButton button1 = new JButton(\"1\");\r\n\t\tbutton1.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\ttxtResultado.setText(txtResultado.getText() + \"1\");\t\t\t}\r\n\t\t});\r\n\t\tbutton1.setBounds(26, 145, 61, 23);\r\n\t\tCalculadoraGUI.getContentPane().add(button1);\r\n\t\t\r\n\t\tJButton button2 = new JButton(\"2\");\r\n\t\tbutton2.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\ttxtResultado.setText(txtResultado.getText() + \"2\");\t\r\n\t\t\t}\r\n\t\t});\r\n\t\tbutton2.setBounds(86, 145, 61, 23);\r\n\t\tCalculadoraGUI.getContentPane().add(button2);\r\n\t\t\r\n\t\tJButton button3 = new JButton(\"3\");\r\n\t\tbutton3.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\ttxtResultado.setText(txtResultado.getText() + \"3\");\t\r\n\t\t\t}\r\n\t\t});\r\n\t\tbutton3.setBounds(146, 145, 55, 23);\r\n\t\tCalculadoraGUI.getContentPane().add(button3);\r\n\t\t\r\n\t\tJButton button4 = new JButton(\"4\");\r\n\t\tbutton4.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\ttxtResultado.setText(txtResultado.getText() + \"4\");\t\r\n\t\t\t}\r\n\t\t});\r\n\t\tbutton4.setBounds(26, 172, 61, 23);\r\n\t\tCalculadoraGUI.getContentPane().add(button4);\r\n\t\t\r\n\t\tJButton button5 = new JButton(\"5\");\r\n\t\tbutton5.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\ttxtResultado.setText(txtResultado.getText() + \"5\");\t\r\n\t\t\t}\r\n\t\t});\r\n\t\tbutton5.setBounds(86, 172, 61, 23);\r\n\t\tCalculadoraGUI.getContentPane().add(button5);\r\n\t\t\r\n\t\tJButton button6 = new JButton(\"6\");\r\n\t\tbutton6.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\ttxtResultado.setText(txtResultado.getText() + \"6\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tbutton6.setBounds(146, 172, 55, 23);\r\n\t\tCalculadoraGUI.getContentPane().add(button6);\r\n\t\t\r\n\t\tJButton button7 = new JButton(\"7\");\r\n\t\tbutton7.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\ttxtResultado.setText(txtResultado.getText() + \"7\");\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t});\r\n\t\tbutton7.setBounds(26, 199, 61, 23);\r\n\t\tCalculadoraGUI.getContentPane().add(button7);\r\n\t\t\r\n\t\tJButton button8 = new JButton(\"8\");\r\n\t\tbutton8.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\ttxtResultado.setText(txtResultado.getText() + \"8\");\t\r\n\t\t\t}\r\n\t\t});\r\n\t\tbutton8.setBounds(86, 199, 61, 23);\r\n\t\tCalculadoraGUI.getContentPane().add(button8);\r\n\t\t\r\n\t\tJButton button9 = new JButton(\"9\");\r\n\t\tbutton9.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\ttxtResultado.setText(txtResultado.getText() + \"9\");\t\r\n\t\t\t}\r\n\t\t});\r\n\t\tbutton9.setBounds(146, 199, 55, 23);\r\n\t\tCalculadoraGUI.getContentPane().add(button9);\r\n\t\t\r\n\t\tJButton button0 = new JButton(\"0\");\r\n\t\tbutton0.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\ttxtResultado.setText(txtResultado.getText() + \"0\");\t\r\n\t\t\t}\r\n\t\t});\r\n\t\tbutton0.setBounds(86, 226, 61, 23);\r\n\t\tCalculadoraGUI.getContentPane().add(button0);\r\n\t\t\r\n\t\tJButton buttonPlus = new JButton(\"+\");\r\n\t\tbuttonPlus.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tString t = \" \";\r\n\t\t\t\tvalor1 = Double.parseDouble(txtResultado.getText());\r\n\t\t\t\ttxtResultado.setText(t);\r\n\t\t\t\toperacao = \"somar\";\r\n\t\t\t}\r\n\t\t});\r\n\t\tbuttonPlus.setBounds(211, 145, 61, 23);\r\n\t\tCalculadoraGUI.getContentPane().add(buttonPlus);\r\n\t\t\r\n\t\tJButton buttonMinus = new JButton(\"-\");\r\n\t\tbuttonMinus.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tString t = \" \";\r\n\t\t\t\tvalor1 = Double.parseDouble(txtResultado.getText());\r\n\t\t\t\ttxtResultado.setText(t);\r\n\t\t\t\toperacao = \"subtrair\";\r\n\t\t\t}\r\n\t\t});\r\n\t\tbuttonMinus.setBounds(211, 172, 61, 23);\r\n\t\tCalculadoraGUI.getContentPane().add(buttonMinus);\r\n\t\t\r\n\t\tJButton buttonDivide = new JButton(\"/\");\r\n\t\tbuttonDivide.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tString t = \" \";\r\n\t\t\t\tvalor1 = Double.parseDouble(txtResultado.getText());\r\n\t\t\t\ttxtResultado.setText(t);\r\n\t\t\t\toperacao = \"dividir\";\r\n\t\t\t}\r\n\t\t});\r\n\t\tbuttonDivide.setBounds(211, 199, 61, 23);\r\n\t\tCalculadoraGUI.getContentPane().add(buttonDivide);\r\n\t\t\r\n\t\tJButton buttonMultiply = new JButton(\"*\");\r\n\t\tbuttonMultiply.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tString t = \" \";\r\n\t\t\t\tvalor1 = Double.parseDouble(txtResultado.getText());\r\n\t\t\t\ttxtResultado.setText(t);\r\n\t\t\t\toperacao = \"multiplicar\";\r\n\t\t\t}\r\n\t\t});\r\n\t\tbuttonMultiply.setBounds(211, 226, 61, 23);\r\n\t\tCalculadoraGUI.getContentPane().add(buttonMultiply);\r\n\t\t\r\n\t\tJButton buttonDot = new JButton(\".\");\r\n\t\tbuttonDot.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\ttxtResultado.setText(txtResultado.getText() + \".\");\t\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\tbuttonDot.setBounds(146, 226, 55, 23);\r\n\t\tCalculadoraGUI.getContentPane().add(buttonDot);\r\n\t\t\r\n\t\ttxtResultado = new JTextField();\r\n\t\ttxtResultado.setFont(new Font(\"Impact\", Font.PLAIN, 14));\r\n\t\ttxtResultado.setBackground(new Color(255, 204, 204));\r\n\t\ttxtResultado.setBounds(25, 59, 247, 37);\r\n\t\tCalculadoraGUI.getContentPane().add(txtResultado);\r\n\t\ttxtResultado.setColumns(10);\r\n\r\n\t\t\r\n\t\t//calcula o resultado da operação\r\n\t\tJButton Equals = new JButton(\"=\");\r\n\t\tEquals.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tvalor2 = Double.parseDouble(txtResultado.getText());\r\n\t\t\t\tcalcular();\r\n\t\t\t}\r\n\r\n\t\t\tprivate void calcular() {\r\n\t\t\t\tif(operacao == \"multiplicar\") {\r\n\t\t\t\t\ttxtResultado.setText(String.valueOf(valor1 * valor2));\r\n\t\t\t\t};\r\n\t\t\t\tif(operacao == \"somar\"){\r\n\t\t\t\t\ttxtResultado.setText(String.valueOf(valor1 + valor2));\r\n\t\t\t\t};\r\n\t\t\t\tif(operacao == \"subtrair\"){\r\n\t\t\t\t\ttxtResultado.setText(String.valueOf(valor1 - valor2));\r\n\t\t\t\t};\r\n\t\t\t\tif(operacao == \"dividir\"){\r\n\t\t\t\t\ttxtResultado.setText(String.valueOf(valor1 / valor2));\r\n\t\t\t\t};\r\n\t\t\t}\r\n\t\t});\r\n\t\tEquals.setBounds(26, 226, 61, 23);\r\n\t\tCalculadoraGUI.getContentPane().add(Equals);\r\n\t\t\r\n\t\tJButton btnClear = new JButton(\"C\");\r\n\t\tbtnClear.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tString t = \"\";\r\n\t\t\t\tvalor1 =0.0;\r\n\t\t\t\tvalor2 =0.0;\r\n\t\t\t\ttxtResultado.setText(t);\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnClear.setBounds(26, 111, 61, 23);\r\n\t\tCalculadoraGUI.getContentPane().add(btnClear);\r\n\t\t\r\n\t\tJLabel lblEstaCalculadoraCalcula = new JLabel(\"Esta calculadora calcula apenas dois valores.\");\r\n\t\tlblEstaCalculadoraCalcula.setBounds(7, 11, 279, 14);\r\n\t\tCalculadoraGUI.getContentPane().add(lblEstaCalculadoraCalcula);\r\n\t\t\r\n\t\tJLabel lblResultado = new JLabel(\"Resultado:\");\r\n\t\tlblResultado.setBounds(24, 45, 97, 14);\r\n\t\tCalculadoraGUI.getContentPane().add(lblResultado);\r\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">\n private void initComponents() throws Exception {\n \n jButton1 = new javax.swing.JButton();\n jLabel1 = new javax.swing.JLabel();\n jTextField1 = new javax.swing.JFormattedTextField(new MaskFormatter(\"#### #### #### ####\"));\n jLabel2 = new javax.swing.JLabel();\n // jRadioButton1 = new javax .swing.JRadioButton();\n // jRadioButton2 = new javax.swing.JRadioButton();\n jTextField2 = new javax.swing.JFormattedTextField(new MaskFormatter(\"###\"));\n jLabel3 = new javax.swing.JLabel();\n Month = new javax.swing.JComboBox<>();\n Year = new javax.swing.JComboBox<>();\n // jLabel4 = new javax.swing.JLabel();\n // jTextField3 = new javax.swing.JFormattedTextField(new MaskFormatter(\"#####\"));\n jLabel5 = new javax.swing.JLabel();\n Random sum= new Random();\n int s=sum.nextInt(2000);\n Integer.toString(s);\n \n // edt = new JFormattedTextField(new MaskFormatter(\"###.##\"));\n // jTextField1 = new JFormattedTextField(new MaskFormatter(\"###.##\"));\n \n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n \n jButton1.setText(\"Подтвердить\");\n jButton1.addActionListener(new ActionListener() {\n \n @Override\n public void actionPerformed(ActionEvent e) {\n save(jTextField1.getText(),jTextField2.getText(),Month.getSelectedIndex(),Year.getSelectedIndex());\n try {\n\t\t\t\t\tFrontOffice.cvvChecking(cardnumber, cvv);\n\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n try {\n\t\t\t\t\tFrontOffice.usefulTimeOfCardChecking(cardnumber);\n\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n \n \n try {\n\t\t\t\t\tif ( FrontOffice.cvvChecking(cardnumber, cvv) &&\n\t\t\t\t\t\t\t FrontOffice.usefulTimeOfCardChecking(cardnumber))\n\t\t\t\t\t{\n\t\t\t\t\t \n\t\t\t\t\t JOptionPane.showInputDialog(null, \"Оплата завершена\", JOptionPane.WARNING_MESSAGE);\n\t\t\t\t\t} else {\n\t\t\t\t\t \n\t\t\t\t\t JOptionPane.showInputDialog(null, \"Оплата не удалась\", JOptionPane.WARNING_MESSAGE);\n\t\t\t\t\t \n\t\t\t\t\t}\n\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n }\n });\n \n jLabel1.setText(\"Номер карты\");\n \n jLabel2.setText(\"Срок действия\");\n \n // jRadioButton1.setText(\"Visa\");\n \n // jRadioButton2.setText(\"MasterCard\");\n \n jLabel3.setText(\"CVV\");\n \n Month.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"01\", \"02\", \"03\", \"04\", \"05\", \"06\", \"07\", \"08\", \"09\", \"10\", \"11\", \"12\" }));\n \n Year.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"16\", \"17\", \"18\", \"19\", \"20\", \"21\", \"22\", \"23\" }));\n \n // jLabel4.setText(\"Подарочная карта\");\n \n jLabel5.setText(\"Итого к оплате:\"+s+\"руб\");\n \n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(24, 24, 24)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1)\n .addComponent(jLabel2)\n .addComponent(jLabel3)\n // .addComponent(jLabel4)\n )\n .addGap(28, 28, 28)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(48, 48, 48)\n .addComponent(jLabel5))\n .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, 52, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createSequentialGroup()\n .addComponent(Month, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(35, 35, 35)\n .addComponent(Year, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n // .addComponent(jTextField3, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 204, Short.MAX_VALUE)\n .addComponent(jTextField1, javax.swing.GroupLayout.Alignment.LEADING))))\n // .addGroup(layout.createSequentialGroup()\n // .addComponent(jRadioButton1)\n // .addGap(38, 38, 38)\n // .addComponent(jRadioButton2))\n ))\n \n .addGroup(layout.createSequentialGroup()\n .addGap(144, 144, 144)\n .addComponent(jButton1)))\n .addContainerGap(41, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap(20, Short.MAX_VALUE)\n /* .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jRadioButton1)\n .addComponent(jRadioButton2))\n */.addGap(35, 35, 35)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(Month, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(Year, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3)\n .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n // .addComponent(jLabel4)\n // .addComponent(jTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n )\n .addGap(43, 43, 43)\n .addComponent(jLabel5)\n .addGap(18, 18, 18)\n .addComponent(jButton1))\n );\n \n pack();\n }", "public void setDays(){\n\n CalendarDay Day=DropDownCalendar.getSelectedDate();\n Date selectedDate=Day.getDate();\n String LongDate=\"\"+selectedDate;\n String DayOfWeek=LongDate.substring(0,3);\n Calendar calendar=Calendar.getInstance();\n calendar.setTime(selectedDate);\n int compare=Integer.parseInt(CurrenDate.substring(6,8).trim());\n int comparemonth=Integer.parseInt(CurrenDate.substring(4,6));\n int startNumber=Integer.parseInt(CheckedDate.substring(6,8).trim())-Offset(DayOfWeek);\n int max=calendar.getActualMaximum(Calendar.DAY_OF_MONTH);\n\n GregorianCalendar date= (GregorianCalendar) GregorianCalendar.getInstance();\n date.set(selectedDate.getYear(),1,1);\n\n boolean Feb=false;\n int priormax=30;\n\n if(max==30){\n priormax=31;\n }\n else if( max==31){\n priormax=30;\n }\n\n if(selectedDate.getMonth()==2){\n if(date.isLeapYear(selectedDate.getYear())){\n priormax=29;\n }\n\n else{\n priormax=28;\n }\n Feb=true;\n }\n for(int i=0;i<WeekDays.length;++i){\n String line=WeekDays[i].getText().toString().substring(0,3);\n\n if(startNumber<=max){\n if(startNumber==compare && comparemonth==Day.getMonth()+1){\n WeekDays[i].setTextColor(Color.BLUE);\n }\n else{\n WeekDays[i].setTextColor(Color.BLACK);\n }\n if(startNumber<=0){\n int val=startNumber+priormax;\n if(Feb){\n if(val==priormax){\n startNumber=max;\n }\n }\n\n WeekDays[i].setText(line+\"\\n\"+val);}\n\n else{\n WeekDays[i].setText(line+\"\\n\"+startNumber);\n }\n\n }\n else{\n startNumber=1;\n WeekDays[i].setText(line+\"\\n\"+startNumber);\n }\n\n MaskWeekdays[i].setText(line+\"\\n\"+startNumber);\n ++startNumber;\n }\n DropDownCalendar.setDateSelected(Calendar.getInstance().getTime(), true);\n }", "public static void printMonthBody(int year, int month, int dayofweek, int lengthOfMonth) {\n\t\tint startIndex = dayofweek * 4 - 2;\r\n\t\tint currentIndex = 0;\r\n\t\tint date = 1;\r\n\t\tSystem.out.println(\" \" + (month) + \" \" + year);\r\n\t\tSystem.out.println(\"-----------------------------\");\r\n\t\tSystem.out.println(\" Sun Mon Tue Wed Thu Fri Sat\");\r\n\t\tfor (int i = 0; i < startIndex; i++) {\r\n\t\t\tSystem.out.print(\" \");\r\n\t\t\tcurrentIndex = i;\r\n\t\t}\r\n\t\tfor (int i = currentIndex; i < 28; i += 4) {\r\n\t\t\tSystem.out.print(date + \" \");\r\n\t\t\tdate++;\r\n\t\t}\r\n\t\tSystem.out.println(\"\");\r\n\t\twhile(date <= lengthOfMonth) {\r\n\t\t\tfor (int i = 0; i < 28; i += 4) {\r\n\t\t\t\tif (i == 0) {\r\n\t\t\t\t\tif(date<10) {\r\n\t\t\t\t\t\tSystem.out.print(\" \"+date+\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tSystem.out.print(\" \"+date+\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tif(date<10) {\r\n\t\t\t\t\t\tSystem.out.print(date+\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tSystem.out.print(date+\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tdate++;\r\n\t\t\t\tif(date > lengthOfMonth) {\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\"\");\r\n\t\t}\r\n\t}", "private void initComponents(final int sumprice,final Object[][] tableDate) {\n textField1 = new JTextField();\n label1 = new JLabel();\n button1 = new JButton();\n\n //======== this ========\n Container contentPane = getContentPane();\n contentPane.setLayout(null);\n contentPane.add(textField1);\n textField1.setBounds(125, 105, 125, textField1.getPreferredSize().height);\n\n //---- label1 ----\n label1.setText(\"\\u6761\\u5f62\\u7801\\uff1a\");\n contentPane.add(label1);\n label1.setBounds(new Rectangle(new Point(80, 110), label1.getPreferredSize()));\n\n //---- button1 ----\n button1.setText(\"\\u786e\\u5b9a\");\n contentPane.add(button1);\n button1.setBounds(new Rectangle(new Point(265, 105), button1.getPreferredSize()));\n button1.addActionListener(\n new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n String code = textField1.getText();\n boolean bool = Main.trade_pay(code,sumprice);\n if(bool){\n System.out.println(\"支付成功\");\n //生成orderid\n String name = Login.username;\n String orderid = DaoCreate.CreateOutlineOrdid(name);\n //将订单信息加入到comorder数据库表中\n OutlineOrderMes.insertComOrd(name,orderid);\n //将订单信息加入到detailorder数据库表中\n OutlineOrderMes.insertDetailOrd(tableDate,orderid);\n MerSellFrame.Clear();//付款之后清空购物车\n WarnFrame.outlinePoswarnFrame1();//弹出支付成功框\n //打印小票\n OutlineOrderMes.printOrder(tableDate,name);\n }else{\n System.out.println(\"支付失败\");\n WarnFrame.outlinePaywarnFrame();\n }\n }\n }\n );\n contentPane.setPreferredSize(new Dimension(400, 300));\n pack();\n setLocationRelativeTo(getOwner());\n // JFormDesigner - End of component initialization //GEN-END:initComponents\n setVisible(true);\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n bindingGroup = new org.jdesktop.beansbinding.BindingGroup();\n\n buttonGroup1 = new javax.swing.ButtonGroup();\n buttonGroup2 = new javax.swing.ButtonGroup();\n buttonGroup3 = new javax.swing.ButtonGroup();\n jPanel5 = new javax.swing.JPanel();\n jPanel3 = new javax.swing.JPanel();\n jRadioSinFechaFin = new javax.swing.JRadioButton();\n jLabel3 = new javax.swing.JLabel();\n jRadiofechaFin = new javax.swing.JRadioButton();\n jRadioCantRepit = new javax.swing.JRadioButton();\n jSpinnerCantRepit = new javax.swing.JSpinner();\n jDateChooFechaFin = new com.toedter.calendar.JDateChooser();\n jLabel6 = new javax.swing.JLabel();\n jButton1 = new javax.swing.JButton();\n jButton2 = new javax.swing.JButton();\n jPanel4 = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jComgoRepit = new javax.swing.JComboBox();\n jPanel1 = new javax.swing.JPanel();\n jPanel2 = new javax.swing.JPanel();\n jRadioCada = new javax.swing.JRadioButton();\n jSpinnerCadaSalto = new javax.swing.JSpinner();\n jLabel7 = new javax.swing.JLabel();\n jLayeredPane2 = new javax.swing.JLayeredPane();\n jPanelAnual = new javax.swing.JPanel();\n jComboBoxAnualNumDia = new javax.swing.JComboBox();\n jRadioAnualDia = new javax.swing.JRadioButton();\n jRadioAnualNumDia = new javax.swing.JRadioButton();\n jSpinnerAnualdia = new javax.swing.JSpinner();\n jMonthChooserAnualDia = new com.toedter.calendar.JMonthChooser();\n jMonthChooserAnualNumDia = new com.toedter.calendar.JMonthChooser();\n jComboBoxAnualDiaSem = new javax.swing.JComboBox();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jPanelSemanal = new javax.swing.JPanel();\n jCheckBox2 = new javax.swing.JCheckBox();\n jCheckBox1 = new javax.swing.JCheckBox();\n jCheckBox3 = new javax.swing.JCheckBox();\n jCheckBox4 = new javax.swing.JCheckBox();\n jCheckBox5 = new javax.swing.JCheckBox();\n jCheckBox6 = new javax.swing.JCheckBox();\n jCheckBox7 = new javax.swing.JCheckBox();\n jPanelMensual = new javax.swing.JPanel();\n jComboBoxNumDiaSem = new javax.swing.JComboBox();\n jComboBoxDiaSem = new javax.swing.JComboBox();\n jPanelDiario = new javax.swing.JPanel();\n jRadiolaborable = new javax.swing.JRadioButton();\n\n setTitle(\"Personalizar repetición\");\n setBackground(new java.awt.Color(200, 221, 242));\n setResizable(false);\n\n jPanel5.setBackground(new java.awt.Color(200, 221, 242));\n jPanel5.setPreferredSize(new java.awt.Dimension(349, 479));\n\n jPanel3.setBackground(new java.awt.Color(200, 221, 242));\n jPanel3.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n\n buttonGroup1.add(jRadioSinFechaFin);\n jRadioSinFechaFin.setFont(new java.awt.Font(\"Dialog\", 0, 12)); // NOI18N\n jRadioSinFechaFin.setText(\"Sin fecha final\");\n jRadioSinFechaFin.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jRadioSinFechaFinActionPerformed(evt);\n }\n });\n\n jLabel3.setText(\"Rango de repetición:\");\n\n buttonGroup1.add(jRadiofechaFin);\n jRadiofechaFin.setFont(new java.awt.Font(\"Dialog\", 0, 12)); // NOI18N\n jRadiofechaFin.setText(\"Repetir hasta\");\n jRadiofechaFin.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jRadiofechaFinActionPerformed(evt);\n }\n });\n\n buttonGroup1.add(jRadioCantRepit);\n jRadioCantRepit.setFont(new java.awt.Font(\"Dialog\", 0, 12)); // NOI18N\n jRadioCantRepit.setText(\"Crear\");\n jRadioCantRepit.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jRadioCantRepitActionPerformed(evt);\n }\n });\n\n jSpinnerCantRepit.setFont(new java.awt.Font(\"Dialog\", 0, 12)); // NOI18N\n jSpinnerCantRepit.setModel(new javax.swing.SpinnerNumberModel(1, 1, 1000, 1));\n\n jDateChooFechaFin.setToolTipText(\"Introducir fecha\");\n\n jLabel6.setFont(new java.awt.Font(\"Dialog\", 0, 12)); // NOI18N\n jLabel6.setText(\"instancia(s)\");\n\n org.jdesktop.beansbinding.Binding binding = org.jdesktop.beansbinding.Bindings.createAutoBinding(org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE, jSpinnerCantRepit, org.jdesktop.beansbinding.ELProperty.create(\"${enabled}\"), jLabel6, org.jdesktop.beansbinding.BeanProperty.create(\"enabled\"), \"\");\n bindingGroup.addBinding(binding);\n\n javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);\n jPanel3.setLayout(jPanel3Layout);\n jPanel3Layout.setHorizontalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 179, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap())\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addGap(12, 12, 12)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jRadioSinFechaFin)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jRadioCantRepit)\n .addComponent(jRadiofechaFin))\n .addGap(14, 14, 14)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addComponent(jSpinnerCantRepit, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel6, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addComponent(jDateChooFechaFin, javax.swing.GroupLayout.DEFAULT_SIZE, 140, Short.MAX_VALUE)))))))\n );\n jPanel3Layout.setVerticalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 8, Short.MAX_VALUE)\n .addComponent(jRadioSinFechaFin, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jRadioCantRepit, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jSpinnerCantRepit, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jDateChooFechaFin, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jRadiofechaFin, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(24, 24, 24))\n );\n\n jButton1.setFont(new java.awt.Font(\"Liberation Sans\", 0, 10)); // NOI18N\n jButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/com/sun/star/wizards/calendar/Images/20-check.png\"))); // NOI18N\n jButton1.setText(\"Aceptar\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n jButton2.setFont(new java.awt.Font(\"Liberation Sans\", 0, 10)); // NOI18N\n jButton2.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/com/sun/star/wizards/calendar/Images/delete-24.png\"))); // NOI18N\n jButton2.setText(\"Cancelar\");\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n\n jPanel4.setBackground(new java.awt.Color(200, 221, 242));\n jPanel4.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n\n jLabel1.setText(\"Patrón de repetición:\");\n\n jLabel2.setFont(new java.awt.Font(\"Dialog\", 0, 12)); // NOI18N\n jLabel2.setText(\"Repetir:\");\n\n jComgoRepit.setFont(new java.awt.Font(\"Dialog\", 0, 12)); // NOI18N\n jComgoRepit.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Diariamente\", \"Semanalmente\", \"Mensualmente\", \"Anualmente\" }));\n jComgoRepit.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jComgoRepitActionPerformed(evt);\n }\n });\n\n jPanel1.setBackground(new java.awt.Color(200, 221, 242));\n\n jPanel2.setBackground(new java.awt.Color(200, 221, 242));\n\n buttonGroup2.add(jRadioCada);\n jRadioCada.setText(\"Cada\");\n jRadioCada.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jRadioCadaActionPerformed(evt);\n }\n });\n\n jSpinnerCadaSalto.setFont(new java.awt.Font(\"Dialog\", 0, 12)); // NOI18N\n jSpinnerCadaSalto.setModel(new javax.swing.SpinnerNumberModel(1, 1, 1000, 1));\n\n binding = org.jdesktop.beansbinding.Bindings.createAutoBinding(org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE, jLabel7, org.jdesktop.beansbinding.ELProperty.create(\"${text}\"), jSpinnerCadaSalto, org.jdesktop.beansbinding.BeanProperty.create(\"toolTipText\"));\n bindingGroup.addBinding(binding);\n\n jLabel7.setText(\"día(s)\");\n\n binding = org.jdesktop.beansbinding.Bindings.createAutoBinding(org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE, jSpinnerCadaSalto, org.jdesktop.beansbinding.ELProperty.create(\"${enabled}\"), jLabel7, org.jdesktop.beansbinding.BeanProperty.create(\"enabled\"));\n bindingGroup.addBinding(binding);\n\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jRadioCada, javax.swing.GroupLayout.PREFERRED_SIZE, 61, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSpinnerCadaSalto, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel7, javax.swing.GroupLayout.DEFAULT_SIZE, 170, Short.MAX_VALUE))\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jRadioCada, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jSpinnerCadaSalto, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE))\n );\n\n jPanelAnual.setBackground(new java.awt.Color(200, 221, 242));\n\n jComboBoxAnualNumDia.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n\n buttonGroup3.add(jRadioAnualDia);\n jRadioAnualDia.setSelected(true);\n jRadioAnualDia.setText(\"El:\");\n jRadioAnualDia.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jRadioAnualDiaActionPerformed(evt);\n }\n });\n\n buttonGroup3.add(jRadioAnualNumDia);\n jRadioAnualNumDia.setText(\"El:\");\n jRadioAnualNumDia.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jRadioAnualNumDiaActionPerformed(evt);\n }\n });\n\n jSpinnerAnualdia.setFont(new java.awt.Font(\"Dialog\", 0, 12)); // NOI18N\n jSpinnerAnualdia.setModel(new javax.swing.SpinnerNumberModel(1, 1, 31, 1));\n\n jComboBoxAnualDiaSem.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n\n jLabel4.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\n jLabel4.setText(\"De:\");\n\n jLabel5.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\n jLabel5.setText(\"De:\");\n jLabel5.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);\n\n javax.swing.GroupLayout jPanelAnualLayout = new javax.swing.GroupLayout(jPanelAnual);\n jPanelAnual.setLayout(jPanelAnualLayout);\n jPanelAnualLayout.setHorizontalGroup(\n jPanelAnualLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanelAnualLayout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanelAnualLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jRadioAnualNumDia, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jRadioAnualDia, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanelAnualLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanelAnualLayout.createSequentialGroup()\n .addComponent(jSpinnerAnualdia, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jMonthChooserAnualDia, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanelAnualLayout.createSequentialGroup()\n .addComponent(jComboBoxAnualNumDia, javax.swing.GroupLayout.PREFERRED_SIZE, 125, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jComboBoxAnualDiaSem, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(jMonthChooserAnualNumDia, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap())\n );\n jPanelAnualLayout.setVerticalGroup(\n jPanelAnualLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanelAnualLayout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanelAnualLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(jPanelAnualLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jRadioAnualDia, javax.swing.GroupLayout.DEFAULT_SIZE, 30, Short.MAX_VALUE)\n .addComponent(jSpinnerAnualdia, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(jMonthChooserAnualDia, javax.swing.GroupLayout.DEFAULT_SIZE, 31, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanelAnualLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jRadioAnualNumDia, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jComboBoxAnualNumDia, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jComboBoxAnualDiaSem, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanelAnualLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jMonthChooserAnualNumDia, javax.swing.GroupLayout.DEFAULT_SIZE, 30, Short.MAX_VALUE)\n .addComponent(jLabel5, javax.swing.GroupLayout.DEFAULT_SIZE, 30, Short.MAX_VALUE))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n jLayeredPane2.add(jPanelAnual);\n jPanelAnual.setBounds(0, 0, 300, 130);\n\n jPanelSemanal.setBackground(new java.awt.Color(200, 221, 242));\n\n jCheckBox2.setText(\"mm\");\n\n jCheckBox1.setText(\"mm\");\n\n jCheckBox3.setText(\"mm\");\n\n jCheckBox4.setText(\"mm\");\n\n jCheckBox5.setText(\"mm\");\n\n jCheckBox6.setText(\"mm\");\n\n jCheckBox7.setText(\"mm\");\n\n javax.swing.GroupLayout jPanelSemanalLayout = new javax.swing.GroupLayout(jPanelSemanal);\n jPanelSemanal.setLayout(jPanelSemanalLayout);\n jPanelSemanalLayout.setHorizontalGroup(\n jPanelSemanalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanelSemanalLayout.createSequentialGroup()\n .addGap(42, 42, 42)\n .addGroup(jPanelSemanalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jPanelSemanalLayout.createSequentialGroup()\n .addComponent(jCheckBox1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jCheckBox2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jCheckBox3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jCheckBox4)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(jPanelSemanalLayout.createSequentialGroup()\n .addComponent(jCheckBox5)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jCheckBox6)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jCheckBox7)\n .addGap(116, 116, 116))))\n );\n jPanelSemanalLayout.setVerticalGroup(\n jPanelSemanalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanelSemanalLayout.createSequentialGroup()\n .addGroup(jPanelSemanalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jCheckBox1)\n .addComponent(jCheckBox3)\n .addComponent(jCheckBox4)\n .addComponent(jCheckBox2))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanelSemanalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jCheckBox7)\n .addComponent(jCheckBox6)\n .addComponent(jCheckBox5))\n .addGap(0, 84, Short.MAX_VALUE))\n );\n\n jLayeredPane2.add(jPanelSemanal);\n jPanelSemanal.setBounds(0, 0, 300, 130);\n\n jPanelMensual.setBackground(new java.awt.Color(200, 221, 242));\n\n jComboBoxNumDiaSem.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n\n jComboBoxDiaSem.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n\n javax.swing.GroupLayout jPanelMensualLayout = new javax.swing.GroupLayout(jPanelMensual);\n jPanelMensual.setLayout(jPanelMensualLayout);\n jPanelMensualLayout.setHorizontalGroup(\n jPanelMensualLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanelMensualLayout.createSequentialGroup()\n .addGap(37, 37, 37)\n .addComponent(jComboBoxNumDiaSem, javax.swing.GroupLayout.PREFERRED_SIZE, 101, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jComboBoxDiaSem, javax.swing.GroupLayout.PREFERRED_SIZE, 101, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(55, Short.MAX_VALUE))\n );\n jPanelMensualLayout.setVerticalGroup(\n jPanelMensualLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanelMensualLayout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanelMensualLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jComboBoxNumDiaSem, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jComboBoxDiaSem, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(99, Short.MAX_VALUE))\n );\n\n jLayeredPane2.add(jPanelMensual);\n jPanelMensual.setBounds(0, 0, 300, 130);\n\n jPanelDiario.setBackground(new java.awt.Color(200, 221, 242));\n\n buttonGroup2.add(jRadiolaborable);\n jRadiolaborable.setText(\"Solo días Laborables\");\n jRadiolaborable.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jRadiolaborableActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanelDiarioLayout = new javax.swing.GroupLayout(jPanelDiario);\n jPanelDiario.setLayout(jPanelDiarioLayout);\n jPanelDiarioLayout.setHorizontalGroup(\n jPanelDiarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanelDiarioLayout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jRadiolaborable)\n .addContainerGap(171, Short.MAX_VALUE))\n );\n jPanelDiarioLayout.setVerticalGroup(\n jPanelDiarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanelDiarioLayout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jRadiolaborable)\n .addContainerGap(100, Short.MAX_VALUE))\n );\n\n jLayeredPane2.add(jPanelDiario);\n jPanelDiario.setBounds(0, 0, 300, 130);\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLayeredPane2)\n .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLayeredPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 130, javax.swing.GroupLayout.PREFERRED_SIZE))\n );\n\n javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);\n jPanel4.setLayout(jPanel4Layout);\n jPanel4Layout.setHorizontalGroup(\n jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addComponent(jLabel2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jComgoRepit, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 179, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(0, 117, Short.MAX_VALUE))\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n jPanel4Layout.setVerticalGroup(\n jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jComgoRepit, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, 160, Short.MAX_VALUE))\n );\n\n javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5);\n jPanel5.setLayout(jPanel5Layout);\n jPanel5Layout.setHorizontalGroup(\n jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addGap(24, 24, 24)\n .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 110, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 110, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(27, 27, 27))\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel5Layout.setVerticalGroup(\n jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel5Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(19, Short.MAX_VALUE))\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, 337, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel5, javax.swing.GroupLayout.DEFAULT_SIZE, 483, Short.MAX_VALUE)\n );\n\n bindingGroup.bind();\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jC1 = new javax.swing.JComboBox<>();\n jC2 = new javax.swing.JComboBox<>();\n jButton1 = new javax.swing.JButton();\n jYearChooser1 = new com.toedter.calendar.JYearChooser();\n jC3 = new javax.swing.JComboBox<>();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n jTextField1 = new javax.swing.JTextField();\n jLabel6 = new javax.swing.JLabel();\n jButton2 = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jPanel1.setBackground(new java.awt.Color(0, 204, 204));\n\n jLabel1.setFont(new java.awt.Font(\"Andalus\", 1, 24)); // NOI18N\n jLabel1.setForeground(new java.awt.Color(0, 51, 255));\n jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel1.setText(\"PAYMENT SLIP\");\n\n jLabel2.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel2.setText(\"Department\");\n\n jLabel3.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel3.setText(\"Faculty Id\");\n\n jC1.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n jC1.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Computer Science\", \"Mathematics\", \"Chemistry\", \"Physics\", \"Botony\", \"Zoology\" }));\n jC1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jC1ActionPerformed(evt);\n }\n });\n\n jC2.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n jC2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jC2ActionPerformed(evt);\n }\n });\n\n jButton1.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jButton1.setText(\"Print\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n jC3.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n jC3.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"January\", \"February\", \"March\", \"April\", \"May\", \"June \", \"July\", \"August\", \"September\", \"October\", \"November\", \"December\" }));\n\n jLabel4.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel4.setText(\"Month\");\n\n jLabel5.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel5.setText(\"Year\");\n\n jLabel7.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel7.setText(\"Name\");\n\n jTextField1.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n\n jButton2.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jButton2.setText(\"Back\");\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(20, 20, 20)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 86, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel3)\n .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 60, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel4)\n .addComponent(jLabel7))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jC2, javax.swing.GroupLayout.PREFERRED_SIZE, 159, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 290, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jC3, javax.swing.GroupLayout.PREFERRED_SIZE, 156, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 198, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(66, 66, 66))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jYearChooser1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 463, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jC1, javax.swing.GroupLayout.PREFERRED_SIZE, 159, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(179, 179, 179)\n .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 128, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(47, 47, 47)\n .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 123, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(12, 12, 12)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(jC1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(33, 33, 33)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jC2, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel3))\n .addGap(27, 27, 27)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel7)\n .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(25, 25, 25)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel4)\n .addComponent(jC3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(5, 5, 5)\n .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 149, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel5)\n .addComponent(jYearChooser1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jButton2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButton1, javax.swing.GroupLayout.DEFAULT_SIZE, 36, Short.MAX_VALUE))\n .addGap(21, 21, 21))\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n pack();\n setLocationRelativeTo(null);\n }", "@Override\n public void onMonthScroll(Date firstDayOfNewMonth) {\n Title.setText(dateFormatForMonth.format(firstDayOfNewMonth));\n getMonthEvent();\n System.out.println(\"ini ganti bulan \"+dateFormatForMonth.format(firstDayOfNewMonth));\n\n }", "public void render() {\n\t\teventMap.clear();\n\t\t\n\t\tLocalDate firstDateOfMonth = LocalDate.of(currentDate.getYear(), currentDate.getMonthValue(), 1);\n\t\tint date = firstDateOfMonth.getDayOfWeek().getValue()%7;\n\t\t\n\t\t\n\t\teventSection.removeAll();\n\t\t// draw day string\n\t\tString[] headers = {\"SUN\", \"MON\", \"TUE\", \"WED\", \"THU\", \"FRI\", \"SAT\"};\n\t\tfor(int i = 0; i < headers.length; i++) {\n\t\t\tJLabel label = new CalendarDate(headers[i]);\t\n\t\t\tlabel.setHorizontalAlignment(JLabel.CENTER);\n\t\t label.setVerticalAlignment(JLabel.CENTER); \n\t\t Border border = BorderFactory.createLineBorder(Color.LIGHT_GRAY, 1);\n\t \tlabel.setBorder(border);\n\t\t eventSection.add(label);\n\t\t}\n\t\t// front padding\n\t\tLocalDate previousMonth = currentDate.minusMonths(1);\n\t\tfor(int i = date - 1; i >= 0; i--) {\n\t\t\tJLabel label = new CalendarDate(\"<html>\" + (previousMonth.getMonth().maxLength() - i) + \"</html>\");\n\t\t\tlabel.setHorizontalAlignment(JLabel.CENTER);\n\t\t label.setVerticalAlignment(JLabel.TOP); \n\t\t Border border = BorderFactory.createLineBorder(Color.LIGHT_GRAY, 1);\n\t \tlabel.setBorder(border);\n\t\t label.setForeground(Color.gray);\n\t\t eventSection.add(label);\n\t\t}\n\t\t// draw dates\n\t\tfor(int i = 1; i <= currentDate.getMonth().maxLength(); i++) {\n\t\t\tJPanel outerPanel = new JPanel();\n\t\t\touterPanel.setLayout(new BorderLayout());\n\t\t\touterPanel.setBorder(BorderFactory.createLineBorder(Color.LIGHT_GRAY, 1));\n\t\t\t\t\t\n\t\t\tJLabel label = new CalendarDate(\"<html>\" + i + \"</html>\");\n\t\t\tlabel.setPreferredSize(new Dimension(150,20));\n\t\t\tlabel.setBorder(BorderFactory.createEmptyBorder(5, 0, 5, 0));\n\t\t\tlabel.setHorizontalAlignment(JLabel.CENTER); \t\t \n\n\t\t outerPanel.add(label, BorderLayout.NORTH);\n\t\t \t \n\t\t LocalDate tmp = LocalDate.of(currentDate.getYear(), currentDate.getMonthValue(), i);\n\t\t\tArrayList<Event> dateEvents = new ArrayList<Event>();\n\t\t\tdateEvents = EventProcessor.filterEvents(model.getEvents(), tmp, tmp);\n\t\t\t\n\t\t\tif (dateEvents.size() > 0) {\t\n\t\t\t\tJPanel container = new JPanel();\n\t\t\t\tcontainer.setLayout(new BoxLayout(container, BoxLayout.Y_AXIS));\n\t\t\t JScrollPane scrollablePanel = new JScrollPane(container, ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED, ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);\n\t\t\t scrollablePanel.getVerticalScrollBar().setPreferredSize(new Dimension(0,0));\n\t\t\t outerPanel.add(scrollablePanel, BorderLayout.CENTER);\n\t\t\t \n\t\t\t\tfor (int j = 0; j < dateEvents.size(); j++) {\n\t\t\t\t\tEvent ev = dateEvents.get(j);\n\t\t\t\t\t\n\t\t\t\t\tJPanel panel = new JPanel();\t\t\t\n\t\t\t\t\tpanel.setLayout(new BoxLayout(panel, BoxLayout.Y_AXIS));\n\t\t\t\t\tif (j % 2 == 1)\n\t\t\t\t\t\tpanel.setBackground(new Color(243, 243, 243));\n\t\t\t\t\telse\n\t\t\t\t\t\tpanel.setBackground(new Color(192, 219, 243));\n\t\t\t\t\tpanel.setOpaque(true);\n\t\t\t\t\t\n\t\t\t\t\tString eventName = ev.getName();\n\t\t\t\t\tJLabel eventPill = new JLabel(\"<html>\" + (eventName.length() > 20 ? eventName.substring(0, 17) + \"...\" : eventName) + \"</html>\");\n\t\t\t\t\teventPill.setHorizontalAlignment(JLabel.LEFT);\n\t\t\t\t\teventPill.setAlignmentX(Component.LEFT_ALIGNMENT);\n\n\t\t\t\t\teventMap.put(eventPill, ev);\n\t\t\t\t\t\n\t\t\t\t\teventPill.addMouseListener(new MouseListener() {\n\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\t\t\tEvent event = eventMap.get((JLabel)e.getSource());\n\t\t\t\t\t\t\tString content = \"<html><strong>\" + event.getName() + \"</strong><br><span>\" + DateTimeFormatter.ofLocalizedDate(FormatStyle.FULL).format(event.getDate()) + \"</span><br><span>\" + event.getStartTime() + \":00 - \" + event.getEndTime() + \":00</span></html>\";\n\t\t\t\t\t\t\tpopupContent.setText(content);\n\t\t\t\t\t\t\tpopup.repaint();\n\t\t\t\t\t\t\tpopup.pack();\n\t\t\t\t\t\t\tpopup.setLocation(e.getXOnScreen(), e.getYOnScreen());\n\t\t\t\t\t\t\tpopup.setVisible(true);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void mousePressed(MouseEvent e) {}\n\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void mouseReleased(MouseEvent e) {}\n\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void mouseEntered(MouseEvent e) {}\n\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void mouseExited(MouseEvent e) {}\n\t\t\t\t\t\t\n\t\t\t\t\t});\n\t\t\t\t\t\n\t\t\t\t\tpanel.add(eventPill);\n\t\t\t\t\tcontainer.add(panel);\n\t\t\t\t}\n\t\t\t}\n\t\t \n\t\t eventSection.add(outerPanel);\n\t\t}\n\t\t// rear padding\n\t\tint rearPaddingCount = 49 - currentDate.getMonth().maxLength() - headers.length - date;\n\t\tfor(int i = 0; i < rearPaddingCount; i++) {\n\t\t\tJLabel label = new CalendarDate(\"<html>\" + (i + 1) + \"</html>\");\n\t\t\tlabel.setHorizontalAlignment(JLabel.CENTER);\n\t\t label.setVerticalAlignment(JLabel.TOP); \n\t\t label.setForeground(Color.gray);\n\t\t Border border = BorderFactory.createLineBorder(Color.LIGHT_GRAY, 1);\n\t \tlabel.setBorder(border);\n\t\t\teventSection.add(label);\n\t\t\t\n\t\t}\n\t\trevalidate();\n\t\trepaint();\n\t}", "private static void addSchedule(Container pane){\r\n pane.setLayout(null);\r\n pane.setBackground(Color.WHITE);\r\n for (MyButton b : mylist.getAllButtons()){\r\n pane.add(b);\r\n }\r\n setButtonsPlaced();\r\n Insets insets = pane.getInsets();\r\n \r\n int leftOffset = (int) monLabel.getPreferredSize().getWidth() + space;\r\n int topOffset = addDayTime(pane, leftOffset);\r\n \r\n Dimension d;\r\n int maxX = pane.getPreferredSize().width;\r\n\r\n monLabel.setBounds(insets.left, topOffset, monLabel.getPreferredSize().width, monLabel.getPreferredSize().height); \r\n d = setDay(mylist.getMonday(), leftOffset, topOffset);\r\n topOffset = d.height; \r\n if(d.width > maxX){\r\n maxX = d.width;\r\n }\r\n \r\n tueLabel.setBounds(insets.left, topOffset, tueLabel.getPreferredSize().width, tueLabel.getPreferredSize().height); \r\n d = setDay(mylist.getTuesday(), leftOffset, topOffset);\r\n topOffset = d.height; \r\n if(d.width > maxX){\r\n maxX = d.width;\r\n }\r\n \r\n wedLabel.setBounds(insets.left, topOffset, wedLabel.getPreferredSize().width, wedLabel.getPreferredSize().height); \r\n d = setDay(mylist.getWednesday(), leftOffset, topOffset);\r\n topOffset = d.height; \r\n if(d.width > maxX){\r\n maxX = d.width;\r\n }\r\n \r\n thuLabel.setBounds(insets.left, topOffset, thuLabel.getPreferredSize().width, thuLabel.getPreferredSize().height); \r\n d = setDay(mylist.getThursday(), leftOffset, topOffset);\r\n topOffset = d.height; \r\n if(d.width > maxX){\r\n maxX = d.width;\r\n }\r\n \r\n friLabel.setBounds(insets.left, topOffset, friLabel.getPreferredSize().width, friLabel.getPreferredSize().height); \r\n d = setDay(mylist.getFriday(), leftOffset, topOffset);\r\n topOffset = d.height; \r\n if(d.width > maxX){\r\n maxX = d.width;\r\n }\r\n \r\n pane.setPreferredSize(new Dimension(maxX, topOffset));\r\n frame.pack();\r\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n jPanel2 = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n tf_debut = new org.jdesktop.swingx.JXDatePicker();\n jLabel2 = new javax.swing.JLabel();\n tf_fin = new org.jdesktop.swingx.JXDatePicker();\n jLabel3 = new javax.swing.JLabel();\n jButton1 = new javax.swing.JButton();\n jSeparator1 = new javax.swing.JSeparator();\n jXBusyLabel1 = new org.jdesktop.swingx.JXBusyLabel();\n but_export = new javax.swing.JButton();\n but_print = new javax.swing.JButton();\n jScrollPane1 = new javax.swing.JScrollPane();\n target = new javax.swing.JPanel();\n\n jPanel2.setBackground(new java.awt.Color(255, 255, 255));\n jPanel2.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n\n jLabel1.setFont(new java.awt.Font(\"Comic Sans MS\", 1, 18));\n jLabel1.setForeground(new java.awt.Color(0, 153, 0));\n jLabel1.setText(\"Rapport\");\n\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 270, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(630, Short.MAX_VALUE))\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel1)\n .addContainerGap(20, Short.MAX_VALUE))\n );\n\n jLabel2.setText(\"Date Début :\");\n\n jLabel3.setText(\"Date Fin :\");\n\n jButton1.setText(\"Ok\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n but_export.setText(\"Exporter vers Excel\");\n\n but_print.setText(\"Imprimer\");\n\n javax.swing.GroupLayout targetLayout = new javax.swing.GroupLayout(target);\n target.setLayout(targetLayout);\n targetLayout.setHorizontalGroup(\n targetLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 837, Short.MAX_VALUE)\n );\n targetLayout.setVerticalGroup(\n targetLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 343, Short.MAX_VALUE)\n );\n\n jScrollPane1.setViewportView(target);\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addGap(129, 129, 129)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 93, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(tf_debut, javax.swing.GroupLayout.PREFERRED_SIZE, 153, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 298, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(tf_fin, javax.swing.GroupLayout.PREFERRED_SIZE, 179, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(29, 29, 29)\n .addComponent(jButton1))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel3)\n .addGap(287, 287, 287))))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addContainerGap(628, Short.MAX_VALUE)\n .addComponent(but_print, javax.swing.GroupLayout.PREFERRED_SIZE, 131, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(but_export)\n .addContainerGap())\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addContainerGap(76, Short.MAX_VALUE)\n .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 731, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(43, 43, 43)\n .addComponent(jXBusyLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(38, 38, 38))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addContainerGap(65, Short.MAX_VALUE)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 839, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap())\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(36, 36, 36)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(23, 23, 23)\n .addComponent(jLabel3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(tf_fin, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButton1)))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(18, 18, 18)\n .addComponent(jLabel2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(tf_debut, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(31, 31, 31)\n .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(jXBusyLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 345, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(31, 31, 31)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(but_export)\n .addComponent(but_print))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 914, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE)))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 620, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE)))\n );\n }", "private void creatBirth(){\n\n for (int i = 0; i < repeatLunar.size() - 1; i++) {\n mLunar = repeatLunar.get(i);\n mLunarDay = mLunar.getLunarDay();\n mLunarMonth = mLunar.getLunarMonth();\n mLunarYear = mLunar.getLunarYear();\n mRepeat = mLunar.getRepeat();\n\n createEvent(getDate(mLunarYear, mLunarMonth, mLunarDay));\n\n\n }\n\n\n\n }", "public void run() {\n printMonthNameByNumber();\n }", "public static void month_data_Type(String fieldsText) throws InterruptedException {\n\t\tif (AndroidLocators.findElements_With_Xpath(\"//*[starts-with(@text,'\" + fieldsText\n\t\t\t\t+ \"')]/parent::*/parent::*/android.widget.Button[contains(@text,'Month')]\").size() > 0) {\n\t\t\tAndroidLocators.clickElementusingXPath(\"//*[starts-with(@text,'\" + fieldsText\n\t\t\t\t\t+ \"')]/parent::*/parent::*/android.widget.Button[contains(@text,'Month')]\");\n\t\t\tmonthe_year(5, 3);\n\t\t} else {\n\t\t\tAndroidLocators.clickElementusingXPath(\n\t\t\t\t\t\"//*[starts-with(@text,'\" + fieldsText + \"')]/parent::*/parent::*/android.widget.Button\");\n\t\t\tmonthe_year(5, 3);\n\t\t}\n\t}", "private void setMonthSelection() {\n int displayMonth = getIntent().getIntExtra(\"month\", -1);\n if (displayMonth == -1) {\n Calendar cal = Calendar.getInstance();\n selectMonth.setSelection(cal.get(Calendar.MONTH) + 1);\n } else {\n selectMonth.setSelection(displayMonth);\n }\n }", "private void initComponents() {\n\n\t\tjpTitle = new javax.swing.JPanel();\n\t\tjlbTitle = new javax.swing.JLabel();\n\t\tjpSearch = new javax.swing.JPanel();\n\t\tjlbYear = new javax.swing.JLabel();\n\t\tjtfYear = new javax.swing.JFormattedTextField();\n\t\tjlbMonth = new javax.swing.JLabel();\n\t\tjspMonth = new javax.swing.JScrollPane();\n\t\tjlsMonth = new javax.swing.JList<String>();\n\t\tjbtSearch = new javax.swing.JButton();\n\t\tjlbCompanyName = new javax.swing.JLabel();\n\t\tjtfCompanyName = new javax.swing.JTextField();\n\t\tlbImage = new javax.swing.JLabel();\n\t\tjpVoucherList = new javax.swing.JPanel();\n\t\tjspVoucherList = new javax.swing.JScrollPane();\n\t\tjtbVoucherList = new javax.swing.JTable();\n\t\tjlbTotalCredit = new javax.swing.JLabel();\n\t\tjlbTotalDebt = new javax.swing.JLabel();\n\t\tjpAction = new javax.swing.JPanel();\n\t\tjbtClose = new javax.swing.JButton();\n\t\tjbtPrint = new javax.swing.JButton();\n\n\t\tsetTitle(\"Libro diario\");\n\t\tsetIconImage(Toolkit.getDefaultToolkit().getImage(\n\t\t\t\tgetClass().getResource(\"/images/accountability.png\")));\n\n\t\tjpTitle.setBackground(new java.awt.Color(255, 255, 255));\n\n\t\tjlbTitle.setFont(new java.awt.Font(\"Verdana\", 1, 14)); // NOI18N\n\t\tjlbTitle.setText(\"Libro diario\");\n\n\t\tjavax.swing.GroupLayout jpTitleLayout = new javax.swing.GroupLayout(\n\t\t\t\tjpTitle);\n\t\tjpTitle.setLayout(jpTitleLayout);\n\t\tjpTitleLayout.setHorizontalGroup(jpTitleLayout.createParallelGroup(\n\t\t\t\tjavax.swing.GroupLayout.Alignment.LEADING).addGroup(\n\t\t\t\tjpTitleLayout.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t.addComponent(jlbTitle)\n\t\t\t\t\t\t.addContainerGap(861, Short.MAX_VALUE)));\n\t\tjpTitleLayout.setVerticalGroup(jpTitleLayout.createParallelGroup(\n\t\t\t\tjavax.swing.GroupLayout.Alignment.LEADING).addGroup(\n\t\t\t\tjpTitleLayout.createSequentialGroup().addGap(32, 32, 32)\n\t\t\t\t\t\t.addComponent(jlbTitle)\n\t\t\t\t\t\t.addContainerGap(34, Short.MAX_VALUE)));\n\n\t\tjpSearch.setBorder(javax.swing.BorderFactory.createTitledBorder(null,\n\t\t\t\t\"Busqueda\",\n\t\t\t\tjavax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION,\n\t\t\t\tjavax.swing.border.TitledBorder.DEFAULT_POSITION,\n\t\t\t\tnew java.awt.Font(\"Verdana\", 1, 12))); // NOI18N\n\n\t\tjlbYear.setFont(new java.awt.Font(\"Verdana\", 1, 10)); // NOI18N\n\t\tjlbYear.setText(\"Año:\");\n\n\t\tjtfYear.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(\n\t\t\t\tnew javax.swing.text.NumberFormatter(\n\t\t\t\t\t\tnew java.text.DecimalFormat(\"####0\"))));\n\t\tjtfYear.setText(String.valueOf(Calendar.getInstance()\n\t\t\t\t.get(Calendar.YEAR)));\n\t\tjtfYear.setFont(new java.awt.Font(\"Verdana\", 0, 10)); // NOI18N\n\n\t\tjlbMonth.setFont(new java.awt.Font(\"Verdana\", 1, 10)); // NOI18N\n\t\tjlbMonth.setText(\"Mes:\");\n\n\t\tjspMonth.setFont(new java.awt.Font(\"Verdana\", 0, 10)); // NOI18N\n\n\t\tjlsMonth.setFont(new java.awt.Font(\"Verdana\", 0, 10)); // NOI18N\n\t\tjspMonth.setViewportView(jlsMonth);\n\n\t\tjbtSearch.setBackground(new java.awt.Color(16, 135, 221));\n\t\tjbtSearch.setFont(new java.awt.Font(\"Verdana\", 1, 10)); // NOI18N\n\t\tjbtSearch.setForeground(new java.awt.Color(255, 255, 255));\n\t\tjbtSearch.setText(\"Buscar\");\n\t\tjbtSearch.setPreferredSize(new java.awt.Dimension(89, 23));\n\t\tjbtSearch.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\tjbtSearchActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjlbCompanyName.setFont(new java.awt.Font(\"Verdana\", 1, 10)); // NOI18N\n\t\tjlbCompanyName.setText(\"Empresa:\");\n\n\t\tjtfCompanyName.setEditable(false);\n\t\tjtfCompanyName.setFont(new java.awt.Font(\"Verdana\", 0, 10)); // NOI18N\n\n\t\tjavax.swing.GroupLayout jpSearchLayout = new javax.swing.GroupLayout(\n\t\t\t\tjpSearch);\n\t\tjpSearch.setLayout(jpSearchLayout);\n\t\tjpSearchLayout\n\t\t\t\t.setHorizontalGroup(jpSearchLayout\n\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\tjavax.swing.GroupLayout.Alignment.LEADING)\n\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\tjpSearchLayout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tjpSearchLayout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjavax.swing.GroupLayout.Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjtfCompanyName)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjpSearchLayout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjpSearchLayout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjavax.swing.GroupLayout.Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjlbYear)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjtfYear,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjavax.swing.GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t80,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjavax.swing.GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjlbMonth)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjspMonth,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjavax.swing.GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t160,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjavax.swing.GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjpSearchLayout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(71,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t71,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t71)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjbtSearch,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjavax.swing.GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjavax.swing.GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjavax.swing.GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjlbCompanyName))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(0,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t0,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)))\n\t\t\t\t\t\t\t\t\t\t.addContainerGap()));\n\t\tjpSearchLayout\n\t\t\t\t.setVerticalGroup(jpSearchLayout\n\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\tjavax.swing.GroupLayout.Alignment.LEADING)\n\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\tjavax.swing.GroupLayout.Alignment.TRAILING,\n\t\t\t\t\t\t\t\tjpSearchLayout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t\t\t\t\t\t.addComponent(jlbCompanyName)\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(\n\t\t\t\t\t\t\t\t\t\t\t\tjavax.swing.LayoutStyle.ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\tjtfCompanyName,\n\t\t\t\t\t\t\t\t\t\t\t\tjavax.swing.GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tjavax.swing.GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tjavax.swing.GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(\n\t\t\t\t\t\t\t\t\t\t\t\tjavax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n\t\t\t\t\t\t\t\t\t\t.addComponent(jlbYear)\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(\n\t\t\t\t\t\t\t\t\t\t\t\tjavax.swing.LayoutStyle.ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\tjtfYear,\n\t\t\t\t\t\t\t\t\t\t\t\tjavax.swing.GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tjavax.swing.GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tjavax.swing.GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(\n\t\t\t\t\t\t\t\t\t\t\t\tjavax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n\t\t\t\t\t\t\t\t\t\t.addComponent(jlbMonth)\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(\n\t\t\t\t\t\t\t\t\t\t\t\tjavax.swing.LayoutStyle.ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\tjspMonth,\n\t\t\t\t\t\t\t\t\t\t\t\tjavax.swing.GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t102,\n\t\t\t\t\t\t\t\t\t\t\t\tjavax.swing.GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addGap(18, 18, 18)\n\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\tjbtSearch,\n\t\t\t\t\t\t\t\t\t\t\t\tjavax.swing.GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tjavax.swing.GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tjavax.swing.GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addContainerGap(\n\t\t\t\t\t\t\t\t\t\t\t\tjavax.swing.GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)));\n\n\t\tlbImage.setIcon(new javax.swing.ImageIcon(getClass().getResource(\n\t\t\t\t\"/images/soin.png\"))); // NOI18N\n\n\t\tjpVoucherList.setBorder(javax.swing.BorderFactory.createTitledBorder(\n\t\t\t\tnull, \"Listado de asientos\",\n\t\t\t\tjavax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION,\n\t\t\t\tjavax.swing.border.TitledBorder.DEFAULT_POSITION,\n\t\t\t\tnew java.awt.Font(\"Verdana\", 1, 12))); // NOI18N\n\n\t\tjtbVoucherList.setFont(new java.awt.Font(\"Verdana\", 0, 10)); // NOI18N\n\t\tjspVoucherList.setViewportView(jtbVoucherList);\n\n\t\tjlbTotalCredit.setFont(new java.awt.Font(\"Verdana\", 1, 10)); // NOI18N\n\t\tjlbTotalCredit.setText(\"Total credito:\");\n\n\t\tjlbTotalDebt.setFont(new java.awt.Font(\"Verdana\", 1, 10)); // NOI18N\n\t\tjlbTotalDebt.setText(\"Total debito:\");\n\n\t\tjavax.swing.GroupLayout jpVoucherListLayout = new javax.swing.GroupLayout(\n\t\t\t\tjpVoucherList);\n\t\tjpVoucherList.setLayout(jpVoucherListLayout);\n\t\tjpVoucherListLayout.setHorizontalGroup(jpVoucherListLayout\n\t\t\t\t.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n\t\t\t\t.addComponent(jspVoucherList,\n\t\t\t\t\t\tjavax.swing.GroupLayout.DEFAULT_SIZE, 728,\n\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t.addGroup(\n\t\t\t\t\t\tjavax.swing.GroupLayout.Alignment.TRAILING,\n\t\t\t\t\t\tjpVoucherListLayout\n\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addContainerGap(\n\t\t\t\t\t\t\t\t\t\tjavax.swing.GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t.addComponent(jlbTotalDebt).addGap(18, 18, 18)\n\t\t\t\t\t\t\t\t.addComponent(jlbTotalCredit)\n\t\t\t\t\t\t\t\t.addGap(39, 39, 39)));\n\t\tjpVoucherListLayout\n\t\t\t\t.setVerticalGroup(jpVoucherListLayout\n\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\tjavax.swing.GroupLayout.Alignment.LEADING)\n\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\tjpVoucherListLayout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\tjspVoucherList,\n\t\t\t\t\t\t\t\t\t\t\t\tjavax.swing.GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t300,\n\t\t\t\t\t\t\t\t\t\t\t\tjavax.swing.GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(\n\t\t\t\t\t\t\t\t\t\t\t\tjavax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tjpVoucherListLayout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjavax.swing.GroupLayout.Alignment.BASELINE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjlbTotalCredit)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjlbTotalDebt))\n\t\t\t\t\t\t\t\t\t\t.addGap(0, 11, Short.MAX_VALUE)));\n\n\t\tjpAction.setBorder(javax.swing.BorderFactory.createTitledBorder(null,\n\t\t\t\t\"\", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION,\n\t\t\t\tjavax.swing.border.TitledBorder.DEFAULT_POSITION,\n\t\t\t\tnew java.awt.Font(\"Verdana\", 0, 11))); // NOI18N\n\n\t\tjbtClose.setBackground(new java.awt.Color(16, 135, 221));\n\t\tjbtClose.setFont(new java.awt.Font(\"Verdana\", 1, 10)); // NOI18N\n\t\tjbtClose.setForeground(new java.awt.Color(255, 255, 255));\n\t\tjbtClose.setText(\"Cerrar\");\n\t\tjbtClose.setPreferredSize(new java.awt.Dimension(89, 23));\n\t\tjbtClose.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\tjbtCloseActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjbtPrint.setBackground(new java.awt.Color(16, 135, 221));\n\t\tjbtPrint.setFont(new java.awt.Font(\"Verdana\", 1, 10)); // NOI18N\n\t\tjbtPrint.setForeground(new java.awt.Color(255, 255, 255));\n\t\tjbtPrint.setText(\"Imprimir\");\n\t\tjbtPrint.setPreferredSize(new java.awt.Dimension(89, 23));\n\t\tjbtPrint.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\tjbtPrintActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjavax.swing.GroupLayout jpActionLayout = new javax.swing.GroupLayout(\n\t\t\t\tjpAction);\n\t\tjpAction.setLayout(jpActionLayout);\n\t\tjpActionLayout.setHorizontalGroup(jpActionLayout.createParallelGroup(\n\t\t\t\tjavax.swing.GroupLayout.Alignment.LEADING).addGroup(\n\t\t\t\tjavax.swing.GroupLayout.Alignment.TRAILING,\n\t\t\t\tjpActionLayout\n\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t.addComponent(jbtPrint,\n\t\t\t\t\t\t\t\tjavax.swing.GroupLayout.PREFERRED_SIZE, 97,\n\t\t\t\t\t\t\t\tjavax.swing.GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(18, 18, 18)\n\t\t\t\t\t\t.addComponent(jbtClose,\n\t\t\t\t\t\t\t\tjavax.swing.GroupLayout.PREFERRED_SIZE, 97,\n\t\t\t\t\t\t\t\tjavax.swing.GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addContainerGap()));\n\t\tjpActionLayout\n\t\t\t\t.setVerticalGroup(jpActionLayout\n\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\tjavax.swing.GroupLayout.Alignment.LEADING)\n\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\tjpActionLayout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGap(23, 23, 23)\n\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tjpActionLayout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjavax.swing.GroupLayout.Alignment.BASELINE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjbtClose,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjavax.swing.GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjavax.swing.GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjavax.swing.GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjbtPrint,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjavax.swing.GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjavax.swing.GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjavax.swing.GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t.addContainerGap(\n\t\t\t\t\t\t\t\t\t\t\t\tjavax.swing.GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)));\n\n\t\tjavax.swing.GroupLayout layout = new javax.swing.GroupLayout(\n\t\t\t\tgetContentPane());\n\t\tgetContentPane().setLayout(layout);\n\t\tlayout.setHorizontalGroup(layout\n\t\t\t\t.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n\t\t\t\t.addComponent(jpTitle, javax.swing.GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\tjavax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t.addGroup(\n\t\t\t\t\t\tjavax.swing.GroupLayout.Alignment.TRAILING,\n\t\t\t\t\t\tlayout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addGap(0, 0, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t.addComponent(lbImage,\n\t\t\t\t\t\t\t\t\t\tjavax.swing.GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t388,\n\t\t\t\t\t\t\t\t\t\tjavax.swing.GroupLayout.PREFERRED_SIZE))\n\t\t\t\t.addGroup(\n\t\t\t\t\t\tlayout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\tlayout.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tjavax.swing.GroupLayout.Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjpSearch,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjavax.swing.GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjavax.swing.GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjavax.swing.GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjavax.swing.LayoutStyle.ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjpVoucherList,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjavax.swing.GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjavax.swing.GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(12, 12,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t12))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tjavax.swing.GroupLayout.Alignment.TRAILING,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjpAction,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjavax.swing.GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjavax.swing.GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addContainerGap()))));\n\t\tlayout.setVerticalGroup(layout\n\t\t\t\t.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n\t\t\t\t.addGroup(\n\t\t\t\t\t\tlayout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addComponent(jpTitle,\n\t\t\t\t\t\t\t\t\t\tjavax.swing.GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\tjavax.swing.GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tjavax.swing.GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addPreferredGap(\n\t\t\t\t\t\t\t\t\t\tjavax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\tlayout.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tjavax.swing.GroupLayout.Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tjpVoucherList,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tjavax.swing.GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tjavax.swing.GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tjpSearch,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tjavax.swing.GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tjavax.swing.GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE))\n\t\t\t\t\t\t\t\t.addPreferredGap(\n\t\t\t\t\t\t\t\t\t\tjavax.swing.LayoutStyle.ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t.addComponent(jpAction,\n\t\t\t\t\t\t\t\t\t\tjavax.swing.GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\tjavax.swing.GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tjavax.swing.GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addGap(30, 30, 30)\n\t\t\t\t\t\t\t\t.addComponent(lbImage,\n\t\t\t\t\t\t\t\t\t\tjavax.swing.GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t35,\n\t\t\t\t\t\t\t\t\t\tjavax.swing.GroupLayout.PREFERRED_SIZE)));\n\n\t\tpack();\n\t}", "public String setEndDate(int year, String month, int day) {\n WebElement dayChooser;\n String currentYear; // Year that is given by default\n\n clickElement(endDateSelect);\n // Here we are choosing year\n currentYear = setYear.getAttribute(\"textContent\");\n int currentYearNumber = Integer.parseInt(currentYear);\n // System.out.println(\"setYear\" + currentYearNumber);\n if( year - currentYearNumber > 0 )\n for (int i = 1; i <= (year - currentYearNumber)*12; i++){ clickElement(yearStepUp); }\n if( year - currentYearNumber < 0 )\n for (int i = 1; i <= (currentYearNumber - year)*12; i++){ clickElement(yearStepDown); }\n\n selectValueInDropdown(chooseMonth, month); // Here we are choosing month\n\n switch (day) { // Here we are choosing day\n case 1:\n dayChooser = dayChooser_1;\n break;\n case 2:\n dayChooser = dayChooser_2;\n break;\n case 3:\n dayChooser = dayChooser_3;\n break;\n case 4:\n dayChooser = dayChooser_4;\n break;\n case 5:\n dayChooser = dayChooser_5;\n break;\n case 6:\n dayChooser = dayChooser_6;\n break;\n case 7:\n dayChooser = dayChooser_7;\n break;\n case 8:\n dayChooser = dayChooser_8;\n break;\n case 9:\n dayChooser = dayChooser_9;\n break;\n case 10:\n dayChooser = dayChooser_10;\n break;\n case 11:\n dayChooser = dayChooser_11;\n break;\n case 12:\n dayChooser = dayChooser_12;\n break;\n case 13:\n dayChooser = dayChooser_13;\n break;\n case 14:\n dayChooser = dayChooser_14;\n break;\n case 15:\n dayChooser = dayChooser_15;\n break;\n case 16:\n dayChooser = dayChooser_16;\n break;\n case 17:\n dayChooser = dayChooser_17;\n break;\n case 18:\n dayChooser = dayChooser_18;\n break;\n case 19:\n dayChooser = dayChooser_19;\n break;\n case 20:\n dayChooser = dayChooser_20;\n break;\n case 21:\n dayChooser = dayChooser_21;\n break;\n case 22:\n dayChooser = dayChooser_22;\n break;\n case 23:\n dayChooser = dayChooser_23;\n break;\n case 24:\n dayChooser = dayChooser_24;\n break;\n case 25:\n dayChooser = dayChooser_25;\n break;\n case 26:\n dayChooser = dayChooser_26;\n break;\n case 27:\n dayChooser = dayChooser_27;\n break;\n case 28:\n dayChooser = dayChooser_28;\n break;\n case 29:\n dayChooser = dayChooser_29;\n break;\n case 30:\n dayChooser = dayChooser_30;\n break;\n case 31:\n dayChooser = dayChooser_31;\n break;\n default: {\n System.out.println(\" Such day is not exist\");\n return null;\n }\n }\n clickElement(dayChooser);\n return endDateSelect.getAttribute(\"value\");\n }", "public static void printMonth(int year, int month) {\n System.out.println(\" \");\n System.out.println(\" \");\n getMonthName(month,year);\n printTitle(year,month);//call the method printTitle with the values year and month\n printMonthBody(year,month);//call the method printMonthBody with the values year and month\n }", "public void pickCheckInDate(String monthYearParam, String dateParam) {\n String actualMonth = driver.findElement(By.xpath(monthPickerElement)).getText();\n String actualYear = driver.findElement(By.xpath(yearPickerElement)).getText();\n String actualMonthYear = (actualMonth + \" \" + actualYear);\n System.out.println(actualMonthYear);\n while (true) {\n if (actualMonthYear.equalsIgnoreCase(monthYearParam)) {\n break;\n } else {\n clickByXpath(tripNextMonthElement);\n }\n }\n for (WebElement allDates : datePicker) {\n\n if (allDates.equals(dateParam)) {\n\n allDates.click();\n break;\n }\n }\n }", "public void setUpComponents() {\n for (int i = 1; i <= 31; i++) {\n cmbDay.addItem(String.format(\"%02d\", i));\n }\n\n for (int i = 0; i <= 11; i++) {\n cmbMonth.addItem(monthNames[i]);\n }\n\n updateTimeComboBox();\n\n updateDurationComboBox();\n\n cmbDay.setSelectedIndex(initialDay.getDay() - 1);\n cmbMonth.setSelectedIndex(initialDay.getMonth());\n\n if (formType.equals(\"Edit\")) {\n txtName.setText(eventToEdit.getName());\n cmbTime.setSelectedIndex(eventToEdit.getStartTime() - usedTimes.size());\n cmbDuration.setSelectedIndex(eventToEdit.getDuration() - 1);\n }\n\n cmbTime.addItemListener(new MyItemListener());\n cmbDay.addItemListener(new MyItemListener());\n cmbMonth.addItemListener(new MyItemListener());\n radAutoTime.addActionListener(new TimeHandler());\n radSelectTime.addActionListener(new TimeHandler());\n\n buttonGroup.add(radSelectTime);\n buttonGroup.add(radAutoTime);\n\n frame.setLayout(new GridBagLayout());\n gbc.insets = new Insets(5, 5, 5, 5);\n addComponents();\n\n btnSubmit.addActionListener(new EventHandler());\n frame.getRootPane().setDefaultButton(btnSubmit);\n\n buildFrame();\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tmView.nextMonth();\n\t\t\t\tc.add(Calendar.MONTH, 1);\n\t\t\t\tmonthlyview_month.setText(DateFormat.format(\"d MMMM yyyy\", c));\n\n\t\t\t}", "public void printMonth() {\r\n switch (cur.getMonth()){\r\n case 1:\r\n System.out.println(\"JANUARY\");\r\n break;\r\n case 2:\r\n System.out.println(\"FEBRUARY\");\r\n break;\r\n case 3:\r\n System.out.println(\"MARCH\");\r\n break;\r\n case 4:\r\n System.out.println(\"APRIL\");\r\n break;\r\n case 5:\r\n System.out.println(\"MAY\");\r\n break;\r\n case 6:\r\n System.out.println(\"JUNE\");\r\n break;\r\n case 7:\r\n System.out.println(\"JULY\");\r\n break;\r\n case 8:\r\n System.out.println(\"AUGUST\");\r\n break;\r\n case 9:\r\n System.out.println(\"SEPTEMBER\");\r\n break;\r\n case 10:\r\n System.out.println(\"OCTOBER\");\r\n break;\r\n case 11:\r\n System.out.println(\"NOVEMBER\");\r\n break;\r\n case 12:\r\n System.out.println(\"DECEMBER\");\r\n break;\r\n }\r\n }", "@FXML\r\n void onActionMonth(ActionEvent event) {\r\n appointmentListType();\r\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n buttonGroup1 = new javax.swing.ButtonGroup();\n jLabel4 = new javax.swing.JLabel();\n jPanel2 = new javax.swing.JPanel();\n jPanel1 = new javax.swing.JPanel();\n jLabel5 = new javax.swing.JLabel();\n jPanel6 = new javax.swing.JPanel();\n jLEstaticoTamanoMuestra = new javax.swing.JLabel();\n jLEstaticoTamanoMuestra1 = new javax.swing.JLabel();\n jPanel3 = new javax.swing.JPanel();\n jLabel7 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n jLEstatico1Criterio6 = new javax.swing.JLabel();\n dato1Criterio2 = new com.toedter.calendar.JDateChooser();\n jLEstatico2Criterio6 = new javax.swing.JLabel();\n dato2Criterio2 = new com.toedter.calendar.JDateChooser();\n jButton2 = new javax.swing.JButton();\n jButton4 = new javax.swing.JButton();\n jBBuscarDestino = new javax.swing.JButton();\n jLStaticEtiqueta1 = new javax.swing.JLabel();\n jLStaticEtiqueta2 = new javax.swing.JLabel();\n jLStaticEtiqueta3 = new javax.swing.JLabel();\n jButton1 = new javax.swing.JButton();\n jButton3 = new javax.swing.JButton();\n\n setBackground(new java.awt.Color(204, 204, 204));\n\n jLabel4.setFont(new java.awt.Font(\"Dialog\", 0, 24)); // NOI18N\n jLabel4.setForeground(new java.awt.Color(0, 0, 0));\n jLabel4.setText(\"Estadísticas generales de un equipamiento\");\n\n jPanel1.setBackground(new java.awt.Color(201, 201, 201));\n jPanel1.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 833, Short.MAX_VALUE)\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 624, Short.MAX_VALUE)\n );\n\n jLabel5.setFont(new java.awt.Font(\"Dialog\", 0, 24)); // NOI18N\n jLabel5.setForeground(new java.awt.Color(0, 0, 0));\n jLabel5.setText(\"Información del estado actual del equipamiento.\");\n\n javax.swing.GroupLayout jPanel6Layout = new javax.swing.GroupLayout(jPanel6);\n jPanel6.setLayout(jPanel6Layout);\n jPanel6Layout.setHorizontalGroup(\n jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 0, Short.MAX_VALUE)\n );\n jPanel6Layout.setVerticalGroup(\n jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 482, Short.MAX_VALUE)\n );\n\n jLEstaticoTamanoMuestra.setFont(new java.awt.Font(\"Dialog\", 0, 24)); // NOI18N\n jLEstaticoTamanoMuestra.setText(\"Capacidad máxima del equipamiento:\");\n\n jLEstaticoTamanoMuestra1.setFont(new java.awt.Font(\"Dialog\", 0, 24)); // NOI18N\n jLEstaticoTamanoMuestra1.setText(\"##\");\n\n jLabel7.setFont(new java.awt.Font(\"Dialog\", 0, 24)); // NOI18N\n jLabel7.setForeground(new java.awt.Color(0, 0, 0));\n jLabel7.setText(\"Intervalo de fechas a analizar\");\n\n jLabel6.setFont(new java.awt.Font(\"Dialog\", 0, 24)); // NOI18N\n jLabel6.setForeground(new java.awt.Color(0, 0, 0));\n jLabel6.setText(\"Estadísticas personalizadas\");\n\n jLEstatico1Criterio6.setFont(new java.awt.Font(\"Dialog\", 0, 24)); // NOI18N\n jLEstatico1Criterio6.setText(\"Desde\");\n\n dato1Criterio2.setFont(new java.awt.Font(\"Dialog\", 0, 24)); // NOI18N\n\n jLEstatico2Criterio6.setFont(new java.awt.Font(\"Dialog\", 0, 24)); // NOI18N\n jLEstatico2Criterio6.setText(\"Hasta\");\n\n dato2Criterio2.setFont(new java.awt.Font(\"Dialog\", 0, 24)); // NOI18N\n\n jButton2.setFont(new java.awt.Font(\"Dialog\", 0, 24)); // NOI18N\n jButton2.setText(\"Generar estadística\");\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n\n jButton4.setFont(new java.awt.Font(\"Dialog\", 0, 24)); // NOI18N\n jButton4.setText(\"Generar reporte\");\n jButton4.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton4ActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);\n jPanel3.setLayout(jPanel3Layout);\n jPanel3Layout.setHorizontalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addGap(18, 18, 18)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel6)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addComponent(jLabel7)\n .addGap(18, 18, 18)\n .addComponent(jLEstatico1Criterio6)\n .addGap(18, 18, 18)\n .addComponent(dato1Criterio2, javax.swing.GroupLayout.PREFERRED_SIZE, 162, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jLEstatico2Criterio6)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(dato2Criterio2, javax.swing.GroupLayout.PREFERRED_SIZE, 157, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 31, Short.MAX_VALUE))\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(jButton2)\n .addGap(18, 18, 18)\n .addComponent(jButton4))))\n .addContainerGap())\n );\n jPanel3Layout.setVerticalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addGap(18, 18, 18)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)\n .addComponent(jLEstatico1Criterio6)\n .addComponent(dato1Criterio2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLEstatico2Criterio6)\n .addComponent(dato2Criterio2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addComponent(jLabel6)\n .addGap(18, 18, 18)\n .addComponent(jLabel7)))\n .addGap(18, 18, 18)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jButton2)\n .addComponent(jButton4))\n .addGap(18, 18, 18))\n );\n\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(18, 18, 18)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jLEstaticoTamanoMuestra)\n .addGap(18, 18, 18)\n .addComponent(jLEstaticoTamanoMuestra1))\n .addComponent(jLabel5)\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jPanel6, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addContainerGap(573, Short.MAX_VALUE))\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(18, 18, 18)\n .addComponent(jLabel5)\n .addGap(18, 18, 18)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLEstaticoTamanoMuestra)\n .addComponent(jLEstaticoTamanoMuestra1))\n .addGap(22, 22, 22)\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(68, 68, 68)\n .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jPanel6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 18, Short.MAX_VALUE))\n );\n\n jBBuscarDestino.setFont(new java.awt.Font(\"Dialog\", 0, 24)); // NOI18N\n jBBuscarDestino.setText(\"Buscar un Equipamiento\");\n jBBuscarDestino.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jBBuscarDestinoActionPerformed(evt);\n }\n });\n\n jLStaticEtiqueta1.setFont(new java.awt.Font(\"Dialog\", 0, 24)); // NOI18N\n jLStaticEtiqueta1.setText(\"Equipamiento a censar\");\n\n jLStaticEtiqueta2.setFont(new java.awt.Font(\"Dialog\", 0, 24)); // NOI18N\n jLStaticEtiqueta2.setText(\"Equipamiento seleccionado\");\n\n jLStaticEtiqueta3.setFont(new java.awt.Font(\"Dialog\", 0, 24)); // NOI18N\n jLStaticEtiqueta3.setText(\"un equipamiento\");\n\n jButton1.setFont(new java.awt.Font(\"Dialog\", 0, 24)); // NOI18N\n jButton1.setText(\"Generar estadística\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n jButton3.setFont(new java.awt.Font(\"Dialog\", 0, 24)); // NOI18N\n jButton3.setText(\"Generar reporte\");\n jButton3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton3ActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel4)\n .addGap(0, 0, Short.MAX_VALUE))\n .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGap(18, 18, 18))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLStaticEtiqueta2)\n .addGap(18, 18, 18)\n .addComponent(jLStaticEtiqueta3))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLStaticEtiqueta1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jBBuscarDestino, javax.swing.GroupLayout.PREFERRED_SIZE, 299, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(941, Short.MAX_VALUE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jButton1)\n .addGap(18, 18, 18)\n .addComponent(jButton3)\n .addGap(0, 0, Short.MAX_VALUE))))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel4)\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLStaticEtiqueta1)\n .addComponent(jBBuscarDestino))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLStaticEtiqueta2)\n .addComponent(jLStaticEtiqueta3))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jButton1)\n .addComponent(jButton3))\n .addGap(18, 18, 18)\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18))\n );\n }", "void setBoardStart(int month, int day, int year) throws IllegalDateException;", "public JFrame_05_Mayor_De_10() {\n initComponents();\n \n }", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tint month;\n\t\tdouble maxtempereture,monthlytempereture,mintempereture;\n\t\tResultSet rs;\n\t\tlib.MySQL mysql = new lib.MySQL();\n\t\trs = mysql.selectAll();\n\t\tDefaultCategoryDataset data = new DefaultCategoryDataset();\n\t\ttry{\n\t\t\twhile(rs.next()){\n\t\t\t\tmonth = rs.getInt(\"Month\");\n\t\t\t\tmaxtempereture = rs.getDouble(\"MaxTempereture\");\n\t\t\t\tmonthlytempereture = rs.getDouble(\"MonthkyTempereture\");\n\t\t\t\tmintempereture = rs.getDouble(\"MinTempereture\");\n System.out.println(\"月:\" + month);\n System.out.println(\"最高気温:\" + maxtempereture);\n System.out.println(\"月間平均気温:\" + monthlytempereture);\n System.out.println(\"最低気温:\" + mintempereture);\n data.addValue(maxtempereture,\"MaxTempereture\",month+\"\");\n data.addValue(monthlytempereture,\"MonthlyTempereture\",month+\"\");\n data.addValue(mintempereture,\"MinTempereture\",month+\"\");\n\t\t }\n\t\t}catch(SQLException et){}\n\t\t JFreeChart chart = \n\t\t\t ChartFactory.createLineChart(\"TOKYO TEMPERETURE\",\n\t\t\t \"month\",\n\t\t\t \"tempereture\",\n\t\t\t data,\n\t\t\t PlotOrientation.VERTICAL,\n\t\t\t true,\n\t\t\t false,\n\t\t\t false);\n \n\n ChartPanel cpanel = new ChartPanel(chart);\n panel1.add(cpanel);\n cardlayout.next(this);\n\t}", "@Override\n public void start(Stage primaryStage) throws Exception {\n sumLabels = new ArrayList<Label>();\n /*\n * Creates a TabPane, that contains all Tabs needed for the Monthly Balance. The creation of \n * the Tabs itself is done in getTabs(). Also, since we don't want the Tabs to be closable, we \n * make this option unavailable.\n */\n TabPane tabs = new TabPane();\n tabs.getTabs().addAll(getTabs());\n tabs.setTabClosingPolicy(TabClosingPolicy.UNAVAILABLE);\n \n /*\n * Sets KeyHandlers to all TextFields.\n */\n for (int i = 0; i <= 7; i++) {\n /*\n * The index has to be finalized to be able to configure the handle-Methods while iterating \n * over the list.\n */\n final int j = i;\n /*\n * Since there are only 2 Register TextFields, we have to make sure that when the index \n * reaches 2, we don't try to configure another register Field.\n */\n if (j <= 1) {\n /* GENERAL DISCLAIMER:\n * We are using Math.floorMod(x,y) to make sure, we request Focus with the correct \n * Field, when the KeyCombination is pressed. Since in Standard Java (-1) % x = (-1) \n * and not x - 1 as it should be, we have to use the specialized Method floorMod for \n * this operation.\n */\n registerFields.get(j).setOnKeyPressed(new EventHandler<KeyEvent>() {\n @Override\n public void handle(KeyEvent event) {\n if (event.getCode() == KeyCode.ENTER || kcDown.match(event)) {\n /*\n * Since we have 2 Register TextFields, we have to calculate with mod 2. To get the \n * Field below the currently selected, we calculate j + 1 mod 2, so it jumps to the \n * top if the lowest Field was selected.\n */\n registerFields.get(Math.floorMod(j + 1, 2)).requestFocus();\n /*\n * Consuming the event, so it doesn't get passed to the scene itself. Because in this \n * case, it's KeyHandler would handle it as well, and would override this handling.\n */\n event.consume();\n } else if (kcUp.match(event)) {\n /*\n * Calculating j - 1 mod 2, to get to the Field above or the lowest Field, if the \n * Field on top was selected.\n */\n registerFields.get(Math.floorMod(j - 1, 2)).requestFocus();\n /*\n * Consuming the Event.\n */\n event.consume();\n } else if (kcPlus.match(event)) {\n /*\n * Changes the Tab to the next Tab to the right. If the Tab on the rightmost side \n * was already selected, the first one will be selected. The first Field of that Tab \n * will select Focus as well.\n */\n tabs.getSelectionModel().select(Math.floorMod(\n tabs.getSelectionModel().getSelectedIndex() + 1, 4));\n getFieldForIndex(tabs.getSelectionModel().getSelectedIndex()).requestFocus();\n /*\n * Consuming the Event.\n */\n event.consume();\n } else if (kcMinus.match(event)) {\n /*\n * Changes the Tab to the next Tab to the left. If the Tab on the leftmost side was \n * already selected, the last one will be selected. The first Field of that Tab will \n * request Focus as well.\n */\n tabs.getSelectionModel().select(Math.floorMod(\n tabs.getSelectionModel().getSelectedIndex() - 1, 4));\n getFieldForIndex(tabs.getSelectionModel().getSelectedIndex()).requestFocus();\n /*\n * Consuming the Event.\n */\n event.consume();\n }\n }\n });\n }\n /*\n * Since there are only 5 Rouleau TextFields, we have to make sure that when the index \n * reaches 5, we don't try to configure another Rouleau Field.\n */\n if (j <= 4) {\n rouleauFields.get(j).setOnKeyPressed(new EventHandler<KeyEvent>() {\n @Override\n public void handle(KeyEvent event) {\n if (event.getCode() == KeyCode.ENTER || kcDown.match(event)) {\n /*\n * See Documentation for the RegisterFields for Information. The Calculation is \n * the same, only the residue class changes, since we have to calculate with mod 5.\n */\n rouleauFields.get(Math.floorMod(j + 1, 5)).requestFocus();\n event.consume();\n } else if (kcUp.match(event)) {\n rouleauFields.get(Math.floorMod(j - 1, 5)).requestFocus();\n event.consume();\n } else if (kcPlus.match(event)) {\n tabs.getSelectionModel().select(Math.floorMod(\n tabs.getSelectionModel().getSelectedIndex() + 1, 4));\n getFieldForIndex(tabs.getSelectionModel().getSelectedIndex()).requestFocus();\n event.consume();\n } else if (kcMinus.match(event)) {\n tabs.getSelectionModel().select(Math.floorMod(\n tabs.getSelectionModel().getSelectedIndex() - 1, 4));\n getFieldForIndex(tabs.getSelectionModel().getSelectedIndex()).requestFocus();\n event.consume();\n }\n }\n });\n }\n /*\n * Since there are only 7 BillTextFields, we have to make sure that when the index \n * reaches 7, we don't try to configure another Bill Field.\n */\n if (j <= 6) {\n billFields.get(j).setOnKeyPressed(new EventHandler<KeyEvent>() {\n @Override\n public void handle(KeyEvent event) {\n if (event.getCode() == KeyCode.ENTER || kcDown.match(event)) {\n /*\n * See Documentation for the RegisterFields for Information. The Calculation is \n * the same, only the residue class changes, since we have to calculate with mod 7.\n */\n billFields.get(Math.floorMod(j + 1, 7)).requestFocus();\n event.consume();\n } else if (kcUp.match(event)) {\n billFields.get(Math.floorMod(j - 1, 7)).requestFocus();\n event.consume();\n } else if (kcPlus.match(event)) {\n tabs.getSelectionModel().select(Math.floorMod(\n tabs.getSelectionModel().getSelectedIndex() + 1, 4));\n getFieldForIndex(tabs.getSelectionModel().getSelectedIndex()).requestFocus();\n event.consume();\n } else if (kcMinus.match(event)) {\n tabs.getSelectionModel().select(Math.floorMod(\n tabs.getSelectionModel().getSelectedIndex() - 1, 4));\n getFieldForIndex(tabs.getSelectionModel().getSelectedIndex()).requestFocus();\n event.consume();\n }\n }\n });\n }\n \n /*\n * Since the for-loop is configured to stop after 8 iterations, we don't have to ensure, \n * that no more than 8 coinageFields are configured.\n */\n coinageFields.get(j).setOnKeyPressed(new EventHandler<KeyEvent>() {\n @Override\n public void handle(KeyEvent event) {\n if (event.getCode() == KeyCode.ENTER || kcDown.match(event)) {\n /*\n * See Documentation for the RegisterFields for Information. The Calculation is \n * the same, only the residue class changes, since we have to calculate with mod 8.\n */\n coinageFields.get(Math.floorMod(j + 1, 8)).requestFocus();\n event.consume();\n } else if (kcUp.match(event)) {\n coinageFields.get(Math.floorMod(j - 1, 8)).requestFocus();\n event.consume();\n } else if (kcPlus.match(event)) {\n tabs.getSelectionModel().select(Math.floorMod(\n tabs.getSelectionModel().getSelectedIndex() + 1, 4));\n getFieldForIndex(tabs.getSelectionModel().getSelectedIndex()).requestFocus();\n event.consume();\n } else if (kcMinus.match(event)) {\n tabs.getSelectionModel().select(Math.floorMod(\n tabs.getSelectionModel().getSelectedIndex() - 1, 4));\n getFieldForIndex(tabs.getSelectionModel().getSelectedIndex()).requestFocus();\n event.consume();\n }\n }\n });\n }\n \n /*\n * Creates a GridPane to display the total Sum for each Tab.\n */\n GridPane grid = new GridPane();\n grid.setAlignment(Pos.CENTER);\n grid.setHgap(10);\n grid.setVgap(10);\n grid.setPadding(new Insets(10, 20, 10, 20));\n \n /*\n * Adds Columns to the GridPane, so they can be configured.\n */\n for (int i = 0; i <= 3; i++) {\n grid.getColumnConstraints().add(new ColumnConstraints());\n grid.getColumnConstraints().get(i).setHalignment(HPos.CENTER);\n }\n \n /*\n * Creates the Area, where all Labels are shwon, that display the Sums for \n * each Tab as well as the Total Sum.\n */\n Label totalSumsLabel = new Label(\"Gesamtsummen:\");\n grid.add(totalSumsLabel, 1, 0);\n GridPane.setColumnSpan(totalSumsLabel, 2);\n \n Label sumPursesLabel = new Label(\"Börsen & Kassen\");\n grid.add(sumPursesLabel, 0, 1);\n \n Label sumPurses = new Label(\"0,00€\");\n grid.add(sumPurses, 0, 2);\n sumLabels.add(sumPurses);\n \n Label sumRouleausLabel = new Label(\"Münzrollen\");\n grid.add(sumRouleausLabel, 1, 1);\n \n Label sumRouleaus = new Label(\"0,00€\");\n grid.add(sumRouleaus, 1, 2);\n sumLabels.add(sumRouleaus);\n \n Label sumCoinageLabel = new Label(\"Münzgeld\");\n grid.add(sumCoinageLabel, 2, 1);\n \n Label sumCoinage = new Label(\"0,00€\");\n grid.add(sumCoinage, 2, 2);\n sumLabels.add(sumCoinage);\n \n Label sumBillsLabel = new Label(\"Geldscheine\");\n grid.add(sumBillsLabel, 3, 1);\n \n Label sumBills = new Label(\"0,00€\");\n grid.add(sumBills, 3, 2);\n sumLabels.add(sumBills);\n \n Label sumTotalLabel = new Label(\"Gesamtsumme:\");\n grid.add(sumTotalLabel, 0, 3);\n GridPane.setColumnSpan(sumTotalLabel, 2);\n \n Label sumTotal = new Label(\"0,00€\");\n grid.add(sumTotal, 2, 3);\n GridPane.setColumnSpan(sumTotal, 2);\n GridPane.setHalignment(sumTotal, HPos.LEFT);\n sumLabels.add(sumTotal);\n \n \n /*\n * Creates a MenuBar, a Menu and a MenuItem, so the User can export the Data.\n */\n final Menu exportMenu = new Menu(\"Export\");\n final MenuItem exportItem = new MenuItem(\"Export...\");\n exportItem.setAccelerator(new KeyCodeCombination(KeyCode.E, KeyCombination.CONTROL_DOWN, \n KeyCombination.SHIFT_DOWN));\n exportItem.setOnAction(new ExportHandler(primaryStage, this));\n exportMenu.getItems().addAll(exportItem);\n MenuBar menu = new MenuBar();\n menu.getMenus().addAll(exportMenu);\n \n /*\n * Creates a BorderPane, that contains the total GridPane. This is done, so that the Content \n * of the GridPane can be displayed at the Center of the Scene.\n */\n BorderPane borderPane = new BorderPane();\n borderPane.setTop(menu);\n borderPane.setCenter(tabs);\n borderPane.setBottom(grid);\n \n /*\n * Creates the Scene, which will display the created content and configures it's Stylesheet.\n */\n Scene scene = new Scene(borderPane, 500, 550);\n scene.getStylesheets().add(Util.getControlStyle());\n \n /*\n * Adds a KeyHandler to the Scene, so it reacts to some of the User's Key presses.\n */\n scene.setOnKeyPressed(new EventHandler<KeyEvent>() {\n @Override\n public void handle(KeyEvent event) {\n /*\n * Checks if 'Enter' or the KeyCombination for Field-Up or Field-Down is pressed.\n */\n if (event.getCode() == KeyCode.ENTER || kcUp.match(event) || kcDown.match(event)) {\n /*\n * Requests Focus for the first Field in the currently selected Tab.\n */\n getFieldForIndex(tabs.getSelectionModel().getSelectedIndex()).requestFocus();\n /*\n * Checks, if the KeyCombination for Next-Tab is pressed.\n */\n } else if (kcPlus.match(event)) {\n /*\n * Switches to the next Tab to the right (first One, if the rightmost Tab was already \n * selected) and requests Focus for it's first Field.\n */\n tabs.getSelectionModel().select(Math.floorMod(\n tabs.getSelectionModel().getSelectedIndex() + 1, 4));\n getFieldForIndex(tabs.getSelectionModel().getSelectedIndex()).requestFocus();\n /*\n * Checks, if the KeyCombination for Previous-Tab is pressed.\n */\n } else if (kcMinus.match(event)) {\n /*\n * Switches to the next Tab to the left (first One, if the leftmost Tab was already \n * selected) and requests Focus for it's first Field.\n */\n tabs.getSelectionModel().select(Math.floorMod(\n tabs.getSelectionModel().getSelectedIndex() - 1, 4));\n getFieldForIndex(tabs.getSelectionModel().getSelectedIndex()).requestFocus();\n }\n } \n });\n /*\n * Basic Stage-Settings.\n */\n primaryStage.setTitle(\"Monatsabrechnung\");\n primaryStage.setScene(scene);\n primaryStage.setMinHeight(595.0);\n primaryStage.setMinWidth(615.0);\n primaryStage.show();\n }", "private void createFrame(){\n JPanel jPanelID = new JPanel();\n jPanelID.setLayout(new GridBagLayout());\n JLabel labelText = new JLabel(this.dialogName);\n labelText.setHorizontalAlignment(JLabel.CENTER);\n AddComponent.add(jPanelID,labelText, 0, 0, 2, 1);\n for (int field = 0; field < labelString.length; field++) {\n labelText = new JLabel(labelString[field]);\n AddComponent.add(jPanelID, labelText, 0, field + 1, 1, 1);\n AddComponent.add(jPanelID, fieldID.get(labelString[field]), 1, field + 1, 1, 1);\n }\n int offset = labelString.length + 1;\n labelText = new JLabel(DATE_OF_BIRTH);\n AddComponent.add(jPanelID, labelText, 0, offset, 1, 1);\n AddComponent.add(jPanelID, jDateChooser, 1, offset, 1, 1);\n offset++;\n labelText = new JLabel(GROUP);\n AddComponent.add(jPanelID, labelText, 0, offset, 1, 1);\n AddComponent.add(jPanelID, group, 1, offset, 1, 1);\n dialog.add(jPanelID, BorderLayout.NORTH);\n JButton okButton = new JButton(dialogName);\n okButton.addActionListener(actionEvent -> checkAndSave());\n dialog.add(okButton, BorderLayout.SOUTH);\n }", "public ScheduleWindow() {\n //list of the days of the week\n this.daysOfWeek = new String[]{\"Monday\", \"Tuesday\", \"Wednesday\", \"Thursday\", \"Friday\", \"Saturday\", \"Sunday\"};\n\n //init the array of schedule columns for the days of the week\n weeks = new JPanel[7];\n copyButtons = new CopyPasteButtons[7];\n //init the array of time controls\n scheduleTimes = new TimeControl[7][NUM_ENTRIES];\n\n //netbeans provided method\n initComponents();\n doneLabel.setVisible(false);\n //add column layout manager for main view\n weekView.setLayout(new BoxLayout(weekView, BoxLayout.X_AXIS));\n //build the columns of controls\n for (int i = 0; i < weeks.length; i++) {\n //init and configure the JPanels that form columns\n weeks[i] = new JPanel();\n //init and configure copy paste buttons\n copyButtons[i] = new CopyPasteButtons();\n copyButtons[i].setListener(this);\n\n weeks[i].setBorder(BorderFactory.createTitledBorder(daysOfWeek[i]));\n weeks[i].setLayout(new BoxLayout(weeks[i], BoxLayout.Y_AXIS));\n //add copy paste buttons to top of list\n weeks[i].add(copyButtons[i]);\n\n //add the rows of time controls to the columns\n for (int j = 0; j < NUM_ENTRIES; j++) {\n scheduleTimes[i][j] = new TimeControl();\n weeks[i].add(scheduleTimes[i][j]);\n\n }\n //after the column is built, add it to the main view\n weekView.add(weeks[i]);\n }\n\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n jComboBox1 = new javax.swing.JComboBox();\n jLabel2 = new javax.swing.JLabel();\n jDateChooser1 = new com.toedter.calendar.JDateChooser();\n jButton1 = new javax.swing.JButton();\n\n setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0), 4));\n\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel1.setText(\"Pedidos entregados:\");\n\n jComboBox1.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jComboBox1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n\n jLabel2.setText(\"Fecha de entrega:\");\n\n jDateChooser1.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n\n jButton1.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jButton1.setText(\"Generar factura\");\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(53, 53, 53)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jDateChooser1, javax.swing.GroupLayout.PREFERRED_SIZE, 119, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel1)\n .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, 207, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel2)))\n .addGroup(layout.createSequentialGroup()\n .addGap(85, 85, 85)\n .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 133, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(79, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(32, 32, 32)\n .addComponent(jLabel1)\n .addGap(18, 18, 18)\n .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jLabel2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jDateChooser1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(28, 28, 28)\n .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(79, Short.MAX_VALUE))\n );\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n buttonGroup1 = new javax.swing.ButtonGroup();\n jPanel1 = new javax.swing.JPanel();\n jPanel2 = new javax.swing.JPanel();\n jPanel3 = new javax.swing.JPanel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n n = new javax.swing.JTextField();\n g1 = new javax.swing.JRadioButton();\n g2 = new javax.swing.JRadioButton();\n g3 = new javax.swing.JRadioButton();\n d = new com.toedter.calendar.JDateChooser();\n c = new javax.swing.JComboBox<>();\n jScrollPane1 = new javax.swing.JScrollPane();\n a = new javax.swing.JTextArea();\n l1 = new javax.swing.JCheckBox();\n l2 = new javax.swing.JCheckBox();\n l4 = new javax.swing.JCheckBox();\n l5 = new javax.swing.JCheckBox();\n button1 = new java.awt.Button();\n l3 = new javax.swing.JCheckBox();\n l6 = new javax.swing.JCheckBox();\n jLabel1 = new javax.swing.JLabel();\n jPanel5 = new javax.swing.JPanel();\n jLabel9 = new javax.swing.JLabel();\n jPanel4 = new javax.swing.JPanel();\n jPanel6 = new javax.swing.JPanel();\n jPanel7 = new javax.swing.JPanel();\n jPanel8 = new javax.swing.JPanel();\n jLabel10 = new javax.swing.JLabel();\n jLabel11 = new javax.swing.JLabel();\n jLabel12 = new javax.swing.JLabel();\n jLabel13 = new javax.swing.JLabel();\n jLabel14 = new javax.swing.JLabel();\n jLabel15 = new javax.swing.JLabel();\n jLabel16 = new javax.swing.JLabel();\n button2 = new java.awt.Button();\n nn = new javax.swing.JLabel();\n ng = new javax.swing.JLabel();\n nd = new javax.swing.JLabel();\n nc = new javax.swing.JLabel();\n nl = new javax.swing.JLabel();\n button3 = new java.awt.Button();\n jScrollPane2 = new javax.swing.JScrollPane();\n na = new javax.swing.JTextArea();\n jLabel17 = new javax.swing.JLabel();\n jPanel9 = new javax.swing.JPanel();\n jLabel18 = new javax.swing.JLabel();\n jMenuBar1 = new javax.swing.JMenuBar();\n jMenu1 = new javax.swing.JMenu();\n jMenuItem2 = new javax.swing.JMenuItem();\n jMenuItem3 = new javax.swing.JMenuItem();\n jSeparator1 = new javax.swing.JPopupMenu.Separator();\n jMenuItem4 = new javax.swing.JMenuItem();\n jMenu2 = new javax.swing.JMenu();\n jMenuItem1 = new javax.swing.JMenuItem();\n jMenu3 = new javax.swing.JMenu();\n jMenuItem5 = new javax.swing.JMenuItem();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n addWindowListener(new java.awt.event.WindowAdapter() {\n public void windowClosing(java.awt.event.WindowEvent evt) {\n formWindowClosing(evt);\n }\n });\n getContentPane().setLayout(new java.awt.CardLayout());\n\n jPanel1.setBackground(new java.awt.Color(51, 51, 51));\n jPanel1.setName(\"card1\"); // NOI18N\n\n jPanel2.setBackground(new java.awt.Color(0, 153, 153));\n\n jPanel3.setBackground(new java.awt.Color(204, 255, 204));\n\n jLabel2.setFont(new java.awt.Font(\"Dialog\", 1, 18)); // NOI18N\n jLabel2.setForeground(new java.awt.Color(0, 102, 102));\n jLabel2.setText(\"Name:\");\n\n jLabel3.setFont(new java.awt.Font(\"Dialog\", 1, 18)); // NOI18N\n jLabel3.setForeground(new java.awt.Color(0, 102, 102));\n\n jLabel4.setFont(new java.awt.Font(\"Dialog\", 1, 18)); // NOI18N\n jLabel4.setForeground(new java.awt.Color(0, 102, 102));\n jLabel4.setText(\"Gender:\");\n\n jLabel5.setFont(new java.awt.Font(\"Dialog\", 1, 18)); // NOI18N\n jLabel5.setForeground(new java.awt.Color(0, 102, 102));\n jLabel5.setText(\"DOB:\");\n\n jLabel6.setFont(new java.awt.Font(\"Dialog\", 1, 18)); // NOI18N\n jLabel6.setForeground(new java.awt.Color(0, 102, 102));\n jLabel6.setText(\"Country:\");\n\n jLabel7.setFont(new java.awt.Font(\"Dialog\", 1, 18)); // NOI18N\n jLabel7.setForeground(new java.awt.Color(0, 102, 102));\n jLabel7.setText(\"Address:\");\n\n jLabel8.setFont(new java.awt.Font(\"Dialog\", 1, 18)); // NOI18N\n jLabel8.setForeground(new java.awt.Color(0, 102, 102));\n jLabel8.setText(\"Languages:\");\n\n n.setBackground(new java.awt.Color(0, 153, 153));\n n.setFont(new java.awt.Font(\"Dialog\", 1, 18)); // NOI18N\n n.setForeground(new java.awt.Color(204, 255, 255));\n n.setHorizontalAlignment(javax.swing.JTextField.LEFT);\n n.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n nActionPerformed(evt);\n }\n });\n\n g1.setBackground(new java.awt.Color(204, 255, 204));\n buttonGroup1.add(g1);\n g1.setFont(new java.awt.Font(\"Dialog\", 1, 18)); // NOI18N\n g1.setForeground(new java.awt.Color(0, 102, 102));\n g1.setSelected(true);\n g1.setText(\"Male\");\n g1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n g1ActionPerformed(evt);\n }\n });\n\n g2.setBackground(new java.awt.Color(204, 255, 204));\n buttonGroup1.add(g2);\n g2.setFont(new java.awt.Font(\"Dialog\", 1, 18)); // NOI18N\n g2.setForeground(new java.awt.Color(0, 102, 102));\n g2.setText(\"Female\");\n g2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n g2ActionPerformed(evt);\n }\n });\n\n g3.setBackground(new java.awt.Color(204, 255, 204));\n buttonGroup1.add(g3);\n g3.setFont(new java.awt.Font(\"Dialog\", 1, 18)); // NOI18N\n g3.setForeground(new java.awt.Color(0, 102, 102));\n g3.setText(\"Other\");\n g3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n g3ActionPerformed(evt);\n }\n });\n\n d.setBackground(new java.awt.Color(0, 153, 153));\n d.setDateFormatString(\"dd/MM/yyyy\");\n d.setFont(new java.awt.Font(\"Dialog\", 1, 18)); // NOI18N\n\n c.setBackground(new java.awt.Color(0, 153, 153));\n c.setFont(new java.awt.Font(\"Dialog\", 1, 18)); // NOI18N\n c.setForeground(new java.awt.Color(204, 255, 255));\n c.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"--Select Country--\", \"India\", \"Japan\", \"China\", \"USA\", \"UK\" }));\n c.setSelectedIndex(0);\n\n a.setBackground(new java.awt.Color(0, 153, 153));\n a.setColumns(20);\n a.setFont(new java.awt.Font(\"Dialog\", 1, 18)); // NOI18N\n a.setForeground(new java.awt.Color(204, 255, 255));\n a.setLineWrap(true);\n a.setRows(5);\n jScrollPane1.setViewportView(a);\n\n l1.setBackground(new java.awt.Color(204, 255, 204));\n l1.setFont(new java.awt.Font(\"Dialog\", 1, 18)); // NOI18N\n l1.setText(\"English\");\n l1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n l1ActionPerformed(evt);\n }\n });\n\n l2.setBackground(new java.awt.Color(204, 255, 204));\n l2.setFont(new java.awt.Font(\"Dialog\", 1, 18)); // NOI18N\n l2.setText(\"Hindi\");\n l2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n l2ActionPerformed(evt);\n }\n });\n\n l4.setBackground(new java.awt.Color(204, 255, 204));\n l4.setFont(new java.awt.Font(\"Dialog\", 1, 18)); // NOI18N\n l4.setText(\"Chinese\");\n\n l5.setBackground(new java.awt.Color(204, 255, 204));\n l5.setFont(new java.awt.Font(\"Dialog\", 1, 18)); // NOI18N\n l5.setText(\"Japanese\");\n\n button1.setBackground(new java.awt.Color(0, 102, 102));\n button1.setFont(new java.awt.Font(\"Dialog\", 1, 24)); // NOI18N\n button1.setForeground(new java.awt.Color(204, 255, 204));\n button1.setLabel(\"Submit\");\n button1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n button1ActionPerformed(evt);\n }\n });\n\n l3.setBackground(new java.awt.Color(204, 255, 204));\n l3.setFont(new java.awt.Font(\"Dialog\", 1, 18)); // NOI18N\n l3.setText(\"Spanish\");\n l3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n l3ActionPerformed(evt);\n }\n });\n\n l6.setBackground(new java.awt.Color(204, 255, 204));\n l6.setFont(new java.awt.Font(\"Dialog\", 1, 18)); // NOI18N\n l6.setText(\"French\");\n l6.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n l6ActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);\n jPanel3.setLayout(jPanel3Layout);\n jPanel3Layout.setHorizontalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(button1, javax.swing.GroupLayout.PREFERRED_SIZE, 131, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(223, 223, 223))\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addGap(41, 41, 41)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 107, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 107, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 107, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 107, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 107, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 107, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 107, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(n)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup()\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(l4)\n .addComponent(l1))\n .addGap(50, 50, 50)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(l2)\n .addComponent(l5))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(l6)\n .addComponent(l3))\n .addGap(14, 14, 14))\n .addComponent(c, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(d, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addComponent(g1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(g2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(g3))\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 391, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(0, 0, Short.MAX_VALUE)))\n .addGap(50, 50, 50))\n );\n jPanel3Layout.setVerticalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addGap(43, 43, 43)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addComponent(jLabel2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel3))\n .addComponent(n))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel4)\n .addComponent(g1)\n .addComponent(g2)\n .addComponent(g3))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jLabel5))\n .addComponent(d, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(14, 14, 14)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(c, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel6))\n .addGap(18, 18, 18)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel7)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(15, 15, 15)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel8)\n .addComponent(l1)\n .addComponent(l2)\n .addComponent(l3))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(l4)\n .addComponent(l5)\n .addComponent(l6))\n .addGap(18, 18, 18)\n .addComponent(button1, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n jLabel1.setFont(new java.awt.Font(\"Arial\", 1, 36)); // NOI18N\n jLabel1.setForeground(new java.awt.Color(204, 255, 255));\n jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel1.setText(\"CLIENT REGISTRATION\");\n\n jPanel5.setBackground(new java.awt.Color(51, 51, 51));\n\n jLabel9.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel9.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/extra_files/main.png\"))); // NOI18N\n\n javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5);\n jPanel5.setLayout(jPanel5Layout);\n jPanel5Layout.setHorizontalGroup(\n jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel9, javax.swing.GroupLayout.PREFERRED_SIZE, 565, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel5Layout.setVerticalGroup(\n jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel5Layout.createSequentialGroup()\n .addContainerGap(23, Short.MAX_VALUE)\n .addComponent(jLabel9, javax.swing.GroupLayout.PREFERRED_SIZE, 272, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap())\n );\n\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap())\n .addComponent(jPanel5, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(18, 18, 18)\n .addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, 0))\n );\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(38, 38, 38)\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(38, Short.MAX_VALUE))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(38, 38, 38)\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n getContentPane().add(jPanel1, \"c1\");\n\n jPanel4.setName(\"card2\"); // NOI18N\n jPanel4.setPreferredSize(new java.awt.Dimension(677, 934));\n\n jPanel6.setBackground(new java.awt.Color(51, 51, 51));\n jPanel6.setPreferredSize(new java.awt.Dimension(677, 934));\n\n jPanel7.setBackground(new java.awt.Color(255, 0, 255));\n jPanel7.setPreferredSize(new java.awt.Dimension(601, 884));\n\n jPanel8.setBackground(new java.awt.Color(255, 204, 255));\n\n jLabel10.setFont(new java.awt.Font(\"Dialog\", 1, 18)); // NOI18N\n jLabel10.setForeground(new java.awt.Color(102, 0, 102));\n jLabel10.setText(\"Name:\");\n\n jLabel11.setFont(new java.awt.Font(\"Dialog\", 1, 18)); // NOI18N\n jLabel11.setForeground(new java.awt.Color(0, 102, 102));\n\n jLabel12.setFont(new java.awt.Font(\"Dialog\", 1, 18)); // NOI18N\n jLabel12.setForeground(new java.awt.Color(102, 0, 102));\n jLabel12.setText(\"Gender:\");\n\n jLabel13.setFont(new java.awt.Font(\"Dialog\", 1, 18)); // NOI18N\n jLabel13.setForeground(new java.awt.Color(102, 0, 102));\n jLabel13.setText(\"DOB:\");\n\n jLabel14.setFont(new java.awt.Font(\"Dialog\", 1, 18)); // NOI18N\n jLabel14.setForeground(new java.awt.Color(102, 0, 102));\n jLabel14.setText(\"Country:\");\n\n jLabel15.setFont(new java.awt.Font(\"Dialog\", 1, 18)); // NOI18N\n jLabel15.setForeground(new java.awt.Color(102, 0, 102));\n jLabel15.setText(\"Address:\");\n\n jLabel16.setFont(new java.awt.Font(\"Dialog\", 1, 18)); // NOI18N\n jLabel16.setForeground(new java.awt.Color(102, 0, 102));\n jLabel16.setText(\"Languages:\");\n\n button2.setBackground(new java.awt.Color(102, 0, 102));\n button2.setFont(new java.awt.Font(\"Dialog\", 1, 24)); // NOI18N\n button2.setForeground(new java.awt.Color(204, 255, 204));\n button2.setLabel(\"Back\");\n button2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n button2ActionPerformed(evt);\n }\n });\n\n nn.setBackground(new java.awt.Color(255, 255, 204));\n nn.setFont(new java.awt.Font(\"Dialog\", 1, 18)); // NOI18N\n nn.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n nn.setText(\"--------------------------------\");\n nn.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0), 2));\n nn.setOpaque(true);\n\n ng.setBackground(new java.awt.Color(255, 255, 204));\n ng.setFont(new java.awt.Font(\"Dialog\", 1, 18)); // NOI18N\n ng.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n ng.setText(\"--------------------------------\");\n ng.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0), 2));\n ng.setOpaque(true);\n\n nd.setBackground(new java.awt.Color(255, 255, 204));\n nd.setFont(new java.awt.Font(\"Dialog\", 1, 18)); // NOI18N\n nd.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n nd.setText(\"--------------------------------\");\n nd.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0), 2));\n nd.setOpaque(true);\n\n nc.setBackground(new java.awt.Color(255, 255, 204));\n nc.setFont(new java.awt.Font(\"Dialog\", 1, 18)); // NOI18N\n nc.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n nc.setText(\"--------------------------------\");\n nc.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0), 2));\n nc.setOpaque(true);\n\n nl.setBackground(new java.awt.Color(255, 255, 204));\n nl.setFont(new java.awt.Font(\"Dialog\", 1, 18)); // NOI18N\n nl.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n nl.setText(\"--------------------------------\");\n nl.setVerticalAlignment(javax.swing.SwingConstants.TOP);\n nl.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0), 2));\n nl.setOpaque(true);\n\n button3.setBackground(new java.awt.Color(102, 0, 102));\n button3.setFont(new java.awt.Font(\"Dialog\", 1, 24)); // NOI18N\n button3.setForeground(new java.awt.Color(204, 255, 204));\n button3.setLabel(\"Done\");\n button3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n button3ActionPerformed(evt);\n }\n });\n\n na.setEditable(false);\n na.setBackground(new java.awt.Color(255, 255, 204));\n na.setColumns(20);\n na.setFont(new java.awt.Font(\"Dialog\", 1, 18)); // NOI18N\n na.setLineWrap(true);\n na.setRows(5);\n na.setText(\"--------------------------------\");\n na.setWrapStyleWord(true);\n na.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(0, 0, 0), 1, true));\n na.setCaretColor(new java.awt.Color(238, 238, 238));\n na.setFocusable(false);\n na.setHighlighter(null);\n na.setRequestFocusEnabled(false);\n jScrollPane2.setViewportView(na);\n\n javax.swing.GroupLayout jPanel8Layout = new javax.swing.GroupLayout(jPanel8);\n jPanel8.setLayout(jPanel8Layout);\n jPanel8Layout.setHorizontalGroup(\n jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel8Layout.createSequentialGroup()\n .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel8Layout.createSequentialGroup()\n .addGap(41, 41, 41)\n .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel16, javax.swing.GroupLayout.PREFERRED_SIZE, 107, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel15, javax.swing.GroupLayout.PREFERRED_SIZE, 107, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel14, javax.swing.GroupLayout.PREFERRED_SIZE, 107, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel13, javax.swing.GroupLayout.PREFERRED_SIZE, 107, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel12, javax.swing.GroupLayout.PREFERRED_SIZE, 107, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel11, javax.swing.GroupLayout.PREFERRED_SIZE, 107, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel10, javax.swing.GroupLayout.PREFERRED_SIZE, 107, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(43, 43, 43)\n .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(nn, javax.swing.GroupLayout.PREFERRED_SIZE, 360, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(ng, javax.swing.GroupLayout.PREFERRED_SIZE, 360, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(nl, javax.swing.GroupLayout.PREFERRED_SIZE, 360, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(nc, javax.swing.GroupLayout.PREFERRED_SIZE, 360, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(nd, javax.swing.GroupLayout.PREFERRED_SIZE, 360, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 360, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(jPanel8Layout.createSequentialGroup()\n .addGap(113, 113, 113)\n .addComponent(button2, javax.swing.GroupLayout.PREFERRED_SIZE, 131, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(100, 100, 100)\n .addComponent(button3, javax.swing.GroupLayout.PREFERRED_SIZE, 131, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(50, 50, 50))\n );\n jPanel8Layout.setVerticalGroup(\n jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel8Layout.createSequentialGroup()\n .addGap(43, 43, 43)\n .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel10)\n .addComponent(nn))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel11)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel12)\n .addComponent(ng))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel13)\n .addComponent(nd))\n .addGap(18, 18, 18)\n .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel14)\n .addComponent(nc))\n .addGap(18, 18, 18)\n .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel15)\n .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 144, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(8, 8, 8)\n .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel16)\n .addComponent(nl, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(45, 45, 45)\n .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(button2, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(button3, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap())\n );\n\n jLabel17.setFont(new java.awt.Font(\"Arial\", 1, 36)); // NOI18N\n jLabel17.setForeground(new java.awt.Color(102, 0, 102));\n jLabel17.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel17.setText(\"CLIENT INFORMATION\");\n\n jPanel9.setBackground(new java.awt.Color(51, 51, 51));\n\n jLabel18.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel18.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/extra_files/main.png\"))); // NOI18N\n\n javax.swing.GroupLayout jPanel9Layout = new javax.swing.GroupLayout(jPanel9);\n jPanel9.setLayout(jPanel9Layout);\n jPanel9Layout.setHorizontalGroup(\n jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel9Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel18, javax.swing.GroupLayout.PREFERRED_SIZE, 565, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel9Layout.setVerticalGroup(\n jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel9Layout.createSequentialGroup()\n .addContainerGap(23, Short.MAX_VALUE)\n .addComponent(jLabel18, javax.swing.GroupLayout.PREFERRED_SIZE, 272, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap())\n );\n\n javax.swing.GroupLayout jPanel7Layout = new javax.swing.GroupLayout(jPanel7);\n jPanel7.setLayout(jPanel7Layout);\n jPanel7Layout.setHorizontalGroup(\n jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel8, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel7Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel17, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap())\n .addComponent(jPanel9, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n jPanel7Layout.setVerticalGroup(\n jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel7Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel17)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jPanel8, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(18, 18, 18)\n .addComponent(jPanel9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, 0))\n );\n\n javax.swing.GroupLayout jPanel6Layout = new javax.swing.GroupLayout(jPanel6);\n jPanel6.setLayout(jPanel6Layout);\n jPanel6Layout.setHorizontalGroup(\n jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel6Layout.createSequentialGroup()\n .addGap(38, 38, 38)\n .addComponent(jPanel7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(38, Short.MAX_VALUE))\n );\n jPanel6Layout.setVerticalGroup(\n jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel6Layout.createSequentialGroup()\n .addGap(38, 38, 38)\n .addComponent(jPanel7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);\n jPanel4.setLayout(jPanel4Layout);\n jPanel4Layout.setHorizontalGroup(\n jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addComponent(jPanel6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n );\n jPanel4Layout.setVerticalGroup(\n jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel6, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n getContentPane().add(jPanel4, \"c2\");\n\n jMenu1.setText(\"Options\");\n jMenu1.setFont(new java.awt.Font(\"Dialog\", 1, 14)); // NOI18N\n\n jMenuItem2.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_V, java.awt.event.InputEvent.SHIFT_MASK));\n jMenuItem2.setBackground(new java.awt.Color(204, 204, 204));\n jMenuItem2.setFont(new java.awt.Font(\"Dialog\", 1, 14)); // NOI18N\n jMenuItem2.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/extra_files/client.png\"))); // NOI18N\n jMenuItem2.setText(\"View Clients\");\n jMenuItem2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem2ActionPerformed(evt);\n }\n });\n jMenu1.add(jMenuItem2);\n\n jMenuItem3.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_L, java.awt.event.InputEvent.CTRL_MASK));\n jMenuItem3.setBackground(new java.awt.Color(204, 204, 204));\n jMenuItem3.setFont(new java.awt.Font(\"Dialog\", 1, 14)); // NOI18N\n jMenuItem3.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/extra_files/clear1.png\"))); // NOI18N\n jMenuItem3.setText(\"Clear All\");\n jMenuItem3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem3ActionPerformed(evt);\n }\n });\n jMenu1.add(jMenuItem3);\n jMenu1.add(jSeparator1);\n\n jMenuItem4.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F4, java.awt.event.InputEvent.ALT_MASK));\n jMenuItem4.setBackground(new java.awt.Color(204, 204, 204));\n jMenuItem4.setFont(new java.awt.Font(\"Dialog\", 1, 14)); // NOI18N\n jMenuItem4.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/extra_files/close.png\"))); // NOI18N\n jMenuItem4.setText(\"Exit\");\n jMenuItem4.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem4ActionPerformed(evt);\n }\n });\n jMenu1.add(jMenuItem4);\n\n jMenuBar1.add(jMenu1);\n\n jMenu2.setBackground(new java.awt.Color(204, 204, 204));\n jMenu2.setText(\"Settings\");\n jMenu2.setFont(new java.awt.Font(\"Dialog\", 1, 14)); // NOI18N\n\n jMenuItem1.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_D, java.awt.event.InputEvent.SHIFT_MASK));\n jMenuItem1.setBackground(new java.awt.Color(204, 204, 204));\n jMenuItem1.setFont(new java.awt.Font(\"Dialog\", 1, 14)); // NOI18N\n jMenuItem1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/extra_files/logout.png\"))); // NOI18N\n jMenuItem1.setText(\"Logout\");\n jMenuItem1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem1ActionPerformed(evt);\n }\n });\n jMenu2.add(jMenuItem1);\n\n jMenu3.setBackground(new java.awt.Color(204, 204, 204));\n jMenu3.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/extra_files/more.png\"))); // NOI18N\n jMenu3.setText(\"More\");\n jMenu3.setFont(new java.awt.Font(\"Dialog\", 1, 14)); // NOI18N\n jMenu3.setOpaque(true);\n\n jMenuItem5.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_I, java.awt.event.InputEvent.CTRL_MASK));\n jMenuItem5.setBackground(new java.awt.Color(204, 204, 204));\n jMenuItem5.setFont(new java.awt.Font(\"Dialog\", 1, 14)); // NOI18N\n jMenuItem5.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/extra_files/about1.png\"))); // NOI18N\n jMenuItem5.setText(\"About\");\n jMenuItem5.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem5ActionPerformed(evt);\n }\n });\n jMenu3.add(jMenuItem5);\n\n jMenu2.add(jMenu3);\n\n jMenuBar1.add(jMenu2);\n\n setJMenuBar(jMenuBar1);\n\n pack();\n setLocationRelativeTo(null);\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n fecha1 = new com.toedter.calendar.JDateChooser();\n jPanel1 = new javax.swing.JPanel();\n btnSalirLibro = new javax.swing.JButton();\n jButton1 = new javax.swing.JButton();\n fecha2 = new com.toedter.calendar.JDateChooser();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n getContentPane().add(fecha1, new org.netbeans.lib.awtextra.AbsoluteConstraints(12, 29, -1, -1));\n\n jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Reporte Libro Diario\"));\n\n btnSalirLibro.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/iconos/salir.png\"))); // NOI18N\n btnSalirLibro.setText(\"Salir\");\n btnSalirLibro.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnSalirLibroActionPerformed(evt);\n }\n });\n\n jButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/iconos/modificar.png\"))); // NOI18N\n jButton1.setText(\"Generar reporte\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addComponent(jButton1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(btnSalirLibro)\n .addGap(0, 69, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(fecha2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap())\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(fecha2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 59, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(btnSalirLibro)\n .addComponent(jButton1))\n .addContainerGap())\n );\n\n getContentPane().add(jPanel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 300, 170));\n\n pack();\n }", "public static void main(String[] args) {\n for (int month=0; month <5; month++){\n int year =2020;\n System.out.println(\"Month: \"+month+\" \\n*********\");\n for ( month=0; month<=6; month+=2 ){\n System.out.println(\"/\"+month+\"/\"+year);\n }\n if (month!=12)\n System.out.printf(\"----------\\n\");\n }\n\n }", "public CalendarFrame()\n\t{\n\t\tmodel = new Model();\n\t\tcontroller = new ControllerPanel(model);\n\t\tview = new MonthlyView(model);\n\t\tmodel.attach(view);\n\n\t\tthis.setSize(1500, 700);\n\t\tadd(controller, BorderLayout.NORTH);\n\t\tadd(view, BorderLayout.CENTER);\n\t\tsetBackground(Color.WHITE);\n\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t// pack();\n\t\tsetVisible(true);\n\t}" ]
[ "0.7058402", "0.6684667", "0.6572933", "0.6369778", "0.6299916", "0.62867564", "0.6181981", "0.61430633", "0.6133733", "0.6095093", "0.60815024", "0.6073101", "0.6023725", "0.59744203", "0.5964047", "0.59597105", "0.5923243", "0.5906785", "0.58982074", "0.58809495", "0.58452", "0.58437145", "0.5798595", "0.5791442", "0.5784008", "0.57830775", "0.5769008", "0.57561404", "0.57297313", "0.57247496", "0.57140213", "0.5711572", "0.5698652", "0.5675603", "0.5666927", "0.5655101", "0.56382334", "0.56346786", "0.5632476", "0.5626095", "0.5614282", "0.55763626", "0.5569809", "0.5557888", "0.5550167", "0.5541512", "0.5533537", "0.5531732", "0.552869", "0.55159706", "0.55096066", "0.5509437", "0.5502182", "0.54985696", "0.5493796", "0.5466814", "0.5461257", "0.54533416", "0.544082", "0.5429872", "0.54228216", "0.5399081", "0.5396196", "0.5396042", "0.539476", "0.53850615", "0.5382961", "0.5363743", "0.5360392", "0.5351611", "0.5341645", "0.5339405", "0.53279376", "0.5326943", "0.53243005", "0.53227365", "0.53173417", "0.531281", "0.53076535", "0.5299932", "0.5293687", "0.529065", "0.5284906", "0.5278552", "0.52716994", "0.5270433", "0.52628815", "0.5259189", "0.5258321", "0.52554226", "0.524515", "0.52391565", "0.5234739", "0.523321", "0.5231273", "0.52300847", "0.5226845", "0.5222685", "0.5218205", "0.52137566" ]
0.8187329
0
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.rounds, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.actions, menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tgetMenuInflater().inflate(R.menu.actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.actions_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main_actions, menu);\n\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n\t\tinflater.inflate(R.menu.action_bar_menu, menu);\r\n\t\tmMenu = menu;\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.act_bar_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_actions, menu);\r\n\t\treturn true;\r\n //return super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\r\n\t inflater.inflate(R.menu.action_bar_all, menu);\r\n\t return super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\t super.onCreateOptionsMenu(menu);\n\t\tMenuInflater muu= getMenuInflater();\n\t\tmuu.inflate(R.menu.cool_menu, menu);\n\t\treturn true;\n\t\t\n\t\t\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.adventure_archive, menu);\r\n\t\treturn true;\r\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.archive_menu, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n \tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n \t\tinflater.inflate(R.menu.main, menu);\n \t\tsuper.onCreateOptionsMenu(menu, inflater);\n \t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.action_menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater bow=getMenuInflater();\n\t\tbow.inflate(R.menu.menu, menu);\n\t\treturn true;\n\t\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.action_menu, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\t\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\t\t\n\t\t/* Inflate the menu; this adds items to the action bar if it is present */\n\t\tgetMenuInflater().inflate(R.menu.act_main, menu);\t\t\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflate = getMenuInflater();\n inflate.inflate(R.menu.menu, ApplicationData.amvMenu.getMenu());\n return true;\n }", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.menu, menu);\n\t\t\treturn true; \n\t\t\t\t\t\n\t\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.main, menu);\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) \n {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_bar, menu);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_item, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.menu, menu);\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t \n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\t//menu.clear();\n\t\tinflater.inflate(R.menu.soon_to_be, menu);\n\t\t//getActivity().getActionBar().show();\n\t\t//getActivity().getActionBar().setBackgroundDrawable(\n\t\t\t\t//new ColorDrawable(Color.rgb(223, 160, 23)));\n\t\t//return true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n this.getMenuInflater().inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.main, menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu( Menu menu, MenuInflater inflater )\n\t{\n\t\tsuper.onCreateOptionsMenu( menu, inflater );\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\r\n \t// We must call through to the base implementation.\r\n \tsuper.onCreateOptionsMenu(menu);\r\n \t\r\n MenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_menu, menu);\r\n\r\n return true;\r\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.inter_main, menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.action, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu (Menu menu){\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.custom_action_bar, menu);\n\t\treturn true;\n\t}", "public void initMenubar() {\n\t\tremoveAll();\n\n\t\t// \"File\"\n\t\tfileMenu = new FileMenuD(app);\n\t\tadd(fileMenu);\n\n\t\t// \"Edit\"\n\t\teditMenu = new EditMenuD(app);\n\t\tadd(editMenu);\n\n\t\t// \"View\"\n\t\t// #3711 viewMenu = app.isApplet()? new ViewMenu(app, layout) : new\n\t\t// ViewMenuApplicationD(app, layout);\n\t\tviewMenu = new ViewMenuApplicationD(app, layout);\n\t\tadd(viewMenu);\n\n\t\t// \"Perspectives\"\n\t\t// if(!app.isApplet()) {\n\t\t// perspectivesMenu = new PerspectivesMenu(app, layout);\n\t\t// add(perspectivesMenu);\n\t\t// }\n\n\t\t// \"Options\"\n\t\toptionsMenu = new OptionsMenuD(app);\n\t\tadd(optionsMenu);\n\n\t\t// \"Tools\"\n\t\ttoolsMenu = new ToolsMenuD(app);\n\t\tadd(toolsMenu);\n\n\t\t// \"Window\"\n\t\twindowMenu = new WindowMenuD(app);\n\n\t\tadd(windowMenu);\n\n\t\t// \"Help\"\n\t\thelpMenu = new HelpMenuD(app);\n\t\tadd(helpMenu);\n\n\t\t// support for right-to-left languages\n\t\tapp.setComponentOrientation(this);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp=getMenuInflater();\n\t\tblowUp.inflate(R.menu.welcome_menu, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.listing, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.item, menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.resource, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu,menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.home_action_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.template, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n Log.d(\"onCreateOptionsMenu\", \"create menu\");\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.socket_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_menu, menu);//Menu Resource, Menu\n\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actionbar, menu);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(toolbar_res, menu);\n updateMenuItemsVisibility(menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t// \n\t\tMenuInflater mi = getMenuInflater();\n\t\tmi.inflate(R.menu.thumb_actv_menu, menu);\n\t\t\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.swag_list_activity_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\n\t\treturn true;\n\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.jarvi, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "public void onCreateOptionsMenu(Menu menu, MenuInflater inflater){\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater menuInflater) {\n menuInflater.inflate(R.menu.main, menu);\n\n }", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.add__listing, menu);\r\n\t\treturn true;\r\n\t}", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actmain, menu);\r\n return true;\r\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.buat_menu, menu);\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.layout.menu, menu);\n\t\treturn true;\n\t}", "@Override\npublic boolean onCreateOptionsMenu(Menu menu) {\n\n\t\n\t\n\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\n\treturn super.onCreateOptionsMenu(menu);\n}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ichat, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater)\n\t{\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\tinflater.inflate(R.menu.expenses_menu, menu);\n\t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.action_bar, menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp = getMenuInflater();\n\t\tblowUp.inflate(R.menu.status, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.menu, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ui_main, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_activity_actions, menu);\n return true;\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }" ]
[ "0.7246102", "0.7201358", "0.7194834", "0.7176498", "0.71066517", "0.7039537", "0.7037961", "0.70112145", "0.70094734", "0.69807225", "0.6944953", "0.69389373", "0.6933199", "0.6916928", "0.6916928", "0.6891486", "0.68831646", "0.68754137", "0.68745375", "0.68621665", "0.68621665", "0.68621665", "0.68621665", "0.68515885", "0.68467957", "0.68194443", "0.6817494", "0.6813087", "0.6813087", "0.6812847", "0.6805774", "0.6801204", "0.6797914", "0.6791314", "0.6789091", "0.67883503", "0.6783642", "0.6759701", "0.6757412", "0.67478645", "0.6744127", "0.6744127", "0.67411774", "0.6740183", "0.6726017", "0.6723245", "0.67226785", "0.67226785", "0.67208904", "0.67113477", "0.67079866", "0.6704564", "0.6699229", "0.66989094", "0.6696622", "0.66952467", "0.66865396", "0.6683476", "0.6683476", "0.6682188", "0.6681209", "0.6678941", "0.66772443", "0.6667702", "0.66673946", "0.666246", "0.6657578", "0.6657578", "0.6657578", "0.6656586", "0.66544783", "0.66544783", "0.66544783", "0.66524047", "0.6651954", "0.6650132", "0.66487855", "0.6647077", "0.66467404", "0.6646615", "0.66464466", "0.66449624", "0.6644209", "0.6643461", "0.6643005", "0.66421187", "0.6638628", "0.6634786", "0.6633529", "0.6632049", "0.6632049", "0.6632049", "0.66315657", "0.6628954", "0.66281766", "0.6627182", "0.6626297", "0.6624309", "0.6619582", "0.6618876", "0.6618876" ]
0.0
-1
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml.
@Override public boolean onOptionsItemSelected(MenuItem item) { int id = item.getItemId(); //noinspection SimplifiableIfStatement if (id == R.id.action_changepassword) { Intent j = new Intent(Rounds.this, CHANGE_PASSWORD.class); j.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); startActivity(j); return true; } if (id == R.id.action_logout) { if(isInternetOn()) { String currentdate = new SimpleDateFormat("dd-MM-yyyy HH:mm:ss").format(new Date()); serverLogout(myHelper.getUserID(), replaceSpace(currentdate)); return true; } else { AlertDialog.Builder builder = new AlertDialog.Builder(Rounds.this); builder.setTitle("No Internet Connection"); builder.setMessage("Check your network and Retry"); builder.setPositiveButton("Ok", new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int id) { //do things } }); AlertDialog alert = builder.create(); alert.show(); } } return super.onOptionsItemSelected(item); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onOptionsItemSelected(MenuItem item) { Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n\n //\n // HANDLE BACK BUTTON\n //\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // Back button clicked\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // app icon in action bar clicked; goto parent activity.\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n switch (id) {\r\n case android.R.id.home:\r\n // app icon in action bar clicked; go home\r\n this.finish();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // app icon in action bar clicked; go home\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n Log.e(\"clik\", \"action bar clicked\");\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n\t public boolean onOptionsItemSelected(MenuItem item) {\n\t int id = item.getItemId();\n\t \n\t\t\tif (id == android.R.id.home) {\n\t\t\t\t// Respond to the action bar's Up/Home button\n\t\t\t\t// NavUtils.navigateUpFromSameTask(this);\n\t\t\t\tonBackPressed();\n\t\t\t\treturn true;\n\t\t\t}\n\t \n\t \n\t return super.onOptionsItemSelected(item);\n\t }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n switch (item.getItemId()) {\r\n // Respond to the action bar's Up/Home button\r\n case android.R.id.home:\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n\n switch (item.getItemId()) {\n case android.R.id.home:\n\n // app icon in action bar clicked; goto parent activity.\n this.finish();\n return true;\n default:\n\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n\n switch (item.getItemId()) {\n case android.R.id.home:\n\n // app icon in action bar clicked; goto parent activity.\n this.finish();\n return true;\n default:\n\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tonBackPressed();\n\t\t\treturn true;\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Handle presses on the action bar items\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n case R.id.action_clear:\n return true;\n case R.id.action_done:\n\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n onActionHomePressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n switch (item.getItemId())\n {\n case android.R.id.home :\n super.onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId ()) {\n case android.R.id.home:\n onBackPressed ();\n return true;\n\n default:\n break;\n }\n return super.onOptionsItemSelected ( item );\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t switch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\t// app icon in action bar clicked; go home \n\t\t\tIntent intent = new Intent(this, Kelutral.class); \n\t\t\tintent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); \n\t\t\tstartActivity(intent); \n\t\t\treturn true;\t\t\n\t case R.id.Search:\n\t \treturn onSearchRequested();\n\t\tcase R.id.AppInfo:\n\t\t\t// Place holder menu item\n\t\t\tIntent newIntent = new Intent(Intent.ACTION_VIEW,\n\t\t\t\t\tUri.parse(\"http://forum.learnnavi.org/mobile-apps/\"));\n\t\t\tstartActivity(newIntent);\n\t\t\treturn true;\n\t\tcase R.id.Preferences:\n\t\t\tnewIntent = new Intent(getBaseContext(), Preferences.class);\n\t\t\tstartActivity(newIntent);\n\t\t\treturn true;\t\n\t }\n\t return false;\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n\n case android.R.id.home:\n onBackPressed();\n return true;\n\n }\n return super.onOptionsItemSelected(item);\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // Intent homeIntent = new Intent(this, MainActivity.class);\n // homeIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n // startActivity(homeIntent);\n finish();\n return true;\n default:\n return (super.onOptionsItemSelected(item));\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // setResult and close the activity when Action Bar Up Button clicked.\n if (item.getItemId() == android.R.id.home) {\n setResult(RESULT_CANCELED);\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // This ID represents the Home or Up button. In the case of this\n // activity, the Up button is shown. Use NavUtils to allow users\n // to navigate up one level in the application structure. For\n // more details, see the Navigation pattern on Android Design:\n //\n // http://developer.android.com/design/patterns/navigation.html#up-vs-back\n //\n \tgetActionBar().setDisplayHomeAsUpEnabled(false);\n \tgetFragmentManager().popBackStack();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n switch (item.getItemId()) {\n case android.R.id.home:\n super.onBackPressed();\n return true;\n\n default:\n // If we got here, the user's action was not recognized.\n // Invoke the superclass to handle it.\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if(id == android.R.id.home){\n onBackPressed();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@RequiresApi(api = Build.VERSION_CODES.M)\n @Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tif(item.getItemId()==android.R.id.home)\r\n\t\t{\r\n\t\t\tgetActivity().onBackPressed();\r\n\t\t}\r\n\t\treturn super.onOptionsItemSelected(item);\r\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if(item.getItemId()==android.R.id.home){\n super.onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n return false;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n //Back arrow\n case android.R.id.home:\n onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // android.R.id.home是Android内置home按钮的id\n finish();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n super.onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n this.onBackPressed();\n return false;\n }\n return false;\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n int id = item.getItemId();\n\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n switch (item.getItemId()) {\r\n\r\n case android.R.id.home:\r\n /*Intent i= new Intent(getApplication(), MainActivity.class);\r\n i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP);\r\n startActivity(i);*/\r\n onBackPressed();\r\n finish();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id){\n case android.R.id.home:\n this.finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Pass the event to ActionBarDrawerToggle, if it returns\n // true, then it has handled the app icon touch event\n if (mDrawerToggle.onOptionsItemSelected(item)) {\n return true;\n }\n\n // Handle your other action bar items...\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n NavUtils.navigateUpFromSameTask(getActivity());\n return true;\n case R.id.action_settings:\n Intent i = new Intent(getActivity(), SettingsActivity.class);\n startActivity(i);\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n //Fixes the Up Button\n if(id == android.R.id.home) {\n BuildRoute.this.finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()){\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return true;\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n if (id == android.R.id.home) {\n NavUtils.navigateUpFromSameTask(this);\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\r\n case android.R.id.home:\r\n onBackPressed();\r\n break;\r\n }\r\n return true;\r\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tif (item.getItemId() == android.R.id.home) {\n\t\t\tfinish();\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n onBackPressed();\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n if ( id == android.R.id.home ) {\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.home) {\r\n NavUtils.navigateUpFromSameTask(this);\r\n return true;\r\n }\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.action_about) {\r\n AboutDialog();\r\n return true;\r\n }\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.action_exit) {\r\n finish();\r\n return true;\r\n }\r\n\r\n\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n//noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n// finish the activity\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item)\n {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if( id == android.R.id.home ) // Back button of the actionbar\n {\n finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n\t\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\t\tswitch (item.getItemId()) {\r\n\t\t\tcase android.R.id.home:\r\n\t\t\t\tfinish();\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\treturn super.onOptionsItemSelected(item);\r\n\t\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n\n this.finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n onBackPressed();\n return true;\n }\n return false;\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n if(id == android.R.id.home){\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n if (item.getItemId() == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\r\n\t\tcase android.R.id.home:\r\n\t\t\tsetResult(RESULT_OK, getIntent());\r\n\t\t\tfinish();\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n finish();\n return true;\n default:\n // If we got here, the user's action was not recognized.\n // Invoke the superclass to handle it.\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\tbreak;\n\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n\n case android.R.id.home:\n this.finish();\n return true;\n }\n return true;\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tint id = item.getItemId();\n\t\tif (id == android.R.id.home) {\n\t\t\tfinish();\n\t\t\treturn true;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n if (id == android.R.id.home) {\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n //NavUtils.navigateUpFromSameTask(this);\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // todo: goto back activity from here\n finish();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n // Handle item selection\r\n switch (item.getItemId()) {\r\n case android.R.id.home:\r\n onBackPressed();\r\n return true;\r\n\r\n case me.cchiang.lookforthings.R.id.action_sample:\r\n// Snackbar.make(parent_view, item.getTitle() + \" Clicked \", Snackbar.LENGTH_SHORT).show();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n\n\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tonBackPressed();\n\t\t\treturn true;\n\t\tcase R.id.scan_menu:\n\t\t\tonScan();\n\t\t\tbreak;\n\t\tcase R.id.opt_about:\n\t\t\t//onAbout();\n\t\t\tbreak;\n\t\tcase R.id.opt_exit:\n\t\t\tfinish();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t\treturn true;\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n super.onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n this.finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(@NonNull MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n\n case android.R.id.home:\n finish();\n return true;\n\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if(id==android.R.id.home){\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\r\n\t switch (item.getItemId()) {\r\n\t \t// back to previous page\r\n\t case android.R.id.home:\r\n\t finish();\r\n\t return true;\r\n\t }\r\n\t return super.onOptionsItemSelected(item);\r\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == android.R.id.home) {\r\n // finish the activity\r\n onBackPressed();\r\n return true;\r\n }\r\n\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == android.R.id.home) {\r\n // finish the activity\r\n onBackPressed();\r\n return true;\r\n }\r\n\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId())\n {\n case android.R.id.home:\n this.finish();\n return (true);\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id){\n case R.id.home:{\n NavUtils.navigateUpFromSameTask(this);\n return true;\n }\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n switch(item.getItemId())\n {\n case android.R.id.home:\n super.onBackPressed();\n break;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\treturn true;\n\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t}", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n\r\n int id = item.getItemId();\r\n if(id==android.R.id.home){\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }" ]
[ "0.79041183", "0.7805934", "0.77659106", "0.7727251", "0.7631684", "0.7621701", "0.75839096", "0.75300384", "0.74873656", "0.7458051", "0.7458051", "0.7438486", "0.742157", "0.7403794", "0.7391802", "0.73870087", "0.7379108", "0.7370295", "0.7362194", "0.7355759", "0.73454577", "0.734109", "0.73295504", "0.7327726", "0.73259085", "0.73188347", "0.731648", "0.73134047", "0.7303978", "0.7303978", "0.7301588", "0.7298084", "0.72932935", "0.7286338", "0.7283324", "0.72808945", "0.72785115", "0.72597474", "0.72597474", "0.72597474", "0.725962", "0.7259136", "0.7249966", "0.7224023", "0.721937", "0.7216621", "0.72045326", "0.7200649", "0.71991026", "0.71923256", "0.71851367", "0.7176769", "0.7168457", "0.71675026", "0.7153402", "0.71533287", "0.71352696", "0.71350807", "0.71350807", "0.7129153", "0.7128639", "0.7124181", "0.7123387", "0.7122983", "0.71220255", "0.711715", "0.711715", "0.711715", "0.711715", "0.7117043", "0.71169263", "0.7116624", "0.71149373", "0.71123946", "0.7109806", "0.7108778", "0.710536", "0.7098968", "0.70981944", "0.7095771", "0.7093572", "0.7093572", "0.70862055", "0.7082207", "0.70808214", "0.7080366", "0.7073644", "0.7068183", "0.706161", "0.7060019", "0.70598614", "0.7051272", "0.70374316", "0.70374316", "0.7035865", "0.70352185", "0.70352185", "0.7031749", "0.703084", "0.7029517", "0.7018633" ]
0.0
-1
Handle navigation view item clicks here.
@SuppressWarnings("StatementWithEmptyBody") @Override public boolean onNavigationItemSelected(MenuItem item) { int id = item.getItemId(); if (id == R.id.nav_trauma) { Intent i = new Intent(Rounds.this, Trauma.class); i.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); startActivity(i); //finish(); // Handle the camera action } else if (id == R.id.nav_emergency) { Intent j = new Intent(Rounds.this, Emergency.class); j.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); startActivity(j); // finish(); } else if (id == R.id.nav_casualty) { Intent g = new Intent(Rounds.this, Casul_icu.class); g.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); startActivity(g); //finish(); } else if (id == R.id.nav_icu1) { Intent g = new Intent(Rounds.this, Icu1.class); g.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); startActivity(g); //finish(); } else if (id == R.id.nav_icu2) { Intent g = new Intent(Rounds.this, Icu2.class); g.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); startActivity(g); //finish(); } else if (id == R.id.nav_icu3) { Intent g = new Intent(Rounds.this, Icu3.class); g.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); startActivity(g); //finish(); } else if (id == R.id.nav_icu4) { Intent g = new Intent(Rounds.this, Icu4.class); g.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); startActivity(g); //finish(); } else if (id == R.id.nav_wardGeneral) { Intent k = new Intent(Rounds.this, general_ward_main.class); k.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); startActivity(k); // finish(); } else if (id == R.id.nav_wardSpecial) { Intent k = new Intent(Rounds.this, special_wrad_main.class); k.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); startActivity(k); // finish(); } else if (id == R.id.nav_other) { Intent k = new Intent(Rounds.this, others.class); k.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); startActivity(k); }else if (id == R.id.nav_view) { Intent i = new Intent(Rounds.this, ViewReport.class); i.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); startActivity(i); } else if (id == R.id.nav_CLINIC) { Intent i = new Intent(Rounds.this, Clinical_lab.class); i.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); startActivity(i); } else if (id == R.id.nav_BLOOD) { Intent i = new Intent(Rounds.this, Blood_blank.class); i.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); startActivity(i); } else if (id == R.id.nav_RADIO) { Intent i = new Intent(Rounds.this, Radiology.class); i.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); startActivity(i); } else if (id == R.id.nav_DIALY) { Intent i = new Intent(Rounds.this, Dialysis.class); i.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); startActivity(i); } else if (id == R.id.nav_CSSD) { Intent i = new Intent(Rounds.this, CSSD.class); i.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); startActivity(i); } else if (id == R.id.nav_pharm) { Intent i = new Intent(Rounds.this, PharmacyActivity.class); i.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); startActivity(i); } /*else if (id== R.id.nav_changepass) { Intent i = new Intent(Rounds.this, CHANGE_PASSWORD.class); i.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); startActivity(i); } else if (id==R.id.nav_logout) { TableHelper myHelper = new TableHelper(this); if(myHelper.logout()) { Intent k = new Intent(Rounds.this, Login.class); k.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); startActivity(k); finish(); } }*/ else if (id == R.id.nav_about) { Intent i = new Intent(Rounds.this, ABOUT_US.class); i.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); startActivity(i); }/* else if (id == R.id.nav_contact) { Intent i = new Intent(Rounds.this, contact_us.class); i.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); startActivity(i); } */ /* else if (id == R.id.nav_share) { } else if (id == R.id.nav_send) { }*/ DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout); drawer.closeDrawer(GravityCompat.START); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void onNavigationItemClicked(Element element);", "@Override\n public void onClick(View view) { listener.onItemClick(view, getPosition()); }", "void onDialogNavigationItemClicked(Element element);", "@Override\n public void onClick(View view) {\n itemInterface.OnItemClickedListener(tracks, getAdapterPosition());\n }", "@Override\n public void onClickItem(MeowBottomNavigation.Model item) {\n }", "@Override\n public void onClickItem(MeowBottomNavigation.Model item) {\n }", "@Override\n public void onClick(View view) {\n listener.menuButtonClicked(view.getId());\n }", "@Override\r\n\tpublic boolean onNavigationItemSelected(int itemPosition, long itemId) {\n\t\tLog.d(\"SomeTag\", \"Get click event at position: \" + itemPosition);\r\n\t\tswitch (itemPosition) {\r\n\t\tcase 1:\r\n\t\t\tIntent i = new Intent();\r\n\t\t\ti.setClass(getApplicationContext(), MainActivity.class);\r\n\t\t\tstartActivity(i);\r\n\t\t\t//return true;\r\n\t\t\tbreak;\r\n\t\tcase 2 :\r\n\t\t\tIntent intent = new Intent(this,WhiteListActivity.class);\r\n\t\t\tstartActivity(intent);\r\n\t\t\t//return true;\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\t\r\n\t\treturn true;\r\n\t}", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n String name = navDrawerItems.get(position).getListItemName();\n // call a helper method to perform a corresponding action\n performActionOnNavDrawerItem(name);\n }", "@Override\n\tpublic void rightNavClick() {\n\t\t\n\t}", "@Override\n public void OnItemClick(int position) {\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tif (itemClicked != null)\n\t\t\t\t\titemClicked.OnItemClicked((BusinessType)item.getTag(), item);\n\t\t\t}", "@Override\n public void onClick(View view) {\n clickListener.onItemClicked(getBindingAdapterPosition());\n }", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View view,\n\t\t\t\t\tint position, long id) {\n\t\t\t\thandleClick(position);\n\t\t\t}", "@Override\n public void onItemClicked(int itemPosition, Object dataObject) {\n }", "@Override\n public void onItemClick(int pos) {\n }", "@Override\n public void onClick(View v) {\n if (listener != null)\n listener.onItemClick(itemView, getPosition());\n }", "private void handleNavClick(View view) {\n final String label = ((TextView) view).getText().toString();\n if (\"Logout\".equals(label)) {\n logout();\n }\n if (\"Profile\".equals(label)) {\n final Intent intent = new Intent(this, ViewProfileActivity.class);\n startActivity(intent);\n }\n if (\"Search\".equals(label)){\n final Intent intent = new Intent(this, SearchActivity.class);\n startActivity(intent);\n }\n if (\"Home\".equals(label)) {\n final Intent intent = new Intent(this, HomeActivity.class);\n startActivity(intent);\n }\n }", "void onMenuItemClicked();", "@Override\n public void onClick(View view) {\n\n switch (view.getId()) {\n case R.id.tvSomeText:\n listener.sendDataToActivity(\"MainActivity: TextView clicked\");\n break;\n\n case -1:\n listener.sendDataToActivity(\"MainActivity: ItemView clicked\");\n break;\n }\n }", "@Override\n\t\t\t\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\t\t\t\tMainActivity sct = (MainActivity) act;\n\t\t\t\t\t\t\t\t\tsct.onItemClick(posit2, 11);\n\t\t\t\t\t\t\t\t}", "@Override\n\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\t}", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\n\t\t\t}", "@Override\n public void onClick(View v) {\n listener.onItemClick(v, position);\n }", "@Override\n\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\t\t\n\t}", "@Override\n public void onItemClick(View view, String data) {\n }", "abstract public void onSingleItemClick(View view);", "@Override\n public void onClick(View v) {\n this.itemClickListener.onItemClick(v, getLayoutPosition());\n }", "@Override\n public void itemClick(int pos) {\n }", "@Override\n public void onItemClick(AdapterView<?> adapterView, View view, int position, long id) {\n TextView textView = (TextView)view;\n switch(textView.getText().toString()){\n case \"NavBar\":\n Intent nav = new Intent(this, NavDrawerActivity.class);\n startActivity(nav);\n break;\n }\n\n //Toast.makeText(MainActivity.this,\"Go to \" + textView.getText().toString() + \" page.\",Toast.LENGTH_LONG).show();\n }", "@Override\r\n\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\t\t\r\n\t}", "@Override\n\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\tlong arg3) {\n\t\t\t\n\t\t}", "@Override\n public void onItemClick(Nson parent, View view, int position) {\n }", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\t\t\t\t\tlong arg3) {\n\t\t\t}", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\tlong arg3) {\n\t\t\t\t\n\t\t\t}", "@Override\n public void onClick(View view) {\n int position = getAdapterPosition();\n\n // Check if listener!=null bcz it is not guarantee that we'll call setOnItemClickListener\n // RecyclerView.NO_POSITION - Constant for -1, so that we don't click item at Invalid position (safety measure)\n if (listener != null && position != RecyclerView.NO_POSITION) {\n //listener.onItemClick(notes.get(position)); - used in RecyclerView.Adapter\n listener.onItemClick(getItem(position)); // getting data from superclass\n }\n }", "@Override\n public void onClick(View v) {\n itemClickListener.itemClicked(movieId, v);\n }", "@Override\n\t\tpublic void onClick(View view) {\n\t\t\tif (iOnItemClickListener != null) {\n\t\t\t\tiOnItemClickListener.onItemClick(view, null, getAdapterPosition());\n\t\t\t}\n\t\t}", "@Override\n\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\n\t}", "@Override\n\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\n\t}", "public void onItemClick(View view, int position);", "@Override\n public void onClick(View v) {\n if (mListener != null){\n mListener.onItemClick(itemView, getLayoutPosition());\n }\n }", "@Override\n public void onItemClick(int position) {\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\titemClickListener.Callback(itemInfo);\n\t\n\t\t\t}", "@Override\n public void onItemClick(View view, int position) {\n }", "@Override\n public void onItemClick(View view, int position) {\n }", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\tlong arg3) {\n\t\t\t}", "@Override\n public void onItemOfListClicked(Object o) {\n UserProfileFragmentDirections.ActionUserProfileFragmentToEventProfileFragment action = UserProfileFragmentDirections.actionUserProfileFragmentToEventProfileFragment((MyEvent) o);\n navController.navigate(action);\n }", "@Override\n public void onClick(View view) {\n if(mFrom.equals(NetConstants.BOOKMARK_IN_TAB)) {\n IntentUtil.openDetailActivity(holder.itemView.getContext(), NetConstants.G_BOOKMARK_DEFAULT,\n bean.getArticleUrl(), position, bean.getArticleId());\n }\n else {\n IntentUtil.openDetailActivity(holder.itemView.getContext(), mFrom,\n bean.getArticleUrl(), position, bean.getArticleId());\n }\n }", "@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == R.id.nav_ds_note) {\n // Handle the camera action\n } else if (id == R.id.nav_ds_todo) {\n\n } else if (id == R.id.nav_ql_the) {\n\n } else if (id == R.id.nav_tuychinh) {\n Intent intent = new Intent(this, CustomActivity.class);\n startActivity(intent);\n }\n\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }", "@Override\n\t\t\t\t\t\t\t\tpublic void onItemClick(AdapterView<?> parent, View view,\n\t\t\t\t\t\t\t\t\t\tint position, long id) {\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}", "@Override\n public void onItemClick(View view, ListItem obj, int position) {\n }", "@Override\n\tpublic void onItemClick(Object o, int position) {\n\n\t}", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\tlong arg3) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\tlong arg3) {\n\n\t\t\t}", "void onLinkClicked(@Nullable ContentId itemId);", "@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id){\n case R.id.home:\n Intent homeIntent = new Intent(this, MainActivity.class);\n startActivity(homeIntent);\n break;\n case R.id.send_email:\n Intent mailIntent = new Intent(this, ContactActivity.class);\n startActivity(mailIntent);\n break;\n case R.id.send_failure_ticket:\n Intent ticketIntent = new Intent(this, TicketActivity.class);\n startActivity(ticketIntent);\n break;\n case R.id.position:\n Intent positionIntent = new Intent(this, LocationActivity.class);\n startActivity(positionIntent);\n break;\n case R.id.author:\n UrlRedirect urlRed = new UrlRedirect(this.getApplicationContext(),getString(R.string.linkedinDeveloper));\n urlRed.redirect();\n break;\n default:\n break;\n }\n\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout_main_activity);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }", "@SuppressWarnings(\"ConstantConditions\")\n public void onItemClicked(@NonNull Item item) {\n getView().openDetail(item);\n }", "void onItemClick(View view, int position);", "@Override\n public void onClick(View v) {\n startNavigation();\n }", "void onItemClick(int position);", "@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(@NonNull MenuItem item) {\n int id = item.getItemId();\n\n if (id == R.id.nav_logs) {\n startActivity(new Intent(this, LogView.class));\n } else if (id == R.id.nav_signOut) {\n signOut();\n }\n\n DrawerLayout drawer = findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }", "@Override\n public void onClick(View v) {\n if(listener!=null & getLayoutPosition()!=0)\n listener.onItemClick(itemView, getLayoutPosition());\n }", "@Override\n\tpublic void onItemClick(AdapterView<?> parent, View view, int position,\n\t\t\tlong id) {\n\t\tpresenter.onItemClicked(position);\n\t}", "@Override\n public void onClick(View view) {\n listener.onMenuButtonSelected(view.getId());\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view,\n int position, long id) {\n }", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\tlong arg3) {\n\t\t\t\tHashMap<String, Object> item = (HashMap<String, Object>) arg0\n\t\t\t\t\t\t.getAdapter().getItem(arg2);\n\n\t\t\t\tIntent intent = new Intent(ViewActivity.this,\n\t\t\t\t\t\tContentActivity.class);\n\t\t\t\tBundle bundle = new Bundle();\n\t\t\t\tbundle.putString(\"_id\", item.get(\"_id\").toString());\n\t\t\t\tbundle.putString(\"_CityEventID\", item.get(\"_CityEventID\")\n\t\t\t\t\t\t.toString());\n\t\t\t\tbundle.putString(\"_type\", String.valueOf(_type));\n\t\t\t\tintent.putExtras(bundle);\n\t\t\t\tstartActivity(intent);\n\t\t\t}", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onClick(View view) {\n Navigation.findNavController(view).navigate(R.id.addEventFragment);\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n Log.w(TAG , \"POSITION : \" + position);\n\n itemClick(position);\n }", "void clickItem(int uid);", "@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(@NonNull MenuItem item) {\n int id = item.getItemId();\n\n if (id == R.id.nav_categories) {\n Intent intent = new Intent(getApplicationContext(), CategoryActivity.class);\n startActivity(intent, compat.toBundle());\n newsHere.setSourceActivity(\"search\");\n newsHere.setTargetActivity(\"category\");\n\n } else if (id == R.id.nav_top_headlines) {\n newsHere.setSourceActivity(\"search\");\n newsHere.setTargetActivity(\"home\");\n Intent intent = new Intent(getApplicationContext(), HomeActivity.class);\n startActivity(intent, compat.toBundle());\n } else if (id == R.id.nav_search) {\n // Do nothing\n }\n\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }", "@Override\n public void onItemClick(View view, int position) {\n\n }", "@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == R.id.nav_orders) {\n\n Intent orderStatusIntent = new Intent(Home.this , OrderStatus.class);\n startActivity(orderStatusIntent);\n\n } else if (id == R.id.nav_banner) {\n\n Intent bannerIntent = new Intent(Home.this , BannerActivity.class);\n startActivity(bannerIntent);\n }\n\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\n }", "public void onItemClick(View view, int position) {\n\n }", "@Override\n\tpublic void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\n\t}", "@Override\n\tpublic void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\n\t}", "@Override\r\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\r\n\t\t\t\t\tlong arg3) {\n\r\n\t\t\t}", "void onClick(View item, View widget, int position, int which);", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position,\n long id) {\n\n\n }", "@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(MenuItem item) {\n Intent intent;\n switch(item.getItemId()){\n case R.id.nav_home:\n finish();\n intent = new Intent(this, NavigationActivity.class);\n startActivity(intent);\n return true;\n case R.id.nav_calendar:\n finish();\n intent = new Intent(this, EventHome.class);\n startActivity(intent);\n return true;\n case R.id.nav_discussion:\n return true;\n case R.id.nav_settings:\n intent = new Intent(this, SettingsActivity.class);\n startActivity(intent);\n return true;\n case R.id.nav_app_blocker:\n intent = new Intent(this, AppBlockingActivity.class);\n startActivity(intent);\n return true;\n }\n\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }", "@Override\n public boolean onNavigationItemSelected(@NonNull MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n\n case R.id.nav_home:\n break;\n\n case R.id.nav_favourites:\n\n if (User.getInstance().getUser() == null) {\n Intent intent = new Intent(getApplicationContext(), LoginActivity.class);\n startActivity(intent);\n }\n\n Intent intent = new Intent(getApplicationContext(), PlaceItemListActivity.class);\n startActivity(intent);\n\n break;\n }\n\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tonRgtRgtMenuClick(v);\n\t\t\t}", "@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == R.id.nav_camera) {\n // Handle the camera action\n } else if (id == R.id.nav_gallery) {\n Toast.makeText(this, \"gallery is clicked!\", Toast.LENGTH_LONG).show();\n\n } else if (id == R.id.nav_slideshow) {\n\n } else if (id == R.id.nav_manage) {\n\n } else if (id == R.id.nav_share) {\n\n } else if (id == R.id.nav_send) {\n\n }\n\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }", "public void menuClicked(MenuItem menuItemSelected);", "@Override\n public void onItemClick(int position) {\n }", "@Override\n public void onItemClick(int position) {\n }", "@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == R.id.nav_my_account) {\n startActivity(new Intent(this, MyAccountActivity.class));\n } else if (id == R.id.nav_message_inbox) {\n startActivity(new Intent(this, MessageInboxActivity.class));\n } else if (id == R.id.nav_view_offers) {\n //Do Nothing\n } else if (id == R.id.nav_create_listing) {\n startActivity(new Intent(this, CreateListingActivity.class));\n } else if (id == R.id.nav_view_listings) {\n startActivity(new Intent(this, ViewListingsActivity.class));\n }\n\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position,\n long id) {\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position,\n long id) {\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\r\n\t\t\t\tpublic void onItemClick(AdapterView<?> parent, View view,\r\n\t\t\t\t\t\tint position, long id) {\n\t\t\t\t}" ]
[ "0.7882029", "0.7235578", "0.6987005", "0.69458413", "0.6917864", "0.6917864", "0.6883472", "0.6875181", "0.68681556", "0.6766498", "0.67418456", "0.67207", "0.6716157", "0.6713947", "0.6698189", "0.66980195", "0.66793925", "0.66624063", "0.66595167", "0.6646381", "0.6641224", "0.66243863", "0.6624042", "0.66207093", "0.6602551", "0.6602231", "0.6599443", "0.65987265", "0.65935796", "0.6585869", "0.658491", "0.65811735", "0.65765643", "0.65751576", "0.65694076", "0.6561757", "0.65582377", "0.65581614", "0.6552827", "0.6552827", "0.6549224", "0.65389794", "0.65345114", "0.65337104", "0.652419", "0.652419", "0.6522521", "0.652146", "0.6521068", "0.6519354", "0.65165275", "0.65159816", "0.65028816", "0.6498054", "0.6498054", "0.64969087", "0.64937705", "0.6488544", "0.64867324", "0.64866185", "0.64865905", "0.6484047", "0.6481108", "0.6474686", "0.64628965", "0.64551884", "0.6446893", "0.64436555", "0.64436555", "0.64436555", "0.64436555", "0.64436555", "0.64386237", "0.643595", "0.64356565", "0.64329195", "0.6432562", "0.6429554", "0.64255124", "0.64255124", "0.64121485", "0.64102405", "0.64095175", "0.64095175", "0.64094734", "0.640727", "0.64060104", "0.640229", "0.6397359", "0.6392996", "0.63921124", "0.63899696", "0.63885015", "0.63885015", "0.63873845", "0.6368818", "0.6368818", "0.63643163", "0.63643163", "0.63643163", "0.6358884" ]
0.0
-1
Getter for the current user.
public static String getUser() { return user; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getCurrentUser() {\n return currentUser;\n }", "public UserCredential getCurrentUser() {\n return this.currentUser;\n }", "public User getCurrentUser() {\n return currentUser;\n }", "public User getUser(){\n\t\treturn currentUser;\n\t}", "public User getCurrentUser() {\n\t\tString id = contextHolder.getUserId();\r\n\t\treturn userRepository.get(id);\r\n\t}", "@Override\n\tpublic User getCurrentUser() {\n\t\treturn currentUser;\n\t}", "@Nullable\n User getCurrentUser() {return currentUser;}", "public AVUser getCurrentUser() {\n return this.currentUser;\n }", "public String getUser() {\n\t\t\treturn user;\n\t\t}", "public String getUser() {\n\t\treturn user;\n\t}", "public String getUser() {\r\n\t\treturn user;\r\n\t}", "public String getUser() {\r\n\t\treturn user;\r\n\t}", "public static User getCurrentUser() {\n return CURRENT_USER;\n }", "public static String getUser() {\r\n return user;\r\n }", "public String getUser() {\n return user;\n }", "public String getUser() {\n return user;\n }", "public String getUser() {\n return user;\n }", "public final User getUser() {\t\r\n\t\treturn this.user;\r\n\t}", "public String getUser() {\r\n return user;\r\n }", "public String getUser() {\n return this.user;\n }", "@ApiModelProperty(value = \"Gets or sets Curren tUser.\")\n public UserInformation getCurrentUser() {\n return currentUser;\n }", "public User getUser() {\n\t\treturn this.user;\n\t}", "public User getUser() {\n\t\treturn this.user;\n\t}", "public String getUser() {\r\n \t\treturn properties.getProperty(KEY_USER);\r\n \t}", "public static User getCurrentUser() {\n\t\treturn ApplicationContext.getInstance().getCurrentUser();\n\t}", "public UserModel getUser() {\n return localUser;\n }", "public UserModel getUser() {\n return localUser;\n }", "public UserModel getUser() {\n return localUser;\n }", "public java.lang.String getUser() {\n return user;\n }", "public User getUser() {\r\n\t\treturn user;\r\n\t}", "public User getUser() {\r\n\t\treturn user;\r\n\t}", "public User getUser() {\r\n\t\treturn user;\r\n\t}", "@Override\r\n\tpublic User getCurrentUser() {\r\n\t\tString currentUserName = this.getCurrentUserName();\r\n\t\tUser userdetails = this.getByUsername(currentUserName);\r\n\t\treturn userdetails;\r\n\t}", "public User getUser() {\n\t\treturn user;\n\t}", "public User getUser() {\n\t\treturn user;\n\t}", "public User getUser() {\n\t\treturn user;\n\t}", "public User getUser() {\n\t\treturn user;\n\t}", "public User getUser() {\n\t\treturn user;\n\t}", "public User getUser() {\n\t\treturn user;\n\t}", "public String getUser()\n {\n return this.user;\n }", "public String getUser()\n {\n return this.user;\n }", "public String getUser()\n {\n return this.user;\n }", "public static User get() {\n User currentUser = (User) getCurrentRequest().getWrappedSession()\n .getAttribute(CURRENT_USER_DETAILS_ATTRIBUTE_KEY);\n if (currentUser == null) {\n return null;\n } else {\n return currentUser;\n }\n }", "public String getCurrentUser() {\r\n return SecurityContextHolder.getContext().getAuthentication().getName();\r\n }", "@Override\n\tpublic User getCurrentUser() {\n\t\tint id = sessionService.getCurrentUserId();\n\t\treturn userDao.findById(id);\n\t}", "private User getCurrentUser() {\n Authentication auth = SecurityContextHolder.getContext().getAuthentication();\n String username = auth.getName();\n return userService.findByUsername(username);\n }", "private User getUser() {\r\n\t\tUserService userService = UserServiceFactory.getUserService();\r\n\t\treturn userService.getCurrentUser();\r\n\t}", "public String getUser() {\r\n\t\treturn _userName;\r\n\t}", "@GET\n @Path(\"Current\")\n public User getCurrentUser() {\n return userFacade.getCurrentUser();\n }", "public String getLoggedInUser() {\n\t\treturn null;\r\n\t}", "public BaseUser getUser() {\r\n\t\treturn user;\r\n\t}", "public User getUser(){\n\t\treturn this.user;\n\t}", "public User getUser(){\r\n\t\treturn this.user;\r\n\t}", "public Long getUser() {\n return user;\n }", "public User getUser() {\n\t\treturn mUser;\n\t}", "User getCurrentLoggedInUser();", "public String getUser() {\n if(user == null)\n return \"\"; \n return user;\n }", "@Override\r\n\tpublic User getAuthenticatedUser()\r\n\t{\n\t\treturn userWpJauRestClientImpl.getUser().getUser();\r\n\t}", "public java.lang.String getUserId() {\n return instance.getUserId();\n }", "public IUser getCurrentUser() {\n return currentUser;\n }", "public static User getCurrentUser() {\n return sInstance == null ? null : sInstance.mCurrentUser;\n }", "public String getUser() {\n\t\t\t\treturn null;\r\n\t\t\t}", "protected AuthenticatedUser getCurrentUser() {\n Authentication auth = SecurityContextHolder.getContext().getAuthentication();\n\n if (auth.getPrincipal() instanceof AuthenticatedUser) {\n return (AuthenticatedUser) auth.getPrincipal();\n }\n\n return null;\n }", "public User getCurrentUser() {\n\t\treturn users.get(userTurn);\n\t}", "public User getUser() {\n return user;\n }", "public User getUser() {\n return user;\n }", "public User getUser() {\n return user;\n }", "public User getUser() {\n return user;\n }", "public User getUser() {\n\treturn user;\n }", "public User getUser() {\r\n return user;\r\n }", "public User getUser(){\n\t\treturn user;\n\t}", "public java.lang.String getUserId() {\n return localUserId;\n }", "public java.lang.String getUserId() {\n return localUserId;\n }", "public java.lang.String getUserId() {\r\n return localUserId;\r\n }", "public java.lang.String getUserId() {\r\n return localUserId;\r\n }", "public String getCurrentUserName() {\n\t\treturn currentUser.getName();\n\t}", "public final String getUser() {\n return username;\n }", "public String getUser(){\n \treturn user;\n }", "@Override\r\n\tpublic String currentUser() {\n\t\treturn temp.getCustomerName();\r\n\t}", "public User getUser(){\n return this.getAccountController().getUser();\n }", "private AuthenticatedUser getUser(AuthenticationContext context) {\n StepConfig stepConfig = context.getSequenceConfig().getStepMap().get(context.getCurrentStep() - 1);\n return stepConfig.getAuthenticatedUser();\n }", "public ScrumzuUser getUser() {\n\t\treturn user;\n\t}", "public String getUser()\n {\n return _user;\n }", "private String getLoggedInUser() {\r\n\t\tOptional<Authentication> authentication = Optional\r\n\t\t\t\t.ofNullable(SecurityContextHolder.getContext().getAuthentication());\r\n\t\treturn authentication.map(Authentication::getPrincipal).map(obj -> (UserDetails) obj)\r\n\t\t\t\t.map(UserDetails::getUsername).orElse(null);\r\n\t}", "public int getUserId() {\n return instance.getUserId();\n }", "@Nullable\n public User getUser() {\n return mUser;\n }", "public User getLoggedUser(){\n\t\treturn loggedUser;\n\t}", "@NonNull\n public User getUser() {\n return user;\n }", "public SimpleUser getUser() {\n return user;\n }", "public User getUser() { return this.user; }", "public UserInfo getCurrentUser() {\n UserInfo currentUserLU;\n if (this.mInjector.checkCallingPermission(\"android.permission.INTERACT_ACROSS_USERS\") != 0 && this.mInjector.checkCallingPermission(\"android.permission.INTERACT_ACROSS_USERS_FULL\") != 0) {\n String msg = \"Permission Denial: getCurrentUser() from pid=\" + Binder.getCallingPid() + \", uid=\" + Binder.getCallingUid() + \" requires \" + \"android.permission.INTERACT_ACROSS_USERS\";\n Slog.w(\"ActivityManager\", msg);\n throw new SecurityException(msg);\n } else if (this.mTargetUserId == -10000) {\n return getUserInfo(this.mCurrentUserId);\n } else {\n synchronized (this.mLock) {\n currentUserLU = getCurrentUserLU();\n }\n return currentUserLU;\n }\n }", "public String getUser() {\n\treturn strUser;\n }", "public static int getCurrentUserId() {\n return session.get().getUserId();\n }", "public User getLoggedUser();", "@PermitAll\n @Override\n public User getCurrentUser() {\n Map params = new HashMap<String, Object>();\n params.put(CommonSqlProvider.PARAM_WHERE_PART, User.QUERY_WHERE_USERNAME);\n params.put(User.PARAM_USERNAME, this.getUserName());\n return getRepository().getEntity(User.class, params);\n }", "@Override\n public User getUser() {\n return user;\n }", "@Override\n public User getUser() {\n return user;\n }", "private UserID getCurrentUser()\n\t{\n\t return (UserID)request.getSession().getAttribute(\"userID\");\n\t}", "synchronized public String getUser()\n\t{\n\t\tif (userInfo != null)\n\t\t\treturn userInfo.getUserID();\n\t\t\t\n\t\treturn null;\n\t}", "LoggedUser getLoggedUser();" ]
[ "0.8421379", "0.83686966", "0.83561105", "0.8315655", "0.8250745", "0.81927055", "0.8162265", "0.807535", "0.8054035", "0.8035336", "0.8025984", "0.8025984", "0.7998608", "0.7983209", "0.79539484", "0.79539484", "0.79539484", "0.7936665", "0.79323584", "0.79306984", "0.7902997", "0.7877136", "0.7877136", "0.7869463", "0.7823999", "0.7822254", "0.7822254", "0.7822254", "0.7817175", "0.7808501", "0.7808501", "0.7808501", "0.7803538", "0.7796828", "0.7796828", "0.7796828", "0.7796828", "0.7796828", "0.7796828", "0.7790006", "0.7790006", "0.7790006", "0.7762305", "0.77292377", "0.7712679", "0.77102757", "0.7682172", "0.76767963", "0.76694185", "0.7665453", "0.76640594", "0.7655107", "0.7649539", "0.764544", "0.76188785", "0.7608112", "0.758631", "0.7580863", "0.7574089", "0.75680315", "0.7537412", "0.7508208", "0.74989635", "0.7497115", "0.74955535", "0.74955535", "0.74955535", "0.74955535", "0.7488486", "0.74822295", "0.74774545", "0.7458417", "0.7458417", "0.74519503", "0.74519503", "0.74453694", "0.7417773", "0.73925036", "0.7352961", "0.73521787", "0.73470557", "0.733995", "0.733128", "0.7311919", "0.7296737", "0.72705686", "0.7270373", "0.7266262", "0.7238703", "0.7236488", "0.72063977", "0.7206159", "0.7200312", "0.7198105", "0.7194573", "0.7194038", "0.7194038", "0.718147", "0.7181133", "0.7180894" ]
0.8008686
12
Sets the current user's string data. (NRIC, "admin" or "" if there is no current user)
public static void setUser(String user) { Account.user = user; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void assignCurrentAdminUser(final String val) {\n currentAdminUser = val;\n }", "public static void setString(String usrname) {\n\t\tUserPanel.usrname = usrname;\r\n\t}", "public void setUser(String paramUser) {\n\tstrUser = paramUser;\n }", "public void setTxtUser(String txtUser) {\n this.txtUser.setText(txtUser);\n }", "public java.lang.String getUser(){\r\n return localUser;\r\n }", "public java.lang.String getUser(){\r\n return localUser;\r\n }", "public java.lang.String getUser(){\r\n return localUser;\r\n }", "public void setDisplayUserName(){\n TextView lblName = (TextView) findViewById(R.id.nav_header_textView);\n\n String content;\n\n if(userName != null){ //If the user is connected\n content = getString(R.string.welcomeName,this.userName);\n }\n else{ //If the user isn't connected\n content = getString(R.string.notConnectedWelcome);\n }\n\n lblName.setText(content);\n }", "void setUserUsername(String username);", "public String getUser() {\n\treturn strUser;\n }", "public void setUserName(String text) {\n txtUserName().setText(text);\n }", "public void setUser_name(String user_name);", "public void setUser(String user) \r\n\t{\n\t\tthis.user = user;\r\n\t}", "public void setCurrentUser(String username) {\n currentUser = username;\n }", "public void setUser(String user)\n {\n _user = user;\n }", "public void setUser(String user) {\r\n this.user = user;\r\n }", "public void setUserName( String value )\n {\n m_UserName = value;\n }", "public void setUsername(String username) {\n SharedPreferences settings = context.getSharedPreferences(PREFS, 0);\n SharedPreferences.Editor editor = settings.edit();\n editor.putString(\"username\", username);\n editor.commit(); \t\n }", "public void setLogin(String strLogin)\n {\n \tstringLogin = strLogin;\n }", "private void setInfo(String newinfo){\n SFNode textField = (SFNode)getField(\"text\");\n Node textNode = (Node)textField.getValue();\n \n\n // Get the \"string\" exposed field of the Text node\n MFString stringField = (MFString)textNode.getExposedField(\"string\");\n\n // Get the name of the user. This is a privileged method call that\n // will throw an AccessControlException when we do not give this\n // script the right to read that property.\n //String username = System.getProperty(\"user.name\");\n\n // Write the user name into the \"string\" field of the Text node\n //stringField.set1Value(1, username);\n stringField.set1Value(0, newinfo);\n }", "protected void setUsername(final String user) {\n this.user = user;\n }", "public void setUser(java.lang.String param){\r\n localUserTracker = true;\r\n \r\n this.localUser=param;\r\n \r\n\r\n }", "public void setUser(java.lang.String param){\r\n localUserTracker = true;\r\n \r\n this.localUser=param;\r\n \r\n\r\n }", "public void setUser(java.lang.String param){\r\n localUserTracker = true;\r\n \r\n this.localUser=param;\r\n \r\n\r\n }", "public void setUser(java.lang.String user) {\n this.user = user;\n }", "public void setUser(String user) {\n this.user = user;\n }", "public void setUser(String user) {\n this.user = user;\n }", "public void setUser(String user) {\n this.user = user;\n }", "public void setUser(String user) {\n this.user = user;\n }", "public final void setUsername(final String value) {\n username = value;\n }", "public void getLocal(){\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(this);\n user = preferences.getString(\"Username\", \"\");\n email = preferences.getString(\"Email\", \"\").replace(\".\", \",\");\n role = preferences.getString(\"Role\", \"\");\n }", "public String getUser() {\n if(user == null)\n return \"\"; \n return user;\n }", "public void setUser(final String user)\n {\n checkImmutable();\n this.user = user;\n }", "public static String getUser() {\r\n return user;\r\n }", "public void setCurrentUserAccount(String currentUserAccount);", "public void setUpdateUser(String newVal) {\n if ((newVal != null && this.updateUser != null && (newVal.compareTo(this.updateUser) == 0)) || \n (newVal == null && this.updateUser == null && updateUser_is_initialized)) {\n return; \n } \n this.updateUser = newVal; \n\n updateUser_is_modified = true; \n updateUser_is_initialized = true; \n }", "protected String getDefaultUserName()\n {\n return \"admin\";\n }", "public void setDatabaseUser(String sDatabaseUser) throws IOException;", "void setUsername(String username);", "@Override\r\n\tpublic String currentUser() {\n\t\treturn temp.getCustomerName();\r\n\t}", "private void setUser(){\n try{\n if (!mainUser.getUsername().equals(\"\")){\n this.userName.setText(mainUser.getUsername());\n }else{\n this.userName.setText(\"User\");\n }\n\n\n File file = new File(mainUser.getProfileImage());\n if (!file.exists()){\n file = new File(getClass().getResource(\"../images/eren.png\").getFile());\n }\n Image img = new Image(file.toURI().toString());\n profileImage.setImage(img);\n\n setEventLabel(\"Welcome \"+mainUser.getFname()+\" \"+mainUser.getLname()+\".\");\n }catch (NullPointerException e){\n AlertBox.alert(AlertType.ERROR, stackRoot, anchorRoot, \"There was an error while updating UserInfo\");\n }\n }", "public String setUserName(){\n String userName = \"\";\n while(userName.isBlank()) {\n System.out.print(\"Please Enter UserName: \");\n userName = supplyString.get();\n }\n return userName.trim();\n }", "public Builder setUser(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n user_ = value;\n onChanged();\n return this;\n }", "public void setUser(UserData data) {\n user = data;\n }", "public void setUser(final String user)\n {\n checkImmutable();\n if (this.logger.isTraceEnabled()) {\n this.logger.trace(\"setting user: \" + user);\n }\n this.user = user;\n }", "public void setUser(final String user)\n {\n checkImmutable();\n if (this.logger.isTraceEnabled()) {\n this.logger.trace(\"setting user: \" + user);\n }\n this.user = user;\n }", "private void loadUserInformation(){\n FirebaseUser user = mAuth.getCurrentUser();\n\n String displayEmail = user.getEmail();\n email.setText(\"Velkommenn \" + displayEmail+\"!\");\n }", "public void changeUser() {\n refreshState();\n SystemUserDTO user = null;\n SystemUserDTO systemUser = null;\n systemUser = ctrl.getSystemUser(this.inputTextUser);\n if (systemUser == null) {\n user = new SystemUserDTO(this.inputTextUser, this.inputTextFName, this.inputTextLName, this.inputTextEMail);\n ctrl.addSystemUser(user);\n } else {\n user = new SystemUserDTO(this.inputTextUser, this.inputTextFName, this.inputTextLName, this.inputTextEMail);\n ctrl.updateSystemUser(user);\n }\n refreshState();\n this.currentUser = user;\n }", "public static String getUser() {\n return user;\n }", "public final StringProperty userProperty() { return this.username; }", "public String getUser(){\n \treturn user;\n }", "public String getCurrentUser() {\n return currentUser;\n }", "public void setUserName(String pUser)\n\t{\n \t tbUserName.clear();\n\t tbUserName.sendKeys(pUser);\n\t\t\n\t}", "public static String toStringCurrentUser() {\n return new StringBuilder()\n .append(CURRENT_USER.getName())\n .append(\" - \")\n .append(CURRENT_USER.getEmployee().getName())\n .toString();\n }", "void setUserData(KingdomUser user, String path, Object value);", "public void updateCurrentTrempitUser() {\n\n // create the trempituser object\n TrempitUser currentUser = new TrempitUser();\n currentUser.setFullName(Profile.getCurrentProfile().getName());\n currentUser.setId(Long.valueOf(Profile.getCurrentProfile().getId()));\n\n // update the global variable so all activities can access the user\n globalState.setCurrentUser(currentUser);\n\n // insert the user to the server\n insertTrempitUserToServer(currentUser);\n\n Toast.makeText(this, \"logged in to facebook:\" + globalState.getCurrentUser().getFullName(), Toast.LENGTH_LONG).show();\n }", "java.lang.String getUser();", "public void setUserid(java.lang.String value) {\n this.userid = value;\n }", "public void setUsername(java.lang.CharSequence value) {\n this.username = value;\n }", "public void setUserName(String username) {\n\t\tsharedPreferences = context.getSharedPreferences(\"Login\",\n\t\t\t\tcontext.MODE_PRIVATE);\n\t\tSharedPreferences.Editor editor = sharedPreferences.edit();\n\t\teditor.putString(\"USERNAME\", username);\n\t\teditor.commit();\n\t}", "private String getUserData() { \n\t\t \n\t\tString userName;\n\t\tObject principial = SecurityContextHolder.getContext().getAuthentication().getPrincipal();\t\n\t\tif(principial instanceof UserDetails) {\n\t\t\tuserName = ((UserDetails) principial).getUsername();\n\t\t} else {\n\t\t\tuserName = principial.toString(); \n\t\t}\n\t\treturn userName; \n\t}", "private void setUpUser() {\n Bundle extras = getIntent().getExtras();\n mActiveUser = extras.getString(Helper.USER_NAME);\n mUser = mDbHelper.getUser(mActiveUser, true);\n Log.d(TAG, mUser.toString());\n\n if (mUser == null) {\n Toast.makeText(getBaseContext(), \"Error loading user data\", Toast.LENGTH_SHORT);\n return;\n }\n\n mIsNumPassword = Helper.isNumeric(mUser.getPassword());\n\n mKeyController = new KeyController(getApplicationContext(), mUser);\n }", "public void setCreateUser(String newVal) {\n if ((newVal != null && this.createUser != null && (newVal.compareTo(this.createUser) == 0)) || \n (newVal == null && this.createUser == null && createUser_is_initialized)) {\n return; \n } \n this.createUser = newVal; \n\n createUser_is_modified = true; \n createUser_is_initialized = true; \n }", "public static String onGetLocalUserName(Context context){\n return PreferencesUtils.getString(context, Config.KEY_OF_USER_NAME, \"\");\n }", "public void setUsername(String username)\r\n/* 16: */ {\r\n/* 17:34 */ this.username = username;\r\n/* 18: */ }", "public void setUser(String user) {\n\t\t\tthis.user = user;\n\t\t}", "public String getTxtUser() {\n return txtUser.getText();\n }", "public final void setUsername(final String usernameNew) {\n this.username = usernameNew;\n }", "private String getRootUser() {\n return rootUser;\n }", "public String getUser() {\r\n\t\treturn user;\r\n\t}", "public String getUser() {\r\n\t\treturn user;\r\n\t}", "public void setUser_name(String user_name) {\n this.user_name = user_name;\n }", "public String getUser() {\r\n return user;\r\n }", "public void setUserC( String userC )\n {\n this.userC = userC;\n }", "public void setAuthentication(){\n SharedPreferences settings = mContext.getSharedPreferences(\"UserData\", Context.MODE_PRIVATE);\n SharedPreferences.Editor preferencesEditor = settings.edit();\n preferencesEditor.putString(\"userid\", mUserId);\n preferencesEditor.putString(\"areaid\", mAreaId);\n preferencesEditor.commit();\n }", "private void populateUserInfo() {\n User user = Session.getInstance().getUser();\n labelDisplayFirstname.setText(user.getFirstname());\n labelDisplayLastname.setText(user.getLastname());\n lblEmail.setText(user.getEmail());\n lblUsername.setText(user.getUsername());\n }", "@java.lang.Override\n public java.lang.String getUser() {\n java.lang.Object ref = user_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n user_ = s;\n return s;\n }\n }", "public String getUserName(){\n return mSharedPreferences.getString(SharedPrefContract.PREF_USER_NAME, null);\n }", "public java.lang.String getUser() {\n return user;\n }", "public void setUsername(java.lang.String param) {\n localUsernameTracker = true;\n\n this.localUsername = param;\n }", "public StringProperty userProperty() {\n return user;\n }", "String getUser();", "String getUser();", "public String getUser() {\n\t\treturn user;\n\t}", "@Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n idadmin = dataSnapshot.child(\"username\").getValue().toString();\n pwadmin = dataSnapshot.child(\"password\").getValue().toString();\n }", "public String getUser() {\n return user;\n }", "public String getUser() {\n return user;\n }", "public String getUser() {\n return user;\n }", "@Override\n\tpublic String getUsername() {\n\t\treturn admin.getPassword();\n\t}", "public String getUser() {\n\t\t\t\treturn null;\r\n\t\t\t}", "public String getUser() {\n\t\t\treturn user;\n\t\t}", "public void setInputUser(String inputUser) {\n this.inputUser = inputUser == null ? null : inputUser.trim();\n }", "private void setupUsernameAndFullNameTextView() {\n usernameTextView.setText(prismUser.getUsername());\n userFullNameText.setText(prismUser.getFullName());\n }", "public void displayData(View view){\n SharedPreferences sharedPref = getSharedPreferences(\"userinfo\", Context.MODE_PRIVATE);\n\n String name = sharedPref.getString(\"username\",\"\");\n displaytext.setText(\"welcome \" + name + \"!\");\n\n }", "public void setAdminUser(String adminUser) {\n this.adminUser = adminUser == null ? null : adminUser.trim();\n }", "public String getInputUser() {\n return inputUser;\n }", "public String getUser() {\r\n \t\treturn properties.getProperty(KEY_USER);\r\n \t}", "public void setUsername(String un)\r\n\t{\r\n\t\tusername = un;\r\n\t}", "public void setUserData (Object userData) {\n\t\tthis.userData = userData;\n\t}", "private void setUserData(){\n }" ]
[ "0.7006709", "0.6999837", "0.65149915", "0.6495769", "0.644339", "0.644339", "0.644339", "0.63853425", "0.6382805", "0.6337177", "0.631503", "0.62732214", "0.62153465", "0.62006617", "0.6197795", "0.6177527", "0.61540616", "0.6134064", "0.6127601", "0.6111303", "0.60927165", "0.60745907", "0.60745907", "0.60745907", "0.6035734", "0.6022254", "0.6022254", "0.6022254", "0.6022254", "0.601364", "0.600743", "0.59941787", "0.5990842", "0.5989293", "0.5985759", "0.5976804", "0.5972302", "0.5967319", "0.59538174", "0.5943829", "0.59433067", "0.59244025", "0.591431", "0.5907939", "0.5907629", "0.5907629", "0.5905187", "0.5904894", "0.5890579", "0.58902", "0.5889832", "0.58694905", "0.5864561", "0.58599627", "0.58585334", "0.5853018", "0.5848112", "0.58438593", "0.5841724", "0.5816139", "0.5807347", "0.5807218", "0.5806916", "0.5806517", "0.57986456", "0.57917", "0.5785885", "0.57787937", "0.57516134", "0.57507616", "0.57507616", "0.5748764", "0.574338", "0.5726304", "0.5725305", "0.57208675", "0.57156605", "0.570339", "0.56864345", "0.5672053", "0.56641275", "0.5656088", "0.5656088", "0.56537294", "0.5642974", "0.5637261", "0.5637261", "0.5637261", "0.563648", "0.5630622", "0.56305665", "0.5630168", "0.5621649", "0.5620028", "0.56174266", "0.5615291", "0.559035", "0.558831", "0.5581212", "0.5581093" ]
0.6160238
16
Checks if the current user is vaccinated.
public static boolean isUserPassed() { return isUserPassed(user); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static boolean isCurrentUserVendedor() {\n return UserRole.VENDEDOR.equals(CURRENT_USER.getUserRole());\n }", "public boolean checkIfUserAllowed(String userEmail, String id){\n boolean eventVIP = getEvent(id).getVIPStatus();\n boolean userVIP = userManager.emailToVIPStatus(userEmail);\n if (!eventVIP){\n return true;\n }\n else{\n return userVIP;\n }\n }", "public boolean isCurrentUserAdmin(){\n if (getAdminUserFromId(currentUserId)!=null){\n return true;\n }\n else{\n return false;\n }\n }", "private void checkIfUserIsAuthenticated() {\n splashViewModel.checkIfUserIsAuthenticated();\n splashViewModel.getIsUserAuthenticated().observe(this, user -> {\n if (!user.isAuthenticated()) {\n startAuthActivity();\n finish();\n } else {\n getUserFromDatabase(user.getUid());\n }\n });\n }", "boolean hasCustomerUserAccess();", "protected boolean isLoggedIn() {\n FirebaseUser currentUser = mAuth.getCurrentUser();\n return currentUser != null && prefs.isVerified();\n }", "public boolean isCurrentUserCanChangeAccountStatus() {\r\n return currentUserCanChangeAccountStatus;\r\n }", "boolean hasSelectedUser();", "public boolean isVacant() {\r\n\treturn !isOccupied() || !isAvailable();\r\n }", "public boolean isActiveUser() {\r\n if (currentProcessInstance == null)\r\n return false;\r\n \r\n String[] states = currentProcessInstance.getActiveStates();\r\n if (states == null)\r\n return false;\r\n \r\n Actor[] users;\r\n for (int i = 0; i < states.length; i++) {\r\n try {\r\n users = currentProcessInstance.getWorkingUsers(states[i]);\r\n for (int j = 0; j < users.length; j++) {\r\n if (getUserId().equals(users[j].getUser().getUserId()))\r\n return true;\r\n }\r\n } catch (WorkflowException ignored) {\r\n // ignore unknown state\r\n continue;\r\n }\r\n }\r\n \r\n return false;\r\n }", "protected boolean isDiffUser() {\r\n\t\tString profileIdVap = \"\";\r\n\r\n\t\t// Retrieve current user and its profile ID from session\r\n\t\tUser currentUser = SessionUtils.getCurrentUser(request.getSession());\r\n\t\tif (currentUser.getProperty(AuthenticationConsts.PROPERTY_PROFILE_ID) != null) {\r\n\t\t\tprofileIdVap = (String)currentUser.getProperty(AuthenticationConsts.PROPERTY_PROFILE_ID);\r\n\r\n\t\t}\r\n\t\t// If profile ID is different, return true\r\n\t\tif (!profileIdVap.equals(userProfile.get(AuthenticationConsts.KEY_PROFILE_ID))) {\r\n\t\t\tif (LOG.willLogAtLevel(LogConfiguration.DEBUG)) {\r\n\t\t\t\tLOG.debug(String.format(\"profile_id_vap: %s; profileid: %s; userId: %s\",\r\n\t\t\t\t\t\t profileIdVap,\r\n\t\t\t\t\t\t userProfile.get(AuthenticationConsts.KEY_PROFILE_ID),\r\n\t\t\t\t\t\t userProfile.get(AuthenticationConsts.KEY_USER_NAME)));\r\n\t\t\t}\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\tif (LOG.willLogAtLevel(LogConfiguration.DEBUG)) {\r\n\t\t\tLOG.debug(String.format(\"same user in session, profileid: %s; userid: %s\",\r\n\t\t\t\t\t\tprofileIdVap,\r\n\t\t\t\t\t\tuserProfile.get(AuthenticationConsts.KEY_USER_NAME)));\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public static boolean isCurrentUserAdministrativo() {\n return UserRole.ADMINISTRATIVO.equals(CURRENT_USER.getUserRole());\n }", "public boolean checkLoggedIn() {\n FirebaseUser user = firebaseAuth.getCurrentUser();\n\n if(user != null) {\n return user.isEmailVerified();\n }\n\n return false;\n }", "private boolean hasUserImportantView() {\n int userID = this.sharedPreferences.getInt(Constants.SP_USER_ID_KEY, 0);\n return this.sharedPreferences.getBoolean(serverName + \"_\" + userID, false);\n }", "private Boolean canUserValidate() throws ServeurException, ClientException {\n // Direct on/off line\n return checkValidatePermission();\n }", "public boolean isCurrentUser(int id) {\n\t\treturn (currentUser.getId() == id);\n\t}", "@Override\n\tpublic boolean isVeifyUser(Lt_User user) throws Lt_Blog_Exception {\n\t\treturn false;\n\t}", "@Override\r\n\tpublic boolean isVerifiedUser(User user) {\n\t\tif (userDao.get(user.getId()).isVerified())\r\n\t\t\treturn true;\r\n\t\treturn false;\r\n\t}", "public boolean getCurrentUserPremium() {\n\t\treturn currentUser.getPremium();\n\t}", "@Override\n public boolean isVampire() {\n return dataTracker.get(Vampirable.Companion.getIS_VAMPIRE());\n }", "boolean hasCustomerUserAccessInvitation();", "private void observeIsUserLoggedInLiveData() {\n viewModel.getIsUserLoggedInLiveData()\n .observe(this, loggedInStatus -> isUserLoggedIn = loggedInStatus);\n }", "private boolean validVoter(long sid) {\n return self.getCurrentAndNextConfigVoters().contains(sid);\n }", "@Override\n\tpublic boolean isUserLoggedIn() {\n\t\treturn sessionService.getCurrentUserId() != null;\n\t}", "public boolean hasUser(){\n return numUser < MAX_USER;\n }", "public boolean isVtkUser( ) {\n\t\treturn chomboSolverSpec != null;\n\t}", "private void userIsAuthenticated() {\n this.setResult(RC_USER_LOGGED_IN, null);\n this.finish();\n }", "public static boolean isGuestUser(Context context) {\n return false;\n }", "boolean hasUserManaged();", "public synchronized boolean canWatch() {\n\t\t//boolean to keep track of theater vacancy \n\t\tboolean enterStatus;\n\t\t//when the movie is in session or the theater is full we can't enter\n\t\tif(Clock.isInSession ||Driver.currentVisitors == 8) { \n\t\t\tenterStatus = false;\n\t\t}else {\n\t\t\tenterStatus = true;\n\t\t}\n\t\treturn enterStatus;\n\t}", "public boolean isUserLoggedIn();", "private boolean isUserExplicitlyLoggedIn() {\n // User is explicitly logged in, if his securityStatus is more than or equal to security status login.\n String securityStatusPropertyName = getStorePropertyManager().getSecurityStatusPropertyName();\n int securityStatus = ((Integer) getProfile().getPropertyValue(securityStatusPropertyName)).intValue();\n return securityStatus >= getStorePropertyManager().getSecurityStatusLogin();\n }", "boolean hasObjUser();", "public boolean hasObjUser() {\n return instance.hasObjUser();\n }", "public boolean isUser()\n\t{\n\t\treturn (id != -1);\n\t}", "private boolean isUserActivated(DUsers user) {\n return isUserWithMoreHits(user, 30);\n }", "@Override\n public boolean hasAccess(User user) {\n return user.hasRole(RoleValue.APP_ADMIN) || this.equals(user.company);\n }", "public boolean isSetUser() {\n return this.user != null;\n }", "public boolean isSetUser() {\n return this.user != null;\n }", "public boolean checkIfLoggedIn() \n {\n if(this.getLoggedUser() != null)\n {\n return true;\n }\n return false;\n }", "@Override\n public boolean isAuthenticated() {\n return !person.isGuest();\n }", "public boolean isLoggedIn() {\n return mAuth.getCurrentUser() != null;\n }", "protected boolean isValid(AccessUser obj)\n {\n return obj != null && obj.username != null && !getMembers().contains(obj);\n }", "boolean hasUser();", "boolean hasUser();", "boolean hasUser();", "boolean hasUser();", "boolean hasUser();", "boolean hasUser();", "boolean hasUser();", "private boolean isLoggedInUser(){\n return true;\n }", "public void verifyUser() {\n\t\toutMessage.setAction(1);\n\t\toutMessage.setObject(this.getUser());\n\t\tmodelCtrl.sendServerMessage(outMessage);\n\t\tinMessage = modelCtrl.getServerResponse();\n\t\t//user is verified\n\t\tif (inMessage.getAction() == 1) {\n\t\t\taccept();\n\t\t}\n\t\t//user is not verified, return to start\n\t\telse {\n\t\t\tSystem.out.println(\"User is not verified\");\n\t\t\tdeny();\n\t\t\t\n\t\t}\n\t}", "@Override\n public boolean test(User user) {\n return user.getPoints() > 160;\n }", "Boolean accountIsActivated(Integer userId);", "boolean hasUserInterest();", "boolean hasUserInterest();", "protected static boolean canAttachPrestartedVmToUser(Guid vmId) {\n boolean returnValue = true;\n java.util.ArrayList<String> messages = new java.util.ArrayList<String>();\n\n // check that there isn't another user already attached to this VM:\n if (vmAssignedToUser(vmId, messages)) {\n returnValue = false;\n }\n\n // Make sure the Vm is running stateless\n if (returnValue) {\n if (!vmIsRunningStateless(vmId)) {\n returnValue = false;\n }\n }\n\n return returnValue;\n }", "private void checkSessionState() {\n // get logged in mUser\n mUser = getStoredUser();\n // check if valid\n mIsLoggedIn = (mUser != null && mUser.getId() != null);\n }", "public boolean isAuthenticated() {\r\n\t\treturn user != null;\r\n\t}", "private boolean checkLogin() {\n firebaseAuth = FirebaseAuth.getInstance();\n currentUser = firebaseAuth.getCurrentUser();\n if(currentUser == null) {\n //show login activity\n Intent intent = new Intent(this, LoginActivity.class);\n startActivity(intent);\n return false;\n } else {\n verifyUserPII(currentUser);\n return true;\n }\n }", "private boolean checkUserData() {\n UserAccount userAccount = new UserAccount(this);\n customer = userAccount.getCustomer();\n return customer != null;\n }", "private boolean isNotCurrentUser(User user) {\n if (user.getEmail().equals(mEncodedEmail)) {\n /* Toast appropriate error message if the user is trying to add themselves */\n Toast.makeText(mActivity,\n mActivity.getResources().getString(R.string.toast_you_cant_add_yourself),\n Toast.LENGTH_LONG).show();\n return false;\n }\n return true;\n }", "boolean isAllInview();", "public boolean hasObjUser() {\n return objUser_ != null;\n }", "public boolean hasUser() {\n return instance.hasUser();\n }", "public boolean isUserLoggedIn(Context context){\n\t\tDatabaseHandler db = new DatabaseHandler(context);\n\t\tint count = db.getRowCount();\n\t\tif(count > 0){\n\t\t\t// user logged in\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public static boolean isCurrentUserAdmin() {\n return UserRole.ADMIN.equals(CURRENT_USER.getUserRole());\n }", "boolean isSignedIn();", "public boolean isLoggedIn()\n {\n AccessToken accessToken = AccessToken.getCurrentAccessToken();\n return (accessToken != null);\n }", "public boolean isSetRequesting_user() {\n return this.requesting_user != null;\n }", "public boolean isLoggedIn() {\n AccessToken accessToken = AccessToken.getCurrentAccessToken();\n if (accessToken == null) {\n return false;\n }\n return !accessToken.isExpired();\n }", "public boolean isCustomerLoggedIn()\r\n {\r\n return customerLoggedIn;\r\n }", "private boolean canView(final AbstractItem item) throws AccessDeniedException {\n\t\tif (item.isRssAllowed())\n\t\t\treturn true;\n\t\tList<Subscriber> subscribers = Lists.newArrayList(subscriberRepository.findAll(SubscriberPredicates.onCtx(item\n\t\t\t\t.getContextKey())));\n\t\t// TODO we consider that all items have targets directly on\n\t\t// for targets defined only on classification a check will be needed\n\t\tif (subscribers.isEmpty()) {\n\t\t\tlog.trace(\"Subscribers on item {} are empty -> true\", item.getContextKey());\n\t\t\treturn true;\n\t\t}\n\t\tfinal CustomUserDetails user = SecurityUtils.getCurrentUserDetails();\n\t\tif (user == null) {\n\t\t\tlog.trace(\"user is not authenticated -> throw an error to redirect on authentication\");\n\t\t\tthrow new AccessDeniedException(\"Access is denied to anonymous !\");\n\t\t} else if (user.getRoles().contains(AuthoritiesConstants.ADMIN)\n\t\t\t\t|| user.getUser().getLogin().equalsIgnoreCase(item.getCreatedBy().getLogin())\n\t\t\t\t|| user.getUser().getLogin().equalsIgnoreCase(item.getLastModifiedBy().getLogin())) {\n\t\t\treturn true;\n\t\t}\n\n\t\tfinal UserDTO userDTO = user.getUser();\n\t\tif (userDTO != null) {\n\t\t\tList<String> groups = null;\n\t\t\tif (userDTO.getAttributes() != null) {\n\t\t\t\tgroups = userDTO.getAttributes().get(externalUserHelper.getUserGroupAttribute());\n\t\t\t}\n\t\t\tfor (Subscriber subscriber : subscribers) {\n\t\t\t\tlog.trace(\"Check if {} is in {}\", userDTO, subscriber);\n\t\t\t\tfinal SubjectKeyExtended subject = subscriber.getSubjectCtxId().getSubject();\n\t\t\t\tswitch (subject.getKeyType()) {\n\t\t\t\tcase GROUP:\n\t\t\t\t\tif (groups == null || groups.isEmpty()) {\n\t\t\t\t\t\tlog.trace(\"The user doesn't have a group -> break loop\");\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\t// test on startWith as some groups in IsMemberOf has only a part the\n\t\t\t\t\t// real group name.\n\t\t\t\t\tfor (String val : groups) {\n\t\t\t\t\t\tif (val.startsWith(subject.getKeyValue())) {\n\t\t\t\t\t\t\tlog.trace(\"Check if the user group {} match subscriber group {} -> return true\", val,\n\t\t\t\t\t\t\t\t\tsubject.getKeyValue());\n\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase PERSON:\n\t\t\t\t\tif (subject.getKeyValue().equalsIgnoreCase(userDTO.getLogin())) {\n\t\t\t\t\t\tlog.trace(\"Check if the user key {} match subscriber key {} -> true\", userDTO.getLogin(),\n\t\t\t\t\t\t\t\tsubject.getKeyValue());\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase PERSON_ATTR:\n\t\t\t\t\tif (subject.getKeyAttribute() != null\n\t\t\t\t\t\t\t&& userDTO.getAttributes().containsKey(subject.getKeyAttribute())\n\t\t\t\t\t\t\t&& userDTO.getAttributes().get(subject.getKeyAttribute()).contains(subject.getKeyValue())) {\n\t\t\t\t\t\tlog.trace(\"Check if the user attribute {} with values {} contains value {} -> true\",\n\t\t\t\t\t\t\t\tsubject.getKeyAttribute(), userDTO.getAttributes().get(subject.getKeyAttribute()),\n\t\t\t\t\t\t\t\tsubject.getKeyValue());\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase PERSON_ATTR_REGEX:\n\t\t\t\t\tif (subject.getKeyAttribute() != null\n\t\t\t\t\t\t\t&& userDTO.getAttributes().containsKey(subject.getKeyAttribute())) {\n\t\t\t\t\t\tfor (final String value : userDTO.getAttributes().get(subject.getKeyAttribute())) {\n\t\t\t\t\t\t\tif (value.matches(subject.getKeyValue())) {\n\t\t\t\t\t\t\t\tlog.trace(\"Check if the user attribute {} with values {} match regex {} -> true\",\n\t\t\t\t\t\t\t\t\t\tsubject.getKeyAttribute(),\n\t\t\t\t\t\t\t\t\t\tuserDTO.getAttributes().get(subject.getKeyAttribute()), subject.getKeyValue());\n\t\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tthrow new IllegalStateException(\"Warning Subject Type '\" + subject.getKeyType()\n\t\t\t\t\t\t\t+ \"' is not managed\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tlog.trace(\"End of all checks -> false\");\n\t\treturn false;\n\t}", "public boolean isCurrentChannelUserBlocked() {\n\t\tTVChannel ch = mTvChannelSelector.getCurrentChannel();\n\t\tif (ch != null) {\n\t\t\treturn !ch.isBlocked();\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public boolean isUserActive(String userId) {\n\t\treturn false;\n\t}", "public static boolean vacant(Residence r) {\n\t\treturn r.tenant == null;\n\t}", "public boolean isUserApproval() {\n\n if (!ACTION_UserChoice.equals(getAction())) {\n return false;\n }\n\n return (getColumn() != null) && \"IsApproved\".equals(getColumn().getColumnName());\n\n }", "private boolean check_vicinity(FishTankItem TankItem) {\r\n if (getDirection()) {\r\n return 0 <= (TankItem.firstCoordinate - this.firstCoordinate)\r\n && (TankItem.firstCoordinate - this.firstCoordinate) <= 7;\r\n } else {\r\n return 0 <= (this.firstCoordinate - TankItem.firstCoordinate)\r\n && (this.firstCoordinate - TankItem.firstCoordinate) <= 5;\r\n }\r\n }", "@Override\n\tpublic boolean hasNext() {\n\t\treturn (currentUser >= 0 && currentUser < counter);\n\t}", "private boolean checkTrailUser(String trailUserId, String currentUserId) {\n if(trailUserId.equals(currentUserId))\n return true;\n return false;\n }", "public boolean hasStartedUserState(int userId) {\n return this.mStartedUsers.get(userId) != null;\n }", "private boolean isCurrentDataWasChanedByAnotherUser(final Monthly_report_revision monthlyReport) {\n Monthly_report_revision currentMonthlyReport = this.monthly_reportRepository.findAndRefresh(monthlyReport);\n return !StringUtils.equalsIgnoreCase(monthlyReport.getShounin_joutai(),\n currentMonthlyReport.getShounin_joutai());\n }", "public void isAllowed(String user) {\n \r\n }", "private boolean isBilancioInFaseEsercizioProvvisorio() {\n\t\tbilancioDad.setEnteEntity(req.getEnte());\n\t\treturn bilancioDad.isFaseEsercizioProvvisiorio(req.getBilancio().getAnno());\n\t}", "private void checkCarIsListed(Car user) {\r\n\r\n if (cars.containsCar(user)) {\r\n System.out.println(\"The car has been successfully listed\");\r\n } else {\r\n System.out.println(\"The car is no longer listed\");\r\n }\r\n\r\n }", "public Boolean isAuthorized(String userId);", "public boolean hasUser() {\n return user_ != null;\n }", "public boolean hasUser() {\n return user_ != null;\n }", "boolean isCollected(User user, String video_id);", "public boolean isCheckedOutByUser() {\r\n \r\n if (vocabularyFolder == null) {\r\n return false;\r\n } else {\r\n return StringUtils.isNotBlank(vocabularyFolder.getWorkingUser()) && !vocabularyFolder.isWorkingCopy()\r\n && StringUtils.equals(getUserName(), vocabularyFolder.getWorkingUser());\r\n }\r\n }", "private boolean cekUser(String user){\n return user.equals(Preferences.getRegisteredUser(getBaseContext()));\n }", "private boolean isAuthenticated(final ContainerRequestContext requestContext) {\n // Return true if the user is authenticated or false otherwise\n return requestContext.getSecurityContext().getUserPrincipal() != null;\n }", "public boolean checkAccess(HasUuid object) {\n // Allow newly-instantiated objects\n if (!wasResolved(object)) {\n return true;\n }\n // Allow anything when there are no roles in use\n if (getRoles().isEmpty()) {\n return true;\n }\n Principal principal = getPrincipal();\n // Check for superusers\n if (!principalMapper.isAccessEnforced(principal, object)) {\n return true;\n }\n\n List<PropertyPath> paths = typeContext.getPrincipalPaths(object.getClass());\n PropertyPathChecker checker = checkers.get();\n for (PropertyPath path : paths) {\n path.evaluate(object, checker);\n if (checker.getResult()) {\n return true;\n }\n }\n addWarning(object, \"User %s does not have permission to edit this %s\", principal,\n typeContext.getPayloadName(object.getClass()));\n return false;\n }", "boolean hasLoggedIn();", "public boolean checkVisibility() {\n LocalDateTime now = LocalDateTime.now();\n return (this.viewer != 0 && !now.isAfter(this.destructTime));\n }", "@Override\n public Boolean isCollegeManger(UserDTO user) {\n return user.getRoles().contains(RoleTypeEnum.COLLEGE);\n }", "@Override\n public boolean isEnabled() {\n return user.hasBeenActivated;\n }", "@Override\n protected boolean isCalledForCurrentUserLocked() {\n return true;\n }", "public void checkIfUserIsSame(){\n if(!FirebaseAuth.getInstance().getCurrentUser().getUid().equals(getIntent().getStringExtra(\"uID\"))) {\n Log.i(\"XXX\", \"passed NOT SAME USER\");\n checkIfUserIsFriend();\n }else{\n userStatus = \"same user\";\n ((RelativeLayout) findViewById(R.id.loadingPanel)).setVisibility(View.GONE);\n }\n }", "private boolean isInstructor(User user)\r\n {\r\n if (LOG.isDebugEnabled())\r\n {\r\n LOG.debug(\"isInstructor(User \" + user + \")\");\r\n }\r\n if (user != null)\r\n return SecurityService.unlock(user, \"site.upd\", getContextSiteId());\r\n else\r\n return false;\r\n }", "@XmlTransient\n\tpublic boolean isCanActivateUser() {\n\t\treturn (isSecurityAdministrator() && isSelfRegistrationEnabled());\n\t}" ]
[ "0.7342473", "0.63343406", "0.6076999", "0.607114", "0.6063747", "0.59822845", "0.5978643", "0.59436405", "0.59133303", "0.59071237", "0.5885688", "0.5876834", "0.5836471", "0.5832294", "0.58161175", "0.5778761", "0.5754729", "0.5736245", "0.5731589", "0.571834", "0.5706423", "0.5687379", "0.56752867", "0.56698793", "0.5660122", "0.5650821", "0.5646023", "0.56406075", "0.5627631", "0.56210387", "0.56165123", "0.5598798", "0.55947953", "0.5594497", "0.5580248", "0.55752045", "0.5549215", "0.55484766", "0.55484766", "0.55334103", "0.55294925", "0.55289537", "0.55176866", "0.55115646", "0.55115646", "0.55115646", "0.55115646", "0.55115646", "0.55115646", "0.55115646", "0.55086917", "0.549687", "0.5469801", "0.5468231", "0.54511523", "0.54511523", "0.54432636", "0.5439518", "0.543725", "0.5430921", "0.54199517", "0.5415916", "0.54024565", "0.54017395", "0.5401145", "0.53967893", "0.5387468", "0.538698", "0.53868246", "0.53711206", "0.53685665", "0.5358073", "0.5349713", "0.53387487", "0.53386116", "0.5336795", "0.53242344", "0.5319107", "0.53063905", "0.5299506", "0.5290206", "0.5285706", "0.5283357", "0.5282622", "0.5282418", "0.5279982", "0.527847", "0.527847", "0.52639014", "0.5258033", "0.5253034", "0.52441484", "0.5242897", "0.5238333", "0.52316546", "0.52307945", "0.52238476", "0.5223796", "0.52234674", "0.52141416", "0.5213847" ]
0.0
-1
Gets the date of vaccination of the current user.
public static String getUserPassDate() { return getUserPassDate(user); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Date getVipEnddate() {\n return vipEnddate;\n }", "public String getCurrentDate() {\n return currentDate;\n }", "Date getInvoicedDate();", "ValuationDate getValuationDate();", "public Date getVipStartdate() {\n return vipStartdate;\n }", "public Date getCurrentDate()\r\n {\r\n return (m_currentDate);\r\n }", "public CurrentDate getCurrentDate() { \n return mCurrentDate; \n }", "public String getCurrentDate() {\n return createdDate;\n }", "public String getUserDateString() {\n\t\tString[] tmpArr = this.getUserDate();\n\t\tString year = tmpArr[0];\n\t\tString month = tmpArr[1];\n\t\tString day = tmpArr[2];\n\t\tString out = year + \"/\" + month + \"/\" + day;\n\t\treturn out;\n\t}", "public String[] getUserDate() {\n\t\treturn this.userDate;\n\t}", "public java.util.Date getDateOfExamination(){\n return localDateOfExamination;\n }", "public java.util.Date getCivDate () {\n\t\treturn civDate;\n\t}", "public Date getDate() {\n return this.currentDate;\n }", "@Override\n\tpublic java.util.Date getCheckpoint() {\n\t\treturn _userSync.getCheckpoint();\n\t}", "public Date getCurrentDate() {\n\t\treturn new Date();\n\t}", "public Date getGmtLogin() {\n return gmtLogin;\n }", "public String getCurrentDate() {\n\t\t\t\tDateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yy\");\n\t\t\t\tDate date = new Date();\n\t\t\t\treturn dateFormat.format(date);\n\t\t\t}", "public String getAccessionDeaccessionToDate() {\n return accessionDeaccessionToDate;\n }", "public Date getDATE_AUTHORIZED() {\r\n return DATE_AUTHORIZED;\r\n }", "public Date getDATE_AUTHORIZED() {\r\n return DATE_AUTHORIZED;\r\n }", "public String getAccessionDeaccessionFromDate() {\n return accessionDeaccessionFromDate;\n }", "public Date generarFechaSolicitudGarantia() {\r\n return new Date();\r\n }", "public static String getCurrentDate() {\n\t\tDateFormat df = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\tDate dateobj = new Date();\n\t\treturn df.format(dateobj);\n\t}", "public String currentDate() {\n DateFormat df = new SimpleDateFormat(\"dd-MM-yyyy\");\n String date = df.format(Calendar.getInstance().getTime());\n return date;\n }", "public Date getDate_of_admission() {\r\n return date_of_admission;\r\n }", "public String getFecha_Venta() {\n return fecha_Venta;\n }", "private Date getCurrentDate() {\n return Date.from(LocalDate.now().atStartOfDay(ZoneId.systemDefault()).toInstant());\n }", "public static String getCurrentDate()\n\t{\n\t\treturn getDate(new Date());\n\t}", "@Override\n\tpublic java.util.Date getCreateDate() {\n\t\treturn _candidate.getCreateDate();\n\t}", "public Date getLoginDate() {\n return loginDate;\n }", "public Date getGmtAccept() {\n return gmtAccept;\n }", "public Viseme getCurrentViseme();", "public static Date getCurrentDate() {\n return new Date();\n }", "private String getCurrentDate() {\n DateFormat dateFormat = new SimpleDateFormat(\"yyyy/MM/dd HH:mm:ss\");\n Calendar cal = Calendar.getInstance();\n return dateFormat.format(cal.getTime());\n }", "public String Get_date() \n {\n \n return date;\n }", "@Override\n\tpublic java.util.Date getAffiliationDate() {\n\t\treturn _esfShooterAffiliationChrono.getAffiliationDate();\n\t}", "public long getCurrentUserTime() {\n return getUserTime() - startUserTimeNano;\n }", "@Override\r\n\tpublic Date getLoginDate() {\n\t\treturn null;\r\n\t}", "public int getCurrentDate() {\n\n\t\t cal = Calendar.getInstance();\n\t\treturn cal.get(Calendar.DAY_OF_MONTH);\n\t}", "public AVUser getCurrentUser() {\n return this.currentUser;\n }", "@Column(name = \"FECHA_VENCIMIENTO\")\n\t@Temporal(TemporalType.DATE)\n\tpublic Date getlFechaVencimiento() {\n\t\treturn lFechaVencimiento;\n\t}", "public Calendar getDate()\n {\n return this.dateOfCreation;\n }", "public Date getVersionDate ();", "public String getDateOfBirth(){\n return(this.dateOfBirth);\n }", "public static Date getCurrentDate() {\r\n\t\tCalendar calendar = Calendar.getInstance();\r\n\t\tjava.util.Date currentDate = calendar.getTime();\r\n\t\tDate date = new Date(currentDate.getTime());\r\n\t\treturn date;\r\n\t}", "public Date getAuditDate() {\n return auditDate;\n }", "public Date getUpddte() {\r\n return upddte;\r\n }", "public Date getCateCreated() {\n return cateCreated;\n }", "public long getDate() {\n return date;\n }", "public java.util.Calendar getLoginDate() {\r\n return loginDate;\r\n }", "public void getCurrentDate(){\n Date now = new Date(); //get todays date \n \n SimpleDateFormat formatter = new SimpleDateFormat( \"MM/dd/yyyy\" ); \n System.out.println ( \"The current date is: \" + formatter.format( now ) ); \n \n month = (String) formatter.format( now ).subSequence(0, 2);\n day = (String) formatter.format( now ).subSequence(3, 5);\n year = (String) formatter.format( now ).subSequence(6, 10);\n \n System.out.println(\"month: \" + month);\n System.out.println(\"day: \" + day);\n System.out.println(\"year: \" + year);\n \n }", "@Override\r\n\tpublic Date getApp_latest_logon_dt() {\n\t\treturn super.getApp_latest_logon_dt();\r\n\t}", "public java.time.LocalDate getFechaDeLaVisita() {\n return fechaDeLaVisita.get();\n }", "public Date getDATE_APPROVED() {\r\n return DATE_APPROVED;\r\n }", "public Date getEffectivedateFrom() {\n return (Date) getAttributeInternal(EFFECTIVEDATEFROM);\n }", "public Recordvo geUser() {\n\t\treturn new Recordvo(year, month, day, behavior) ;\n\t}", "public Date getCurDate() {\n return curDate;\n }", "public Date getAuditDate() {\n\t\treturn auditDate;\n\t}", "public Date getLoginAt() {\n return loginAt;\n }", "public Date date (){\r\n\t\t\treturn _date;\r\n\t\t}", "public long getDate() {\n return date;\n }", "public long getDate() {\n return date_;\n }", "public String getVersionDate();", "public Date date()\n\t{\n\t\treturn this.date;\n\t}", "public Date getInstdte() {\r\n return instdte;\r\n }", "public CustomDate getAuthoredDate() {\n return new CustomDate(authoredDate.getTime());\n }", "public static String getCurrentDate() {\n DateTimeFormatter dtf = DateTimeFormatter.ofPattern(\"dd/MM/yyyy\"); \n LocalDateTime now = LocalDateTime.now(); \n return dtf.format(now);\n }", "public Date getArrivalDate() ;", "public long getDate() {\n return date_;\n }", "public Date getdate() {\n\t\treturn new Date(date.getTime());\n\t}", "public Timestamp getDateAcct() {\n\t\treturn (Timestamp) get_Value(\"DateAcct\");\n\t}", "@Override\n\tpublic java.util.Date getDateOfBirth() {\n\t\treturn _candidate.getDateOfBirth();\n\t}", "@Override\n\tpublic java.lang.String getVcampo() {\n\t\treturn _esfShooterAffiliationChrono.getVcampo();\n\t}", "Date getEDate();", "@Override\n\tpublic java.util.Date getPaymentDate() {\n\t\treturn _esfShooterAffiliationChrono.getPaymentDate();\n\t}", "public Date getEXPIRY_DATE() {\r\n return EXPIRY_DATE;\r\n }", "public java.lang.String getActDate() {\r\n return localActDate;\r\n }", "Date getBirthDate();", "public Date getDateOfBirth() {\n return dateOfBirth;\n }", "public long getDate() {\n\t\treturn date;\n\t}", "public long getDate() {\n\t\treturn date;\n\t}", "public Date getBirthdate()\n {\n return birthdate;\n }", "public static Date getUserDeadline(Context context) {\n\n return new Date(context.getSharedPreferences(FILE_NAME, 0)\n .getLong(USER_DEADLINE_KEY, 0));\n }", "@Override\n public java.util.Date getRegistrationDate() {\n return _entityCustomer.getRegistrationDate();\n }", "public Date date() {\r\n\t\treturn date;\r\n\t}", "public String getDateOfBirth(){\n\t\treturn dateOfBirth;\n\t}", "public final long getAccessDateTime() {\n \treturn m_accessDate;\n }", "@Override\n\tpublic java.util.Date getCreateDate() {\n\t\treturn _esfTournament.getCreateDate();\n\t}", "public Date getDate(){\n\t\treturn date;\n\t}", "public String getPassportExpiryDate() {\n\t\treturn passportExpiryDate;\n\t}", "@Override\n\tpublic User getUserDt(int id) {\n\t\treturn userdao.getUserDt(id);\n\t}", "public Date getUseDate() {\n return DateUtils.clone(this.useDate);\n }", "public Date getCreatedate() {\r\n return createdate;\r\n }", "public Date getCreatedate() {\r\n return createdate;\r\n }", "public String getDate(){\n\t\t\n\t\treturn this.date;\n\t}", "public String getDate_of_Birth() {\n\t\treturn Date_of_Birth;\n\t}", "@Override\r\n\tpublic Date getApp_first_logon_dt() {\n\t\treturn super.getApp_first_logon_dt();\r\n\t}", "public Date getDateAccess() {\n return dateAccess;\n }", "Date getCreateDate();", "Date getCreateDate();" ]
[ "0.64652723", "0.62597764", "0.6242486", "0.6240634", "0.6226833", "0.62142485", "0.6179999", "0.6178967", "0.6170798", "0.6167882", "0.61358255", "0.61272484", "0.60529476", "0.59907234", "0.59727514", "0.59585583", "0.5957983", "0.59334743", "0.5931295", "0.5931295", "0.5919175", "0.59151584", "0.5907449", "0.58948565", "0.5889065", "0.5883436", "0.5881402", "0.5871095", "0.5861403", "0.5781217", "0.5764842", "0.57640785", "0.57446486", "0.57266665", "0.5725172", "0.5724661", "0.5714431", "0.57031965", "0.570172", "0.56775516", "0.56749135", "0.5672", "0.56459653", "0.56291497", "0.5623516", "0.5614671", "0.5611174", "0.5610693", "0.5601284", "0.5601281", "0.55997545", "0.5597346", "0.559148", "0.5590025", "0.5588335", "0.55828077", "0.5582522", "0.55714154", "0.55675197", "0.55613256", "0.55432796", "0.55412537", "0.55374944", "0.55359805", "0.5533751", "0.55315894", "0.5530997", "0.55302596", "0.5526239", "0.55204076", "0.5497782", "0.54943043", "0.54905033", "0.5487076", "0.5485186", "0.5482626", "0.54791063", "0.5475769", "0.5475736", "0.5471208", "0.5471208", "0.54585665", "0.54574007", "0.54565096", "0.5455145", "0.54512894", "0.54438484", "0.5440654", "0.54395586", "0.5439256", "0.5438347", "0.5431538", "0.5431207", "0.5431207", "0.5430898", "0.5430846", "0.5429763", "0.54296136", "0.54283094", "0.54283094" ]
0.6454112
1
Overloading method Checks if a given user is vaccinated.
public static boolean isUserPassed(String username) { if (username.equals("") || username.equals("admin")) return false; Boolean b = map.get(username); return b != null && b; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void isAllowed(String user) {\n \r\n }", "boolean hasSelectedUser();", "@Override\n\tpublic boolean isVeifyUser(Lt_User user) throws Lt_Blog_Exception {\n\t\treturn false;\n\t}", "boolean hasObjUser();", "Boolean acceptRequest(User user);", "public abstract boolean checkPolicy(User user);", "public boolean checkIfUserAllowed(String userEmail, String id){\n boolean eventVIP = getEvent(id).getVIPStatus();\n boolean userVIP = userManager.emailToVIPStatus(userEmail);\n if (!eventVIP){\n return true;\n }\n else{\n return userVIP;\n }\n }", "public static boolean isCurrentUserVendedor() {\n return UserRole.VENDEDOR.equals(CURRENT_USER.getUserRole());\n }", "@Override\r\n\tpublic boolean checkUser(User user) {\n\t\tint age = user.getAge();\r\n\t\tint height = user.getHeight();\r\n\t\tint weight = user.getWeight();\r\n\t\tString country =user.getCountry();\r\n\t\t if((age>=18 && age<=35) && (height>=155 && height<=170) && (weight>=55 && weight<=90) && country.equals(\"ProGrad\")) \r\n\t\t\t return true;\r\n\t\t else \r\n\t\t\t return false;\r\n\t }", "boolean hasUser();", "boolean hasUser();", "boolean hasUser();", "boolean hasUser();", "boolean hasUser();", "boolean hasUser();", "boolean hasUser();", "boolean hasCustomerUserAccess();", "public boolean acceptUserVerify (java.lang.String in_user_id, \n java.lang.String in_clnt_cde, \n java.lang.String in_cmpny_agt_cde, \n java.lang.String in_verify_flg, \n java.lang.String in_vrfy_desc, \n java.lang.String in_opr_cde) throws com.mcip.orb.CoException {\n return this._delegate.acceptUserVerify(in_user_id, in_clnt_cde, in_cmpny_agt_cde, \n in_verify_flg, in_vrfy_desc, in_opr_cde);\n }", "boolean hasUserInterest();", "boolean hasUserInterest();", "private void validateUserObject(User user) {\n }", "@Override\n\tpublic boolean isUser(User user) {\n\t\treturn false;\n\t}", "protected boolean isValid(AccessUser obj)\n {\n return obj != null && obj.username != null && !getMembers().contains(obj);\n }", "@Override\r\n\tpublic boolean isVerifiedUser(User user) {\n\t\tif (userDao.get(user.getId()).isVerified())\r\n\t\t\treturn true;\r\n\t\treturn false;\r\n\t}", "private void validateUserObject(User user) {\n }", "@Override\n public boolean hasAccess(User user) {\n return user.hasRole(RoleValue.APP_ADMIN) || this.equals(user.company);\n }", "private void validateUserObject(User user) {\n\t }", "boolean hasUserId();", "boolean hasUserId();", "boolean hasUserId();", "public boolean hasAccount(String user);", "private boolean verifyParameters(HttpServletRequest req, User loggedUser){\r\n\t\ttry{\r\n\t\t\tString requestedUserParam = queryStringMap.get(\"user\");\r\n\t\t\tif( requestedUserParam==null ){ return false; }\r\n\t\t\trequestedUserId = Long.parseLong( requestedUserParam );\r\n\t\t\trequestedUser = BeanUserView.getUserByIdStatic( requestedUserId );\r\n\t\t\tif( requestedUser==null ){ return false; }\r\n\t\t\telse{\r\n\t\t\t\tif( requestedUser.getRemoved() ){ return false; }\r\n\t\t\t\telse{ return true; }\r\n\t\t\t}\r\n\t\t} catch( NumberFormatException nfe ){\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "boolean hasUserID();", "boolean hasUserID();", "boolean hasUserID();", "boolean hasUserID();", "boolean hasUserID();", "boolean hasUserID();", "boolean hasUserID();", "boolean hasUserID();", "boolean hasUserID();", "boolean hasUserID();", "boolean hasUserID();", "boolean hasUserID();", "boolean hasUserID();", "boolean hasUserID();", "boolean hasUserID();", "boolean hasUserID();", "boolean hasUserID();", "boolean hasUserID();", "public void verifyUser() {\n\t\toutMessage.setAction(1);\n\t\toutMessage.setObject(this.getUser());\n\t\tmodelCtrl.sendServerMessage(outMessage);\n\t\tinMessage = modelCtrl.getServerResponse();\n\t\t//user is verified\n\t\tif (inMessage.getAction() == 1) {\n\t\t\taccept();\n\t\t}\n\t\t//user is not verified, return to start\n\t\telse {\n\t\t\tSystem.out.println(\"User is not verified\");\n\t\t\tdeny();\n\t\t\t\n\t\t}\n\t}", "private Boolean canUserValidate() throws ServeurException, ClientException {\n // Direct on/off line\n return checkValidatePermission();\n }", "@Override\n public boolean test(User user) {\n return user.getPoints() > 160;\n }", "public Boolean ins(User user);", "public Boolean isAuthorized(String userId);", "public boolean testUser(){\n VallidateUserName validator = new VallidateUserName();\n return validator.isValidUser(UserName);\n }", "Boolean accountIsActivated(Integer userId);", "public boolean basicEligibilityCheck(User user) {\n\t\tif(checkUser( user)) \r\n\t\t\treturn true;\r\n\t\telse \r\n\t\t\treturn false;\r\n\t\t\r\n\t\t\r\n\t}", "private boolean isUserSatisfyParameters(User user) {\n switch (this.CommunityType) {\n case SwissArmyKnife.SUBSCRIPTIONS:\n return SwissArmyKnife.MAX_SUBSCRIPTIONS_PER_USER > user.getFriendsCount();\n\n case SwissArmyKnife.LIKES:\n return SwissArmyKnife.MAX_LIKES_PER_USER > user.getFavouritesCount();\n\n case SwissArmyKnife.HASHTAGS:\n return false;\n\n case SwissArmyKnife.COMMENTS:\n return false;\n\n case SwissArmyKnife.Geolocalisation:\n return user.isGeoEnabled();\n }\n\n return false;\n }", "boolean hasUserManaged();", "private boolean cekUser(String user){\n return user.equals(Preferences.getRegisteredUser(getBaseContext()));\n }", "@Override\n public Boolean isCollegeManger(UserDTO user) {\n return user.getRoles().contains(RoleTypeEnum.COLLEGE);\n }", "public boolean checkUser(User userobj)\n\t\t{\n\t\t\tCursor c = getUser();\n\t\t\tif(c!=null){\n\t\t\t\tc.moveToFirst();\n\t\t\t\tdo{\n\t\t\t\tif(userobj.getUserName().equalsIgnoreCase(c.getString(1))&& userobj.getPassword().equalsIgnoreCase(c.getString(2)))\n\t\t\t\t{\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t}while(c.moveToNext());\n\t\t\t}\n\t\t\treturn false;\n\t\t}", "private boolean canView(final AbstractItem item) throws AccessDeniedException {\n\t\tif (item.isRssAllowed())\n\t\t\treturn true;\n\t\tList<Subscriber> subscribers = Lists.newArrayList(subscriberRepository.findAll(SubscriberPredicates.onCtx(item\n\t\t\t\t.getContextKey())));\n\t\t// TODO we consider that all items have targets directly on\n\t\t// for targets defined only on classification a check will be needed\n\t\tif (subscribers.isEmpty()) {\n\t\t\tlog.trace(\"Subscribers on item {} are empty -> true\", item.getContextKey());\n\t\t\treturn true;\n\t\t}\n\t\tfinal CustomUserDetails user = SecurityUtils.getCurrentUserDetails();\n\t\tif (user == null) {\n\t\t\tlog.trace(\"user is not authenticated -> throw an error to redirect on authentication\");\n\t\t\tthrow new AccessDeniedException(\"Access is denied to anonymous !\");\n\t\t} else if (user.getRoles().contains(AuthoritiesConstants.ADMIN)\n\t\t\t\t|| user.getUser().getLogin().equalsIgnoreCase(item.getCreatedBy().getLogin())\n\t\t\t\t|| user.getUser().getLogin().equalsIgnoreCase(item.getLastModifiedBy().getLogin())) {\n\t\t\treturn true;\n\t\t}\n\n\t\tfinal UserDTO userDTO = user.getUser();\n\t\tif (userDTO != null) {\n\t\t\tList<String> groups = null;\n\t\t\tif (userDTO.getAttributes() != null) {\n\t\t\t\tgroups = userDTO.getAttributes().get(externalUserHelper.getUserGroupAttribute());\n\t\t\t}\n\t\t\tfor (Subscriber subscriber : subscribers) {\n\t\t\t\tlog.trace(\"Check if {} is in {}\", userDTO, subscriber);\n\t\t\t\tfinal SubjectKeyExtended subject = subscriber.getSubjectCtxId().getSubject();\n\t\t\t\tswitch (subject.getKeyType()) {\n\t\t\t\tcase GROUP:\n\t\t\t\t\tif (groups == null || groups.isEmpty()) {\n\t\t\t\t\t\tlog.trace(\"The user doesn't have a group -> break loop\");\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\t// test on startWith as some groups in IsMemberOf has only a part the\n\t\t\t\t\t// real group name.\n\t\t\t\t\tfor (String val : groups) {\n\t\t\t\t\t\tif (val.startsWith(subject.getKeyValue())) {\n\t\t\t\t\t\t\tlog.trace(\"Check if the user group {} match subscriber group {} -> return true\", val,\n\t\t\t\t\t\t\t\t\tsubject.getKeyValue());\n\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase PERSON:\n\t\t\t\t\tif (subject.getKeyValue().equalsIgnoreCase(userDTO.getLogin())) {\n\t\t\t\t\t\tlog.trace(\"Check if the user key {} match subscriber key {} -> true\", userDTO.getLogin(),\n\t\t\t\t\t\t\t\tsubject.getKeyValue());\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase PERSON_ATTR:\n\t\t\t\t\tif (subject.getKeyAttribute() != null\n\t\t\t\t\t\t\t&& userDTO.getAttributes().containsKey(subject.getKeyAttribute())\n\t\t\t\t\t\t\t&& userDTO.getAttributes().get(subject.getKeyAttribute()).contains(subject.getKeyValue())) {\n\t\t\t\t\t\tlog.trace(\"Check if the user attribute {} with values {} contains value {} -> true\",\n\t\t\t\t\t\t\t\tsubject.getKeyAttribute(), userDTO.getAttributes().get(subject.getKeyAttribute()),\n\t\t\t\t\t\t\t\tsubject.getKeyValue());\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase PERSON_ATTR_REGEX:\n\t\t\t\t\tif (subject.getKeyAttribute() != null\n\t\t\t\t\t\t\t&& userDTO.getAttributes().containsKey(subject.getKeyAttribute())) {\n\t\t\t\t\t\tfor (final String value : userDTO.getAttributes().get(subject.getKeyAttribute())) {\n\t\t\t\t\t\t\tif (value.matches(subject.getKeyValue())) {\n\t\t\t\t\t\t\t\tlog.trace(\"Check if the user attribute {} with values {} match regex {} -> true\",\n\t\t\t\t\t\t\t\t\t\tsubject.getKeyAttribute(),\n\t\t\t\t\t\t\t\t\t\tuserDTO.getAttributes().get(subject.getKeyAttribute()), subject.getKeyValue());\n\t\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tthrow new IllegalStateException(\"Warning Subject Type '\" + subject.getKeyType()\n\t\t\t\t\t\t\t+ \"' is not managed\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tlog.trace(\"End of all checks -> false\");\n\t\treturn false;\n\t}", "boolean hasUserType();", "public boolean hasUser(){\n return numUser < MAX_USER;\n }", "boolean blockUser(User user);", "protected boolean isDiffUser() {\r\n\t\tString profileIdVap = \"\";\r\n\r\n\t\t// Retrieve current user and its profile ID from session\r\n\t\tUser currentUser = SessionUtils.getCurrentUser(request.getSession());\r\n\t\tif (currentUser.getProperty(AuthenticationConsts.PROPERTY_PROFILE_ID) != null) {\r\n\t\t\tprofileIdVap = (String)currentUser.getProperty(AuthenticationConsts.PROPERTY_PROFILE_ID);\r\n\r\n\t\t}\r\n\t\t// If profile ID is different, return true\r\n\t\tif (!profileIdVap.equals(userProfile.get(AuthenticationConsts.KEY_PROFILE_ID))) {\r\n\t\t\tif (LOG.willLogAtLevel(LogConfiguration.DEBUG)) {\r\n\t\t\t\tLOG.debug(String.format(\"profile_id_vap: %s; profileid: %s; userId: %s\",\r\n\t\t\t\t\t\t profileIdVap,\r\n\t\t\t\t\t\t userProfile.get(AuthenticationConsts.KEY_PROFILE_ID),\r\n\t\t\t\t\t\t userProfile.get(AuthenticationConsts.KEY_USER_NAME)));\r\n\t\t\t}\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\tif (LOG.willLogAtLevel(LogConfiguration.DEBUG)) {\r\n\t\t\tLOG.debug(String.format(\"same user in session, profileid: %s; userid: %s\",\r\n\t\t\t\t\t\tprofileIdVap,\r\n\t\t\t\t\t\tuserProfile.get(AuthenticationConsts.KEY_USER_NAME)));\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public boolean upadte(User user);", "boolean isAuthorized(SiteUser user, Long transmissionId);", "boolean hasCustomerUserAccessInvitation();", "public boolean isActiveUser() {\r\n if (currentProcessInstance == null)\r\n return false;\r\n \r\n String[] states = currentProcessInstance.getActiveStates();\r\n if (states == null)\r\n return false;\r\n \r\n Actor[] users;\r\n for (int i = 0; i < states.length; i++) {\r\n try {\r\n users = currentProcessInstance.getWorkingUsers(states[i]);\r\n for (int j = 0; j < users.length; j++) {\r\n if (getUserId().equals(users[j].getUser().getUserId()))\r\n return true;\r\n }\r\n } catch (WorkflowException ignored) {\r\n // ignore unknown state\r\n continue;\r\n }\r\n }\r\n \r\n return false;\r\n }", "protected abstract boolean isForUser(@NonNull K key, int userId);", "public boolean isUserLoggedIn();", "private boolean isNotCurrentUser(User user) {\n if (user.getEmail().equals(mEncodedEmail)) {\n /* Toast appropriate error message if the user is trying to add themselves */\n Toast.makeText(mActivity,\n mActivity.getResources().getString(R.string.toast_you_cant_add_yourself),\n Toast.LENGTH_LONG).show();\n return false;\n }\n return true;\n }", "public VotoRespuesta vota(Usuario user, Respuesta resp, boolean up) throws PrivilegioInsuficienteException;", "private boolean isUserActivated(DUsers user) {\n return isUserWithMoreHits(user, 30);\n }", "private boolean checkTrailUser(String trailUserId, String currentUserId) {\n if(trailUserId.equals(currentUserId))\n return true;\n return false;\n }", "public User userExist(User user);", "public boolean isUser()\n\t{\n\t\treturn (id != -1);\n\t}", "private Boolean isValid(User user){\n Boolean result = false;\n if (user != null && loginService.validate(user.getUserName()) != null && user.getUserRole().equals(\"admin\"))\n result = true;\n return result;\n }", "public static boolean isUserPassed() {\n return isUserPassed(user);\n }", "public boolean isUser(String userName) throws Exception;", "public abstract boolean checkUser(String username);", "@Override\n\tpublic String checkPermision(String user, String userType) {\n\t\treturn null;\n\t}", "private void validateLoginUser() {\n\t\tUser user = userDao.getByPin(et_password.getText().toString());\n\t\tSession.setDriver(user);\n\n\t\tif (user.getWorkStatus().equals(User.STATUS_INACTIVE)) {\n\n\t\t\tdoLogin();\n\t\t} else {\n\t\t\tString locAt = \"\";\n\t\t\tif (user.getWorkStatus().equals(User.STATUS_IN_VEHICLE)) {\n\t\t\t\tVehiclesDao dao = new VehiclesDao();\n\t\t\t\tlocAt = dao.getById(user.getCurrentVehicleId()).getName();\n\t\t\t} else {\n\t\t\t\tServiceLocationDao dao = new ServiceLocationDao();\n\t\t\t\tlocAt = dao.getById(user.getCurrentServiceLocationId()).getName();\n\t\t\t}\n\t\t\tString msg = \"You are currently marked as \" + user.getWorkStatus() + \" at \" + locAt + \" since \" + user.getWorkStatusDate()\n\t\t\t\t\t+ \"\\n\" + \"Do you want to continue and override this status?\";\n\t\t\tAlertDialog.Builder alert_box = new AlertDialog.Builder(this);\n\t\t\talert_box.setIcon(R.drawable.icon);\n\t\t\talert_box.setMessage(msg);\n\t\t\talert_box.setPositiveButton(\"YES\", new DialogInterface.OnClickListener() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\tdoPunchOut(et_password.getText().toString());\n\t\t\t\t\tdoLogin();\n\t\t\t\t\tdialog.dismiss();\n\t\t\t\t}\n\t\t\t});\n\t\t\talert_box.setNeutralButton(\"NO\", new DialogInterface.OnClickListener() {\n\t\t\t\t@Override\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\tdialog.dismiss();\n\t\t\t\t}\n\t\t\t});\n\n\t\t\talert_box.show();\n\t\t}\n\t}", "boolean isEligible(@Nonnull Urn userUrn, @Nonnull RecommendationRequestContext requestContext);", "@Override\n public Boolean isGradeManger(UserDTO user) {\n return user.getRoles().contains(RoleTypeEnum.GRADE);\n }", "private boolean isLoggedInUser(){\n return true;\n }", "public void checkIfUserIsSame(){\n if(!FirebaseAuth.getInstance().getCurrentUser().getUid().equals(getIntent().getStringExtra(\"uID\"))) {\n Log.i(\"XXX\", \"passed NOT SAME USER\");\n checkIfUserIsFriend();\n }else{\n userStatus = \"same user\";\n ((RelativeLayout) findViewById(R.id.loadingPanel)).setVisibility(View.GONE);\n }\n }", "public boolean isCurrentUserAdmin(){\n if (getAdminUserFromId(currentUserId)!=null){\n return true;\n }\n else{\n return false;\n }\n }", "private void checkLoggedUser(){\n if (IsUserSignedIn()) {\n progressBar.setVisibility(View.VISIBLE);\n FirebaseUser currentUser = FirebaseAuth.getInstance().getCurrentUser();\n if(currentUser == null) return;\n\n FirebaseDatabase database = FirebaseDatabase.getInstance();\n String email = currentUser.getEmail().replaceAll(\"[@.]\",\"\");;\n DatabaseReference reference = database.getReference(\"/users/\" + email);\n reference.addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n User user = dataSnapshot.getValue(User.class);\n UserType userType = user.getType();\n progressBar.setVisibility(View.GONE);\n if(userType.equals(UserType.Coach)){\n startActivity(new Intent(LoginActivity.this, MainCoachActivity.class));\n }\n else {\n startActivity(new Intent(LoginActivity.this, MainPlayerActivity.class));\n }\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n\n }\n });\n }\n }", "private void checkCarIsListed(Car user) {\r\n\r\n if (cars.containsCar(user)) {\r\n System.out.println(\"The car has been successfully listed\");\r\n } else {\r\n System.out.println(\"The car is no longer listed\");\r\n }\r\n\r\n }", "@Transactional\n\tpublic Boolean getViewAuthorization(String username)\n\t{ \n\t\tint accno;\n\t\ttry\n\t\t{\n\t\t\taccno = (accountManagerService.getUserAccountForUserName(username)).getAccountno();\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\treturn null;\n\t\t}\n\t\tTransactions t = transactionsDAO.findViewableOrNot(accno);\n\t\tif(t==null)\n\t\t\treturn false;\n\t\t//else if(t.getStatus()==2&&(t.getTransactionTypes().equals(\"TR_VIEW\")&&t.getApprovalNeeded()==1))\n\t\t//return true;\n\t\telse \n\t\t\treturn true;\n\t}", "boolean isUser(String username);", "boolean isAllInview();", "public boolean isVtkUser( ) {\n\t\treturn chomboSolverSpec != null;\n\t}", "@Override\n\tpublic Boolean vota(String listaElettorale) {\n\t\t//definisco utente registato in questo momento\n\t\tString userVotante = autenticazioneServizio.getUsername();\n\t\tVoto voto = new Voto(userVotante, listaElettorale);\n\t\taggiungiVoto(voto);\n\t\t//controlla se l'user ha già votato\n\t\taggiungiVoto(voto);\n\t\treturn true;\n//\t\tif (verificaVotoValido(userVotante)) {\n//\t\t\t//vota\n//\t\t\taggiungiVoto(voto);\n//\t\t\t\n//\t\t\treturn true;\n//\t\t} else {\n//\t\t\treturn false;\n//\t\t}\n\t}", "public boolean checkAccess(HasUuid object) {\n // Allow newly-instantiated objects\n if (!wasResolved(object)) {\n return true;\n }\n // Allow anything when there are no roles in use\n if (getRoles().isEmpty()) {\n return true;\n }\n Principal principal = getPrincipal();\n // Check for superusers\n if (!principalMapper.isAccessEnforced(principal, object)) {\n return true;\n }\n\n List<PropertyPath> paths = typeContext.getPrincipalPaths(object.getClass());\n PropertyPathChecker checker = checkers.get();\n for (PropertyPath path : paths) {\n path.evaluate(object, checker);\n if (checker.getResult()) {\n return true;\n }\n }\n addWarning(object, \"User %s does not have permission to edit this %s\", principal,\n typeContext.getPayloadName(object.getClass()));\n return false;\n }", "@Override\n public boolean isUser() {\n return false;\n }", "public boolean checkAccessTemp(String user, String role, String obj,String op){\n\t\t\n\t\t/*Integer object = values.get(5).get(obj);\n\t\tInteger operation = values.get(3).get(op);\n\t\tInteger session = values.get(4).get(s);*/\n\t\t\n\t\tHashMap<Integer,Integer> elements = new HashMap<Integer,Integer>();\n\t\telements.put(1,values.get(1).get(user));\n\t\telements.put(2,values.get(2).get(role));\n\t\telements.put(3,values.get(3).get(op));\n\t\telements.put(5, values.get(5).get(obj));\n\n\t\t\n\t\t//elements.put(4, values.get(4).get(s));\n\t\t\n\t\tif (authGraph.dfsWalkEdges(authGraph.getRoot(), elements)) return true;\n\t\telse return false;\n\t\t\n\t\t//CHECK ACCESS MUST HANDLE THE INHERITANCE PROPERLY.........\n\t\t//MEANING IF THERE IS A SPECIAL EDGE BETWEEN TWO ROLES THEN PASS IT WITHOUT CONSUMING THE PATH VALUES....\n\t}" ]
[ "0.67088175", "0.659521", "0.6436321", "0.6403364", "0.63564104", "0.6299716", "0.62991816", "0.62623966", "0.6200739", "0.6148143", "0.6148143", "0.6148143", "0.6148143", "0.6148143", "0.6148143", "0.6148143", "0.6134188", "0.60737145", "0.6034111", "0.6034111", "0.59984916", "0.59887147", "0.59769154", "0.59765816", "0.5971848", "0.5970522", "0.5955836", "0.5946003", "0.5946003", "0.5946003", "0.59359086", "0.58929396", "0.5891745", "0.5891745", "0.5891745", "0.5891745", "0.5891745", "0.5891745", "0.5891745", "0.5891745", "0.5891745", "0.5891745", "0.5891745", "0.5891745", "0.5891745", "0.5891745", "0.5891745", "0.5891745", "0.5891745", "0.5891745", "0.58862466", "0.58856446", "0.58783066", "0.5843973", "0.58225554", "0.5820679", "0.578777", "0.57532394", "0.57402134", "0.57347345", "0.5719947", "0.57012856", "0.57010585", "0.5700696", "0.5699895", "0.56905967", "0.5680762", "0.5674955", "0.56725466", "0.56725234", "0.56687975", "0.5650722", "0.563381", "0.5631592", "0.56302553", "0.5626851", "0.5626252", "0.56048983", "0.55887234", "0.55833906", "0.5582839", "0.5578526", "0.55765325", "0.55609965", "0.55546993", "0.5553938", "0.5550006", "0.55486804", "0.55406296", "0.5531765", "0.55288637", "0.5509346", "0.55044687", "0.5501542", "0.54929805", "0.54901326", "0.54897356", "0.54744816", "0.54657793", "0.5464259", "0.54633474" ]
0.0
-1
Overloading method Gets the date of vaccination of a given user.
public static String getUserPassDate(String username) { if (username.equals("")) return ""; String s = dateMap.get(username); return (s != null) ? s : ""; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "ValuationDate getValuationDate();", "@Override\n\tpublic User getUserDt(int id) {\n\t\treturn userdao.getUserDt(id);\n\t}", "Date getInvoicedDate();", "public String[] getUserDate() {\n\t\treturn this.userDate;\n\t}", "public static String getUserPassDate() {\n return getUserPassDate(user);\n }", "public String getUserDateString() {\n\t\tString[] tmpArr = this.getUserDate();\n\t\tString year = tmpArr[0];\n\t\tString month = tmpArr[1];\n\t\tString day = tmpArr[2];\n\t\tString out = year + \"/\" + month + \"/\" + day;\n\t\treturn out;\n\t}", "public Date GetDate();", "public Date getVersionDate ();", "public Date getBirthDate();", "Date getBirthDate();", "public Recordvo geUser() {\n\t\treturn new Recordvo(year, month, day, behavior) ;\n\t}", "public Date getCreateDate();", "public Date getCreateDate();", "public Date getCreateDate();", "Date getCreateDate();", "Date getCreateDate();", "public String Get_date() \n {\n \n return date;\n }", "@Override\n\tpublic void Recive(User user, Date logDate) throws ServiceException {\n\n\t}", "public Date getGioBatDau();", "public Date getSelectDate();", "public Date getFechaInclusion()\r\n/* 150: */ {\r\n/* 151:170 */ return this.fechaInclusion;\r\n/* 152: */ }", "public Date getBirthday();", "Date getForDate();", "public Date getVipStartdate() {\n return vipStartdate;\n }", "@Override\n\tpublic java.util.Date getCreateDate() {\n\t\treturn _candidate.getCreateDate();\n\t}", "public java.util.Date getDateOfExamination(){\n return localDateOfExamination;\n }", "public String getReturnDate();", "public DateInfo getDate() {\r\n\t\treturn new DateInfo(super.getDate());\r\n\t\t//return new DateInfo(maturityDate);\r\n\t}", "public Date getBirthdate()\n {\n return birthdate;\n }", "public Date getBirthdate()\n {\n return birthdate;\n }", "public Date getFechaDesde()\r\n/* 164: */ {\r\n/* 165:283 */ return this.fechaDesde;\r\n/* 166: */ }", "@Override\n\tpublic Date getCreateDate();", "@Override\n\tpublic Date getCreateDate();", "public Voter getVoter(int birthdate) {\r\n\r\n // Creating a valid date first.\r\n Date formatDate;\r\n \r\n if (createDate(birthdate) != null) {\r\n formatDate = createDate(birthdate); // formats the int birthdate into type date\r\n } else {\r\n formatDate = null;\r\n }\r\n // When it's incorrectly parsed.\r\n if (formatDate == null)\r\n return null;\r\n \r\n try {\r\n traverseRBT(voterDatabase.root, formatDate);\r\n }\r\n catch(NoSuchElementException e) {\r\n \r\n }\r\n return traverseRBT(voterDatabase.root, formatDate); //return the voter when looking through the entire tree for it\r\n }", "public Date getVipEnddate() {\n return vipEnddate;\n }", "public String getDateOfBirth(){\n return(this.dateOfBirth);\n }", "public String getVersionDate();", "public Date getArrivalDate() ;", "public int getDate(){\n return date;\n }", "Date getEDate();", "public interface IGetDate {\r\n void getDate(long date,View view);\r\n}", "@Override\n\tpublic Integer getFactDateNull(String userName) {\n\t\treturn dao.getFactDateNull(userName);\n\t}", "@Override\n\tpublic Calendar getDate(){\n\t\treturn date;\n\t}", "@Override\n public String getDateofBirth() {\n return this.DateofBirth;\n\n }", "@Override\n public Date getDate() {\n return date;\n }", "public String getDate(){\n return date;\n }", "@Override\n\tpublic List<Integer> usersDate(String fecha) {\n\t\treturn controlA.usersDate(fecha);\n\t}", "public String getFecha_Venta() {\n return fecha_Venta;\n }", "public Date getBirthdate() {\r\n return birthdate;\r\n }", "Date getFechaNacimiento();", "public Date getBirthdate() {\n return birthdate;\n }", "Date getCreatedDate();", "public Date date (){\r\n\t\t\treturn _date;\r\n\t\t}", "public Date getCreateDate()\r\n/* */ {\r\n/* 158 */ return this.createDate;\r\n/* */ }", "Date getDateRDV() {\n return this.dateRDV;\n }", "public Date getDate(){\n\t\treturn date;\n\t}", "public Date getFechaHasta()\r\n/* 174: */ {\r\n/* 175:302 */ return this.fechaHasta;\r\n/* 176: */ }", "protected Date getReturnDate() \t{ return this.returnDate; }", "@Override\r\n\tpublic Date getLoginDate() {\n\t\treturn null;\r\n\t}", "public String getDate(){\n\n return this.date;\n }", "public Date getBirth_date() {\n return birth_date;\n }", "public Date getCreatedDate();", "public String getDate(){\n return date;\n }", "public Date getCreateDate() { return this.createDate; }", "@Override\n public java.util.Date getCreateDate() {\n return _partido.getCreateDate();\n }", "public void myFunction(Vendeur v) {\n \n \n \n String dateFromDB = v.getDate_naissance();\n int year=Integer.parseInt(dateFromDB.split(\"-\")[0]); \n int mounth=Integer.parseInt(dateFromDB.split(\"-\")[1]); \n int day=Integer.parseInt(dateFromDB.split(\"-\")[2]); \n \n id.setText(String.valueOf(v.getId()));\n nom.setText(v.getNom());\n prenom.setText(v.getPrenom());\n datedenaissance.setValue(LocalDate.of(year, mounth, mounth));\n sexe.getSelectionModel().select(v.getSexe());\n adresse.setText(v.getAdresse());\n ville.setText(v.getVille());\n zip.setText(String.valueOf(v.getZip()));\n email.setText(v.getEmail());\n cemail.setText(v.getEmail());\n password.setText(v.getMdp());\n cpassword.setText(v.getMdp());\n numerodetelephone.setText(v.getNt());\n situationfiscal.getSelectionModel().select(v.getSexe());\n rib.setText(v.getNumero_bancaire());\n eemail=v.getEmail();\n \n \n \n \n }", "Date getDate();", "Date getDate();", "Date getDate();", "@Override\n\tpublic java.util.Date getAffiliationDate() {\n\t\treturn _esfShooterAffiliationChrono.getAffiliationDate();\n\t}", "@Override\n\tpublic Date getCreateDate() {\n\t\treturn _second.getCreateDate();\n\t}", "List<Venta1> consultarVentaPorFecha(Date desde, Date hasta, Persona cliente) throws Exception;", "public java.util.Date getCivDate () {\n\t\treturn civDate;\n\t}", "Date getRequestedAt();", "public Date getSelectedDate();", "public Date getDate_of_admission() {\r\n return date_of_admission;\r\n }", "public Date getDate()\n {\n return date;\n }", "@Override\n\tpublic Date getStatusDate();", "@Override\n\tpublic void setDates(User user, Book book) {\n\t\t\n\t\treservationDate = new Date();\n\t\trestituteDate = new Date();\n\t\tcal = Calendar.getInstance();\n\t\tcal.setTime(restituteDate);\n\t\tcal.add(Calendar.DATE, 14);\n\t\trestituteDate = cal.getTime();\n\t\t\n\t\tformat = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\treservDate = format.format(reservationDate);\n\t\trestDate = format.format(restituteDate);\n\t\t\n\t\trdDAO.setDates(user.getId(), book.getId(), reservDate, restDate);\n\t\t\n\t\t\n\t}", "@Override\n\tpublic java.util.Date getDateOfBirth() {\n\t\treturn _candidate.getDateOfBirth();\n\t}", "public Calendar getDate()\n {\n return this.dateOfCreation;\n }", "public Date getDateOfBirth() {\n return dateOfBirth;\n }", "@Test\n public void testGetDateCreated() throws ParseException {\n System.out.println(\"getDateCreated Test (Passing value)\");\n Date expResult = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\").parse(\"1955-11-05 06:00:00\");\n Date result = user.getDateCreated();\n // Check for and print any violations of validation annotations\n Set<ConstraintViolation<User>> violations = validator.validate(user);\n String message =\n violations.iterator().hasNext() ? violations.iterator().next().getMessage() : \"\";\n if (!violations.isEmpty()) {\n System.out.println(\"Violation caught: \" + message);\n }\n // Test method\n assertEquals(expResult, result);\n }", "public Date getDate()\n {\n return this.date;\n }", "public int getDate() {\n return date ;\n }", "public Timestamp getDateAcct();", "public Timestamp getDateAcct();", "public Date getFechaNacimiento()\r\n/* 133: */ {\r\n/* 134:242 */ return this.fechaNacimiento;\r\n/* 135: */ }", "Date getCreationDate();", "public Date getDepartureDate();", "public Date date()\n\t{\n\t\treturn this.date;\n\t}", "public String getAccessionDeaccessionFromDate() {\n return accessionDeaccessionFromDate;\n }", "public void datePicker(View v){\n\n final Calendar nace = Calendar.getInstance();\n dia = nace.get(Calendar.DAY_OF_MONTH);\n mes = nace.get(Calendar.MONTH);\n anio = nace.get(Calendar.YEAR);\n\n DatePickerDialog datePickerDialog = new DatePickerDialog(this, new DatePickerDialog.OnDateSetListener() {\n @Override\n public void onDateSet(DatePicker view, int year, int month, int dayOfMonth) {\n //mostraremos la fecha que selecciona el usuario en nuestro TextView\n editNace.setText(dayOfMonth + \"/\" + (month+1) + \"/\" + year);\n }\n }, dia, mes, anio);\n\n datePickerDialog.show();\n }", "public Date getDateCreated();", "public String getAccessionDeaccessionToDate() {\n return accessionDeaccessionToDate;\n }", "@Override\n\tpublic Date getCreateDate() {\n\t\treturn model.getCreateDate();\n\t}", "@Override\n\tpublic Date getCreateDate() {\n\t\treturn model.getCreateDate();\n\t}", "@Override\n\tpublic Date getCreateDate() {\n\t\treturn model.getCreateDate();\n\t}", "public String getLeavingDate();", "@Override\n public void setUserTimestamp(Date date) {\n }", "public abstract java.lang.String getFecha_inicio();" ]
[ "0.61710614", "0.61705697", "0.60905445", "0.6084104", "0.6077789", "0.5969678", "0.5964258", "0.5935191", "0.5915137", "0.5861635", "0.5834715", "0.5817447", "0.5817447", "0.5817447", "0.5789166", "0.5789166", "0.57796943", "0.5761285", "0.57563746", "0.57508904", "0.574038", "0.57370424", "0.57215196", "0.5694267", "0.56919867", "0.5682412", "0.5682068", "0.56624794", "0.56537485", "0.5644022", "0.5643563", "0.5637114", "0.5637114", "0.5634354", "0.5627191", "0.5604097", "0.55966914", "0.5578052", "0.5557012", "0.5553247", "0.55232", "0.5508458", "0.55019736", "0.55018073", "0.5490255", "0.5486349", "0.54836863", "0.5481655", "0.54747", "0.5468765", "0.54616493", "0.545931", "0.54540783", "0.5450734", "0.5443279", "0.5442469", "0.5439947", "0.54397064", "0.5438088", "0.5433273", "0.5429761", "0.5429649", "0.54255193", "0.5422037", "0.5418853", "0.5407394", "0.53880817", "0.53880817", "0.53880817", "0.53848565", "0.5384114", "0.53840387", "0.5383606", "0.53777975", "0.5372151", "0.53709465", "0.5369717", "0.53691906", "0.5366063", "0.5358226", "0.53543544", "0.5351987", "0.5347781", "0.5342244", "0.53391105", "0.5336695", "0.5336695", "0.5336663", "0.53314894", "0.53314865", "0.5330085", "0.53238314", "0.53221756", "0.53201073", "0.5318605", "0.53185785", "0.53185785", "0.53185785", "0.53172255", "0.53140724", "0.531099" ]
0.0
-1
Setter for whether the current user has been vaccinated.
public static void setUserPassed(boolean passed, @Nullable Context context) { Account.passed = passed; // if logging out, there is no need to update the map or database if (user.equals("")) return; map.put(user, passed); // also update the database try { String date = (new SimpleDateFormat("dd/MM/yyyy", Locale.ENGLISH)).format(new Date()); // 3 fields to store in database: // 1. username NRIC (String) // 2. whether the user has GREEN PASS (boolean) // 3. display date of vaccination (String) String string = user + "," + passed + "," + date; File.overwriteLine("vaccine.txt", context, string, user, ","); } catch (IOException e) { e.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isCurrentUserCanChangeAccountStatus() {\r\n return currentUserCanChangeAccountStatus;\r\n }", "public static boolean isCurrentUserVendedor() {\n return UserRole.VENDEDOR.equals(CURRENT_USER.getUserRole());\n }", "public void setCurrentUser(AVUser aVUser) {\n this.currentUser = aVUser;\n }", "public void setHasVacuum(boolean value){this.hasVacuum = value;}", "void setHasLoggedIn(Boolean value);", "private void observeIsUserLoggedInLiveData() {\n viewModel.getIsUserLoggedInLiveData()\n .observe(this, loggedInStatus -> isUserLoggedIn = loggedInStatus);\n }", "public void setAchieved(Boolean newValue);", "public void flagUser() {\n\t\tsuper.flagUser();\n\t}", "public void assignAuthorisedUser(final boolean val) {\n authorisedUser = val;\n }", "public boolean setVibrate() {\n boolean isVibrate = checkVibrate();\n editor.putBoolean(Constans.KeyPreference.TURN_VIBRATE, !isVibrate);\n editor.commit();\n return !isVibrate;\n }", "public void setUserLogStatus(boolean bValue){\n /*SharedPreferences sharedPreferences = _context.getSharedPreferences(APP_PREFERENCES, PRIVATE_MODE);\n SharedPreferences.Editor editor;\n editor = sharedPreferences.edit();*/\n editor.putBoolean(IS_LOGGED_IN, bValue);\n editor.apply();\n }", "public void setCurrentUserCanChangeAccountStatus(boolean currentUserCanChangeRole) {\r\n currentUserCanChangeAccountStatus = currentUserCanChangeRole;\r\n }", "void setInvoiced(boolean invoiced);", "@Override\n public boolean isEnabled() {\n return user.hasBeenActivated;\n }", "public void setV(boolean v) {\n\tthis.v = v;\n }", "public void setEditAuthUserApprover(final boolean val) {\n editAuthUserType |= UserAuth.approverUser;\n }", "@Override\r\n\tpublic boolean updateUser() {\n\t\treturn false;\r\n\t}", "public void setCurrentUserPremium() {\n\t\tcurrentUser.setPremium(true);\n\t\tuserCatalog.modifyUser(currentUser);\n\t}", "public void setCurrUser(User currUser) {\n this.currUser = currUser;\n }", "@Override\n\tpublic boolean estaVivo() {\n\t\treturn estadoVida;\t\t\n\t}", "public boolean isSetUser() {\n return this.user != null;\n }", "public boolean isSetUser() {\n return this.user != null;\n }", "public void setResident(boolean resident) { this.resident = resident; }", "public void setCurrentUserCanUnlock(boolean currentUserCanUnlock) {\r\n this.currentUserCanUnlock = currentUserCanUnlock;\r\n }", "public void setVivant(boolean vivant)\r\n\t{\r\n\t\tthis.vivant = vivant;\r\n\t}", "void setVisivel(boolean visivel);", "public void setIsUserFav(User user) {\n if(user.isUsersFavouritePost(this.mPost))\n this.isFavourite.set(true);\n else\n this.isFavourite.set(false);\n\n //if(this.mPost.getFavourite().contains(user))\n // this.isFavourite.set(true);\n //this.isFavourite.set(false);\n }", "void setUserLocked(boolean b);", "@Override\n protected boolean isCalledForCurrentUserLocked() {\n return true;\n }", "@Override\n public boolean isVampire() {\n return dataTracker.get(Vampirable.Companion.getIS_VAMPIRE());\n }", "private void markOnline(boolean b) {\n usersRef.child(userMe.getId()).child(\"online\").setValue(b);\n }", "public boolean getHasVacuum(){return this.hasVacuum;}", "public void setVIP(boolean VIP);", "public void setViewStateBoolean() {\n viewState.setFromAccountView(false);\n }", "public void changeIsInvincible()\r\n\t{\r\n\t\tisInvincible = !isInvincible;\r\n\t}", "void setInactive(boolean aInactive) {\n/* 4829 */ this.inactive = aInactive;\n/* */ }", "boolean hasSelectedUser();", "public void setAktiivisuus()\r\n\t{\r\n\t\tonAktiivinen = false;\r\n\t}", "public void assignUserMaintOK(final boolean val) {\n userMaintOK = val;\n }", "void updateUserActivateStatus(User user, int newStatus);", "void setCurrentUser(@Nullable User newCurrentUser) {\n currentUser = newCurrentUser;\n }", "public void setIsApproved (boolean IsApproved);", "public void setIsApproved (boolean IsApproved);", "public boolean vacio(){\n\t\treturn esVacio;\n\t}", "public void setPrivado(Boolean privado) {\n this.privado = privado;\n }", "public void setTransactionVATstatus(boolean value) {\r\n this.transactionVATstatus = value;\r\n }", "private void updateUserStatus(boolean online)\n {\n }", "public boolean isActiveUser() {\r\n if (currentProcessInstance == null)\r\n return false;\r\n \r\n String[] states = currentProcessInstance.getActiveStates();\r\n if (states == null)\r\n return false;\r\n \r\n Actor[] users;\r\n for (int i = 0; i < states.length; i++) {\r\n try {\r\n users = currentProcessInstance.getWorkingUsers(states[i]);\r\n for (int j = 0; j < users.length; j++) {\r\n if (getUserId().equals(users[j].getUser().getUserId()))\r\n return true;\r\n }\r\n } catch (WorkflowException ignored) {\r\n // ignore unknown state\r\n continue;\r\n }\r\n }\r\n \r\n return false;\r\n }", "@Override\r\n\tpublic boolean isVerifiedUser(User user) {\n\t\tif (userDao.get(user.getId()).isVerified())\r\n\t\t\treturn true;\r\n\t\treturn false;\r\n\t}", "void setAnAuthorized(int userAuth, int acctAuth) {\n\t\tthis.isAnAuth = userAuth == 1 || acctAuth == 1;\n\t}", "public void setExistingUser(boolean isExistingUser) {\r\n this.isExistingUser = isExistingUser;\r\n }", "@FXML private void setToNewUser(){\n\t\tshowPassword();\n\t\tclearFields();\n\t\thideLackMessages();\n\t\tchangeCancelButton.setText(\"Anuluj\");\n\t\tnewUser = true;\n\t}", "public Boolean waitingUser(){\n\t\tif (currentPlayer == 0){\n\t\t\tSystem.out.println(\"You are the first player, changing waitingUser to true\");\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public void setIsActive (boolean IsActive);", "public void setIsActive (boolean IsActive);", "public void setIsActive (boolean IsActive);", "public void setIsActive (boolean IsActive);", "public void setIsActive (boolean IsActive);", "public void setIsActive (boolean IsActive);", "public void setIsActive (boolean IsActive);", "public void setIsActive (boolean IsActive);", "public void setIsActive (boolean IsActive);", "public void setIsActive (boolean IsActive);", "public void setIsActive (boolean IsActive);", "public void setIsActive (boolean IsActive);", "@Accessor(qualifier = \"active\", type = Accessor.Type.SETTER)\n\tpublic void setActive(final Boolean value)\n\t{\n\t\tgetPersistenceContext().setPropertyValue(ACTIVE, value);\n\t}", "public boolean upadte(User user);", "public boolean isEditableByUser() {\r\n if ((this.currentStatusChange == null) ||\r\n (this.currentStatusChange.equals(PoStatusCode.PROPOSED)))\r\n return true;\r\n return false;\r\n }", "public boolean isSevered() {\n\t\treturn isSevered;\n\t}", "public void setIsVerified(int isVerified) {\r\n this.isVerified = isVerified;\r\n }", "public void setHvacStateOn(boolean value) {\r\n this.hvacStateOn = value;\r\n }", "@Override\n\t\t\tpublic void setUserVisibleHint(boolean isVisibleToUser) {\n\t\t\t\tsuper.setUserVisibleHint(isVisibleToUser);\n\t\t\t\tisonshow=isVisibleToUser;\n\t\t\t\t//Log.i(\"isonshow\", isVisibleToUser+\"\");\n\n\t\t\t}", "public void updateVolunteerIdle(int id, boolean value) throws DALException {\n facadeDAO.updateVolunteerIdleStatus(id, value);\n }", "void setShowRevokedStatus(boolean b);", "public boolean hasUser(){\n return numUser < MAX_USER;\n }", "public void setIsOnlineResult(boolean value) {\n this.isOnlineResult = value;\n }", "@Override\n public boolean esVacio(){\n return(super.esVacio());\n }", "public boolean hasObjUser() {\n return instance.hasObjUser();\n }", "void setMortgaged(boolean mortgaged);", "@Override\n\tpublic Boolean isActve() {\n\t\treturn active;\n\t}", "public void setStatus( boolean avtive ){\r\n\t\tthis.activ = avtive;\r\n\t}", "public boolean isSetVertScanRate() {\n return (this.vertScanRate != null ? this.vertScanRate.isSetValue() : false);\n }", "public void setClaim(boolean a){\n isClaimed= a;\n \n}", "private void indicateUserLoginStatusChanged() {\n raise(new UserLoginStatusChangedEvent(null));\n }", "void setAdminStatus(User user, boolean adminStatus);", "public void setAlive(boolean x){\n \talive = x;\r\n }", "public void setAnnounced(Boolean newValue);", "public boolean isVacant() {\r\n\treturn !isOccupied() || !isAvailable();\r\n }", "public boolean isSetUserid() {\n return this.userid != null;\n }", "public void setComputeV(boolean val) {\n computeV = val;\n }", "public boolean isvSync() {\n return vSync;\n }", "public void setIsRevisable(Long isRevisable) {\n this.isRevisable = isRevisable;\n }", "public boolean isVtkUser( ) {\n\t\treturn chomboSolverSpec != null;\n\t}", "public void ativa()\n\t{\n\t\tativado = true;\n\t}", "private boolean hasUserImportantView() {\n int userID = this.sharedPreferences.getInt(Constants.SP_USER_ID_KEY, 0);\n return this.sharedPreferences.getBoolean(serverName + \"_\" + userID, false);\n }", "public void setIsRemitTo(boolean IsRemitTo) {\n\t\tset_Value(\"IsRemitTo\", new Boolean(IsRemitTo));\n\t}", "public boolean isSetRequesting_user() {\n return this.requesting_user != null;\n }", "public void setRestricted( boolean val ) {\n this.restricted = val;\n if ( !val && getFlow().getRestriction() != null ) {\n doCommand( new UpdateSegmentObject( getUser().getUsername(), getFlow(), \"restriction\", null ) );\n }\n }", "private boolean isCurrentDataWasChanedByAnotherUser(final Monthly_report_revision monthlyReport) {\n Monthly_report_revision currentMonthlyReport = this.monthly_reportRepository.findAndRefresh(monthlyReport);\n return !StringUtils.equalsIgnoreCase(monthlyReport.getShounin_joutai(),\n currentMonthlyReport.getShounin_joutai());\n }", "public void setCurrentUser(Person person) {\n assert person != null;\n this.currentUser = person;\n indicateUserLoginStatusChanged();\n }", "public boolean isUpdateUserInitialized() {\n return updateUser_is_initialized; \n }" ]
[ "0.65520906", "0.6344451", "0.60955536", "0.59452105", "0.5817176", "0.5806173", "0.57764226", "0.574488", "0.5725511", "0.5680816", "0.5651604", "0.5648778", "0.55782557", "0.5548457", "0.5533154", "0.55006146", "0.548578", "0.5470765", "0.54706514", "0.54516757", "0.5451257", "0.5451257", "0.5426568", "0.54148304", "0.5414271", "0.5408902", "0.5375874", "0.5353308", "0.5343504", "0.53386015", "0.53299105", "0.53279525", "0.5309019", "0.530807", "0.5306125", "0.53000975", "0.5295704", "0.52954537", "0.5278799", "0.5260415", "0.52415645", "0.5239544", "0.5239544", "0.52395195", "0.5226497", "0.5222655", "0.5220896", "0.52003497", "0.5188738", "0.51801556", "0.51788783", "0.5170709", "0.51667327", "0.5162544", "0.5162544", "0.5162544", "0.5162544", "0.5162544", "0.5162544", "0.5162544", "0.5162544", "0.5162544", "0.5162544", "0.5162544", "0.5162544", "0.5156811", "0.5156249", "0.5150943", "0.51466465", "0.51379097", "0.51368463", "0.5130273", "0.51245296", "0.51214355", "0.5117958", "0.5103937", "0.5100515", "0.5097767", "0.5083144", "0.5080003", "0.5079627", "0.50788164", "0.5075986", "0.50682455", "0.5066034", "0.50632685", "0.5062401", "0.5061843", "0.50618154", "0.5061453", "0.50586337", "0.5058211", "0.50481576", "0.5047703", "0.5043597", "0.5041439", "0.5032939", "0.50317323", "0.5030308", "0.50299025", "0.5029164" ]
0.0
-1
Method to load data from a the external files.
public static void load(Context context) throws IOException { // read the file String raw = File.readFile("vaccine.txt", context); // clear the map and load contents of file into the map map.clear(); for (String line : raw.split("\n")) { if (line.equals("")) { continue; } String[] data = line.split(","); if (data[0].equals("") || data.length != 3) { continue; } map.put(data[0], Boolean.getBoolean(data[1])); dateMap.put(data[0], data[2]); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract void loadData();", "public abstract void loadData();", "public abstract void loadData();", "void loadData();", "void loadData();", "protected void loadData()\n {\n }", "@Override\n\tpublic void loadData() throws FileNotFoundException {\n\t\tthis.getPromoShare();\n\t}", "String [][] importData (String path);", "public static void load(){\n StringBuilder maleNamesString = new StringBuilder();\n try (Scanner maleNamesFile = new Scanner(mnames)){\n while (maleNamesFile.hasNext()) {\n maleNamesString.append(maleNamesFile.next());\n }\n }\n catch(FileNotFoundException e){\n e.printStackTrace();\n return;\n }\n\n //Create a string from the fnames.json file\n StringBuilder femaleNamesString = new StringBuilder();\n try (Scanner femaleNamesFile = new Scanner(fnames)){\n while (femaleNamesFile.hasNext()) {\n femaleNamesString.append(femaleNamesFile.next());\n }\n }\n catch(FileNotFoundException e){\n e.printStackTrace();\n return;\n }\n\n //Create a string from the snames.json file\n StringBuilder surNamesString = new StringBuilder();\n try (Scanner surNamesFile = new Scanner(snames)){\n while (surNamesFile.hasNext()) {\n surNamesString.append(surNamesFile.next());\n }\n\n }\n catch(FileNotFoundException e){\n e.printStackTrace();\n return;\n }\n\n //Create a string from the locations.json file\n StringBuilder locationsString = new StringBuilder();\n try (Scanner locationsFile = new Scanner(locationsJson)){\n while (locationsFile.hasNext()) {\n locationsString.append(locationsFile.next());\n }\n\n }\n catch(FileNotFoundException e){\n e.printStackTrace();\n return;\n }\n\n maleNames = (Names)convertJsonToObject(maleNamesString.toString(), new Names());\n\n femaleNames = (Names)convertJsonToObject(femaleNamesString.toString(), new Names());\n\n surNames = (Names)convertJsonToObject(surNamesString.toString(), new Names());\n\n locations = (Locations)convertJsonToObject(locationsString.toString(), new Locations());\n }", "public void load(){\n // Recover docIDs\n try(Reader reader = new FileReader(\"postings/docIDs.json\")){\n this.docIDs = (new Gson()).fromJson(reader,\n new TypeToken<Map<String, String>>(){}.getType());\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n try(Reader reader = new FileReader(\"postings/docLengths.json\")){\n this.docLengths = (new Gson()).fromJson(reader,\n new TypeToken<Map<String, Integer>>(){}.getType());\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n try(Reader reader = new FileReader(\"postings/titleToNumber.json\")){\n this.titleToNumber = (new Gson()).fromJson(reader,\n new TypeToken<Map<String, Integer>>(){}.getType());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@PostConstruct\n private void loadFiles() {\n \n\n File dir = new File(Constants.DIR_PATH);\n File[] files = dir.listFiles(); //stores list of files in given paths\n String line=\"\";\n\n for(File file : files){\n try {\n br = new BufferedReader(new FileReader(file));\n br.readLine();\n while((line=br.readLine())!=null){\n\n String []token=line.split(Constants.DELIMETER);\n String fileName=file.getName().toUpperCase();\n\n FlightData newflight = new FlightData(fileName.substring(0,fileName.lastIndexOf(\".\")),token[0],token[1],token[2],token[3],token[4],token[5],Double.parseDouble(token[6]),token[7],token[8]);\n flightDataDao.insertFlightData(newflight);\n }\n\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n }", "protected void loadDataFromFile() throws IOException {\n \t\tInputStream is = null;\n \n \t\ttry {\n \t\t\tis = new BufferedInputStream(new GZIPInputStream(\n \t\t\t\t\tnew FileInputStream(this.dataFile)));\n \n \t\t\tint dataOffset = 0;\n \t\t\tByteArrayOutputStream os = new ByteArrayOutputStream();\n \n \t\t\twhile (true) {\n \t\t\t\tint b = is.read();\n \n \t\t\t\tif (b == 0) {\n \t\t\t\t\t// field separator reached.\n \t\t\t\t\tif (this.componentId == null) {\n \t\t\t\t\t\tbyte[] encoded = os.toByteArray();\n \t\t\t\t\t\tdataOffset += encoded.length;\n \t\t\t\t\t\tdataOffset += 1; // include the separator field\n \t\t\t\t\t\tcomponentId = new String(URLEncoding.decode(encoded),\n \t\t\t\t\t\t\t\t\"UTF-8\");\n \t\t\t\t\t} else if (this.query == null) {\n \t\t\t\t\t\tbyte[] encoded = os.toByteArray();\n \t\t\t\t\t\tdataOffset += encoded.length;\n \t\t\t\t\t\tdataOffset += 1; // include the separator field\n \n \t\t\t\t\t\ttry {\n \t\t\t\t\t\t\tString queryXml = new String(URLEncoding\n \t\t\t\t\t\t\t\t\t.decode(encoded), \"UTF-8\");\n \n \t\t\t\t\t\t\t// parse the query.\n \t\t\t\t\t\t\tSAXReader reader = new SAXReader();\n \t\t\t\t\t\t\tElement root = reader.read(\n \t\t\t\t\t\t\t\t\tnew StringReader(queryXml))\n \t\t\t\t\t\t\t\t\t.getRootElement();\n \t\t\t\t\t\t\tthis.query = root.getText();\n \t\t\t\t\t\t} catch (Exception e) {\n \t\t\t\t\t\t\tthrow new IOException(\n \t\t\t\t\t\t\t\t\t\"Cannot unmarshall cached query.\");\n \t\t\t\t\t\t}\n \t\t\t\t\t} else if (this.optionalParams == null) {\n \t\t\t\t\t\tbyte[] encoded = os.toByteArray();\n \t\t\t\t\t\tdataOffset += encoded.length;\n \t\t\t\t\t\tdataOffset += 1; // include the separator field\n \n \t\t\t\t\t\tif (encoded.length > 0) {\n \t\t\t\t\t\t\tMap optionalParams = new HashMap();\n \t\t\t\t\t\t\tString urlEncoded = new String(URLEncoding\n \t\t\t\t\t\t\t\t\t.decode(encoded), \"UTF-8\");\n \t\t\t\t\t\t\tStringTokenizer tokenizer = new StringTokenizer(\n\t\t\t\t\t\t\t\t\turlEncoded, \"&\", false);\n \n \t\t\t\t\t\t\twhile (tokenizer.hasMoreTokens()) {\n String param = tokenizer.nextToken();\n\t\t\t\t\t\t\t\tString key = param.substring(0, param.indexOf('='));\n\t\t\t\t\t\t\t\tString value = param.substring(param.indexOf('=')+1);\n \t\t\t\t\t\t\t\toptionalParams.put(key, value);\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tthis.optionalParams = optionalParams;\n \t\t\t\t\t\t} else {\n \t\t\t\t\t\t\tthis.optionalParams = null;\n \t\t\t\t\t\t}\n \n \t\t\t\t\t\tthis.dataOffset = dataOffset;\n \t\t\t\t\t\treturn;\n \t\t\t\t\t}\n \n \t\t\t\t\tos.reset();\n \t\t\t\t} else if (b == -1) {\n \t\t\t\t\tthrow new IOException(\"Premature end of cached file.\");\n \t\t\t\t} else {\n \t\t\t\t\tos.write(b);\n \t\t\t\t}\n \t\t\t}\n \t\t} finally {\n \t\t\tif (is != null) {\n \t\t\t\ttry {\n \t\t\t\t\tis.close();\n \t\t\t\t} catch (IOException e) {\n \t\t\t\t\tlog.error(\"Cannot close input cache file: \"\n \t\t\t\t\t\t\t+ this.dataFile.getAbsolutePath());\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t}", "void massiveModeLoading( File dataPath );", "private void loadFromFile() {\n try {\n FileInputStream fis = openFileInput(FILENAME);\n BufferedReader in = new BufferedReader(new InputStreamReader(fis));\n\n Gson gson = new Gson();\n Type listType = new TypeToken<ArrayList<Sub>>(){}.getType();\n subList = gson.fromJson(in, listType);\n\n } catch (FileNotFoundException e) {\n subList = new ArrayList<Sub>();\n }\n }", "public void loadData ( ) {\n\t\tinvokeSafe ( \"loadData\" );\n\t}", "public abstract ResourceDataSet loadResources() ;", "private void readSourceData() throws Exception {\n\t\tthis.fileDataList = new ArrayList<String>();\n\t\tReader reader = new Reader(this.procPath);\n\t\treader.running();\n\t\tthis.fileDataList = reader.getFileDataList();\n\t}", "void loadProducts(String filename);", "public void load() ;", "private void readData() {\n try (BufferedReader br = new BufferedReader(new InputStreamReader(getClass().getClassLoader().getResourceAsStream(fileName)))) {\n String line;\n while ((line = br.readLine()) != null) {\n String[] parts = line.split(\",\");\n int zip = Integer.parseInt(parts[0]);\n String name = parts[1];\n\n zipMap.put(zip, name);\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void readData() throws FileNotFoundException {\n this.plane = readPlaneDimensions();\n this.groupBookingsList = readBookingsList();\n }", "public void load(File source);", "public void loadFromDatabase(){\r\n /**\r\n * Open the file streams to the three files\r\n * Recover the state of data structures\r\n * Close the file streams\r\n */\r\n\r\n try{\r\n //Recover the state of unfinished set from unfinished.dat\r\n unfinishedFileInputStream = new FileInputStream(UNFINISHED_FILE_PATH);\r\n unfinishedSetInputStream = new ObjectInputStream(unfinishedFileInputStream);\r\n unfinished = (Set<Task>)unfinishedSetInputStream.readObject();\r\n unfinishedSetInputStream.close();\r\n unfinishedFileInputStream.close();\r\n\r\n //Recover the state of finished list from finished.dat\r\n finishedFileInputStream = new FileInputStream(FINISHED_FILE_PATH);\r\n finishedListInputStream = new ObjectInputStream(finishedFileInputStream);\r\n finished = (ArrayList<Task>)finishedListInputStream.readObject();\r\n finishedListInputStream.close();\r\n finishedFileInputStream.close();\r\n\r\n //Recover the state of activities list from activities.dat\r\n activitiesFileInputStream = new FileInputStream(ACTIVITIES_FILE_PATH);\r\n activitiesListInputStream = new ObjectInputStream(activitiesFileInputStream);\r\n activities = (ArrayList<Activity>)activitiesListInputStream.readObject();\r\n activitiesListInputStream.close();\r\n activitiesFileInputStream.close();\r\n\r\n generateWeeklySchedule();\r\n }\r\n catch(Exception e){\r\n System.out.println(e.getMessage());\r\n }\r\n }", "private void loadData() {\n\n \tInputStream inputStream = this.getClass().getResourceAsStream(propertyFilePath);\n \n //Read configuration.properties file\n try {\n //prop.load(new FileInputStream(propertyFilePath));\n \tprop.load(inputStream);\n //prop.load(this.getClass().getClassLoader().getResourceAsStream(\"configuration.properties\"));\n } catch (IOException e) {\n System.out.println(\"Configuration properties file cannot be found\");\n }\n \n //Get properties from configuration.properties\n browser = prop.getProperty(\"browser\");\n testsiteurl = prop.getProperty(\"testsiteurl\");\n defaultUserName = prop.getProperty(\"defaultUserName\");\n defaultPassword = prop.getProperty(\"defaultPassword\");\n }", "public interface ReaderFromFile {\n\t\n\tpublic List<Data> readDataFromFile (String filename);\n}", "public abstract void load();", "public void loadData() {\n Path path= Paths.get(filename);\n Stream<String> lines;\n try {\n lines= Files.lines(path);\n lines.forEach(ln->{\n String[] s=ln.split(\";\");\n if(s.length==3){\n try {\n super.save(new Teme(Integer.parseInt(s[0]),Integer.parseInt(s[1]),s[2]));\n } catch (ValidationException e) {\n e.printStackTrace();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }else\n System.out.println(\"linie corupta in fisierul teme.txt\");});\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "private void loadData(){\n try (BufferedReader br = new BufferedReader(new FileReader(this.fileName))) {\n String line;\n while((line=br.readLine())!=null){\n E e = createEntity(line);\n super.save(e);\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void load();", "public void load();", "public abstract void load() throws IOException;", "@Override\n \tpublic DataHolder loadFile(IMonitor mon) throws ScanFileHolderException {\n \t\tBufferedReader reader = null;\n \n \t\ttry {\n \t\t\treader = new BufferedReader(new FileReader(fileName));\n \t\t\tString dataStr;\n \t\t\tString previousHeaderLine = \"\";\n \t\t\tboolean readingHeader = true;\n \t\t\tboolean readingFooter = false;\n \t\t\tList<?>[] columnData = null;\n \t\t\twhile ((dataStr = reader.readLine()) != null) {\n \n \t\t\t\t// ignore blank\n \t\t\t\tif (dataStr.isEmpty()) {\n \t\t\t\t\tcontinue;\n \t\t\t\t}\n \n \t\t\t\t// first block of commented out lines are the header\n \t\t\t\tif (dataStr.startsWith(COMMENT_PREFIX) && readingHeader) {\n \t\t\t\t\treadHeaderLine(dataStr);\n \t\t\t\t\tpreviousHeaderLine = dataStr;\n \t\t\t\t\tcontinue;\n \t\t\t\t}\n \t\t\t\treadingHeader = false;\n \n \t\t\t\t// next block of commented out lines after any break in comments will be the footer\n \t\t\t\tif (dataStr.startsWith(COMMENT_PREFIX) && !readingHeader) {\n \t\t\t\t\treadingFooter = true;\n \t\t\t\t\treadFooterLine(dataStr);\n \t\t\t\t\tcontinue;\n \t\t\t\t}\n \n \t\t\t\t// if get here then its data\n \t\t\t\tif (readingFooter) {\n \t\t\t\t\t// should not get here after reading a block of commented out lines for a second time: invalid\n \t\t\t\t\t// format\n \t\t\t\t\tthrow new ScanFileHolderException(\"Cannot read file\");\n \t\t\t\t}\n \n \t\t\t\t// the first time we get here, the previous line should have been the header\n \t\t\t\tif (columnData == null && datasetNames.size() == 0) {\n \t\t\t\t\tcolumnData = parseHeaderString(previousHeaderLine);\n \t\t\t\t}\n \n\t\t\t\tparseColumns(splitLine(dataStr.trim()), columnData);\n \t\t\t}\n \n \t\t\tString[] names = datasetNames.toArray(new String[]{});\n \t\t\tDataHolder result = new DataHolder();\n \t\t\ttry {\n \t\t\t\tconvertToDatasets(result, names, columnData, isStoreStringValues(), isUseImageLoaderForStrings(), (new File(this.fileName)).getParent());\n \t\t\t} catch (Exception e) {\n \t\t\t\tlogger.warn(e.getMessage());\n \t\t\t}\n \n \t\t\treturn result;\n \t\t} catch (Exception e) {\n \t\t\tthrow new ScanFileHolderException(\"XasAsciiLoader.loadFile exception loading \" + fileName, e);\n \t\t} finally {\n \t\t\ttry {\n \t\t\t\tif (reader != null)\n \t\t\t\t\treader.close();\n \t\t\t} catch (IOException e) {\n \t\t\t\tthrow new ScanFileHolderException(\"Cannot read file\", e);\n \t\t\t}\n \t\t}\n \t}", "public void load() {\n }", "public void readFromFile() {\n\n\t}", "private static void load(){\n }", "private void loadData(final String filePath)\r\n {\r\n try\r\n {\r\n File fXMLFile = new File(filePath);\r\n DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\r\n DocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\r\n Document doc = dBuilder.parse(fXMLFile);\r\n parseXMLDocument(doc);\r\n }\r\n catch (ParserConfigurationException ex)\r\n {\r\n System.err.println(\"\\t ParserConfigurationException caught at XMLReader.loadData\");\r\n ex.printStackTrace();\r\n }\r\n catch (SAXException ex)\r\n {\r\n System.err.println(\"\\t SAXException caught at XMLReader.loadData\");\r\n ex.printStackTrace();\r\n }\r\n catch (IOException ex)\r\n {\r\n System.err.println(\"\\t IOException caught at XMLReader.loadData\");\r\n ex.printStackTrace();\r\n }\r\n }", "public static void load() {\n }", "private void loadFromFile() {\n try {\n /* Load in the data from the file */\n FileInputStream fIn = openFileInput(FILENAME);\n BufferedReader inRead = new BufferedReader(new InputStreamReader(fIn));\n\n /*\n * access from the GSON file\n * Taken from lonelyTwitter lab code\n */\n Gson gson = new Gson();\n Type listType = new TypeToken<ArrayList<Counter>>() {}.getType();\n counters = gson.fromJson(inRead, listType);\n\n } catch (FileNotFoundException e) {\n counters = new ArrayList<Counter>();\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }", "@Override\n void load(String data) {\n }", "private void loadData() {\n FileInputStream fis;\n\n try {\n fis = openFileInput(DATA_FILE);\n user = (User) new JsonReader(fis).readObject();\n fis.close();\n } catch(Exception e) {\n Log.i(\"Exception :\", e.toString());\n }\n }", "private void load(FileInputStream input) {\n\t\t\r\n\t}", "public void load() {\n\t}", "@Override\n\t\tvoid loadData() throws IOException {\n\t\t\tsuper.loadData();\n\t\t}", "public void load (File file) throws Exception;", "private void loadFromFile(){\n try {\n FileInputStream fis = openFileInput(FILENAME);\n BufferedReader in = new BufferedReader(new InputStreamReader(fis));\n Gson gson = new Gson();\n Type listType = new TypeToken<ArrayList<Countbook>>() {}.getType();\n countbookList = gson.fromJson(in, listType);\n } catch (FileNotFoundException e) {\n countbookList = new ArrayList<Countbook>();\n }\n }", "public Data(Main aMain, Framework frw) {\n\tmain = aMain;\n\n File pf = new File(main.myPath);\n String[] datal = pf.list(new FilenameFilter() {\n public boolean accept(File dir, String name) {\n return\n name.endsWith(\".xml\") &&\n name.startsWith(\"data\");\n }\n });\n for (int i = 0; i < datal.length; i++) {\n Document data = Framework.parse(main.myPath + datal[i], \"encounters\");\n loadFromDoc(data);\n }\n }", "private void loadFromFile() {\n try {\n FileInputStream fis = openFileInput(FILENAME);\n InputStreamReader isr = new InputStreamReader(fis);\n BufferedReader reader = new BufferedReader(isr);\n Gson gson = new Gson();\n Type listFeelingType = new TypeToken<ArrayList<Feeling>>(){}.getType();\n recordedFeelings.clear();\n ArrayList<Feeling> tmp = gson.fromJson(reader, listFeelingType);\n recordedFeelings.addAll(tmp);\n fis.close();\n\n } catch (FileNotFoundException e) {\n // TODO Auto-generated catch block\n recordedFeelings = new ArrayList<Feeling>();\n e.printStackTrace();\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }", "private void initDataLoader() {\n\t}", "public void loadData () {\n // create an ObjectInputStream for the file we created before\n ObjectInputStream ois;\n try {\n ois = new ObjectInputStream(new FileInputStream(\"DB/Guest.ser\"));\n\n int noOfOrdRecords = ois.readInt();\n Guest.setMaxID(ois.readInt());\n System.out.println(\"GuestController: \" + noOfOrdRecords + \" Entries Loaded\");\n for (int i = 0; i < noOfOrdRecords; i++) {\n guestList.add((Guest) ois.readObject());\n //orderList.get(i).getTable().setAvailable(false);\n }\n } catch (IOException | ClassNotFoundException e1) {\n // TODO Auto-generated catch block\n e1.printStackTrace();\n }\n }", "void load();", "void load();", "void loadFromFile() {\n\t\ttry {\n\t\t\tFile directory = GameApplication.getInstance().getExternalFilesDir(Environment.DIRECTORY_DOCUMENTS);\n\t\t\tFile source = new File(directory, FILE_NAME);\n\t\t\tMap<String, Scoreboard> scoreboards = new HashMap<String, Scoreboard>();\n\t\t\tif (source.exists()) {\n\t\t\t\tJsonReader reader = new JsonReader(new FileReader(source));\n\t\t\t\treader.beginArray();\n\t\t\t\twhile (reader.hasNext()) {\n\t\t\t\t\tScoreboard scoreboard = readScoreboard(reader);\n\t\t\t\t\tscoreboards.put(scoreboard.getName(), scoreboard);\n\t\t\t\t}\n\t\t\t\treader.endArray();\n\t\t\t\treader.close();\n\t\t\t} else {\n\t\t\t\tsource.createNewFile();\n\t\t\t}\n\t\t\tthis.scoreboards = scoreboards;\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public static void readFiles () throws FileNotFoundException{\n try {\n data.setFeatures(data.readFeatures(\"features.txt\"));\n data.setUnknown(data.readFeatures(\"unknown.txt\"));\n data.setTargets(data.readTargets(\"targets.txt\"));\n } catch (FileNotFoundException e) {\n System.out.println(\"Document not found\");\n }\n }", "public void loadData() {\n\t\tempsList.add(\"Pankaj\");\r\n\t\tempsList.add(\"Raj\");\r\n\t\tempsList.add(\"David\");\r\n\t\tempsList.add(\"Lisa\");\r\n\t}", "private void loadDataFromMemory(String filename){\n shoppingList.clear();\n new ReadFromMemoryAsync(filename, getCurrentContext(), new ReadFromMemoryAsync.AsyncResponse(){\n\n @Override\n public void processFinish(List<ShoppingItem> output) {\n shoppingList.addAll(output);\n sortItems();\n }\n }).executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);\n// for (ShoppingItem item: items) {\n// shoppingList.add(item);\n// }\n// sortItems();\n }", "private void loadData() {\n\t\tlogger.trace(\"loadData() is called\");\n\t\t\n\t\ttry {\n\t\t\tFileInputStream fileIn = new FileInputStream(\"server-info.dat\");\n\t\t\tObjectInputStream in = new ObjectInputStream(fileIn);\n\t\t\tjokeFile = (String ) in.readObject();\n\t\t\tkkServerPort = (int) in.readObject();\n\t\t\tin.close();\n\t\t} catch (Exception e) {\n\t\t\tjokeFile = \"kk-jokes.txt\";\n\t\t\tkkServerPort = 5555;\n\t\t\t//e.printStackTrace();\n\t\t\tSystem.err.println(\"server-info.dat file is likely missing but it should be created automatically when this app is closed.\");\n\t\t\tlogger.info(\"server-info.dat file is likely missing but it should be created automatically when this app is closed.\");\n\t\t}\t\n\t}", "public void getDataFromFile() throws SQLException{\n \n //SQL database\n getGuestDate_DB();\n getHotelRoomData_DB();\n updateRoomChanges_DB();\n \n //this.displayAll();\n //this.displayAllRooms();\n \n }", "public void load (IFile file) throws Exception;", "public void loadDataFromFile() {\n startX = 0;\n startY = 540;\n\n }", "private void loadFiles() {\n User user = ConnectionManager.getInstance().getUser();\n List<NoteFile> files = DatabaseManager.getInstance().getSharedFiles(user);\n ObservableList<GuiFile> guiFiles = FXCollections.observableArrayList();\n\n for (NoteFile file : files)\n guiFiles.add(new GuiFile(file));\n\n tableFiles.setItems(guiFiles);\n GUIUtils.autoResizeColumns(tableFiles);\n }", "void load_from_file(){\n\t\tthis.setAlwaysOnTop(false);\n\t\t\n\t\t/**\n\t\t * chose file with file selector \n\t\t */\n\t\t\n\t\tFileDialog fd = new FileDialog(this, \"Choose a file\", FileDialog.LOAD);\n\t\t\n\t\t//default path is current directory\n\t\tfd.setDirectory(System.getProperty(\"user.dir\"));\n\t\tfd.setFile(\"*.cmakro\");\n\t\tfd.setVisible(true);\n\t\t\n\t\t\n\t\t\n\t\tString filename = fd.getFile();\n\t\tString path = fd.getDirectory();\n\t\tString file_withpath = path + filename;\n\t\t\n\t\t\n\t\tif (filename != null) {\n\t\t\t System.out.println(\"load path: \" + file_withpath);\t\n\t\t\n\t\t\t \n\t\t\t /**\n\t\t\t * read object from file \n\t\t\t */\n\t\t\t\ttry {\n\t\t\t\t\tObjectInputStream in = new ObjectInputStream(new FileInputStream(file_withpath));\n\n\t\t\t\t\tKey_Lists = Key_Lists.copy((key_lists) in.readObject());\n\n\t\t\t\t\tkeys_area.setText(Key_Lists.arraylist_tostring());\t\t\n\t\t\t\t\t\n\t\t\t\t\tin.close();\n\t\t\t\t\t\n\t\t\t\t\tinfo_label.setForeground(green);\n\t\t\t\t\tinfo_label.setText(\"file loaded :D\");\n\t\t\t\t\t\n\t\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tinfo_label.setForeground(white);\n\t\t\t\t\tinfo_label.setText(\"wrong file format\");\n\t\t\t\t\tSystem.out.println(\"io exception\");\n\t\t\t\t\t//e.printStackTrace();\n\t\t\t\t} catch (ClassNotFoundException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\n\t\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\tthis.setAlwaysOnTop(true);\n\t\n\t}", "public LoadData(String db_dir, String data_dir) {\n this.db_dir = db_dir;\n this.data_dir = data_dir;\n this.sqlList = new ArrayList<String>();\n this.logger = Logger.getInstance();\n }", "private void loadText() {\n\t\ttext1 = app.loadStrings(\"./data/imports/TXT 1.txt\");\n\t\ttext2 = app.loadStrings(\"./data/imports/TXT 2.txt\");\n\t}", "public void load(String filename){\n //Create a file if its not already on disk\n File extDir = new File(this.getFilesDir(), filename);\n\n //Read text from file\n StringBuilder text = new StringBuilder();\n\n\n //Needs lots of try and catch blocks because so much can go wrong\n try{\n\n BufferedReader br = new BufferedReader(new FileReader(extDir));\n String line;\n\n while ((line = br.readLine()) != null) {\n text.append(line);\n text.append('\\n');\n }//end while\n\n br.close();//Close the buffer\n }//end try\n catch (FileNotFoundException e){//If file not found on disk here.\n Toast.makeText(this, \"There was no data to load\", Toast.LENGTH_LONG).show();\n e.printStackTrace();\n }\n\n catch (IOException e)//If io Exception here\n {\n Toast.makeText(this, \"Error loading file\", Toast.LENGTH_LONG).show();\n e.printStackTrace();\n }//end catch\n\n\n //Set the data from the file content and conver it to a String\n String data = new String(text);\n\n //Safety first Parse data if available.\n if (data.length() > 0) {\n parseXML(data);\n }\n else\n Toast.makeText(this, \"There is no data to display\", Toast.LENGTH_LONG).show();\n }", "protected void loadFile(String resourcePath) {\n // Locate the resource in the classpath\n //URL fileUrl = this.getClass().getResource(resourcePath);\n //File f = new File(fileUrl.getFile());\n List<String[]> data = new LinkedList<>();\n String readLine;\n String[] splitLine;\n\n InputStream in = this.getClass().getResourceAsStream(resourcePath);\n BufferedReader reader = new BufferedReader(new InputStreamReader(in));\n\n /*\n Attempt to read the data from the csv file, provided the input stream was\n actually opened and store the String[] by splitting.\n */\n try {\n log.info(\"Reading data from {}\", resourcePath);\n while((readLine = reader.readLine()) != null) {\n splitLine = readLine.split(DELIMITER);\n\n if (this.validateData(splitLine))\n data.add(splitLine);\n else\n log.error(\"Skipping {}\", readLine);\n }\n }\n catch(IOException e) {\n log.debug(e.getLocalizedMessage());\n }\n finally {\n IOUtils.closeQuietly(reader);\n IOUtils.closeQuietly(in);\n }\n\n //Using toMap collector to provide a keyMapper function that serves as a test for duplicates based on the passenger ID.\n //https://stackoverflow.com/questions/52148400/remove-duplicates-from-a-list-of-string-array\n //This will use the first element as a key and the currently selected element as the value for mapping\n this.lines = new LinkedList<>(\n data.stream().collect(Collectors.toMap(arr -> arr[0], Function.identity(),\n (a, b) -> a)).values());\n\n log.info(\"File {} with {} lines has been loaded\", resourcePath, lines.size());\n }", "@Override\n public void loadDataFromFile(File file) {\n Gson gson = new Gson();\n try {\n Scanner scanner = new Scanner(file);\n while (scanner.hasNextLine()){\n IndividualCustomer customer =\n gson.fromJson(scanner.nextLine(),IndividualCustomer.class);\n customerList.add(customer);\n }\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n\n }", "private void importData(Connection conn,String filename)\n {\n\t\t\n Statement stmt;\n String query;\n try {\n\t\t\t\t// Step 1: Allocate a database \"Connection\" object\n\t\t\t\tconn = DriverManager.getConnection(\"jdbc:mysql://localhost:\" + PORT_NUMBER + \"/Experiences?user=root&password=root\"); // MySQL\n\t\t\t\t// Step 2: Allocate a \"Statement\" object in the Connection\n\t\t\t\t stmt = conn.createStatement();\n\t\t\t\t {\n\t\t\t\n\n\t\t} }catch(SQLException ex) {\n\t\t\tex.printStackTrace();\n\t\t\t\n\t\t}\n \n \n try\n {\n stmt = conn.createStatement(\n ResultSet.TYPE_SCROLL_SENSITIVE,\n ResultSet.CONCUR_UPDATABLE);\n \n \n query = \"LOAD DATA LOCAL INFILE '\"+filename+\"' INTO TABLE t1 FIELDS TERMINATED BY ',' (question1,question2,question3,question4,question5,question6,question7,question8,question9)\";\n \n stmt.executeUpdate(query);\n \n }\n catch(Exception e)\n {\n e.printStackTrace();\n stmt = null;\n }\n }", "void load(File file);", "private ArrayList loadfile(String file_path) throws Exception{\n\t\tFileInputStream fis = null;\n\t\tBufferedReader br = null;\n\t\tArrayList filedata = new ArrayList();\n\t\ttry {\n\t\t\tFile file = new File(file_path);\n\t\t\tfis = new FileInputStream(file);\n\t\t\tbr = new BufferedReader(new InputStreamReader(fis, charset));\n\t\t\tint i = 0;\n\t\t\twhile (br.ready()) {\n\t\t\t\tString line_data = br.readLine();\n\t\t\t\tif (line_data == null) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tnode_line_data nd = new node_line_data(line_data, i++);\n\t\t\t\tfiledata.add(nd);\n\t\t\t}\n\t\t\treturn filedata;\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tthrow new Exception(e.getMessage());\n\t\t}\n\t\tfinally {\n\t\t\ttry {\n\t\t\t\tif (br != null)\n\t\t\t\t\tbr.close();\n\t\t\t\tif (fis != null)\n\t\t\t\t\tfis.close();\n\t\t\t}\n\t\t\tcatch (IOException ex) {\n\t\t\t}\n\t\t}\n\t}", "public void loadData() {\n String[] animalsListRaw = loadStrings(\"data/animalList.csv\");\n //String[] animalsListRaw = loadStrings(\"data/mythical.creatures.csv\");\n String[] animalList = getList(animalsListRaw);\n SearchQuery newSearch = new SearchQuery(animalList); \n allMaps = newSearch.getMap();\n \n map = new UnfoldingMap(this);\n map.setBackgroundColor(color(179, 223, 222, 255));\n map.zoomAndPanTo(width/2, height/2, 2);\n //MapUtils.createDefaultEventDispatcher(this, map);\n countries = GeoJSONReader.loadData(this, \"countries.geo.json\");\n marks = new MarkerMaker(allMaps, countries);\n map.draw();\n}", "void singleModeLoading( File dataPath, File resultsPath, int scenarioNumber );", "@PostConstruct\n public void init() {\n try {\n String contentFile = PlatformUtils.fileToString(TALKS_FILE_PATH, getClass().getClassLoader());\n loadTalks(PlatformUtils.parseToJson(contentFile));\n } catch (IOException e) {\n logger.log(Level.WARNING, \"An error occurred while loading data\", e);\n }\n }", "private ArrayList<ArrayList<String>> initArrArrList(ArrayList<String> packetNames) throws FileNotFoundException, IOException {\n ArrayList<ArrayList<String>> arrList=new ArrayList();\n LoadAndSave las=new LoadAndSave();\n for(int x=0;x<packetNames.size();x++) {\n las.load(packetNames.get(x));\n arrList.add(las.loader1);\n arrList.add(las.loader2);\n }\n return arrList;\n \n }", "private void loadData(ApplicationMode appMode) {\n rowKeys = new HashMap<Integer, Integer>();\n ptnKeys = new HashMap<Integer, Integer>();\n pattern = new byte[patternSize];\n ptnLink = new int[patternSize * rowSize * 2];\n\n String filepath = FileProperties.getFilepathWD();\n try (FileInputStream fin = new FileInputStream(filepath);\n FileChannel inChannel = fin.getChannel();) {\n ByteBuffer buf = inChannel.map(FileChannel.MapMode.READ_ONLY, 0, inChannel.size());\n buf.get(pattern);\n\n for (int i = 0; i < keySize; i++) {\n rowKeys.put(buf.getInt(), buf.getInt());\n }\n\n for (int i = 0; i < patternSize; i++) {\n ptnKeys.put(buf.getInt(), buf.getInt());\n }\n\n for (int i = 0; i < ptnLink.length; i++) {\n ptnLink[i] = buf.getInt();\n }\n } catch (BufferUnderflowException | IOException ex) {\n if (appMode == ApplicationMode.GUI) {\n System.err.println(\"\\n\\t*** Data files missing or corrupted, please download \"\n + \"from cloud drive. ***\");\n System.err.println(\"\\thttps://my.pcloud.com/publink/show?\"\n + \"code=kZSoaLZgNeLhO2eu0RQcu9D2aXeOFgtioUV\\n\");\n throw new UnsupportedOperationException();\n }\n int[] keyLink = genKeys();\n genPattern(keyLink);\n saveData(filepath);\n }\n }", "public void loadPersistence() {\n\t\tFile file = new File(\"data.txt\");\n\t\tif (file.length() == 0) { // no persistent data to use\n\t\t\treturn;\n\t\t}\n\t\tdeserializeFile(file);\n\t\tloadPersistentSettings();\n\t}", "@Override\r\n\tpublic void loadContents(String[] contents) {\n\t\t\r\n\t}", "public static ArrayList<Data> getDataSet(String fileName) {\n ArrayList<Data> dataset = new ArrayList<>();\n Scanner input = new Scanner(Main.class.getResourceAsStream(fileName));\n input.nextLine();\n String line = null;\n int size = 0;\n\n while (input.hasNextLine()) {\n String str = null;\n\n line = input.nextLine();\n line = line.replace(\" \", \"\");\n\n size = line.length() - 1;\n Data data = new Data(size);\n\n for (int i = 0; i < line.length() - 1; i++) {\n data.variables[i] = Character.getNumericValue(line.charAt(i));\n }\n data.setOutput(Character.getNumericValue(line.charAt(size)));\n\n dataset.add(data);\n }\n\n dataset.forEach((data) -> {\n System.out.println(data.printVariables() + \" \" + data.getOutput());\n });\n System.out.println(\"Data loaded\");\n COND_LEN = size;\n GENE_SIZE = (COND_LEN + 1) * NUM_RULES;\n return dataset;\n }", "private void loadData () {\n try {\n File f = new File(\"arpabet.txt\");\n BufferedReader br = new BufferedReader(new FileReader(f));\n vowels = new HashMap<String, String>();\n consonants = new HashMap<String, String>();\n phonemes = new ArrayList<String>();\n String[] data = new String[3];\n for (String line; (line = br.readLine()) != null; ) {\n if (line.startsWith(\";\")) {\n continue;\n }\n data = line.split(\",\");\n phonemes.add(data[0]);\n if (data[1].compareTo(\"v\") == 0) {\n vowels.put(data[0], data[2]);\n } else {\n consonants.put(data[0], data[2]);\n }\n }\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "private void loadData(){\n\n fileName = EditedFiles.getActiveFacilityFile();\n getFacilities().clear();\n\n try {\n getFacilities().addAll(ReaderThreadRunner.startReader(fileName));\n } catch (ExecutionException | InterruptedException e) {\n e.printStackTrace();\n }\n\n\n observableList = FXCollections.observableList(getFacilities());\n facilitiesView.setItems(observableList);\n }", "private void initData() {\n\t\tnamesInfo = new NameSurferDataBase(fileName);\n\n\t}", "public void load (String argFileName) throws IOException;", "public Moment[] loadMomentsFile(){\n //Log.v(\"loadMain\", getApplicationContext().getFilesDir().getAbsolutePath());\n FileInputStream fin = null;\n Moment []pup = null;\n try {\n fin = openFileInput(MomentsFragment.MOMENTS_FILENAME);\n ObjectInputStream ois = new ObjectInputStream(fin);\n pup = (Moment [])ois.readObject();\n ois.close();\n fin.close();\n }catch (FileNotFoundException e) {\n //e.printStackTrace();\n Log.w(LOG_TAG, \"File not found, will be created once data is inserted\");\n } catch (IOException e) {\n e.printStackTrace();\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n }finally {\n if (pup == null)\n return new Moment[0];\n return pup;\n }\n }", "public FileData(String filePath) {\r\n //path = this.getClass().getResource(filePath).getPath();\r\n path = filePath;\r\n \r\n if (path.contains(\"%20\")) {\r\n path = path.replaceAll(\"%20\", \" \");\r\n }\r\n\r\n if (filePath.substring(filePath.length() - 4, filePath.length()).equals(\".txt\")) { // txt file\r\n try {\r\n BufferedReader br = new BufferedReader(new InputStreamReader(\r\n new FileInputStream(path), \"UTF-8\"));\r\n\r\n String line;\r\n while ((line = br.readLine()) != null) {\r\n data.add(line);\r\n }\r\n\r\n for (int i = 0; i < data.size(); i++) {\r\n dataTag.add(0);\r\n }\r\n br.close();\r\n } catch (FileNotFoundException ex) {\r\n System.out.println(\"FileData not found - \" + path);\r\n } catch (IOException ex) {\r\n System.out.println(\"IOExeption in Constructor : FileData\");\r\n }\r\n } else { // folder\r\n File folder = new File(path);\r\n for (File fileEntry : folder.listFiles()) {\r\n data.add(fileEntry.getName());\r\n }\r\n }\r\n }", "@Override\r\n\tpublic void loadAircraftData(Path p) throws DataLoadingException {\t\r\n\t\ttry {\r\n\t\t\t//open the file\r\n\t\t\tBufferedReader reader = Files.newBufferedReader(p);\r\n\t\t\t\r\n\t\t\t//read the file line by line\r\n\t\t\tString line = \"\";\r\n\t\t\t\r\n\t\t\t//skip the first line of the file - headers\r\n\t\t\treader.readLine();\r\n\t\t\t\r\n\t\t\twhile( (line = reader.readLine()) != null) {\r\n\t\t\t\t//each line has fields separated by commas, split into an array of fields\r\n\t\t\t\tString[] fields = line.split(\",\");\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t//Creating an Aircraft object\r\n\t\t\t\tAircraft loadingIn = new Aircraft();\r\n\t\t\t\t\r\n\t\t\t\t//put some of the fields into variables: check which fields are where atop the CSV file itself\r\n\t\t\t\tloadingIn.setTailCode(fields[0]);\r\n\t\t\t\tloadingIn.setTypeCode(fields[1]);\r\n\t\t\t\t//Checking the manufacturer and setting it\r\n\t\t\t\tManufacturer manufacturer = null;\r\n\t\t\t\tString mString = fields[2];\r\n\t\t\t\tif(mString.equals(\"Boeing\"))\r\n\t\t\t\t\tmanufacturer = Manufacturer.BOEING;\r\n\t\t\t\telse if(mString.equals(\"Airbus\"))\r\n\t\t\t\t\tmanufacturer = Manufacturer.AIRBUS;\r\n\t\t\t\telse if(mString.equals(\"Bombardier\"))\r\n\t\t\t\t\tmanufacturer = Manufacturer.BOMBARDIER;\r\n\t\t\t\telse if(mString.equals(\"Embraer\"))\r\n\t\t\t\t\tmanufacturer = Manufacturer.EMBRAER;\r\n\t\t\t\telse if(mString.equals(\"Fokker\"))\r\n\t\t\t\t\tmanufacturer = Manufacturer.FOKKER;\r\n\t\t\t\telse\r\n\t\t\t\t\tmanufacturer = Manufacturer.ATR;\r\n loadingIn.setManufacturer(manufacturer);\r\n\t\t\t\tloadingIn.setModel(fields[3]);\r\n\t\t\t\tloadingIn.setSeats(Integer.parseInt(fields[4]));\r\n\t\t\t\tloadingIn.setCabinCrewRequired(Integer.parseInt(fields[5]));\r\n\t\t\t\tloadingIn.setStartingPosition(fields[6]);\r\n\t\t\t\tairCrafts.add(loadingIn);\r\n\t\t\t\t\r\n\t\t\t\t//print a line explaining what we've found\r\n\t\t\t\t/*System.out.println(\"Tail Code: \" + loadingIn.getTailCode() + \" TypeCode: \" + loadingIn.getTailCode() +\r\n\t\t\t\t\t\t\" Manufacturer: \" + loadingIn.getManufacturer() + \" Model: \" + loadingIn.getModel() +\r\n\t\t\t\t\t\t\" Seats and CabinCrew : \" + loadingIn.getSeats() + \" \" + loadingIn.getCabinCrewRequired()\r\n\t\t\t\t\t\t+ \" Starting Pos. \" + loadingIn.getStartingPosition());*/\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tcatch (IOException ioe) {\r\n\t\t\t//There was a problem reading the file\r\n\t\t\tthrow new DataLoadingException(ioe);\r\n\t\t}\r\n\t\tcatch (NumberFormatException e)\r\n\t\t{\r\n\t\t\tSystem.err.println(\"Error loading aircraft data\");\r\n\t\t\tDataLoadingException dle = new DataLoadingException();\r\n\t\t\tthrow dle;\r\n\t\t}\r\n\r\n\t}", "private void getParameters() {\r\n\t\ttry {\r\n\t\t\tp_encoding = \"ISO-8859-1\";\r\n\t\t\tp_page_encoding = \"utf-8\";\r\n\t\t\tp_labels_data_file = \"resources/units/labels.txt\";\r\n\t\t\tp_multiplier_data_file = \"resources/units/muldata.txt\";\r\n\t\t\tp_category_data_file = \"resources/units/catdata.txt\";\r\n\t\t\tp_unit_data_file = \"resources/units/unitdata.txt\";\r\n\t\t}\r\n\t\tcatch(Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treadDataFile(0, p_multiplier_data_file); //read data from external text file\r\n\t\treadDataFile(1, p_category_data_file); //read data from external text file\r\n\t\treadDataFile(2, p_unit_data_file); //read data from external text file\r\n\t\treadDataFile(3, p_labels_data_file); //read data from external text file\r\n\t}", "protected abstract void loader() throws IOException;", "private void loadData() {\n //load general data\n Settings.loadSettings();\n\n this.spCrawlTimeout.setValue(Settings.CRAWL_TIMEOUT / 1000);\n this.spRetryPolicy.setValue(Settings.RETRY_POLICY);\n this.spRecrawlInterval.setValue(Settings.RECRAWL_TIME / 3600000);\n this.spRecrawlCheckTime.setValue(Settings.RECRAWL_CHECK_TIME / 60000);\n }", "public void loadData() {\n\t\tbookingRequestList = bookingRequestDAO.getAllBookingRequests();\n\t\tcabDetailList = cabDAO.getAllCabs();\n\t}", "public void initFromClasspath() throws IOException {\n \t\tcontactNames = loadFromClassPath(\"contactNames\");\n \t\tgroupNames = loadFromClassPath(\"groupNames\");\n \t\tmessageWords = loadFromClassPath(\"messageWords\");\n \t}", "public void load( String fileName ) {\n System.out.println( \"Loading: \" + fileName );\n this.name = fileName;\n Object obj = null;\n try {\n FileInputStream fis = new FileInputStream(fileName);\n ObjectInputStream oos = new ObjectInputStream( fis );\n obj = oos.readObject();\n dofs = (double[][]) obj;\n oos.close();\n fis.close();\n } catch ( Exception e ) {\n e.printStackTrace();\n } \n }", "public void readFiles() {\n\t\t\n\t\ttry {\n\t\t\t\n\t\t\t// Open BufferedReader to open connection to tipslocation URL and read file\n\t\t\tBufferedReader reader1 = new BufferedReader(new InputStreamReader(tipsLocation.openStream()));\n\t\t\t\n\t\t\t// Create local variable to parse through the file\n\t String tip;\n\t \n\t // While there are lines in the file to read, add lines to tips ArrayList\n\t while ((tip = reader1.readLine()) != null) {\n\t tips.add(tip);\n\t }\n\t \n\t // Close the BufferedReader\n\t reader1.close();\n\t \n\t \n\t // Open BufferedReader to open connection to factsLocation URL and read file\n\t BufferedReader reader2 = new BufferedReader(new InputStreamReader(factsLocation.openStream()));\n\t \n\t // Create local variable to parse through the file\n\t String fact;\n\t \n\t // While there are lines in the file to read: parses the int that represents\n\t // the t-cell count that is associated with the line, and add line and int to \n\t // tCellFacts hashmap\n\t while ((fact = reader2.readLine()) != null) {\n\t \t\n\t \tint tCellCount = Integer.parseInt(fact);\n\t \tfact = reader2.readLine();\n\t \t\n\t tCellFacts.put(tCellCount, fact);\n\t }\n\t \n\t // Close the second BufferedReader\n\t reader2.close();\n\t \n\t\t} catch (FileNotFoundException e) {\n\t\t\t\n\t\t\tSystem.out.println(\"Error loading files\"); e.printStackTrace();\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@SuppressWarnings(\"unused\")\n public AppCMSPageUI getDataFromFile(String fileName) {\n StringBuilder buf = new StringBuilder();\n try {\n InputStream json = currentActivity.getAssets().open(fileName);\n BufferedReader in =\n new BufferedReader(new InputStreamReader(json, \"UTF-8\"));\n String str;\n\n while ((str = in.readLine()) != null) {\n buf.append(str);\n }\n\n in.close();\n } catch (Exception e) {\n //Log.e(TAG, \"Error getting data from file: \" + e.getMessage());\n }\n\n Gson gson = new Gson();\n\n return gson.fromJson(buf.toString().trim(), AppCMSPageUI.class);\n }", "public void getLocalDatas(File root) {\n \n //remove all\n clearList();\n \n //continues until the last elem is added\n for (File elem : root.listFiles()) {\n if (!elem.isDirectory()) {\n \n //gets the Name of the file\n String name = elem.getName();\n \n //calls the static Method calcFileSize() to calculate the size of the file\n double size = CalculateFileSize.calcFileSize(elem);\n add(new DataFile(name, size));\n }\n }\n super.fireTableDataChanged();\n }", "private Account loadTestData(String dataFile) throws ParserConfigurationException, \n SAXException, IOException {\n try {\n // getting parser\n SAXParserFactory factory = SAXParserFactory.newInstance();\n factory.setNamespaceAware(true);\n SAXParser parser = factory.newSAXParser();\n XMLReader reader = parser.getXMLReader();\n \n // getting loader\n InvoiceXMLLoaderCH loader = new InvoiceXMLLoaderCH();\n \n // getting input file\n InputSource input = new InputSource(this.getClass().getResourceAsStream(dataFile));\n \n // setting content handler and parsing file\n reader.setContentHandler(loader);\n reader.parse(input);\n \n return (Account) loader.getAccountList().get(0);\n \n } catch (ParserConfigurationException e) {\n e.printStackTrace();\n throw e;\n } catch (SAXException e) {\n e.printStackTrace();\n throw e;\n } catch (IOException e) {\n e.printStackTrace();\n throw e;\n }\n }", "public void load() throws ClassNotFoundException, IOException;", "private void loadDataFromFile() {\n boolean isLoggedInNew = na.isLoggedIn();\n boolean isLoggedIn = uL.isLoggedIn();\n // load data for new users after sucsessful new account creation\n if (isLoggedInNew) {\n String username = na.getUsername();\n String fileExt = \"_data.txt\";\n String workingDirectory = System.getProperty(\"user.dir\");\n String filePath = workingDirectory + \"\\\\\" + username + fileExt;\n File file = new File(filePath);\n try {\n FileReader fr = new FileReader(file);\n BufferedReader br = new BufferedReader(fr);\n DefaultTableModel model = (DefaultTableModel) remindersTable.getModel();\n Object[] lines = br.lines().toArray();\n for (int i = 0; i < lines.length; i++) {\n String[] row = lines[i].toString().split(\"\\t\");\n model.addRow(row);\n }\n } catch (FileNotFoundException ex) {\n Logger.getLogger(MoneyMinderDesktopMainGui.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n // load data for existing users after sucsessful login\n if (isLoggedIn) {\n String username = uL.getUsername();\n String fileExt = \"_data.txt\";\n String workingDirectory = System.getProperty(\"user.dir\");\n String filePath = workingDirectory + \"\\\\\" + username + fileExt;\n File file = new File(filePath);\n try {\n FileReader fr = new FileReader(file);\n BufferedReader br = new BufferedReader(fr);\n DefaultTableModel model = (DefaultTableModel) remindersTable.getModel();\n Object[] lines = br.lines().toArray();\n for (int i = 0; i < lines.length; i++) {\n String[] row = lines[i].toString().split(\"\\t\");\n model.addRow(row);\n }\n } catch (FileNotFoundException ex) {\n Logger.getLogger(MoneyMinderDesktopMainGui.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n }", "@Override\r\n\tprotected void load() {\n\t\t\r\n\t}", "public static void threadloader()\r\n\r\n\t{\r\n\t\tThread threadloadData = new Thread(){\r\n\t\t\tpublic void run(){\r\n\t\t\t\ttry {\r\n\t\t\t\t\tloadData(inputFile1);\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\tSystem.err.println(\"Error in loading data: \"+e.getMessage());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tThread threadloadPattern = new Thread(){\r\n\t\t\tpublic void run(){\r\n\t\t\t\ttry {\r\n\t\t\t\t\tloadPattern(inputFile2);\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\tSystem.err.println(\"Error in loading pattern: \"+e.getMessage());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t};\r\n\t\tthreadloadData.run();\r\n\t\tthreadloadPattern.run();\r\n\t}", "private void loadData() {\r\n\t\talert(\"Loading data ...\\n\");\r\n \r\n // ---- categories------\r\n my.addCategory(new Category(\"1\", \"VIP\"));\r\n my.addCategory(new Category(\"2\", \"Regular\"));\r\n my.addCategory(new Category(\"3\", \"Premium\"));\r\n my.addCategory(new Category(\"4\", \"Mierder\"));\r\n \r\n my.loadData();\r\n \r\n\t }", "@Override\r\n\tpublic void initialLoad() throws IOException {\n\t\t\r\n\t}", "private void loadDataFromFile(File file) {\n\t\tString fileName = file.getName();\n\t\tQuickParser test = new QuickParser();\n\n\t\tif(fileName.trim().toUpperCase().startsWith(\"INV\")) {\n\t\t\tfileType = FileType.INVENTORY;\n\t\t\ttableView.getColumns().clear();\n\t\t\ttableView.getColumns().addAll(rfid,campus,building,room,lastScannedOn,lastScannedBy,purchaseOrder,serviceTag,comments);\n\t\t\tmasterInventoryData.clear();\n\t\t\tmasterInventoryData = test.Parse(file, fileType);\n\t\t\tpresentationInventoryData.clear();\n\t\t\tpresentationInventoryData.addAll(masterInventoryData);\n\t\t\tswitch (fileType) {\n\t\t\tcase INVENTORY:\n\t\t\t\tcurrentTabScreen = CurrentTabScreen.INVENTORY;\n\t\t\t\tbreak;\n\t\t\tcase INITIAL:\n\t\t\t\tcurrentTabScreen = CurrentTabScreen.INITIAL;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t} // End switch statement \n\t\t} // End if statement\n\t\telse if(fileName.toUpperCase().startsWith(\"INI\")) {\n\t\t\tfileType = FileType.INITIAL;\n\t\t\ttableView.getColumns().clear();\n\t\t\ttableView.getColumns().addAll(rfid,campus,building,room,lastScannedOn,lastScannedBy,purchaseOrder,serviceTag,comments);\n\t\t\tmasterInitialData.clear();\n\t\t\tmasterInitialData = test.Parse(file, fileType);\n\t\t\tpresentationInitialData.clear();\n\t\t\tpresentationInitialData.addAll(masterInitialData);\n\t\t\tswitch (fileType) {\n\t\t\tcase INVENTORY:\n\t\t\t\tcurrentTabScreen = CurrentTabScreen.INVENTORY;\n\t\t\t\tbreak;\n\t\t\tcase INITIAL:\n\t\t\t\tcurrentTabScreen = CurrentTabScreen.INITIAL;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t} // End switch statement \n\t\t} // End else if statement \n\t\telse {\n\t\t\tfileType = FileType.UNASSIGNED;\n\t\t} // End else statement\n\t\tchangeToScanTable();\n\t}" ]
[ "0.7221069", "0.7043353", "0.7043353", "0.7009587", "0.7009587", "0.68956757", "0.6869301", "0.665064", "0.66195107", "0.66165197", "0.6562094", "0.6493054", "0.647476", "0.6435448", "0.6427078", "0.6410783", "0.64056844", "0.6389266", "0.6378352", "0.63570803", "0.63456136", "0.6339908", "0.6312919", "0.6298109", "0.62758666", "0.6272789", "0.626752", "0.6260369", "0.6253174", "0.6253174", "0.6246035", "0.62286747", "0.6226561", "0.62245893", "0.61970276", "0.6189405", "0.6169224", "0.6168848", "0.6168378", "0.6142675", "0.6136246", "0.61186105", "0.6104629", "0.61043614", "0.6097399", "0.6095302", "0.6094198", "0.6088715", "0.6078996", "0.60726523", "0.60726523", "0.60576874", "0.60208803", "0.60169524", "0.6010594", "0.5997241", "0.5991496", "0.59663445", "0.5950806", "0.59453326", "0.5944617", "0.59405303", "0.5939592", "0.5937307", "0.59372073", "0.5927912", "0.5921491", "0.5921204", "0.5907877", "0.5893158", "0.5885453", "0.58801377", "0.587706", "0.5876959", "0.5871045", "0.5870731", "0.58696514", "0.5867107", "0.5863484", "0.58631754", "0.5861811", "0.5860813", "0.58513814", "0.58510953", "0.5850576", "0.58467174", "0.5838399", "0.58272135", "0.5826821", "0.5823229", "0.5822114", "0.58184415", "0.5815266", "0.5812537", "0.5801639", "0.580148", "0.57974166", "0.57876056", "0.57863885", "0.57760334", "0.5775814" ]
0.0
-1
Handler is an interface that should be implemented by any class that want to be notified when a message is read from a client socket channel.
@FunctionalInterface public interface Handler { /** * Gets called when a message is received. * * @param session the session object that handles the communication between the server and the client. */ public void onMessage(Session session); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface MessageHandler {\n void onMessage(final byte messageType, final int messageId, final byte[] buffer, final int startIndex, final int length);\n}", "public interface MsgListener {\n\n public void handlerMsg(Channel ctx, SocketMsg msg);\n}", "public void handleMessageFromClient(Object msg) {\n\n }", "public interface OnMessageReceived {\n public void messageReceived(String message);\n }", "public interface ClientHandler extends Remote {\n\n public void handleMessage(Message msg) throws RemoteException;\n\n}", "public interface OnMessageReceived {\n void messageReceived(String message);\n }", "public interface Handler<E extends Message> {\n\n /**\n * The onEvent method should implement and handle behavior related to the event.\n * This can be as simple as calling another service to handle the event on publishing the event on\n * a queue to be consumed by other sub systems.\n * @param event the {@link Event} object to be handled.\n */\n void onEvent(Event event);\n}", "@Override\n\tprotected void channelRead0(ChannelHandlerContext ctx, WsClientMessage msg) throws Exception {\n\t}", "public interface ReceivedDataHandler {\n void handle(String data, String fromAddress);\n }", "public void receive(MessageHandler handler) {\n this.tokenizer = new StreamTokenizer(handler);\n channel.read(readBuffer, this, this.readCompletionHandler);\n }", "public abstract void msgHandler(Message msg);", "public interface OnMessageReceived {\n\t\tpublic void messageReceived(String message);\n\t}", "@Override\n public void channelRead(ChannelHandlerContext ctx, Object msg) {\n try {\n // The incoming message should have been transformed to a CorfuMsg earlier in the pipeline.\n CorfuMsg m = ((CorfuMsg) msg);\n // We get the handler for this message from the map\n AbstractServer handler = handlerMap.get(m.getMsgType());\n if (handler == null) {\n // The message was unregistered, we are dropping it.\n log.warn(\"Received unregistered message {}, dropping\", m);\n } else {\n if (validateEpoch(m, ctx)) {\n // Route the message to the handler.\n log.trace(\"Message routed to {}: {}\", handler.getClass().getSimpleName(), msg);\n handlerWorkers.submit(() -> handler.handleMessage(m, ctx, this));\n }\n }\n } catch (Exception e) {\n log.error(\"Exception during read!\", e);\n }\n }", "public interface ClientHandler {\r\n\r\n\t/**\r\n\t * Handle client.\r\n\t *\r\n\t * @param inFromClient the in from client\r\n\t * @param outToServer the out to server\r\n\t */\r\n\tpublic void handleClient(InputStream inFromClient, OutputStream outToServer);\r\n}", "public interface MessageReceived {\n void onMessageReceived(String message);\n}", "public void handleMessage(Message message);", "@Override\n protected void channelRead0(ChannelHandlerContext ctx, Message msg)\n {\n mDispatcher.dispatch(mPeer, msg);\n }", "public interface CommunicationEventListener extends EventListener {\n // Ajoute un handler\n boolean handleServerResponse(String response);\n}", "public void handleMessage(Message message, Socket socket) throws IOException, HandlingException;", "public interface MessageReceivedListener {\n\t\n\t/**\n\t * Called when new command/message received\n\t * @param msg Command/message as String\n\t */\n\tpublic void OnMessageReceived(String msg);\n\t\n\t/**\n\t * Called when new file is incoming.\n\t * @param length Total length of data expected to be received\n\t * @param downloaded Total length of data actually received so far\n\t */\n\tpublic void OnFileIncoming(int length);\n\t\n\t/**\n\t * Called when more data of a file has been transfered\n\t * @param data Byte array of data received\n\t * @param read The lenght of the data received as int\n\t * @param length Total length of data expected to be received\n\t * @param downloaded Total length of data actually received so far\n\t */\n\tpublic void OnFileDataReceived(byte[] data,int read, int length, int downloaded);\n\t\n\t/**\n\t * Called when file transfer is complete\n\t * @param got\n\t * @param expected\n\t */\n\tpublic void OnFileComplete();\n\t\n\t/**\n\t * Called when an error occur\n\t */\n\tpublic void OnConnectionError();\n\t\n\t/**\n\t * Called when socket has connected to the server\n\t */\n\tpublic void OnConnectSuccess();\n}", "void onMessageReceived(Message message);", "public void OnMessageReceived(String msg);", "@Override\n public void channelRead(ChannelHandlerContext ctx, Object msg)\n {\n throw new IllegalStateException(\"InboundMessageHandler doesn't expect channelRead() to be invoked\");\n }", "@Override\n\tpublic void read(ChannelHandlerContext ctx) throws Exception {\n\t\tLog.i(\"MySocketHandler\", \"read\");\n\t\tsuper.read(ctx);\n\t}", "abstract void onMessage(byte[] message);", "public interface DHandler {\n public void handleMessage(Message msg);\n}", "void onMessageRead(byte[] data);", "@Override\n public void run() {\n while (connected) {\n Message message = getMessage();\n if (!connected)\n break;\n Executors.newCachedThreadPool().execute(() -> {\n try {\n message.handle(messageHandler);\n } catch (IOException e) {\n e.printStackTrace();\n }\n });\n }\n }", "public interface ClientUpdateListener {\n\n /**\n * This method notify the implementer that a message has been received\n *\n * @param message the received message from the server\n */\n void onUpdate(Message message);\n}", "@Override\n public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception {\n\n log.info( ctx.channel().id().asLongText()+\"-> channelRead , msg={}\" , msg.getClass().getName());\n\n ctx.fireChannelRead( msg ) ;\n }", "@Override\n\tpublic void dispatchHandler(Message msg) {\n\t\t\n\t}", "@Override\n\tpublic void onMessageRecieved(Message arg0) {\n\t\t\n\t}", "public interface MessageHandler {\n /**\n * Makes the message handler handle the incoming message\n * @param data The incoming message (parsed JSON)\n * @param sender The ID of the sender from the JSON message\n */\n void invoke(Map<String, Object> data, String sender);\n String getIdentifier();\n}", "void onMessage(String pattern, String channel, String message);", "public interface OnReceiveListener {\n\n /**\n * Called when client receives a message.\n * @param response received message.\n */\n void onReceive( String response );\n }", "protected void handleMessage(Message msg) {}", "boolean handleMessage(Controller handler, RemoteViewHandler view, User user);", "public void handle(int ID, Object message){}", "public interface SocketEventListener {\n\npublic void socketReceive( String s );\n}", "public abstract void messageReceived(String message);", "@Override\n public void handleMessage(Message message) {}", "public interface Handler {\n void handleProductCreated(CommerceProtos.Message message, CommerceProtos.ProductCreated e);\n void handleSiteCreated(CommerceProtos.Message message, CommerceProtos.SiteCreated e);\n void handleCartCreated(CommerceProtos.Message message, CommerceProtos.CartCreated e);\n void handleCustomerCreated(CommerceProtos.Message message, CommerceProtos.CustomerCreated e);\n\t\tvoid handleProductAddToCart(CommerceProtos.Message message, CommerceProtos.ProductAddToCart e);\n\t\tvoid handleCartSuccessfulCheckout(CommerceProtos.Message message, CommerceProtos.CartSuccessfulCheckout e);\n }", "public interface AsyncChannelEventHandler {\n\tstatic final int CHANNEL_CLOSED = 0xFFFFFFFF;\n\tDisruptedReactor getReactor();\n\tdefault int processRead(SelectionKey key) throws IOException { return 0; }\n\tdefault int processWrite(SelectionKey key) throws IOException { return 0; }\n\tdefault int processAccept(SelectionKey key) throws IOException { return 0; }\n\tdefault int processConnect(SelectionKey key) throws IOException { return 0; }\n\t// called before actual key.channel().close()\n\tdefault void onClose(SelectionKey key) {};\n}", "@Override\n public void messageReceived(ChannelHandlerContext ctx, MessageEvent e) {\n Channel ch = ctx.getChannel();\n //Player player = (Player) ch.getAttachment();\n Client client = (Client) ch.getAttachment();\n \n if (ch.isConnected()) { // && !client.getPlayer().destroyed() \n RSCPacket packet = (RSCPacket) e.getMessage();\n //player.addPacket(p); // Used to log packets for macro detection\n //engine.addPacket(p); // This one actually results in the packet being processed!\n client.pushToMessageQueue(packet);\n }\n }", "private void receivedMessage(ChannelHandlerContext channelHandlerContext, ByteBuf response) {\n String message = new String(getByteArray(response));\n if (message.contains(\"Heartbeat\")) {\n logger.info(\"Received Heartbeat message\");\n channelHandlerContext.fireUserEventTriggered(response);\n } else {\n clientChannelHandlerObserver.processResponse(getByteArray(response));\n }\n }", "public interface IMessageHandler {\n\n void HandleMessage(SearchActivity client, JSONObject jsonReader) throws JSONException;\n}", "@Override\n protected void channelRead0(ChannelHandlerContext ctx, ByteBuf msg) {\n System.out.println(\"Client received: \" + ByteBufUtil.hexDump(msg.readBytes(msg.readableBytes())));\n }", "public interface SocketMessageListerner {\n void onGetMessageAck(Message message, int type);\n}", "public abstract void handleClient(Client conn);", "public void handleMessage(Message msg) {\n switch (msg.what) {\n case handlerState:\n String readMessage = (String) msg.obj; // msg.arg1 = bytes from connect thread\n ReceivedData.setData(readMessage);\n break;\n\n case handlerState1:\n tempSound = Boolean.parseBoolean((String) msg.obj);\n ReceivedData.setSound(tempSound);\n break;\n\n case handlerState5:\n if(\"ACK\".equals ((String) msg.obj ))\n ReceivedData.clearPPGwaveBuffer();\n break;\n\n }\n ReceivedData.Process();\n }", "public void onMessage(Session session, Object message) throws IOException {\n\t}", "@Override\n\tpublic void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception {\n\t\tLog.i(\"channelRead\", ((String) msg));\n\t\tsuper.channelRead(ctx, msg);\n\t}", "public interface Handler {\n void handle(SelectionKey selectionKey) throws IOException;\n}", "@Override\n\tprotected void processConnection() {\n\t\t\n\t\twhile(true) {\n\t\t\t\n\t\t\ttry {\n\t\t\t\tint receiverID = (Integer) input.readObject();\n\t\t\t\tString message = (String) input.readObject();\n\t\t\t\t\n\t\t\t\tClientHandler recieverHandler = Server.clientConnections.get(receiverID);\n\t\t\t\tif(recieverHandler == null) {\n\t\t\t\t\tsendData(ERROR_CODE);\n\t\t\t\t\tsendData(\"Not available\");\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\trecieverHandler.sendData(clientID);\n\t\t\t\t\trecieverHandler.sendData(message);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch(ClassNotFoundException classNotFoundException) {\n\t\t\t\tserver.serverGUI.showMessage(\"Unknown object type recieved.\");\n\t\t\t}\n\t\t\tcatch(IOException ioException) {\n\t\t\t\tserver.serverGUI.showMessage(\"Client terminated connection.\\n\");\n\t\t\t\tcloseConnection();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "public void registerHandler(ReceivedDataHandler handler)\n {\n this.handler = handler;\n }", "public interface IReceiveMessage {\n void onConnectSuccess();// 连接成功\n\n void onConnectFailed();// 连接失败\n\n void onClose(); // 关闭\n\n void onMessage(String text);\n}", "void onSomething(org.jboss.netty.buffer.ChannelBuffer buffer);", "public interface RecivMessageCallBack {\n\n\tpublic List<AppServerType> getServerType();\n\n\tpublic void onRecivMessage(Channel ctx, NettyMessage message, String tag, JsonParser parser)throws UnsupportedEncodingException;\n}", "@Override\n\tpublic void channelRead(ChannelHandlerContext ctx, Object msg)\n\t\t\tthrows Exception {\n\t\thandleRequestWithsingleThread(ctx, msg);\n\t}", "public interface MessageHandler {\n\n /**\n * handle message\n * @param result\n */\n public void handleMessage(ConsumerResult result);\n\n}", "@Override\r\n\tpublic void messageReceived(Object obj) {\n\t\t\r\n\t}", "public abstract void handle(Socket socket);", "void onMessage(String message) throws IOException;", "public interface SocketReadProcessor {\n\t\n\t/**\n\t * Process the data and return a response.\n\t * \n\t * <p> This method is called by a socket handler when data is read from it's\n\t * socket. Since the handler read the data the handler is using one of\n\t * MODE_READ, MODE_READ_WRITE or MODE_WRITE_READ. If the handler is using\n\t * MODE_READ_WRITE then the handler will write this method's return value\n\t * back to the socket.\n\t * \n\t * <p> The data will not be null.\n\t * \n\t * <p> The implementation of this method may need to be synchronized if\n\t * multiple socket handler threads will be calling it.\n\t * \n\t * @param data - The data that was read from the socket.\n\t * @param fromId - The unique id of the socket handler thread.\n\t * \n\t * @return A response which will be written back to the socket if the socket\n\t * handler is using MODE_READ_WRITE, otherwise ignored.\n\t */\n\tString processDataFromSocket(String data, long fromId);\n\t\n}", "@Override\n public void onMessage(String channel, String message) {\n if (redisHandler.isAuth()) redisHandler.getJedisPool().getResource().auth(redisHandler.getPassword());\n if (!channel.equalsIgnoreCase(redisHandler.getChannel())) return;\n\n executor.execute(() -> {\n String[] strings = message.split(\"///\");\n\n System.out.println(strings[1]);\n System.out.println(strings[0]);\n\n Object jsonObject = null;\n try {\n jsonObject = redisHandler.getGson().fromJson(strings[0], Class.forName(strings[1]));\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n }\n\n RedisPacket redisPacket = (RedisPacket) jsonObject;\n\n if (redisPacket == null) {\n System.out.println(\"The redis packet received seems to be null!\");\n return;\n }\n\n redisPacket.onReceived();\n });\n }", "@Override\n\tpublic void accept(MessageHandlerVisitor visitor) {\n\n\t\tvisitor.visit(this, null, null, null);\n\t}", "@Override\n public void run() {\n\n startPingTimer();\n String read = \"\";\n\n try {\n while ((read = in.readLine()) != null){\n\n //System.out.println(\"[CLIENT] Received: \" + read);\n messageHandler(read);\n\n }\n closeConnection();\n\n }catch (IOException e){\n\n System.out.println(\"[CLIENT] \" + e.getMessage());\n System.out.println(\"[CLIENT] Connection closed.\");\n\n }\n\n }", "@Override\n\tpublic void messageReceived(ChannelHandlerContext ctx, MessageEvent e) {\n\t\ttransferredBytes.addAndGet(((ChannelBuffer) e.getMessage())\n\t\t\t\t.readableBytes());\n\t\tlogger.info(\"收到消息: \"+e.getMessage());\n\t\te.getChannel().write(e.getMessage());\n\t}", "public interface ClientListener {\n\t/**\n\t * Fired when client list should be updated\n\t * \n\t * @param clients Array of clients\n\t */\n void onClientsUpdated(String[] clients);\n \n /**\n * Fired when a message has been received\n * \n * @param message Message that was received\n */\n void onMessageReceived(Message message);\n \n /**\n * Fired when client has been disconnected from server\n */\n void onDisconnected();\n}", "public interface IServerHandler<_ATTACHMENT>\n{\n\t// Called right after the connection is accepted. Use this event to attach an object of\n\t// type _ATTACHMENT to the connection to store session data.\n void onConnect(IServerConnection<_ATTACHMENT> connection);\n // Called whenever a packet arrives at the server. Use ISendable.getPacketType to determine\n // the PacketType (enum) in order to respond appropriately.\n void onPacket(IServerConnection<_ATTACHMENT> connection, ISendable packet) throws IOException;\n // Called when the connection is closed. This can be called in three cases:\n // 1. the connection was dropped (network error)\n // 2. the other end closed the connection\n // 3. you called connection.close().\n void onClose(IServerConnection<_ATTACHMENT> connection);\n}", "abstract public Object handleMessage(Object message) throws Exception;", "public interface ControllerHandleable {\n /**\n * Every class that represent a message implements this method calling a different\n * controller method\n * @param handler reference to the controller that will handle this message\n * @param view remote view of the player that sent the message\n * @param user user that represent the player at network layer\n * @return true if there where no errors while processing this message\n */\n boolean handleMessage(Controller handler, RemoteViewHandler view, User user);\n\n}", "interface OnProxyConnectedCallback {\n void onConnected(ChannelHandlerContext ctx);\n //void onError(ChannelHandlerContext ctx, Throwable reason);\n }", "@Override\n public void onMessageReceived(RemoteMessage remoteMessage) {\n }", "@Override\n\tpublic void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception {\n\t\tString receiveData = (String)msg;\n\t\tSystem.out.println(receiveData);\n\t}", "public void onEvent(TCPReceiverThread receiverThread, Event event) throws IOException;", "@Override\n\tpublic void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception {\n\t\tctx.write(msg);\n\t}", "private void messageHandler(String read){\n\n try {\n buffer.append(read);\n }catch (MalformedMessageException e){\n System.out.println(\"[CLIENT] The message received is not in XML format.\");\n }\n\n while(!buffer.isEmpty()) {\n if (buffer.getPong()) pong = true;\n else if (buffer.getPing()) send(\"<pong/>\");\n else {\n try {\n clientController.onReceivedMessage(buffer.get());\n } catch (EmptyBufferException e) {\n System.out.println(\"[CLIENT] The buffer is empty!\");\n }\n }\n }\n\n }", "@Override\n\tpublic void onMessage( String message ) {\n\t\tlog.info(\"received: \" + message);\n\t}", "@Override\r\n public void handleMessage(Message msg) {\n }", "public abstract void handleClientSide(T message, EntityPlayer player);", "@Override\n public void run() {\n Message message = new Message();\n message.what = 4;\n handler.sendMessage(message);\n }", "public void handleMessage(Message message, DatagramSocket socket) throws HandlingException, IOException, ClassNotFoundException;", "public void subscribe(final SubscriptionHandler<T> handler) throws IOException {\n\n reader.set_listener(new DataReaderListener() {\n public void on_requested_deadline_missed(DataReader dataReader, RequestedDeadlineMissedStatus requestedDeadlineMissedStatus) {\n\n }\n\n public void on_requested_incompatible_qos(DataReader dataReader, RequestedIncompatibleQosStatus requestedIncompatibleQosStatus) {\n\n }\n\n public void on_sample_rejected(DataReader dataReader, SampleRejectedStatus sampleRejectedStatus) {\n\n }\n\n public void on_liveliness_changed(DataReader dataReader, LivelinessChangedStatus livelinessChangedStatus) {\n\n }\n\n public void on_data_available(DataReader dataReader) {\n\n logger.trace(\"Data available call\");\n\n try {\n\n final ReadResult<T> take =\n typeHandle.take(reader, ResourceLimitsQosPolicy.LENGTH_UNLIMITED, SampleStateKind.ANY_SAMPLE_STATE,\n ViewStateKind.ANY_VIEW_STATE, InstanceStateKind.ALIVE_INSTANCE_STATE);\n\n handler.handle(take);\n\n } catch (Throwable ex) {\n logger.warn(\"Error in data available: \" + ex);\n ex.printStackTrace(System.err);\n }\n }\n\n public void on_sample_lost(DataReader dataReader, SampleLostStatus sampleLostStatus) {\n\n }\n\n public void on_subscription_matched(DataReader dataReader, SubscriptionMatchedStatus subscriptionMatchedStatus) {\n\n }\n }, StatusKind.DATA_AVAILABLE_STATUS);\n\n }", "public void onMessage(Session session);", "public interface SubscriptionListener {\n public void onReceivedMessage(String message);\n}", "public interface ClientConnectionListener\n{\n /**\n * Event for when a Client connects to a server\n * @param client the client which connected\n */\n void clientConnected(Client client);\n\n /**\n * Event for when a Client Disconnects from a server\n * @param client the client which disconnected\n * @param info information about the disconnection\n */\n void clientDisconnected(Client client, DisconnectInfo info);\n}", "@Override\n public void handleMessage(WebSocketSession session, WebSocketMessage<?> message) {\n listener.update(String.valueOf(message.getPayload()));\n }", "@Override\n\tpublic void handlerAdded(ChannelHandlerContext ctx) throws Exception {\n\t\tLog.i(\"MySocketHandler\", \"handlerAdded\");\n\t\tsuper.handlerAdded(ctx);\n\t}", "@Override\n public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception {\n String body = (String) msg;\n System.out.println(body);\n System.out.println(\"第\"+ ++count + \"次收到服务器回应\");\n }", "@Override\n\tpublic void channelReadComplete(ChannelHandlerContext ctx) throws Exception {\n\t\tLog.i(\"MySocketHandler\", \"channelReadComplete\");\n\t\tsuper.channelReadComplete(ctx);\n\t}", "@Override\r\n\tpublic void channelRead(ChannelHandlerContext ctx, Object msg)\r\n\t\t\tthrows Exception {\r\n\r\n\t\ttry {\r\n\t\t\tSystem.out.println(\"server channelRead: \" + msg);\r\n\t\t} finally {\r\n\t\t\t// ByteBuf是一个引用计数对象,这个对象必须显示地调用release()方法来释放\r\n\t\t\t// or ((ByteBuf)msg).release();\r\n\t\t\tReferenceCountUtil.release(msg);\r\n\t\t}\r\n\r\n\t\t// ctx.writeAndFlush(Unpooled.copiedBuffer(\"hello,client\",\r\n\t\t// CharsetUtil.UTF_8));\r\n\t\tString sendMsg=\"hi,client...\";\r\n\t\tctx.writeAndFlush(new MyMessage(new MyHead(\r\n\t\t\t\tsendMsg.getBytes(\"UTF-8\").length, 1), sendMsg));\r\n\t}", "public interface ReceiveCallback extends MessageReceivedCallback{\n}", "@Override\n\tprotected void channelRead0(ChannelHandlerContext ctx, TextWebSocketFrame frame) throws Exception\n\t{\n\t\tci.invoke(frame.text());\n\t}", "ClientHandler(Socket socket) {\n this.client = socket;\n }", "@Override\n public void onMessage(String data) {\n\n log.e(\"ipcChannel received message: [\" + data + \"]\");\n\n try {\n JSONObject json = new JSONObject(data);\n\n onIpcMessage(json);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "@Override\n\tpublic void channelRegistered(ChannelHandlerContext ctx) throws Exception {\n\t\tLog.i(\"MySocketHandler\", \"channelRegistered\");\n\t\tsuper.channelRegistered(ctx);\n\t}", "public interface MessageHandler {\n\n public void setMessage(TextMessage message,String msg);\n}", "public interface INetworkHandlerManager {\n public void registerHandler (String handlerName, INetworkHandler handler);\n public INetworkHandler getHandler (INetworkMessage message);\n}", "@Override\n public void run() {\n Message message = new Message();\n message.what=1;\n handler.sendMessage(message);\n }" ]
[ "0.6998736", "0.69957393", "0.6931682", "0.6821579", "0.6804508", "0.6775488", "0.6722254", "0.6708941", "0.6705646", "0.6686641", "0.6681183", "0.6672351", "0.6665446", "0.6603236", "0.6570645", "0.6542473", "0.6536537", "0.65264827", "0.65129757", "0.65124923", "0.64124674", "0.6387694", "0.6377794", "0.6370602", "0.63701403", "0.63593256", "0.6352916", "0.6344488", "0.6338449", "0.63348037", "0.6334017", "0.6326149", "0.6315695", "0.6290916", "0.62874424", "0.6283201", "0.62782943", "0.6270451", "0.6255848", "0.6255355", "0.6253362", "0.62397105", "0.62393296", "0.6229835", "0.6222386", "0.6222326", "0.6213565", "0.6211152", "0.6201173", "0.6193446", "0.6171658", "0.6164097", "0.6163123", "0.61554754", "0.6141797", "0.6134539", "0.6126091", "0.6122912", "0.61190844", "0.6117704", "0.6098328", "0.6083774", "0.6081122", "0.6053504", "0.6053403", "0.6046527", "0.60373896", "0.6033899", "0.6033111", "0.60330695", "0.60299337", "0.6021632", "0.6017891", "0.6016877", "0.601252", "0.6011182", "0.6005998", "0.599982", "0.59983474", "0.599792", "0.59950775", "0.5993807", "0.5989196", "0.5977836", "0.597779", "0.59719855", "0.5963727", "0.5957905", "0.5949613", "0.5949044", "0.5948982", "0.5948782", "0.5944645", "0.59278977", "0.59243125", "0.59135425", "0.59128326", "0.59012085", "0.5898517", "0.5896201" ]
0.65695727
15
Gets called when a message is received.
public void onMessage(Session session);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void onMessageRecieved(Message arg0) {\n\t\t\n\t}", "void onMessageReceived(Message message);", "public void messageReceived() {\n\tTrackedMessage.accumulateMap(TrackedMessage.unmapType(\n\t\tTrackedMessage.messagesRecieved, this.getClass()), this\n\t\t.getMessageType(), 1);\n\tTrackedMessage.accumulateMap(TrackedMessage.unmapType(\n\t\tTrackedMessage.bytesRecieved, this.getClass()), this\n\t\t.getMessageType(), TrackedMessage.objectSize(this));\n }", "public void messageReceived(Message m) {\n\t\t\r\n\t}", "public void OnMessageReceived(String msg);", "@Override\n public void receiveMessage(String message) {\n }", "@Override\n\tpublic void msgReceived(Message msg) {\n\n\t}", "@Override\n\tpublic void onMessage( String message ) {\n\t\tlog.info(\"received: \" + message);\n\t}", "public abstract void messageReceived(String message);", "@Override\n public void onMessageReceived(RemoteMessage remoteMessage) {\n }", "@Override\r\n\tpublic void messageReceived(Object obj) {\n\t\t\r\n\t}", "@Override\n public void onReceive(Object message) throws Exception {\n }", "@Override\n\tpublic void receive_message(Message m) {\n\t\t\n\t}", "public void messageReceived(Message message) {\n\r\n\t\tLog.info(message.getMsg());\r\n\t}", "public interface OnMessageReceived {\n void messageReceived(String message);\n }", "@OnMessage\n\n public void onMessage(String message) {\n\n System.out.println(\"Received msg: \" + message);\n\n }", "void messageReceived(IMSession session, Message message);", "@Override\n public void onReceive(Object msg) throws Exception {\n }", "public interface OnMessageReceived {\n\t\tpublic void messageReceived(String message);\n\t}", "public interface OnMessageReceived {\n public void messageReceived(String message);\n }", "@Override\n public void handleMessage(Message message) {}", "public void onMessage(String message) {\n\t\t\n\t}", "abstract public boolean onMessageReceived(MMXMessage message);", "@Override\n\tpublic void onMessageReceived(Message m) {\n\t\thandle.addMessage(m);\n\t\trefreshMessages();\n\t}", "@Override\n\tprotected void doReceiveMessage(Message msg) {\n\t\tdeliverMessage(msg);\n\t}", "void onMessageRead(byte[] data);", "abstract void onMessage(byte[] message);", "@Override\n\tpublic void onMessage(Object arg0) {\n\t\t\n\t}", "public void handleMessage(Message message);", "void onReceive(Message message) throws IOException {\n server.onReceive(message);\n }", "@Override\n\tpublic void receive(String msg) {\n\t\t\n\t}", "void onNewMessage(String message);", "public void receiveMessage(String message) {\n\t\tthis.observable.notifyObservers(message);\r\n\t}", "@Override\n\tpublic void onMessageReceived(ACLMessage message) {\n\n\t}", "abstract protected void receiveMessage(Message m);", "public interface MessageReceived {\n void onMessageReceived(String message);\n}", "public void onMessage(Message message) {\n lastMessage = message;\n\n }", "public abstract void onTextReceived(String message);", "@Override\r\n public void handleMessage(Message msg) {\n }", "public void onMessage(String message) {\n\t\t\t\t\tCometMessage msg = deserializeMessage(message);\n\t\t\t\t\tif(msg != null)\n\t\t\t\t\t\tlistener.onMessage(msg);\n\t\t\t\t}", "public synchronized void handleMessage(String message) {\n Log.d(TAG, \"incoming message:\" + message);\n OnMessageReceivedListener listener = listenerReference.get();\n if(listener != null) {\n Log.d(TAG, \"listener not null. Handling message..\");\n listener.handleMessage(message);\n }\n else {\n Log.d(TAG, \"listener null!!\");\n }\n }", "public void onRecieve(RoundTimeMessage message) {\n\n\n }", "public void onDataReceived(byte[] data, String message) {\n }", "protected void handleMessage(Message msg) {}", "@Override\n\t\t\t\tpublic void messageArrived(MqttTopic topicName,\n\t\t\t\t\t\tMqttMessage message) throws Exception {\n\t\t\t\t\tSystem.out.println(\"messageArrived----------\");\n\t\t\t\t\tMessage msg = new Message();\n\t\t\t\t\tmsg.what = 1;\n\t\t\t\t\tmsg.obj = message.toString();\n\t\t\t\t\thandler.sendMessage(msg);\n\t\t\t\t}", "void received() throws ImsException;", "@Override\n public void receiveMessage(Message m) {\n commReceiver.receiveMessage(m);\n }", "@Override\n\t\t\tpublic void onMessage(Message message) {\n\t\t\t\tTextMessage msg = null;\n\t\t\t\t\n\t\t\t\tif(message instanceof TextMessage){\n\t\t\t\t\tmsg = (TextMessage)message;\n\t\t\t\t\ttry {\n\t\t\t\t\t\tSystem.out.println(\"Consumer:->Receiving message: \"+ msg.getText());\n\t\t\t\t\t} catch (JMSException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"Message of wrong type: \"+message.getClass().getName());\n\t\t\t\t}\n\t\t\t}", "@SuppressWarnings(\"WeakerAccess\")\n\tprotected abstract void onMessageReceived(@NonNull BroadcastMessage message);", "public void receive(Message message) {\n try {\n if (logObj.isDebugEnabled()) {\n logObj.debug(\"Received Message from: \" + message.getSrc());\n }\n\n CayenneEvent event = messageObjectToEvent((Serializable) message.getObject());\n if (event != null) {\n if (logObj.isDebugEnabled()) {\n logObj.debug(\"Received CayenneEvent: \" + event.getClass().getName());\n }\n\n onExternalEvent(event);\n }\n } catch (Exception ex) {\n logObj.info(\"Exception while processing message: \", ex);\n }\n\n }", "@Override\n\t\tpublic void onMessage(Message message) {\n\t\t\tTextMessage msg = null;\n\t\t\t\n\t\t\tif(message instanceof TextMessage){\n\t\t\t\tmsg = (TextMessage)message;\n\t\t\t\ttry {\n\t\t\t\t\tSystem.out.println(\"Consumer:->Receiving message: \"+ msg.getText());\n\t\t\t\t} catch (JMSException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"Message of wrong type: \"+message.getClass().getName());\n\t\t\t}\n\t\t}", "@Override\n public void processMessage(int type, String receivedMsg) {\n }", "@Override\r\n\tpublic void onMessage(BmobMsg message) {\n\t\trefreshNewMsg(message);\r\n\t}", "public void onMessage(Message arg0) {\n\r\n\t}", "@Override\n\tpublic void receive(String message) {\n\t\tgetReceiveArea().append(message + \"\\n\");\n\t}", "@Override\n\tpublic void addMessageReceivedListener(MessageReceivedListener messageReceivedListener) {\n\n\t}", "@Override\n //here the messageReceived method is implemented\n public void messageReceived(String message) {\n publishProgress(message);\n }", "@Override\n //here the messageReceived method is implemented\n public void messageReceived(String message) {\n publishProgress(message);\n }", "@Override\n //here the messageReceived method is implemented\n public void messageReceived(String message) {\n publishProgress(message);\n }", "@Override\n //here the messageReceived method is implemented\n public void messageReceived(String message) {\n publishProgress(message);\n }", "@Override\r\n\tpublic void receiveMessage(Stanza stanza, Object payload) {\n\t\t\r\n\t}", "public void onMessage(Message message) {\n gameManager.onMessage(message);\n }", "private Message onMessageReceived(String message, DecentSocket origin) {\n\t\tGson gson = new Gson();\n\t\tJsonObject messageObj = JsonParser.parseString(message).getAsJsonObject();\n\t\t//Timestamp member required for all messages\n\t\tif(messageObj.has(\"timestamp\")) {\n\t\t\tString type = messageObj.get(\"type\").getAsString();\n\t\t\tswitch(type) {\n\t\t\t\tcase \"chat\":\n\t\t\t\t\tchatMessageCallback.apply(gson.fromJson(message, ChatMessage.class), origin);\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"peerAsk\":\n\t\t\t\t\treturn onPeerAskMessageReceived(gson.fromJson(message, PeerAskMessage.class), origin);\n\t\t\t\tcase \"peers\":\n\t\t\t\t\treturn onPeersMessageReceived(gson.fromJson(message, PeersMessage.class), origin);\n\t\t\t\tcase \"ping\":\n\t\t\t\t\treturn onPingMessageReceived(gson.fromJson(message, PingMessage.class), origin);\n\t\t\t\tcase \"pong\":\n\t\t\t\t\treturn onPongMessageReceived(gson.fromJson(message, PongMessage.class), origin);\n\t\t\t\tcase \"historyAsk\":\n\t\t\t\t\treturn onHistoryAskMessageReceived(gson.fromJson(message, HistoryAskMessage.class), origin);\n\t\t\t\tcase \"history\":\n\t\t\t\t\treturn onHistoryMessageReceived(gson.fromJson(message, HistoryMessage.class), origin);\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "@Override\n public void onMessage(Message message) {\n try {\n // Generate data\n QueueProcessor processor = getBean(QueueProcessor.class);\n ServiceData serviceData = processor.parseResponseMessage(response, message);\n\n // If return is a DataList or Data, parse it with the query\n if (serviceData.getClientActionList() == null || serviceData.getClientActionList().isEmpty()) {\n serviceData = queryService.onSubscribeData(query, address, serviceData, parameterMap);\n } else {\n // Add address to client action list\n for (ClientAction action : serviceData.getClientActionList()) {\n action.setAddress(getAddress());\n }\n }\n\n // Broadcast data\n broadcastService.broadcastMessageToUID(address.getSession(), serviceData.getClientActionList());\n\n // Log sent message\n getLogger().log(QueueListener.class, Level.DEBUG,\n \"New message received from subscription to address {0}. Content: {1}\",\n getAddress().toString(), message.toString());\n } catch (AWException exc) {\n broadcastService.sendErrorToUID(address.getSession(), exc.getTitle(), exc.getMessage());\n\n // Log error\n getLogger().log(QueueListener.class, Level.ERROR, \"Error in message from subscription to address {0}. Content: {1}\", exc,\n getAddress().toString(), message.toString());\n } catch (Exception exc) {\n broadcastService.sendErrorToUID(address.getSession(), null, exc.getMessage());\n\n // Log error\n getLogger().log(QueueListener.class, Level.ERROR, \"Error in message from subscription to address {0}. Content: {1}\", exc,\n getAddress().toString(), message.toString());\n }\n }", "public void onMessage(Session session, Object message) throws IOException {\n\t}", "public void messageReceived(String message) {\r\n\t\t// display incoming message to screen.\r\n\t\tthis.chatArea.append(message + \"\\n\");\r\n\t}", "private void receivedMessage(ChannelHandlerContext channelHandlerContext, ByteBuf response) {\n String message = new String(getByteArray(response));\n if (message.contains(\"Heartbeat\")) {\n logger.info(\"Received Heartbeat message\");\n channelHandlerContext.fireUserEventTriggered(response);\n } else {\n clientChannelHandlerObserver.processResponse(getByteArray(response));\n }\n }", "void onMessage(String message) throws IOException;", "void systemMessageReceived(IMSession session, Message message);", "@Override\n\t\tpublic void handleMessage(Message msg) {\n\t\t\tsuper.handleMessage(msg);\n\t\t\tswitch (msg.what) {\n\t\t\tcase 0:\n\t\t\t\ttv_read.setText(msg.obj.toString());\n\t\t\t\tToast.makeText(N20PINPadControllerActivity.this, \"recv\",\n\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "private void messageHandler(String read){\n\n try {\n buffer.append(read);\n }catch (MalformedMessageException e){\n System.out.println(\"[CLIENT] The message received is not in XML format.\");\n }\n\n while(!buffer.isEmpty()) {\n if (buffer.getPong()) pong = true;\n else if (buffer.getPing()) send(\"<pong/>\");\n else {\n try {\n clientController.onReceivedMessage(buffer.get());\n } catch (EmptyBufferException e) {\n System.out.println(\"[CLIENT] The buffer is empty!\");\n }\n }\n }\n\n }", "@Override\n\tpublic void processMessage(Message message) {\n\t\t\n\t}", "@Override\n public void handleMessage(Message msg) {\n Bundle data = msg.getData();\n if (data.containsKey(\"command\")) {\n if (data.getString(\"command\").equalsIgnoreCase(\"get_data\")) {\n mGetDataMessenger = msg.replyTo;\n getData();\n }\n }\n }", "public void messageReceived(OscMessage aMessage);", "@Override\n\tpublic void onMessage(CommandMessage msg) {\n\t}", "void onMessage(String pattern, String channel, String message);", "@Override\r\n\tpublic void onReceive(Object arg0) throws Exception {\n\t\t\r\n\t}", "public void onReceive();", "protected abstract void onReceiveMessage(Context context, Intent intent);", "@Override\r\n public void onReceiveResult(Message message) {\r\n switch (message.what) {\r\n //TODO\r\n }\r\n }", "default void onMessageReceived(Group group, Message message, Ordering ordering) {}", "@Override\n public void onReceive(Context context, Intent intent) {\n String message = intent.getStringExtra(\"message\");\n Log.d(\"receiver\", \"Got message: \" + message);\n }", "@Override\n public void onReceive(Context context, Intent intent) {\n String message = intent.getStringExtra(\"message\");\n Log.d(\"receiver\", \"Got message: \" + message);\n }", "@Override\n public void run() {\n Message message = mHandler.obtainMessage(1);\n mHandler.sendMessage(message);\n }", "@Override\n\tpublic void messageArrived(String topic, MqttMessage message)\n\t throws Exception {\n\t\t\n\t}", "@Override\n\tpublic void receive() {\n\t}", "private void messageRecv(M msg) {\n if (LOG.isTraceEnabled()) {\n LOG.trace(\"messageRecv = {}\", msg);\n } else if (LOG.isDebugEnabled()) {\n LOG.debug(\"messageRecv = {}\", msg.getClass().getName());\n }\n\n synchronized (_subscribers) {\n for (SubscriberImpl subscriber : _subscribers) {\n subscriber.message(msg);\n }\n }\n }", "@Override\n\tpublic void onMessage(Message message) {\n\t\tSystem.out.println(message.getBody());\n\t}", "@Override\n public void onMessageReceived(String from, Bundle data) {\n String message = data.getString(\"message\");\n String key = data.getString(\"key\");\n String value = data.getString(\"value\");\n String enum_text = data.getString(\"enum_text\");\n String extra = data.getString(\"extra\");\n Log.i(TAG, \"From: \" + from);\n Log.i(TAG, \"Message: \" + message);\n\n /**\n * Process the message here.\n * Eg: - Syncing with server.\n * - Store message in local database.\n * - Update UI.\n */\n\n /**\n * In some cases it may be useful to show a notification indicating to the user\n * that a message was received.\n */\n }", "public abstract void receiveMessage(T message);", "public void receive(Message message) {\n\t\t\tappReceiver.getBufferReceive().add(message);\r\n\t\t\t\t\r\n\t\t}", "public void messageArrived(StatusMessage statusMessage);", "public void onMessageReceived(String message) {\n\t\t\n\t\tILogger logger = LoggerFactory.getLoggerInstance();\n\t\t/** \n\t\t * Create instance of processing module handler and pass message to it. \n\t\t * Processing module handler perform corresponding operation and\n\t\t * compute the changes to be sent to UI\n\t\t */\n\t\tObjectHandler objectHandler = new ObjectHandler();\n\t\tobjectHandler.onMessageReceived(message);\n\t\tlogger.log(ModuleID.PROCESSING, \n\t\t\t\tLogLevel.INFO,\n\t\t\t\t\"Test: Passed the message to processing module ObjectHandler.\");\n\t}", "@Override\n public void onMessageReceived(RemoteMessage remoteMessage) {\n Log.d(\"TAG\", \"From: \" + remoteMessage.getFrom());\n\n // Check if message contains a data payload.\n if (remoteMessage.getData().size() > 0) {\n Log.d(\"TAG\", \"Message data payload: \" + remoteMessage.getData());\n\n if (/* Check if data needs to be processed by long running job */ true) {\n // For long-running tasks (10 seconds or more) use Firebase Job Dispatcher.\n scheduleJob();\n } else {\n // Handle message within 10 seconds\n handleNow();\n }\n\n }\n\n // Check if message contains a notification payload.\n if (remoteMessage.getNotification() != null) {\n Log.d(\"TAG\", \"Message Notification Body: \" + remoteMessage.getNotification().getBody());\n }\n\n // Also if you intend on generating your own notifications as a result of a received FCM\n // message, here is where that should be initiated. See sendNotification method below.\n }", "public void onMessage(Message message)\n {\n \tObjectMessage om = (ObjectMessage) message;\n\t\tTypeMessage mess;\n\t\ttry {\n\t\t\tmess = (TypeMessage) om.getObject();\n\t\t\tint id = om.getIntProperty(\"ID\");\n\t\t\tview.updatelistTweetFeed(mess, id);\n\t\t\tSystem.out.println(\"received: \" + mess.toString());\n\t\t} catch (JMSException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t\n\t\t\n }", "@Override\n public void onReceive(Context context, Intent intent) {\n String message = intent.getStringExtra(\"message\");\n Log.d(\"receiver\", \"Got message: \" + message);\n\n textView.setText(message);\n }", "@Override public void onMessageReceived(RemoteMessage remoteMessage) {\n FCMManager.getInstance(getApplicationContext()).onMessage(remoteMessage);\n }", "@Override\n\tpublic void readMessage(Message message) {\n\t\t\n\t}", "@Override\n\tpublic void onChatReceived(ChatEvent arg0) {\n\t\t\n\t}", "public void handleMessage(Message msg) {\n switch (msg.what) {\n case handlerState:\n String readMessage = (String) msg.obj; // msg.arg1 = bytes from connect thread\n ReceivedData.setData(readMessage);\n break;\n\n case handlerState1:\n tempSound = Boolean.parseBoolean((String) msg.obj);\n ReceivedData.setSound(tempSound);\n break;\n\n case handlerState5:\n if(\"ACK\".equals ((String) msg.obj ))\n ReceivedData.clearPPGwaveBuffer();\n break;\n\n }\n ReceivedData.Process();\n }" ]
[ "0.82911724", "0.82907176", "0.80542564", "0.80396503", "0.7990698", "0.79007787", "0.78859997", "0.7880348", "0.782968", "0.7759888", "0.7659463", "0.76434946", "0.7642499", "0.75571823", "0.752257", "0.74950284", "0.7479763", "0.7472363", "0.74712574", "0.7453684", "0.74278533", "0.742215", "0.7412617", "0.7402908", "0.73860115", "0.73823774", "0.7353041", "0.7344572", "0.73391116", "0.73302734", "0.73141", "0.72870296", "0.728145", "0.7241112", "0.7235175", "0.72063327", "0.7201627", "0.71902734", "0.7172812", "0.71599215", "0.7139389", "0.71205455", "0.71205", "0.7115466", "0.7110326", "0.71071476", "0.71032643", "0.7085074", "0.70824164", "0.7070918", "0.70705944", "0.7063634", "0.70617956", "0.704731", "0.7041262", "0.7037179", "0.70365804", "0.70365804", "0.70365804", "0.70365804", "0.7028966", "0.7023559", "0.7017464", "0.69754946", "0.6975176", "0.6972474", "0.6929288", "0.69195074", "0.6917221", "0.6906035", "0.69015586", "0.6901434", "0.68898124", "0.6886865", "0.68827605", "0.687732", "0.68719435", "0.6869564", "0.68674827", "0.68569404", "0.6856601", "0.68517214", "0.68517214", "0.6834067", "0.68246293", "0.68206954", "0.68154496", "0.68125534", "0.67967474", "0.67902297", "0.6786394", "0.67663807", "0.6760646", "0.6749217", "0.6743162", "0.6734442", "0.6732792", "0.672258", "0.67176807", "0.67173964" ]
0.6718362
98
/ end of global gn3270_screen data
public void paint(Graphics g){ /* * override default paint to draw * screen image in panel using current * scn_background. */ g.drawImage(scn_image,0,0,scn_width,scn_height,scn_background_color,this); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void finalScreen() {\r\n\t\tdisplay.setLegend(GAME_OVER);\r\n\t\tdisplay.removeKeyListener(this);\r\n\t}", "public void updateScreen()\n {\n field_50064_a.updateCursorCounter();\n }", "void switchScreen()\n {\n\n byte[] data = new byte[13];\n data[0] = (byte)0xF0;\n data[1] = (byte)0x00;\n data[2] = (byte)0x01;\n data[3] = (byte)0x05;\n data[4] = (byte)0x21;\n data[5] = (byte)DEFAULT_ID; //(byte)getID();\n data[6] = (byte)0x02; // \"Write Dump\" What??? Really???\n data[7] = (byte)0x15; // UNDOCUMENTED LOCATION\n data[8] = (byte)0x00; // UNDOCUMENTED LOCATION\n data[9] = (byte)0x01; // UNDOCUMENTED LOCATION\n data[10] = (byte)0x00; \n data[11] = (byte)0x00;\n data[12] = (byte)0xF7;\n tryToSendSysex(data);\n }", "public abstract TnScreen getCurrentScreen();", "private void initVars(){\n this.sOut = new StringBuilder();\n this.curPos = this.frameCount = 0;\n this.heldKeys = new int[257];\n this.showCursor = false;\n this.fontId = DAGGER40;\n Arrays.fill(this.heldKeys,-1);\n }", "private void startingScreen() {\n screenWithGivenValues(-1,-2,1,2,3,-1,0);\n }", "public void paintFinalScreen() {\n\t\tapp.image(end, 0, 0);\n\t}", "void checkCurrentScreen();", "public void updateScreen(){}", "private void returnScreen(){\r\n dispose();\r\n playScreen.combatExit();\r\n }", "public void loadScreen() {\n Intent intent = new Intent(this, DataCapture.class);\n intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK);\n startActivity(intent);\n finish();\n System.exit(0);\n\n }", "public void DrawScreen() {\r\n DrawScreen(0, false, null);\r\n }", "public void hideScreen() {\n\t}", "public void clearScreen();", "public static void displayProgramEnd() \r\n {\n }", "public void drawScreen(int par1, int par2, float par3)\n {\n \tStringTranslate var1 = StringTranslate.getInstance();\n this.drawDefaultBackground();\n this.drawCenteredString(this.fontRenderer, this.screenTitle, this.width / 2, 20, 16777215);\n int var4 = this.func_73907_g();\n int var5 = 0;\n\n while (var5 < this.options.keyBindings.length)\n {\n boolean var6 = false;\n int var7 = 0;\n\n while (true)\n {\n if (var7 < this.options.keyBindings.length) // checking for collisions in the minimap's bindings, and the game's bindings from 0 to the size of the minimap's bindings\n {\n if (this.options.keyBindings[var5].keyCode == Keyboard.KEY_NONE || (var7 == var5 || this.options.keyBindings[var5].keyCode != this.options.keyBindings[var7].keyCode) && (this.options.keyBindings[var5].keyCode != this.options.game.gameSettings.keyBindings[var7].keyCode))\n {\n ++var7;\n continue;\n }\n\n var6 = true; // collision\n }\n \n if (var7 < this.options.game.gameSettings.keyBindings.length) // continue checking for collisions only among the standard game's keybindings - an array larger than that of the minimap.\n {\n if (this.options.keyBindings[var5].keyCode == Keyboard.KEY_NONE || this.options.keyBindings[var5].keyCode != this.options.game.gameSettings.keyBindings[var7].keyCode)\n {\n ++var7;\n continue;\n }\n\n var6 = true; // collision\n }\n\n if (this.buttonId == var5) // buttonId is currently being edited button. Draw > ??? <\n {\n ((GuiButton)this.controlList.get(var5)).displayString = \"\\u00a7f> \\u00a7e??? \\u00a7f<\";\n }\n else if (var6) // key collision, draw red\n {\n ((GuiButton)this.controlList.get(var5)).displayString = \"\\u00a7c\" + this.options.getOptionDisplayString(var5);\n }\n else // just show current binding\n {\n ((GuiButton)this.controlList.get(var5)).displayString = this.options.getOptionDisplayString(var5);\n }\n\n this.drawString(this.fontRenderer, this.options.getKeyBindingDescription(var5), var4 + var5 % 2 * 160 + 70 + 6, this.height / 6 + 24 * (var5 >> 1) + 7, -1);\n ++var5;\n break;\n }\n }\n \n this.drawCenteredString(this.fontRenderer, var1.translateKey(\"controls.minimap.unbind1\"), this.width / 2, this.height / 6 + 115, 16777215);\n this.drawCenteredString(this.fontRenderer, var1.translateKey(\"controls.minimap.unbind2\"), this.width / 2, this.height / 6 + 129, 16777215);\n\n\n super.drawScreen(par1, par2, par3);\n }", "public static void changeScreens() {\r\n\t\tnone = true;\r\n\t\toption1 = false;\r\n\t\toption2 = false;\r\n\t\toption3 = false;\r\n\t\toption4 = false;\r\n\t\toption5 = false;\r\n\t\tbackToRegFromItem = false;\r\n\t\toverItem = false;\r\n\t\toverYes = false;\r\n\t\toverNo = false;\r\n\t\toverNext = false;\r\n\t\toverHealth = false;\r\n\t\toverAlly = false;\r\n\t\toverPummel = false;\r\n\t\toverLaser = false;\r\n\t\titemSelect = false;\r\n\t\tgoBackFromProg = false;\r\n\t\tgoBackFromAlly = false;\r\n\t\toverAnAlly = false;\r\n\t\tgoBackFromAttire = false;\r\n\t\toverAnOutfit = false;\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "@Override\r\n public CHScreen getScreen() {\n return curScreen;\r\n }", "private void updatescreen2(){\n screen2.setText(displayscreen2);}", "public void mo14069D() {\n this.f15664t0.onDisplayGathering();\n }", "public void updateScreen() {\n/* 25 */ this.ipEdit.updateCursorCounter();\n/* */ }", "public void performRequestCurrentDump()\n {\n super.performRequestCurrentDump();\n switchScreen();\n }", "private void refreshScreen() {\n app.getMainMenu().getTextField().clear();\n for (int key = 0; key < 96; key++) {\n app.getWorkSpace().getGridCell(key).unhighlightGridCell();\n app.getWorkSpace().getGridCell(key).updateState(app);\n }\n Storage.getInstance().writeObject(\"workspace\", app.getWorkSpace().getWorkSpaceMap());\n app.show();\n }", "protected void end() {\n\t\tLiquidCrystal lcd = RobotMap.lcd;\n\t\tlcd.clear();\n\n\t\tRobotMap.chassisfrontLeft.set(0);\n\t\tRobotMap.chassisfrontRight.set(0);\n\t\tRobotMap.chassisrearLeft.set(0);\n\t\tRobotMap.chassisrearRight.set(0);\n\t\t\n\t\tRobotMap.climberclimbMotor.set(0);\n\t\tRobotMap.floorfloorLift.set(0);\n\t\tRobotMap.acquisitionacquisitionMotor.set(0);\n\n\n\t}", "private void switchToEndScreen() {\n\t\tprogram.removeAll();\n\t\tprogram.add(endScreen);\n\t\tAudioPlayer.getInstance().playSound(\"sounds\", \"HyperSpaceSound.mp3\");\n\t}", "public void updateScreen()\n {\n super.updateScreen();\n }", "@Override\n\tpublic void updateScreen() {\n\t\tfield_154330_a.tick();\n\t\tsuper.updateScreen();\n\t}", "public void resetScreen(){\n\t\tGame_Map_Manager.infoVisible= false;\n\t\tGame_PauseMenu.actorManager.open = false;\n\t\tPlayerGoals.open = false;\n\t\tGame_Shop.actorManager.open = false;\n\t\tTrainDepotUI.actorManager.open = false;\n\t\tGameScreenUI.resourcebarexpanded =false;\n\t\tGoalMenu.open= false;\n\t\t\n\t\t//CARDS\n\t\tGame_CardHand.actorManager.open=false;\n\t\tGame_CardHand.actorManager.cardactors.clear();;\n\t\t\n\t\t//Map\n\t\tGame_StartingSequence.reset();\n\t\tGame_Map_Manager.resetMap();\n\t}", "private void addScreenUsage() {\n double power = 0;\n long screenOnTimeMs = mStats.getScreenOnTime(mRawRealtimeUs, mStatsType) / 1000;\n power += screenOnTimeMs * mPowerProfile.getAveragePower(PowerProfile.POWER_SCREEN_ON);\n final double screenFullPower =\n mPowerProfile.getAveragePower(PowerProfile.POWER_SCREEN_FULL);\n for (int i = 0; i < BatteryStats.NUM_SCREEN_BRIGHTNESS_BINS; i++) {\n double screenBinPower = screenFullPower * (i + 0.5f)\n / BatteryStats.NUM_SCREEN_BRIGHTNESS_BINS;\n long brightnessTime = mStats.getScreenBrightnessTime(i, mRawRealtimeUs, mStatsType)\n / 1000;\n double p = screenBinPower * brightnessTime;\n if (DEBUG && p != 0) {\n Log.d(TAG, \"Screen bin #\" + i + \": time=\" + brightnessTime\n + \" power=\" + makemAh(p / (60 * 60 * 1000)));\n }\n power += p;\n }\n power /= (60 * 60 * 1000); // To hours\n if (power != 0) {\n addEntry(BatterySipper.DrainType.SCREEN, screenOnTimeMs, power);\n }\n }", "public int getScreenNumber(){\n\t\treturn screenNumber;\n\t}", "public void factoryMainScreen()\n\t{\n\t\t\n\t}", "@Override\n\tpublic void process() {\n\n\t\tInputCommand cmd = InputManager.nextCommandPreserveKeyData();\n\t\tif (cmd != null) {\n\t\t\tswitch (cmd) {\n\n\t\t\tcase NEW:\n\t\t\t\tsetNextScreen(new NewGameScreen(terminal));\n\t\t\t\tbreak;\n\n\t\t\tcase LOAD:\n\t\t\t\tsetNextScreen(new MainScreen(this.terminal, loadGame()), false);\n\t\t\t\tbreak;\n\n\t\t\tcase CANCEL:\n\t\t\t\tSystem.exit(0);\n\n\t\t\tdefault:\n\t\t\t}\n\t\t}\n\t}", "public game_screen getNextScreen() {\n return nextScreen;\n }", "public void changeScreen() {\n\t\tswitch(screen) {\n\t\t\n\t\t// Pantalla Home\n\t\tcase 0:\n\t\t\thomeScreen.draw();\n\t\t\tbreak;\n\t\t\t\n\t\t// Pantalla Instrucciones\n\t\tcase 1:\n\t\t\tinstructionScreen.draw();\n\t\t\tbreak;\n\t\t\t\n\t\t// Pantalla Esperar jugadores\n\t\tcase 2:\n\t\t\tplayerWaitScreen.draw();\n\t\t\tscreen = 3;\n\t\t\tbreak;\n\t\t\t\n\t\t// Pantalla Juego\n\t\tcase 3:\n\t\t\tgameScreen.draw();\n\t\t\tc.draw();\n\t\t\tc.move();\n\t\t\tbreak;\n\t\t}\n\t}", "@Override\n protected void screenMode(int mode) {\n\n }", "public void setScreen(GameScreen screen);", "public void display_game_screen() {\n\n myScreen.screenMode = myScreen.DISPLAY_GAME_SCREEN;\n\n pushMatrix();\n\n calc_screen_translation();\n\n imageMode(CORNER);\n image(backgroundImage, 0, 0);\n\n // draw_grid();\n\n draw_game_assets();\n\n pacman.update(isPacmanUp, isPacmanDown, isPacmanLeft, isPacmanRight);\n ghost.update(isGhostUp, isGhostDown, isGhostLeft, isGhostRight);\n\n pacman.display();\n ghost.display();\n\n score.run(pacman.xTile, pacman.yTile, ghost.xTile, ghost.yTile);\n\n popMatrix();\n }", "public int getScrnNo()\n\t{\n\t\treturn scrnNo;\n\t}", "static void clear_console_screen()\n\t{\n\t\tfor (int lines=0; lines<200; lines++)\n\t\t{\n\t\t\tSystem.out.println(\" \");\n\t\t}// end for (int lines=0; lines<200; lines++)\n\t\t\n\t}", "public void mo1402b() {\n if (CarlifeConfig.m4065a()) {\n LogUtil.d(f2837a, \"onStop: Internal screen capture not send background msg. \");\n return;\n }\n LogUtil.d(f2837a, \"onStop: full screen capture send background msg.\");\n BtHfpProtocolHelper.m3442a(false, false);\n }", "public void mo1404d() {\n if (CarlifeConfig.m4065a()) {\n LogUtil.d(f2837a, \"onResume: Internal screen capture not send forground msg.\");\n return;\n }\n LogUtil.d(f2837a, \"onResume: full screen capture send forground msg.\");\n BtHfpProtocolHelper.m3442a(false, true);\n }", "private void initialScreen() {\r\n\t\t// Clear the screen\r\n\t\tclear();\r\n\r\n\t\t// Place four asteroids\r\n\t\tplaceAsteroids();\r\n\r\n\t\t// Place the ship\r\n\t\tplaceShip();\r\n\r\n\t\t// Reset statistics\r\n\t\tlives = 3;\r\n\t\tdisplay.setLives(lives);\r\n\t\tnumLevel = 1;\r\n\t\tdisplay.setLevel(numLevel);\r\n\t\tdisplay.setScore(0);\r\n\t\tspeed = 3;\r\n\r\n\t\t// Start listening to events\r\n\t\tdisplay.removeKeyListener(this);\r\n\t\tdisplay.addKeyListener(this);\r\n\r\n\t\t// Give focus to the game screen\r\n\t\tdisplay.requestFocusInWindow();\r\n\t}", "private static void clearScreen()\n {\n System.out.print('\\u000C');\n }", "public GraphicsDevice getScreen();", "public void setScreenForGame(){\r\n screen.removeAll();\r\n screen.repaint();\r\n }", "public static void clearScreen()\r\n\t{\r\n\t\tSystem.out.println(\"\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\");\r\n\t}", "private void handle_mode_display() {\n\t\t\t\n\t\t}", "public void print_dev() {\n\t\tSystem.out.println(\r\n\t\t\t\t\t\t\t\t\t\"[System] 펫 정보입니다.\\n 이름 : \"+TMGCSYS.tmgcName\r\n\t\t\t\t\t\t\t\t+\t\", 레벨 : \"+TMGCSYS.tmgcLV+\", 경험치 : \"+TMGCSYS.tmgcEXP+\"/\"+(100*TMGCSYS.tmgcLV)\r\n\t\t\t\t\t\t\t\t+\t\", 체력 : \"+TMGCSYS.tmgcHP+\", 스트레스 : \"+TMGCSYS.tmgcStress+\"\\n\\n\\n\"\r\n\t\t\t\t\t\t\t\t+\t\" Function Limit Count\\n\"\r\n\t\t\t\t\t\t\t\t+\t\" Eat : \"+TMGCSYS.tmgcLimitEat+\", Sleep : \"+TMGCSYS.tmgcLimitSleep\r\n\t\t\t\t\t\t\t\t+\t\", Walk : \"+TMGCSYS.tmgcLimitWalk+\", Study : \"+TMGCSYS.tmgcLimitStudy+\"\\n\\n\\n\"\r\n\t\t\t\t\t\t\t\t+\t\" Character Ability\\n\"\r\n\t\t\t\t\t\t\t\t+\t\" STR : \"+TMGCSYS.tmgcSTR+\", INT : \"+TMGCSYS.tmgcINT\r\n\t\t\t\t\t\t\t\t+\t\", DEB : \"+TMGCSYS.tmgcDEB+\", HET : \"+TMGCSYS.tmgcHET+\"\\n\\n\\n\"\r\n\t\t\t\t\t\t\t\t+\t\" Character Job : \"+TMGCSYS.tmgc2ndJob\r\n\t\t\t\t\t\t\t\t);\r\n\t}", "public String getScreen() {\n\t\treturn screen;\n\t}", "private void m24192d(ah ahVar) {\n Object obj = new int[2];\n ahVar.f995b.getLocationOnScreen(obj);\n ahVar.f994a.put(\"android:slide:screenPosition\", obj);\n }", "public void setNextScreen(game_screen nextScreen) {\n this.nextScreen = nextScreen;\n }", "public void setScreen(final Rect screen)\n {\n this.screen = screen;\n }", "public void updateScreen() {\r\n\t\tsuper.updateScreen();\r\n\r\n\t\tif (!this.mc.thePlayer.isEntityAlive() || this.mc.thePlayer.isDead) {\r\n\t\t\tthis.mc.thePlayer.closeScreen();\r\n\t\t}\r\n\t}", "public void drawScreen(int var1, int var2, float var3) {\r\n String[] var13 = field_989;\r\n String var5 = \"Activer ToggleSneak\";\r\n String var6 = \"Activer ToggleSprint\";\r\n String var7 = \"Afficher le HUD\";\r\n String var8 = \"Position horizontal du HUD\";\r\n String var9 = \"Position vertical du HUD\";\r\n String var10 = \"Activer le double-tapping\";\r\n String var11 = \"Activer le fly boost\";\r\n String var12 = \"Fly boost X\";\r\n this.method_873();\r\n boolean var10000 = method_1147();\r\n this.drawCenteredString(this.fontRendererObj, \"ToggleMod - Options\", this.width / 2, this.field_985, 16777215);\r\n this.method_657(this.fontRendererObj, var5, this.width / 2 - 100 - this.fontRendererObj.getCharWidth(var5), this.method_1143(1) + 6, 16777215);\r\n this.method_657(this.fontRendererObj, var6, this.width / 2 + 100 - this.fontRendererObj.getCharWidth(var6), this.method_1143(1) + 6, 16777215);\r\n this.method_657(this.fontRendererObj, var7, this.width / 2 - 3 - this.fontRendererObj.getCharWidth(var7), this.method_1143(2) + 6, 16777215);\r\n boolean var4 = var10000;\r\n this.method_657(this.fontRendererObj, var8, this.width / 2 - 3 - this.fontRendererObj.getCharWidth(var8), this.method_1143(3) + 6, 16777215);\r\n this.method_657(this.fontRendererObj, var9, this.width / 2 - 3 - this.fontRendererObj.getCharWidth(var9), this.method_1143(4) + 6, 16777215);\r\n this.method_657(this.fontRendererObj, var10, this.width / 2 - 3 - this.fontRendererObj.getCharWidth(var10), this.method_1143(5) + 6, 16777215);\r\n this.method_657(this.fontRendererObj, var11, this.width / 2 - 3 - this.fontRendererObj.getCharWidth(var11), this.method_1143(6) + 6, 16777215);\r\n this.method_657(this.fontRendererObj, var12, this.width / 2 - 3 - this.fontRendererObj.getCharWidth(var12), this.method_1143(7) + 6, 16777215);\r\n super.drawScreen(var1, var2, var3);\r\n if(class_689.method_3976() != 0) {\r\n method_1145(!var4);\r\n }\r\n\r\n }", "public void endScreen(Graphics g, double value) {\n\t\tg.setFont(f1);\n\t\tg.setColor(Color.black);\n\t\tg.drawString(\"Dooley is ded RIP\", 120, 260);\n\t\t\n\t\tg.setColor(new Color(148, 209, 113));\n\t\tg.fillRect(200, 300, 200, 50);\n\t\tg.setFont(f2);\n\t\tg.setColor(Color.black);\n\t\tg.drawString(\"replay\", 260, 330);\n\t\t\n\t\tg.setColor(new Color(148, 209, 113));\n\t\tg.fillRect(200, 370, 200, 50);\n\t\tg.setFont(f2);\n\t\tg.setColor(Color.black);\n\t\tg.drawString(\"end\", 275, 400);\n\t\t\n\t\tg.drawString(\"FINAL TIME: \" + value, 160, 470);\n\t\t\n\t\t/*g.setFont(f3);\n\t\tfor(int i = 0; i < scoreBoard.size(); i++) {\n\t\t\tg.drawString(\"Game \" + 0 + \": \" + scoreBoard.get(0), 100, 430);\n\t\t}*/\n\t}", "void updateScreen() {\n\t\tZone possibleNewZone = currentZone.getSpace(playerY, playerX).getNextZone();\n\t\tif (possibleNewZone != null) {\n\t\t\tString oldBGMusic = currentZone.getBackgroundMusic();\n\t\t\tcurrentZone = possibleNewZone;\n\t\t\tcurrentZone.enableZoneWarpSpaces();\n\t\t\tplayerX = currentZone.getPlayerStartX();\n\t\t\tplayerY = currentZone.getPlayerStartY();\n\t\t\t\n\n\t\t\tif (!oldBGMusic.equals(currentZone.getBackgroundMusic())) {\n\t\t\t\tmusicPlayer.stop();\n\t\t\t\tmusicPlayer.play(currentZone.getBackgroundMusic(), 100);\n\t\t\t}\n\t\t}\n\n\t\t// Update Panel Colors\n\t\tfor (int i = 0; i < 10; i++) {\n\t\t\tfor (int a = 0; a < 10; a++) {\n\t\t\t\tpanels[i][a].setBackground(currentZone.getSpace(i, a).getColor());\n\t\t\t}\n\t\t}\n\n\t\t// Update Labels\n\t\tfor (int i = 0; i < 10; i++) {\n\t\t\tfor (int a = 0; a < 10; a++) {\n\n\t\t\t\tlabels[i][a].setIcon(currentZone.getSpace(i, a).getPic());\n\t\t\t}\n\t\t}\n\t\t// Shows player in the new space\n\t\tlabels[playerY][playerX].setIcon(playerPic);\n\n\t\t// Shows enemy in the new space\n\t\t// labels[enemyY][enemyX].setIcon(enemyPic);\n\t}", "public void update()\n {\n int screenHeight;\n int screenWidth;\n \n // Only update if the video memory has been updated\n// if (!videocard.vgaMemReqUpdate)\n// return;\n\n // Determine if in graphic/text mode; this is set in graphics register 0x06\n if (videocard.graphicsController.alphaNumDisable != 0)\n {}\n\n // alphaNumDisable == 0; Text mode\n else\n {\n // Cursor attributes\n int cursorXPos; // Cursor column position\n int cursorYPos; // Cursor row position\n int cursorWidth = 8; // 8 or 9 pixel cursor width\n int fullCursorAddress = 162; // Cursor location (byte number in vga memory) \n\n // Screen attributes \n int maxScanLine = 15; // Character height - 1\n int numColumns = 80; // (Char. clocks - 1) + 1 , i.e. number of columns\n int numRows = 25; // Number of text rows in screen \n screenWidth = cursorWidth * numColumns; // Screen width in pixels\n videocard.verticalDisplayEnd = 399;\n screenHeight = videocard.verticalDisplayEnd + 1; // Screen height in pixels\n \n int fullStartAddress = 0; // Upper left character of screen\n\n logger.log(Level.INFO, \"[\" + MODULE_TYPE + \"]\" + \" update() in progress; text mode\");\n \n // Collect text features to be passed to screen update\n textModeAttribs.fullStartAddress = (short) 0; \n textModeAttribs.cursorStartLine = (byte) 14;\n textModeAttribs.cursorEndLine = (byte) 15;\n textModeAttribs.lineOffset = (short) 160;\n textModeAttribs.lineCompare = (short) 1023;\n textModeAttribs.horizPanning = (byte) 0;\n textModeAttribs.vertPanning = (byte) 0;\n textModeAttribs.lineGraphics = 1;\n textModeAttribs.splitHorizPanning = 0;\n \n // Check if the GUI window needs to be resized\n if ((screenWidth != oldScreenWidth) || (screenHeight != oldScreenHeight) || (maxScanLine != oldMaxScanLine))\n {\n screen.updateScreenSize(screenWidth, screenHeight, cursorWidth, maxScanLine + 1);\n oldScreenWidth = screenWidth;\n oldScreenHeight = screenHeight;\n oldMaxScanLine = maxScanLine;\n }\n\n // Determine cursor position in terms of rows and columns\n if (fullCursorAddress < fullStartAddress) // Cursor is not on screen, so set unreachable values\n {\n cursorXPos = 0xFFFF;\n cursorYPos = 0xFFFF;\n }\n else // Cursor is on screen, calculate position\n {\n cursorXPos = ((fullCursorAddress - fullStartAddress) / 2) % (screenWidth / cursorWidth);\n cursorYPos = ((fullCursorAddress - fullStartAddress) / 2) / (screenWidth / cursorWidth);\n }\n \n // Call screen update for text mode\n screen.updateText(0, fullStartAddress, cursorXPos, cursorYPos, textModeAttribs.getAttributes(), numRows);\n \n // Screen has been updated, copy new contents into 'snapshot'\n System.arraycopy(videocard.vgaMemory, fullStartAddress, videocard.textSnapshot, 0, 2 * numColumns * numRows);\n \n videocard.vgaMemReqUpdate = false;\n }\n }", "private void splashScreen() {\r\n\t\t// Clear the screen, reset the level, and display the legend\r\n\t\tclear();\r\n\t\tdisplay.setLegend(\"Asteroids\");\r\n\r\n\t\t// Place four asteroids near the corners of the screen.\r\n\t\tplaceAsteroids();\r\n\t}", "public void createScreenDialogs() {\n\t\tint colNumber, rowNumber = 0;\n\n\t\tcolNumber = 0;\n\t\tairportScreen1Dialog.setVisible(true);\n\t\tairportScreen1Dialog.setLocation(WIDTH + colNumber++ * ScreenDialog.WIDTH, rowNumber * ScreenDialog.HEIGHT);\n\t\tairportScreen2Dialog.setVisible(true);\n\t\tairportScreen2Dialog.setLocation(WIDTH + colNumber++ * ScreenDialog.WIDTH, rowNumber * ScreenDialog.HEIGHT);\n\n\t\t++rowNumber;\n\t\tcolNumber = 0;\n\t\ttermAScreen1Dialog.setVisible(true);\n\t\ttermAScreen1Dialog.setLocation(WIDTH + colNumber++ * ScreenDialog.WIDTH, rowNumber * ScreenDialog.HEIGHT);\n\t\ttermAScreen2Dialog.setVisible(true);\n\t\ttermAScreen2Dialog.setLocation(WIDTH + colNumber++ * ScreenDialog.WIDTH, rowNumber * ScreenDialog.HEIGHT);\n\t\ttermAScreen3Dialog.setVisible(true);\n\t\ttermAScreen3Dialog.setLocation(WIDTH + colNumber++ * ScreenDialog.WIDTH, rowNumber * ScreenDialog.HEIGHT);\n\n\t\t++rowNumber;\n\t\tcolNumber = 0;\n\t\ttermBScreen1Dialog.setVisible(true);\n\t\ttermBScreen1Dialog.setLocation(WIDTH + colNumber++ * ScreenDialog.WIDTH, rowNumber * ScreenDialog.HEIGHT);\n\t\ttermBScreen2Dialog.setVisible(true);\n\t\ttermBScreen2Dialog.setLocation(WIDTH + colNumber++ * ScreenDialog.WIDTH, rowNumber * ScreenDialog.HEIGHT);\n\t\ttermBScreen3Dialog.setVisible(true);\n\t\ttermBScreen3Dialog.setLocation(WIDTH + colNumber++ * ScreenDialog.WIDTH, rowNumber * ScreenDialog.HEIGHT);\n\n\t\t++rowNumber;\n\t\tcolNumber = 0;\n\t\ttermCScreen1Dialog.setVisible(true);\n\t\ttermCScreen1Dialog.setLocation(WIDTH + colNumber++ * ScreenDialog.WIDTH, rowNumber * ScreenDialog.HEIGHT);\n\t\ttermCScreen2Dialog.setVisible(true);\n\t\ttermCScreen2Dialog.setLocation(WIDTH + colNumber++ * ScreenDialog.WIDTH, rowNumber * ScreenDialog.HEIGHT);\n\t\ttermCScreen3Dialog.setVisible(true);\n\t\ttermCScreen3Dialog.setLocation(WIDTH + colNumber++ * ScreenDialog.WIDTH, rowNumber * ScreenDialog.HEIGHT);\n\n\t\t++rowNumber;\n\t\tfor (int i = 0; i < gatesADialogs.length; ++i) {\n\t\t\tgatesADialogs[i] = new ScreenDialog(this, \"GATE A-\" + (i + 1), 0);\n\t\t\tgatesADialogs[i].setVisible(true);\n\t\t\tgatesADialogs[i].setLocation(i * ScreenDialog.WIDTH, rowNumber * ScreenDialog.HEIGHT);\n\t\t}\n\n\t\t++rowNumber;\n\t\tint maxRowLength = 4; // Layout on two rows\n\t\tfor (int i = 0; i < gatesBDialogs.length; ++i) {\n\t\t\tgatesBDialogs[i] = new ScreenDialog(this, \"GATE B-\" + (i + 1), 0);\n\t\t\tgatesBDialogs[i].setVisible(true);\n\t\t\tgatesBDialogs[i].setLocation((i % (maxRowLength + 1)) * ScreenDialog.WIDTH,\n\t\t\t\t\trowNumber * ScreenDialog.HEIGHT);\n\t\t\tif (i == maxRowLength)\n\t\t\t\t++rowNumber;\n\t\t}\n\n\t\t++rowNumber;\n\t\tfor (int i = 0; i < gatesCDialogs.length; ++i) {\n\t\t\tgatesCDialogs[i] = new ScreenDialog(this, \"GATE C-\" + (i + 1), 0);\n\t\t\tgatesCDialogs[i].setVisible(true);\n\t\t\tgatesCDialogs[i].setLocation(i * ScreenDialog.WIDTH, rowNumber * ScreenDialog.HEIGHT);\n\t\t}\n\t}", "public void removeAllScreens() {\n Gdx.app.log(\"TowerDefence::removeAllScreens()\", \"--\");\n if (screensArray != null) {\n// for(Screen screen : screensArray) {\n// screen.dispose(); // Дич ебаная. с этими скринами у нас точно какие то проблемы...\n// }\n screensArray.clear();\n// int size = screensArray.size;\n// if (size > 0) {\n// for (int i = size - 1; i >= 0; i--) {\n// Screen screen = screensArray.get(i);\n// if (screen != null) {\n//// screen.hide();\n// screensArray.removeIndex(size - 1);\n// }\n// }\n// }\n }\n }", "@Override\n public void drawScreen(int n, int n2) {\n void mouseY;\n void mouseX;\n super.drawScreen((int)mouseX, (int)mouseY);\n float[] hsb = Color.RGBtoHSB(this.setting.getValue().getRed(), this.setting.getValue().getGreen(), this.setting.getValue().getBlue(), null);\n Color color = Color.getHSBColor(hsb[0], Float.intBitsToFloat(Float.floatToIntBits(6.4887953f) ^ 0x7F4FA436), Float.intBitsToFloat(Float.floatToIntBits(4.629535f) ^ 0x7F142527));\n Gui.drawRect((int)this.getX(), (int)this.getY(), (int)(this.getX() + this.getWidth()), (int)(this.getY() + 14), (int)new Color(40, 40, 40).getRGB());\n Gui.drawRect((int)(this.getX() + this.getWidth() - 12), (int)(this.getY() + 2), (int)(this.getX() + this.getWidth() - 2), (int)(this.getY() + 12), (int)this.setting.getValue().getRGB());\n RenderUtils.drawOutline(this.getX() + this.getWidth() - 12, this.getY() + 2, this.getX() + this.getWidth() - 2, this.getY() + 12, Float.intBitsToFloat(Float.floatToIntBits(2.7144578f) ^ 0x7F2DB9AD), new Color(20, 20, 20).getRGB());\n if (this.open) {\n Gui.drawRect((int)this.getX(), (int)(this.getY() + 14), (int)(this.getX() + this.getWidth()), (int)(this.getY() + 28), (int)new Color(40, 40, 40).getRGB());\n float i = Float.intBitsToFloat(Float.floatToIntBits(1.3378998E38f) ^ 0x7EC94E07);\n while (i + Float.intBitsToFloat(Float.floatToIntBits(13.8331995f) ^ 0x7EDD54C9) < Float.intBitsToFloat(Float.floatToIntBits(0.07128618f) ^ 0x7F51FE7D)) {\n RenderUtils.drawRecta((float)(this.getX() + 2) + i, this.getY() + 16, Float.intBitsToFloat(Float.floatToIntBits(7.249331f) ^ 0x7F67FA85), Float.intBitsToFloat(Float.floatToIntBits(1.7045807f) ^ 0x7EEA2FB3), Color.getHSBColor(i / Float.intBitsToFloat(Float.floatToIntBits(0.115068644f) ^ 0x7F2BA91C), Float.intBitsToFloat(Float.floatToIntBits(4.3161592f) ^ 0x7F0A1DFA), Float.intBitsToFloat(Float.floatToIntBits(21.075346f) ^ 0x7E289A4F)).getRGB());\n i += Float.intBitsToFloat(Float.floatToIntBits(3.807338f) ^ 0x7E95CD0B);\n }\n RenderUtils.drawOutline(this.getX() + 2, this.getY() + 16, this.getX() + 2 + this.getWidth() - 4, this.getY() + 27, Float.intBitsToFloat(Float.floatToIntBits(2.7503529f) ^ 0x7F3005C8), new Color(0, 0, 0).getRGB());\n RenderUtils.drawRecta((float)(this.getX() + 2) + this.hueWidth, this.getY() + 16, Float.intBitsToFloat(Float.floatToIntBits(5.200255f) ^ 0x7F26687D), Float.intBitsToFloat(Float.floatToIntBits(1.2665411f) ^ 0x7E921E05), new Color(255, 255, 255).getRGB());\n Gui.drawRect((int)this.getX(), (int)(this.getY() + 28), (int)(this.getX() + this.getWidth()), (int)(this.getY() + 42), (int)new Color(40, 40, 40).getRGB());\n RenderUtils.drawSidewaysGradient(this.getX() + 2, this.getY() + 29, this.getWidth() - 4, Float.intBitsToFloat(Float.floatToIntBits(0.19645536f) ^ 0x7F792B98), new Color(255, 255, 255), color, 255, 255);\n RenderUtils.drawOutline(this.getX() + 2, this.getY() + 29, this.getX() + 2 + this.getWidth() - 4, this.getY() + 40, Float.intBitsToFloat(Float.floatToIntBits(103.69628f) ^ 0x7DCF647F), new Color(0, 0, 0).getRGB());\n RenderUtils.drawRecta((float)(this.getX() + 2) + this.satWidth, this.getY() + 29, Float.intBitsToFloat(Float.floatToIntBits(7.3489017f) ^ 0x7F6B2A34), Float.intBitsToFloat(Float.floatToIntBits(0.1948352f) ^ 0x7F7782E1), new Color(255, 255, 255).getRGB());\n Gui.drawRect((int)this.getX(), (int)(this.getY() + 42), (int)(this.getX() + this.getWidth()), (int)(this.getY() + 56), (int)new Color(40, 40, 40).getRGB());\n RenderUtils.drawSidewaysGradient(this.getX() + 2, this.getY() + 42, this.getWidth() - 4, Float.intBitsToFloat(Float.floatToIntBits(1.5246161f) ^ 0x7EF3269F), new Color(0, 0, 0), color, 255, 255);\n RenderUtils.drawOutline(this.getX() + 2, this.getY() + 42, this.getX() + 2 + this.getWidth() - 4, this.getY() + 53, Float.intBitsToFloat(Float.floatToIntBits(3.7803736f) ^ 0x7F71F1A4), new Color(0, 0, 0).getRGB());\n RenderUtils.drawRecta((float)(this.getX() + 2) + this.briWidth, this.getY() + 42, Float.intBitsToFloat(Float.floatToIntBits(8.346171f) ^ 0x7E8589EB), Float.intBitsToFloat(Float.floatToIntBits(0.08925866f) ^ 0x7C86CD3F), new Color(255, 255, 255).getRGB());\n Gui.drawRect((int)this.getX(), (int)(this.getY() + 56), (int)(this.getX() + this.getWidth()), (int)(this.getY() + 70), (int)new Color(40, 40, 40).getRGB());\n this.renderAlphaBG(this.getX() + 2, this.getY() + 55, this.alphaBG);\n RenderUtils.drawSidewaysGradient(this.getX() + 2, this.getY() + 55, this.getWidth() - 4, Float.intBitsToFloat(Float.floatToIntBits(0.13166903f) ^ 0x7F36D43F), new Color(0, 0, 0), color, 0, 255);\n RenderUtils.drawOutline(this.getX() + 2, this.getY() + 55, this.getX() + 2 + this.getWidth() - 4, this.getY() + 66, Float.intBitsToFloat(Float.floatToIntBits(19.69502f) ^ 0x7E9D8F67), new Color(0, 0, 0).getRGB());\n RenderUtils.drawRecta((float)(this.getX() + 2) + this.alphaWidth, this.getY() + 55, Float.intBitsToFloat(Float.floatToIntBits(6.702013f) ^ 0x7F5676E4), Float.intBitsToFloat(Float.floatToIntBits(0.13652846f) ^ 0x7F3BCE1E), new Color(255, 255, 255).getRGB());\n Gui.drawRect((int)this.getX(), (int)(this.getY() + 70), (int)(this.getX() + this.getWidth()), (int)(this.getY() + 84), (int)new Color(40, 40, 40).getRGB());\n Europa.FONT_MANAGER.drawString(\"Rainbow\", this.getX() + 3, (float)(this.getY() + 78) - Europa.FONT_MANAGER.getHeight() / Float.intBitsToFloat(Float.floatToIntBits(0.8730777f) ^ 0x7F5F8205), Color.WHITE);\n Gui.drawRect((int)(this.getX() + this.getWidth() - 12), (int)(this.getY() + 72), (int)(this.getX() + this.getWidth() - 2), (int)(this.getY() + 82), (int)new Color(30, 30, 30).getRGB());\n if (this.setting.getRainbow().booleanValue()) {\n RenderUtils.prepareGL();\n GL11.glShadeModel((int)7425);\n GL11.glEnable((int)2848);\n GL11.glLineWidth((float)Float.intBitsToFloat(Float.floatToIntBits(0.2713932f) ^ 0x7EAAF40D));\n GL11.glBegin((int)1);\n GL11.glColor3f((float)((float)ModuleColor.getActualColor().getRed() / Float.intBitsToFloat(Float.floatToIntBits(0.015137452f) ^ 0x7F070313)), (float)((float)ModuleColor.getActualColor().getGreen() / Float.intBitsToFloat(Float.floatToIntBits(1.1948546f) ^ 0x7CE7F0FF)), (float)((float)ModuleColor.getActualColor().getBlue() / Float.intBitsToFloat(Float.floatToIntBits(0.36357376f) ^ 0x7DC52657)));\n GL11.glVertex2d((double)(this.getX() + this.getWidth() - 8), (double)(this.getY() + 80));\n GL11.glColor3f((float)((float)ModuleColor.getActualColor().getRed() / Float.intBitsToFloat(Float.floatToIntBits(0.015521388f) ^ 0x7F014D6B)), (float)((float)ModuleColor.getActualColor().getGreen() / Float.intBitsToFloat(Float.floatToIntBits(0.01025841f) ^ 0x7F5712E4)), (float)((float)ModuleColor.getActualColor().getBlue() / Float.intBitsToFloat(Float.floatToIntBits(0.10675689f) ^ 0x7EA5A35B)));\n GL11.glVertex2d((double)(this.getX() + this.getWidth() - 8 + 4), (double)(this.getY() + 74));\n GL11.glEnd();\n GL11.glBegin((int)1);\n GL11.glColor3f((float)((float)ModuleColor.getActualColor().getRed() / Float.intBitsToFloat(Float.floatToIntBits(0.009417259f) ^ 0x7F654AD9)), (float)((float)ModuleColor.getActualColor().getGreen() / Float.intBitsToFloat(Float.floatToIntBits(0.07014828f) ^ 0x7EF0A9E7)), (float)((float)ModuleColor.getActualColor().getBlue() / Float.intBitsToFloat(Float.floatToIntBits(0.013465701f) ^ 0x7F239F3E)));\n GL11.glVertex2d((double)(this.getX() + this.getWidth() - 8), (double)(this.getY() + 80));\n GL11.glColor3f((float)((float)ModuleColor.getActualColor().getRed() / Float.intBitsToFloat(Float.floatToIntBits(0.0155056f) ^ 0x7F010B33)), (float)((float)ModuleColor.getActualColor().getGreen() / Float.intBitsToFloat(Float.floatToIntBits(0.011914493f) ^ 0x7F3C3501)), (float)((float)ModuleColor.getActualColor().getBlue() / Float.intBitsToFloat(Float.floatToIntBits(0.012230922f) ^ 0x7F376434)));\n GL11.glVertex2d((double)(this.getX() + this.getWidth() - 10), (double)(this.getY() + 77));\n GL11.glEnd();\n RenderUtils.releaseGL();\n }\n }\n Gui.drawRect((int)(this.getX() - 1), (int)this.getY(), (int)this.getX(), (int)(this.getY() + 84), (int)new Color(30, 30, 30).getRGB());\n Gui.drawRect((int)(this.getX() + this.getWidth()), (int)this.getY(), (int)(this.getX() + this.getWidth() + 1), (int)(this.getY() + 84), (int)new Color(30, 30, 30).getRGB());\n Europa.FONT_MANAGER.drawString(this.setting.getName(), this.getX() + 3, this.getY() + 3, Color.WHITE);\n }", "public void screenShot() {\n\n\t}", "public void init() {\n this.screen = new Rectangle(PADDING, PADDING, Game.TOTAL_COLUMNS * CELL_SIZE, Game.TOTAL_ROWS * CELL_SIZE);\n\n // display the background\n this.screen.setColor(Color.LIGHT_GRAY);//board edge color\n this.screen.fill();\n\n }", "public void drawEndScreen() {\n\t\tint highScore = getHighScore();\n\t\tif (highScore <= score) {\n\t\t\thighScore = score;\n\t\t\tsetHighScore(highScore);\n\t\t}\n\t\tdisplayText(\"High Score \" + String.valueOf(highScore), 0, 0, false);\n\t\tdisplayText(\"Score\" + String.valueOf(score), 0, -100, false);\n\t}", "@Override\n\tpublic void showServicePasswordNextScreen() {\n\t\tif(ParentActivity.AnimationRunningFlag == true)\n\t\t\treturn;\n\t\telse\n\t\t\tParentActivity.StartAnimationRunningTimer();\n\t\t\n\t\tParentActivity._MenuBaseFragment.showBodyESL();\n\t\t\n\t\tParentActivity.OldScreenIndex = Home.SCREEN_STATE_MENU_MODE_ETC_AUTOSHUTDOWN_PW;\n\t}", "protected void end() {\n \tRobotMap.feedMotor1.set(0);\n \tRobotMap.shootAgitator.set(0);\n }", "@Override\r\n\tpublic String getScreenParameter() {\n\t\treturn null;\r\n\t}", "public int clearScreen () {\n int distance = home();\n myLine.clear();\n return distance;\n }", "private static void clearScreen() {\n\t\tSystem.out.println(\"\\033[H\\033[2J\"); \n\t\tSystem.out.flush();\n\t}", "public void handleReport(boolean r70) {\n /*\n r69 = this;\n r1 = r69\n r2 = r70\n long r3 = android.os.SystemClock.elapsedRealtime()\n long r5 = r1.mKeyguardDrawn\n r7 = 0\n int r0 = (r5 > r7 ? 1 : (r5 == r7 ? 0 : -1))\n if (r0 <= 0) goto L_0x0011\n goto L_0x0012\n L_0x0011:\n r5 = r3\n L_0x0012:\n r1.mKeyguardDrawn = r5\n long r5 = r1.mKeyguardDrawn\n long r9 = r1.mBlockScreenOnBegin\n long r5 = r5 - r9\n java.lang.String r9 = r69.getScreenOnDetail()\n java.lang.StringBuilder r0 = new java.lang.StringBuilder\n r0.<init>()\n r0.append(r9)\n java.lang.String r10 = \" block2keyDrawn=\"\n r0.append(r10)\n r0.append(r5)\n java.lang.String r10 = \" hasOn:\"\n r0.append(r10)\n r0.append(r2)\n java.lang.String r0 = r0.toString()\n java.lang.String r10 = \"ScreenOnMonitor\"\n android.util.Slog.i(r10, r0)\n java.lang.String r0 = r1.mTimeoutSummary\n if (r0 == 0) goto L_0x007e\n long r11 = r1.mLastReportTime\n int r0 = (r11 > r7 ? 1 : (r11 == r7 ? 0 : -1))\n if (r0 == 0) goto L_0x0051\n long r11 = r3 - r11\n r13 = 14400000(0xdbba00, double:7.1145453E-317)\n int r0 = (r11 > r13 ? 1 : (r11 == r13 ? 0 : -1))\n if (r0 <= 0) goto L_0x007b\n L_0x0051:\n r1.mLastReportTime = r3\n miui.mqsas.sdk.event.ScreenOnEvent r0 = new miui.mqsas.sdk.event.ScreenOnEvent\n r0.<init>()\n java.lang.String r11 = r1.mTimeoutSummary\n r0.setTimeoutSummary(r11)\n r0.setmTimeOutDetail(r9)\n java.lang.String r11 = r1.mWakeSource\n r0.setWakeSource(r11)\n long r11 = r1.mTimeStamp\n java.lang.String r11 = r1.toCalendarTime(r11)\n r0.setTimeStamp(r11)\n java.lang.String r11 = \"lt_screen_on\"\n r0.setScreenOnType(r11)\n miui.mqsas.sdk.MQSEventManagerDelegate r11 = miui.mqsas.sdk.MQSEventManagerDelegate.getInstance()\n r11.reportScreenOnEvent(r0)\n L_0x007b:\n r0 = 0\n r1.mTimeoutSummary = r0\n L_0x007e:\n if (r2 == 0) goto L_0x053a\n long r11 = r1.mStopTime\n long r13 = r1.mStartTime\n long r11 = r11 - r13\n r13 = 1000(0x3e8, double:4.94E-321)\n int r0 = (r11 > r13 ? 1 : (r11 == r13 ? 0 : -1))\n if (r0 >= 0) goto L_0x053a\n java.lang.String r0 = android.os.Build.VERSION.INCREMENTAL\n java.lang.String r11 = r1.mUploadVersion\n boolean r0 = r0.equals(r11)\n if (r0 != 0) goto L_0x0532\n long r11 = r1.mStopTime\n long r13 = r1.mStartTime\n long r11 = r11 - r13\n long r13 = r1.mSetDisplayStateEnd\n long r7 = r1.mSetDisplayStateBegin\n long r13 = r13 - r7\n long r7 = r1.mBlockScreenOnEnd\n r19 = r3\n long r2 = r1.mBlockScreenOnBegin\n long r7 = r7 - r2\n boolean[] r0 = r1.mNeedRecord\n r2 = 0\n boolean r0 = r0[r2]\n if (r0 == 0) goto L_0x00ca\n int[] r0 = r1.mAvgCount\n r3 = r0[r2]\n int r3 = r3 + 1\n r0[r2] = r3\n long[] r0 = r1.mTotalScreenOnTime\n r3 = r0[r2]\n long r3 = r3 + r11\n r0[r2] = r3\n long[] r0 = r1.mTotalSetDisplayTime\n r3 = r0[r2]\n long r3 = r3 + r13\n r0[r2] = r3\n long[] r0 = r1.mTotalBlockScreenOnTime\n r3 = r0[r2]\n long r3 = r3 + r7\n r0[r2] = r3\n L_0x00ca:\n int[] r0 = r1.mAvgCount\n r0 = r0[r2]\n long r3 = (long) r0\n r21 = 50\n int r0 = (r3 > r21 ? 1 : (r3 == r21 ? 0 : -1))\n java.lang.String r4 = \",\"\n if (r0 != 0) goto L_0x0155\n miui.mqsas.sdk.event.ScreenOnEvent r0 = new miui.mqsas.sdk.event.ScreenOnEvent\n r0.<init>()\n long[] r15 = r1.mTotalScreenOnTime\n r15 = r15[r2]\n int[] r3 = r1.mAvgCount\n r3 = r3[r2]\n long r2 = (long) r3\n long r2 = r15 / r2\n r0.setTotalTime(r2)\n long[] r2 = r1.mTotalSetDisplayTime\n r3 = 0\n r15 = r2[r3]\n int[] r2 = r1.mAvgCount\n r2 = r2[r3]\n r25 = r4\n long r3 = (long) r2\n long r2 = r15 / r3\n r0.setSetDisplayTime(r2)\n long[] r2 = r1.mTotalBlockScreenOnTime\n r3 = 0\n r15 = r2[r3]\n int[] r2 = r1.mAvgCount\n r2 = r2[r3]\n long r2 = (long) r2\n long r2 = r15 / r2\n r0.setBlockScreenTime(r2)\n java.lang.String r2 = \"avg_screen_on\"\n r0.setScreenOnType(r2)\n miui.mqsas.sdk.MQSEventManagerDelegate r2 = miui.mqsas.sdk.MQSEventManagerDelegate.getInstance()\n r2.reportScreenOnEvent(r0)\n long[] r2 = r1.mTotalScreenOnTime\n r3 = 0\n r15 = 0\n r2[r3] = r15\n long[] r2 = r1.mTotalSetDisplayTime\n r2[r3] = r15\n long[] r2 = r1.mTotalBlockScreenOnTime\n r2[r3] = r15\n int[] r2 = r1.mAvgCount\n r2[r3] = r3\n boolean[] r2 = r1.mNeedRecord\n r2[r3] = r3\n java.lang.StringBuilder r2 = r1.mTypeNeedRecordSb\n r4 = 49\n r2.setCharAt(r3, r4)\n java.lang.String r2 = PROPERTY_SCREEN_ON_UPLOAD\n java.lang.StringBuilder r3 = new java.lang.StringBuilder\n r3.<init>()\n java.lang.StringBuilder r4 = r1.mTypeNeedRecordSb\n java.lang.String r4 = r4.toString()\n r3.append(r4)\n r4 = r25\n r3.append(r4)\n java.lang.String r15 = r1.mUploadVersion\n r3.append(r15)\n java.lang.String r3 = r3.toString()\n android.os.SystemProperties.set(r2, r3)\n L_0x0155:\n java.lang.String r0 = r1.mWakeSource\n int r2 = r1.getWakeupSrcIndex(r0)\n r0 = 4\n if (r2 != r0) goto L_0x043e\n r15 = r11\n long r11 = r1.mFingerSuccess\n r17 = 0\n int r0 = (r11 > r17 ? 1 : (r11 == r17 ? 0 : -1))\n if (r0 == 0) goto L_0x042e\n r25 = r11\n long r11 = r1.mFingerDown\n int r0 = (r11 > r17 ? 1 : (r11 == r17 ? 0 : -1))\n if (r0 <= 0) goto L_0x0170\n goto L_0x0172\n L_0x0170:\n r11 = r25\n L_0x0172:\n r1.mFingerDown = r11\n long r11 = r1.mKeyGoingAway\n int r0 = (r11 > r17 ? 1 : (r11 == r17 ? 0 : -1))\n if (r0 <= 0) goto L_0x017b\n goto L_0x017d\n L_0x017b:\n r11 = r19\n L_0x017d:\n r1.mKeyGoingAway = r11\n long r11 = r1.mKeyExitAnim\n int r0 = (r11 > r17 ? 1 : (r11 == r17 ? 0 : -1))\n if (r0 <= 0) goto L_0x0186\n goto L_0x0188\n L_0x0186:\n r11 = r19\n L_0x0188:\n r1.mKeyExitAnim = r11\n long r11 = r1.mFingerSuccess\n r25 = r2\n long r2 = r1.mFingerDown\n r26 = r5\n long r5 = r11 - r2\n r28 = r9\n r0 = r10\n long r9 = r1.mStartTime\n long r11 = r9 - r11\n r29 = r13\n long r13 = r1.mBlockScreenOnBegin\n long r13 = r13 - r9\n r31 = r7\n long r7 = r1.mStopTime\n long r7 = r7 - r2\n long r2 = r1.mKeyGoingAway\n r33 = r7\n long r7 = r2 - r9\n r35 = r7\n long r7 = r1.mKeyExitAnim\n r37 = r13\n long r13 = r7 - r2\n r39 = r13\n long r13 = r1.mKeyguardDrawn\n r41 = r11\n long r11 = r13 - r7\n r43 = r11\n long r11 = r1.mBlockScreenOnEnd\n long r13 = r11 - r13\n r45 = r13\n long r13 = r1.mSetDisplayStateBegin\n long r13 = r13 - r9\n long r9 = r1.mSetDisplayStateEnd\n r47 = r13\n long r13 = r7 - r9\n long r11 = r11 - r7\n long r7 = r9 - r2\n java.lang.StringBuilder r2 = new java.lang.StringBuilder\n r2.<init>()\n java.lang.String r3 = \"fingerDown2suc2wake=\"\n r2.append(r3)\n r2.append(r5)\n r2.append(r4)\n r9 = r41\n r2.append(r9)\n java.lang.String r3 = \"; wake2block2un=\"\n r2.append(r3)\n r9 = r37\n r2.append(r9)\n r2.append(r4)\n r9 = r31\n r2.append(r9)\n java.lang.String r3 = \"; wake2away2exit2drawn2un=\"\n r2.append(r3)\n r9 = r35\n r2.append(r9)\n r2.append(r4)\n r9 = r39\n r2.append(r9)\n r2.append(r4)\n r9 = r43\n r2.append(r9)\n r2.append(r4)\n r9 = r45\n r2.append(r9)\n java.lang.String r3 = \"; wake2disp2on2exit2un=\"\n r2.append(r3)\n r9 = r47\n r2.append(r9)\n r2.append(r4)\n r9 = r29\n r2.append(r9)\n r2.append(r4)\n r2.append(r13)\n r2.append(r4)\n r2.append(r11)\n java.lang.String r3 = \"; away2on:\"\n r2.append(r3)\n r2.append(r7)\n java.lang.String r3 = \" all=\"\n r2.append(r3)\n r29 = r11\n r11 = r33\n r2.append(r11)\n java.lang.String r2 = r2.toString()\n android.util.Slog.d(r0, r2)\n r17 = 0\n int r0 = (r5 > r17 ? 1 : (r5 == r17 ? 0 : -1))\n if (r0 <= 0) goto L_0x025a\n r23 = r5\n goto L_0x025c\n L_0x025a:\n r23 = 1000(0x3e8, double:4.94E-321)\n L_0x025c:\n r2 = r23\n int r0 = (r7 > r17 ? 1 : (r7 == r17 ? 0 : -1))\n if (r0 <= 0) goto L_0x0264\n r5 = r7\n goto L_0x0266\n L_0x0264:\n r5 = r17\n L_0x0266:\n int r0 = (r41 > r17 ? 1 : (r41 == r17 ? 0 : -1))\n if (r0 <= 0) goto L_0x02ba\n int r0 = (r31 > r17 ? 1 : (r31 == r17 ? 0 : -1))\n if (r0 <= 0) goto L_0x02ba\n int r0 = (r35 > r17 ? 1 : (r35 == r17 ? 0 : -1))\n if (r0 <= 0) goto L_0x02ba\n int r0 = (r39 > r17 ? 1 : (r39 == r17 ? 0 : -1))\n if (r0 <= 0) goto L_0x02ba\n int r0 = r1.mTotalFingerAvgCount\n int r0 = r0 + 1\n r1.mTotalFingerAvgCount = r0\n long r7 = r1.mTotalFingerDown2SuccessTime\n long r7 = r7 + r2\n r1.mTotalFingerDown2SuccessTime = r7\n long r7 = r1.mTotalFingerSuccess2WakeTime\n long r7 = r7 + r41\n r1.mTotalFingerSuccess2WakeTime = r7\n long r7 = r1.mTotalFingerWake2BlockTime\n long r7 = r7 + r37\n r1.mTotalFingerWake2BlockTime = r7\n long r7 = r1.mTotalFingerBlockScreenOnTime\n long r7 = r7 + r31\n r1.mTotalFingerBlockScreenOnTime = r7\n long r7 = r1.mTotalFingerDisplayOnTime\n long r7 = r7 + r9\n r1.mTotalFingerDisplayOnTime = r7\n long r7 = r1.mTotalFingerAllTime\n long r7 = r7 + r11\n r1.mTotalFingerAllTime = r7\n long r7 = r1.mTotalFingerBlock2KeyDrawn\n long r7 = r7 + r26\n r1.mTotalFingerBlock2KeyDrawn = r7\n long r7 = r1.mTotalFingerWake2Away\n long r7 = r7 + r35\n r1.mTotalFingerWake2Away = r7\n long r7 = r1.mTotalFingerAway2Exit\n long r7 = r7 + r39\n r1.mTotalFingerAway2Exit = r7\n long r7 = r1.mTotalFingerExit2Draw\n long r7 = r7 + r43\n r1.mTotalFingerExit2Draw = r7\n long r7 = r1.mTotalFingerAway2On\n long r7 = r7 + r5\n r1.mTotalFingerAway2On = r7\n L_0x02ba:\n int r0 = r1.mTotalFingerAvgCount\n long r7 = (long) r0\n int r0 = (r7 > r21 ? 1 : (r7 == r21 ? 0 : -1))\n if (r0 != 0) goto L_0x041e\n org.json.JSONObject r0 = new org.json.JSONObject\n r0.<init>()\n r7 = r0\n r23 = r2\n long r2 = r1.mTotalFingerDown2SuccessTime // Catch:{ JSONException -> 0x040c }\n int r0 = r1.mTotalFingerAvgCount // Catch:{ JSONException -> 0x040c }\n r33 = r5\n long r5 = (long) r0\n long r2 = r2 / r5\n long r5 = r1.mTotalFingerSuccess2WakeTime // Catch:{ JSONException -> 0x03ff }\n int r0 = r1.mTotalFingerAvgCount // Catch:{ JSONException -> 0x03ff }\n r49 = r11\n long r11 = (long) r0\n long r5 = r5 / r11\n long r11 = r1.mTotalFingerWake2BlockTime // Catch:{ JSONException -> 0x03f4 }\n int r0 = r1.mTotalFingerAvgCount // Catch:{ JSONException -> 0x03f4 }\n r51 = r13\n long r13 = (long) r0\n long r11 = r11 / r13\n long r13 = r1.mTotalFingerBlockScreenOnTime // Catch:{ JSONException -> 0x03eb }\n int r0 = r1.mTotalFingerAvgCount // Catch:{ JSONException -> 0x03eb }\n r53 = r9\n long r8 = (long) r0\n long r13 = r13 / r8\n r8 = r13\n long r13 = r1.mTotalFingerDisplayOnTime // Catch:{ JSONException -> 0x03e4 }\n int r0 = r1.mTotalFingerAvgCount // Catch:{ JSONException -> 0x03e4 }\n r55 = r8\n long r8 = (long) r0 // Catch:{ JSONException -> 0x03e4 }\n long r13 = r13 / r8\n r8 = r13\n long r13 = r1.mTotalFingerAllTime // Catch:{ JSONException -> 0x03e4 }\n int r0 = r1.mTotalFingerAvgCount // Catch:{ JSONException -> 0x03e4 }\n r57 = r8\n long r8 = (long) r0 // Catch:{ JSONException -> 0x03e4 }\n long r13 = r13 / r8\n r8 = r13\n long r13 = r1.mTotalFingerBlock2KeyDrawn // Catch:{ JSONException -> 0x03e4 }\n int r0 = r1.mTotalFingerAvgCount // Catch:{ JSONException -> 0x03e4 }\n r59 = r8\n long r8 = (long) r0 // Catch:{ JSONException -> 0x03e4 }\n long r13 = r13 / r8\n r8 = r13\n long r13 = r1.mTotalFingerWake2Away // Catch:{ JSONException -> 0x03e4 }\n int r0 = r1.mTotalFingerAvgCount // Catch:{ JSONException -> 0x03e4 }\n r61 = r8\n long r8 = (long) r0 // Catch:{ JSONException -> 0x03e4 }\n long r13 = r13 / r8\n r8 = r13\n long r13 = r1.mTotalFingerAway2Exit // Catch:{ JSONException -> 0x03e4 }\n int r0 = r1.mTotalFingerAvgCount // Catch:{ JSONException -> 0x03e4 }\n r63 = r11\n long r10 = (long) r0 // Catch:{ JSONException -> 0x03e4 }\n long r13 = r13 / r10\n r10 = r13\n long r12 = r1.mTotalFingerExit2Draw // Catch:{ JSONException -> 0x03e4 }\n int r0 = r1.mTotalFingerAvgCount // Catch:{ JSONException -> 0x03e4 }\n r65 = r15\n long r14 = (long) r0\n long r12 = r12 / r14\n long r14 = r1.mTotalFingerAway2On // Catch:{ JSONException -> 0x03df }\n int r0 = r1.mTotalFingerAvgCount // Catch:{ JSONException -> 0x03df }\n long r0 = (long) r0\n long r14 = r14 / r0\n r0 = r14\n java.lang.String r14 = \"authenticatedTime\"\n java.lang.StringBuilder r15 = new java.lang.StringBuilder // Catch:{ JSONException -> 0x03d9 }\n r15.<init>() // Catch:{ JSONException -> 0x03d9 }\n r16 = r4\n java.lang.String r4 = \"##w2a:\"\n r15.append(r4) // Catch:{ JSONException -> 0x03d7 }\n r15.append(r8) // Catch:{ JSONException -> 0x03d7 }\n java.lang.String r4 = \"##a2e:\"\n r15.append(r4) // Catch:{ JSONException -> 0x03d7 }\n r15.append(r10) // Catch:{ JSONException -> 0x03d7 }\n java.lang.String r4 = \"##e2d\"\n r15.append(r4) // Catch:{ JSONException -> 0x03d7 }\n r15.append(r12) // Catch:{ JSONException -> 0x03d7 }\n java.lang.String r4 = r15.toString() // Catch:{ JSONException -> 0x03d7 }\n r7.put(r14, r4) // Catch:{ JSONException -> 0x03d7 }\n java.lang.String r4 = \"wakeupTime\"\n java.lang.StringBuilder r14 = new java.lang.StringBuilder // Catch:{ JSONException -> 0x03d7 }\n r14.<init>() // Catch:{ JSONException -> 0x03d7 }\n java.lang.String r15 = \"authen:\"\n r14.append(r15) // Catch:{ JSONException -> 0x03d7 }\n r14.append(r2) // Catch:{ JSONException -> 0x03d7 }\n java.lang.String r15 = \"##suc2wake:\"\n r14.append(r15) // Catch:{ JSONException -> 0x03d7 }\n r14.append(r5) // Catch:{ JSONException -> 0x03d7 }\n java.lang.String r15 = \"##w2b:\"\n r14.append(r15) // Catch:{ JSONException -> 0x03d7 }\n r67 = r2\n r2 = r63\n r14.append(r2) // Catch:{ JSONException -> 0x03d7 }\n java.lang.String r15 = \"##blockScr:\"\n r14.append(r15) // Catch:{ JSONException -> 0x03d7 }\n r63 = r2\n r2 = r55\n r14.append(r2) // Catch:{ JSONException -> 0x03d7 }\n java.lang.String r14 = r14.toString() // Catch:{ JSONException -> 0x03d7 }\n r7.put(r4, r14) // Catch:{ JSONException -> 0x03d7 }\n java.lang.String r4 = \"ext\"\n java.lang.StringBuilder r14 = new java.lang.StringBuilder // Catch:{ JSONException -> 0x03d7 }\n r14.<init>() // Catch:{ JSONException -> 0x03d7 }\n java.lang.String r15 = \"all:\"\n r14.append(r15) // Catch:{ JSONException -> 0x03d7 }\n r55 = r2\n r2 = r59\n r14.append(r2) // Catch:{ JSONException -> 0x03d7 }\n java.lang.String r15 = \"##setDisp:\"\n r14.append(r15) // Catch:{ JSONException -> 0x03d7 }\n r59 = r2\n r2 = r57\n r14.append(r2) // Catch:{ JSONException -> 0x03d7 }\n java.lang.String r15 = \"##keyDrawn:\"\n r14.append(r15) // Catch:{ JSONException -> 0x03d7 }\n r57 = r2\n r2 = r61\n r14.append(r2) // Catch:{ JSONException -> 0x03d7 }\n java.lang.String r15 = \"##a2e\"\n r14.append(r15) // Catch:{ JSONException -> 0x03d7 }\n r14.append(r0) // Catch:{ JSONException -> 0x03d7 }\n java.lang.String r14 = r14.toString() // Catch:{ JSONException -> 0x03d7 }\n r7.put(r4, r14) // Catch:{ JSONException -> 0x03d7 }\n miui.mqsas.sdk.MQSEventManagerDelegate r4 = miui.mqsas.sdk.MQSEventManagerDelegate.getInstance() // Catch:{ JSONException -> 0x03d7 }\n java.lang.String r14 = \"fingerprintScreenOn\"\n java.lang.String r15 = r7.toString() // Catch:{ JSONException -> 0x03d7 }\n r61 = r0\n r1 = 0\n r4.reportEvent(r14, r15, r1) // Catch:{ JSONException -> 0x03d7 }\n r4 = r69\n r4.mTotalFingerAvgCount = r1 // Catch:{ JSONException -> 0x03d5 }\n goto L_0x044d\n L_0x03d5:\n r0 = move-exception\n goto L_0x041a\n L_0x03d7:\n r0 = move-exception\n goto L_0x03dc\n L_0x03d9:\n r0 = move-exception\n r16 = r4\n L_0x03dc:\n r4 = r69\n goto L_0x041a\n L_0x03df:\n r0 = move-exception\n r16 = r4\n r4 = r1\n goto L_0x041a\n L_0x03e4:\n r0 = move-exception\n r65 = r15\n r16 = r4\n r4 = r1\n goto L_0x041a\n L_0x03eb:\n r0 = move-exception\n r53 = r9\n r65 = r15\n r16 = r4\n r4 = r1\n goto L_0x041a\n L_0x03f4:\n r0 = move-exception\n r53 = r9\n r51 = r13\n r65 = r15\n r16 = r4\n r4 = r1\n goto L_0x041a\n L_0x03ff:\n r0 = move-exception\n r53 = r9\n r49 = r11\n r51 = r13\n r65 = r15\n r16 = r4\n r4 = r1\n goto L_0x041a\n L_0x040c:\n r0 = move-exception\n r33 = r5\n r53 = r9\n r49 = r11\n r51 = r13\n r65 = r15\n r16 = r4\n r4 = r1\n L_0x041a:\n r0.printStackTrace()\n goto L_0x044d\n L_0x041e:\n r23 = r2\n r33 = r5\n r53 = r9\n r49 = r11\n r51 = r13\n r65 = r15\n r16 = r4\n r4 = r1\n goto L_0x044d\n L_0x042e:\n r25 = r2\n r26 = r5\n r31 = r7\n r28 = r9\n r53 = r13\n r65 = r15\n r16 = r4\n r4 = r1\n goto L_0x044d\n L_0x043e:\n r25 = r2\n r16 = r4\n r26 = r5\n r31 = r7\n r28 = r9\n r65 = r11\n r53 = r13\n r4 = r1\n L_0x044d:\n r1 = 0\n r4.mFingerDown = r1\n r4.mFingerSuccess = r1\n r4.mKeyGoingAway = r1\n r4.mKeyExitAnim = r1\n r4.mKeyguardDrawn = r1\n r0 = -1\n r1 = r25\n if (r1 != r0) goto L_0x045f\n return\n L_0x045f:\n boolean[] r0 = r4.mNeedRecord\n boolean r0 = r0[r1]\n if (r0 == 0) goto L_0x0485\n int[] r0 = r4.mAvgCount\n r2 = r0[r1]\n int r2 = r2 + 1\n r0[r1] = r2\n long[] r0 = r4.mTotalScreenOnTime\n r2 = r0[r1]\n long r2 = r2 + r65\n r0[r1] = r2\n long[] r0 = r4.mTotalSetDisplayTime\n r2 = r0[r1]\n long r2 = r2 + r53\n r0[r1] = r2\n long[] r0 = r4.mTotalBlockScreenOnTime\n r2 = r0[r1]\n long r2 = r2 + r31\n r0[r1] = r2\n L_0x0485:\n int[] r0 = r4.mAvgCount\n r0 = r0[r1]\n long r2 = (long) r0\n int r0 = (r2 > r21 ? 1 : (r2 == r21 ? 0 : -1))\n if (r0 != 0) goto L_0x0541\n miui.mqsas.sdk.event.ScreenOnEvent r0 = new miui.mqsas.sdk.event.ScreenOnEvent\n r0.<init>()\n long[] r2 = r4.mTotalScreenOnTime\n r2 = r2[r1]\n int[] r5 = r4.mAvgCount\n r5 = r5[r1]\n long r5 = (long) r5\n long r2 = r2 / r5\n r0.setTotalTime(r2)\n long[] r2 = r4.mTotalSetDisplayTime\n r2 = r2[r1]\n int[] r5 = r4.mAvgCount\n r5 = r5[r1]\n long r5 = (long) r5\n long r2 = r2 / r5\n r0.setSetDisplayTime(r2)\n long[] r2 = r4.mTotalBlockScreenOnTime\n r2 = r2[r1]\n int[] r5 = r4.mAvgCount\n r5 = r5[r1]\n long r5 = (long) r5\n long r2 = r2 / r5\n r0.setBlockScreenTime(r2)\n java.lang.String[] r2 = miui.mqsas.sdk.event.ScreenOnEvent.TYPE_SCREEN_ON\n r2 = r2[r1]\n r0.setScreenOnType(r2)\n java.lang.String r2 = r4.mWakeSource\n r0.setWakeSource(r2)\n miui.mqsas.sdk.MQSEventManagerDelegate r2 = miui.mqsas.sdk.MQSEventManagerDelegate.getInstance()\n r2.reportScreenOnEvent(r0)\n long[] r2 = r4.mTotalScreenOnTime\n r5 = 0\n r2[r1] = r5\n long[] r2 = r4.mTotalSetDisplayTime\n r2[r1] = r5\n long[] r2 = r4.mTotalBlockScreenOnTime\n r2[r1] = r5\n int[] r2 = r4.mAvgCount\n r3 = 0\n r2[r1] = r3\n boolean[] r2 = r4.mNeedRecord\n r2[r1] = r3\n java.lang.StringBuilder r2 = r4.mTypeNeedRecordSb\n r3 = 49\n r2.setCharAt(r1, r3)\n java.lang.String r2 = PROPERTY_SCREEN_ON_UPLOAD\n java.lang.StringBuilder r3 = new java.lang.StringBuilder\n r3.<init>()\n java.lang.StringBuilder r5 = r4.mTypeNeedRecordSb\n java.lang.String r5 = r5.toString()\n r3.append(r5)\n r5 = r16\n r3.append(r5)\n java.lang.String r6 = r4.mUploadVersion\n r3.append(r6)\n java.lang.String r3 = r3.toString()\n android.os.SystemProperties.set(r2, r3)\n boolean r2 = r69.needRecordScreenOn()\n if (r2 != 0) goto L_0x0541\n java.lang.String r2 = PROPERTY_SCREEN_ON_UPLOAD\n java.lang.StringBuilder r3 = new java.lang.StringBuilder\n r3.<init>()\n java.lang.StringBuilder r6 = r4.mTypeNeedRecordSb\n java.lang.String r6 = r6.toString()\n r3.append(r6)\n r3.append(r5)\n java.lang.String r5 = android.os.Build.VERSION.INCREMENTAL\n r3.append(r5)\n java.lang.String r3 = r3.toString()\n android.os.SystemProperties.set(r2, r3)\n goto L_0x0541\n L_0x0532:\n r19 = r3\n r26 = r5\n r28 = r9\n r4 = r1\n goto L_0x0541\n L_0x053a:\n r19 = r3\n r26 = r5\n r28 = r9\n r4 = r1\n L_0x0541:\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.server.ScreenOnMonitor.handleReport(boolean):void\");\n }", "public static void clearScreen() {\r\n\t\tcreateDelay(700);\r\n\t\tcls();\r\n\t\tSystem.out.println(\"\\nProcessing...\");\r\n\t\tcreateDelay(500);\r\n\t\tcls();\r\n\t}", "String getDataFromScreen();", "public void drawScreen(int var1, int var2, float var3) {\r\n\t\tthis.drawDefaultBackground();\r\n\t\tthis.guiLeft = (this.width - this.xSize) / 2;\r\n\t\tthis.guiTop = (this.height - this.ySize) / 2;\r\n\t\tGL11.glPushMatrix();\r\n\t\tGL11.glTranslatef(this.guiLeft, this.guiTop, 0.0F);\r\n\t\tthis.mc.renderEngine.bindTexture(this.mc.renderEngine\r\n\t\t\t\t.getTexture(\"/gui/elevatorgui.png\"));\r\n\t\tGL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);\r\n\t\tthis.drawTexturedModalRect(0, 0, 0, 0, this.xSize, this.ySize);\r\n\t\tGL11.glTranslatef(0.0F, 0.0F, 0.0F);\r\n\t\tGL11.glPopMatrix();\r\n\t\tsuper.drawScreen(var1, var2, var3);\r\n\r\n\t\tif (!this.optionsOpen) {\r\n\t\t\tif (!this.screenTitle.equals(\"\")) {\r\n\t\t\t\tthis.drawUnshadedCenteredString(this.fontRenderer,\r\n\t\t\t\t\t\tthis.screenTitle, this.width / 2, this.titleTop, 0);\r\n\t\t\t\tthis.drawUnshadedCenteredString(this.fontRenderer, \"\"\r\n\t\t\t\t\t\t+ this.screenSubtitle + \"\", this.width / 2,\r\n\t\t\t\t\t\tthis.subtitleTop, 0);\r\n\t\t\t} else {\r\n\t\t\t\tthis.drawUnshadedCenteredString(this.fontRenderer, \"\"\r\n\t\t\t\t\t\t+ this.screenSubtitle + \"\", this.width / 2,\r\n\t\t\t\t\t\tthis.titleTop, 0);\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tif (this.screenTitle != null && !this.screenTitle.equals(\"\")) {\r\n\t\t\t\tthis.drawUnshadedCenteredString(this.fontRenderer,\r\n\t\t\t\t\t\tthis.screenTitle, this.width / 2 - 20,\r\n\t\t\t\t\t\tthis.subtitleTop, 0);\r\n\t\t\t} else {\r\n\t\t\t\tthis.drawUnshadedCenteredString(this.fontRenderer,\r\n\t\t\t\t\t\t\"[Unnamed Elevator]\", this.width / 2, this.subtitleTop,\r\n\t\t\t\t\t\t0);\r\n\t\t\t}\r\n\r\n\t\t\tthis.drawUnshadedCenteredString(this.fontRenderer, \"Options\",\r\n\t\t\t\t\tthis.width / 2, this.titleTop, 0);\r\n\t\t\tthis.floorNamesList.drawScreen(var1, var2, var3);\r\n\t\t}\r\n\t}", "public void homeScreen(Graphics art)\n\t{\n\t\t\n\t\tart.setColor(Color.pink);\n\t\tart.setFont(newFont);\n\t\tart.drawString(\"Balloon Pop\", 200, 200);\n\t\tart.setFont(newFont2);\n\t\tart.drawString(\"Press Z for instructions\", 100, 325);\n\t\tart.drawString(\"Hit the spacebar to start\", 100, 450);\n\t\t\n\t}", "private void persistData() {\n mSharedPref.storeLastScreen(SCREEN_NAME);\n }", "public void mo9255d() {\n this.f1298a = null;\n }", "public String getCurrentScreenDisplay();", "private static void clearScreen() \n {\n Console c = System.console();\n if (c != null) \n {\n // Clear screen for the first time\n System.out.print(\"\\033[H\\033[2J\");\n System.out.flush();\n //c.writer().print(ESC + \"[2J\");\n //c.flush();\n\n // Clear the screen again and place the cursor in the top left\n System.out.print(\"\\033[H\\033[1;1H\");\n System.out.flush();\n //c.writer().print(ESC + \"[1;1H\");\n //c.flush();\n }\n }", "public void clearScreen() \n\t{\n\t\tthis.myLineView.clearScreen();\n\t}", "public GameScreen getScreen()\r\n\t{\r\n\t\treturn _Screen;\r\n\t}", "public void screenMath(){\r\n\t\t//10.9375 H\r\n\t\t//12.037037037037036 W\r\n\t\tDouble test1 = 0.12 * screenWidth / 2.2;\r\n\t\tDouble test2 = 0.807 * screenHight;\r\n\t\tDouble test3 = screenHight - test2;\r\n\t\tDouble test4 = test3 / 10;\r\n\t\tfor(int i = 0; i < 10; i++){\r\n\r\n\t\t\tArrayList<Double> tempArray = new ArrayList<Double>();\r\n\t\t\t\r\n\t\t\ttempArray.add(screenHight - test3 + (test4 * i));\r\n\t\t\ttempArray.add(test1);\r\n\t\t\tint[] RGBArray = getScreenColor(test1, screenHight - test3 + (test4 * i));\r\n\t\t\t\r\n\t\t\tfor(int x = 0; x < RGBArray.length; x++){\r\n\t\t\t\ttempArray.add((double) (RGBArray[x]));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tlifeGlobe.addPosition(tempArray);\r\n\t\t}\r\n\t}", "public void m9122h() {\r\n this.f6008b = null;\r\n }", "String getScreenName() throws UnsetScreenException;", "@Override\n\tpublic void showUserPasswordNextScreen() {\n\t\tLog.d(TAG,\"showUserPasswordNextScreen\");\n\t\tif(ParentActivity.AnimationRunningFlag == true)\n\t\t\treturn;\n\t\telse\n\t\t\tParentActivity.StartAnimationRunningTimer();\n\t\t\n\t\tParentActivity._MenuBaseFragment.showBodyESL();\n\t\t\n\t\tParentActivity.OldScreenIndex = Home.SCREEN_STATE_MENU_MODE_ETC_AUTOSHUTDOWN_PW;\n\t}", "@Override\n public void onScreenUpdated(BufferedImage image) {\n RemoteMachineConfig.SCREEN = image;\n panel1.repaint();\n panel1.setSize(1020,600);\n }", "@Override\n\tpublic void updateScreen()\n {\n super.updateScreen();\n ++this.updateCount;\n }", "SettingsScreenClass(){\r\n cursorRow=0;\r\n counter=0;\r\n endPart=false;\r\n initSprites();\r\n setImage(512,500);\r\n fadeAmount=12;\r\n for(int i=0;i<12;i++){\r\n fadeColors[i]=new Color(0,0,0,(i)*20);\r\n }\r\n }", "public void ChangeScreen(CDasherScreen NewScreen) {\r\n\t\tm_Screen = NewScreen;\r\n\t}", "public void clearScreen()\n {\n showText(\"\", 150, 175);\n List objects = getObjects(null);\n if(objects != null)\n {\n removeObjects(objects);\n }\n }", "public void drawScreen(int par1, int par2, float par3)\n {\n drawRect(2, height - 14, width - 2, height - 2, 0x80000000);\n field_50064_a.drawTextBox();\n super.drawScreen(par1, par2, par3);\n }", "public void mo14068C() {\n this.f15664t0.onExitDiscoverMode();\n this.f15643Y.setTranslationY(0.0f);\n this.f15643Y.setAlpha(1.0f);\n this.f15637S.setTranslationX(0.0f);\n this.f15637S.setAlpha(1.0f);\n this.f15641W.setTranslationX(0.0f);\n this.f15641W.setAlpha(1.0f);\n this.f15639U.setAlpha(1.0f);\n this.f15648d0.mo22797a();\n this.f15646b0.setVisibility(8);\n this.f15643Y.setVisibility(0);\n this.f15637S.setVisibility(0);\n this.f15641W.setVisibility(0);\n this.f15639U.setVisibility(0);\n m17129H();\n this.f15651g0 = false;\n ((MeUserManager) this.f15668x0.get()).mo8754a(false);\n }", "private void setExitScreen(String text){\n\t\t\n\t\tscreenUI.clearScreen();\n\t\tscreenUI.drawText(3, 1, text);\n\t\tscreenUI.drawText(2, 2, Languages.getMessages().get(chosenLanguage).get(\"goodbye\"));\n\t\tscreenUI.drawText(2, 3, Languages.getMessages().get(chosenLanguage).get(\"restart\"));\n\t}", "public Screen getScreen() {\n return screen;\n }", "protected void mo3470b() {\n this.f3325a = null;\n m7956e();\n }", "@Override\n\tpublic void clearScreen() {\n\n\t\tmHighCounter.setText(R.string.zero);\n\t\tmHighMissCounter.setText(R.string.zero);\n\t\tmMedCounter.setText(R.string.zero);\n\t\tmMedMissCounter.setText(R.string.zero);\n\t\tmLowCounter.setText(R.string.zero);\n\t\tmLowMissCounter.setText(R.string.zero);\n\t}", "private void drawScreen(Graphics g) {\n \n iMenu.drawScreen(g, itemFocused, lastItemFocused, iCustomPopup.isMessageFocused(), \"\");\n //#if KEYPAD\n //|JG| if (UISettings.RENAMETEXTBOX == lastItemFocused) { //Rename Text box\n //|JG| try{\n //|JG| CustomCanvas.drawTextBox(0xff35f3, iKeyHandler.getRenameTempText(),\n //|JG| iKeyHandler.getKeyChar(), null, iMenu.getMenuPosition(false) + iMenu.getSelectedIndex() * UISettings.itemHeight,\n //|JG| iKeyHandler.getRenameTextCursorPos(),textboxSize, g,1,-1);\n //|JG| }catch(Exception e){\n //|JG| iKeyHandler.setRenameTextValue(iKeyHandler.getRenameTempText());\n //|JG| }\n //|JG| }\n //#endif\n \n bannerHandler.drawScreen(g,itemFocused);\n }", "public void setup()\n {\t\nint i;\n// Clear screen and depth buffer\n\n\n }", "public StartScreen()\n { \n // Create a new world with 1111x602 cells with a cell size of 1x1 pixels.\n super(1111, 602, 1); \n prepare();\n background.playLoop();\n }", "public void openScreenOverviewLarge() {\n/*Generated! Do not modify!*/ replyDTO.setScreenToOpen(\"overviewLarge\");\n/*Generated! Do not modify!*/ if (recordMode){\n/*Generated! Do not modify!*/ addRecordedAction(ReplyActionType.OPEN_SCREEN, \"openScreenOverviewLarge(\");\n/*Generated! Do not modify!*/ }\n/*Generated! Do not modify!*/ }", "public static void clearScreen() { // funcao que limpa o ecrã \n System.out.println(\"\\033[H\\033[2J\");\n System.out.flush();\n }", "private void drawTitleScreen(Graphics g) {\n \t\tg.setColor(new Color(0, 0x66, 0xcc, 150));\n \t\tg.fillRect(0, 60, getWidth(), getHeight() - 120);\n \t\tg.setColor(Color.WHITE);\n \t\tg.setFont(new Font(\"Courier New\", Font.BOLD, 30));\n \t\tg.drawString(\"POP UP QUIZ!\", 50, 100);\n \t\tg.setFont(new Font(\"Courier New\", Font.BOLD, 18));\n \t\tg.drawString(\"Where you answer questions whilst cleaning your desktop!\",\n \t\t\t\t50, 120);\n \t\tg.drawString(\"Q LAM, V TONG, A VIJAYARAGAVAN\", 50, 140);\n \n \t\tg.drawString(\"Use the arrow keys to move the recycle bin.\", 50, 180);\n \t\tg.drawString(\"<Space> pauses, and <Esc> quits.\", 50, 200);\n \n \t\tg.drawImage(sprites.get(\"junk\"), 4, 200, null);\n \t\tg.drawString(\"Polish your computer by trashing junk falling \"\n \t\t\t\t+ \"from the sky!\", 50, 220);\n \n \t\tg.drawImage(sprites.get(\"sysfileLarge\"), 4, 330, null);\n \t\tg.drawImage(sprites.get(\"sysfileMedium\"), 8, 390, null);\n \t\tg.drawImage(sprites.get(\"sysfileSmall\"), 16, 440, null);\n \t\tg.drawString(\"You'll mess up your computer if you collect system files.\",\n \t\t\t\t50, 360);\n \t\tg.drawString(\"Note that they fall from the sky at different speeds.\",\n \t\t\t\t50, 390);\n \n \t\tg.drawString(\"The CPU gauge will tell you how well you're doing!\",\n \t\t\t\t50, 420);\n \t\tg.drawString(\"If your CPU usage goes over 100%, your computer goes kaput\"\n \t\t\t\t+ \" and you lose! How long can you clean?\", 50, 450);\n \n \t\tg.drawString(\"By the way, you'll have to answer questions from a barrage\"\n \t\t\t\t+ \" of pop-up as you do this.\", 50, 500);\n \t\tg.drawString(\"Serves you right for not being clean!!!\", 50, 530);\n \n \t\tg.drawString(\"PUSH START TO BEGIN_\", 50, 600);\n \t}" ]
[ "0.68261784", "0.6505281", "0.62924784", "0.6144395", "0.61207455", "0.6102038", "0.60369617", "0.6031213", "0.601048", "0.59864783", "0.5975672", "0.5922017", "0.59157574", "0.58888113", "0.5882215", "0.5876758", "0.587473", "0.5871304", "0.5856631", "0.5839798", "0.5803093", "0.57964134", "0.5796376", "0.5787313", "0.5787138", "0.5766332", "0.5744672", "0.57247907", "0.5724712", "0.57236266", "0.5721116", "0.5717464", "0.57044363", "0.57016224", "0.56974137", "0.56904113", "0.568137", "0.5673399", "0.56670034", "0.56631684", "0.5662588", "0.56552374", "0.56524605", "0.56484187", "0.5646789", "0.56453246", "0.56367916", "0.5628188", "0.56016076", "0.55925107", "0.5590917", "0.55880034", "0.55627173", "0.5562201", "0.5557799", "0.5554201", "0.5542088", "0.55329394", "0.55322737", "0.5525982", "0.55259705", "0.5522255", "0.55147964", "0.5512441", "0.5508753", "0.5507808", "0.5507543", "0.55072653", "0.55011445", "0.5490417", "0.5487428", "0.54852957", "0.5474236", "0.5473557", "0.5471106", "0.54617244", "0.54503614", "0.5446555", "0.5442061", "0.5427307", "0.5424036", "0.54222", "0.54102105", "0.541017", "0.5404593", "0.5403483", "0.5401703", "0.5399787", "0.5397031", "0.53948826", "0.5387885", "0.538519", "0.53846556", "0.53754485", "0.53718513", "0.53691727", "0.5366888", "0.5363049", "0.5361782", "0.53605926", "0.5356308" ]
0.0
-1
/ start thread used to repaint image at fixed intervals whenever scn_repaint has been set true
public synchronized void start_scn_updates() { if (scn_update_thread == null){ scn_update_thread = new Thread(this); scn_update_thread.start(); } scn_ready = true; repaint(); scn_repaint = true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void run() {\r\n\t\t\r\n\t\tlong lastTime = new Date().getTime();\r\n\t\t\r\n\t\twhile (true)\r\n\t\t{\r\n\t\t\tlong ct = new Date().getTime();\r\n\t\t\tif (ct-lastTime < 50)\r\n\t\t\t\ttry {\r\n\t\t\t\t\t//thread.slee(10-ct+lastTime);\r\n\t\t\t\t\tThread.sleep(50);\r\n\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t\r\n\t\t\tlastTime = new Date().getTime();\r\n\t\t\t\r\n\t\t\t//System.out.println(lastTime);\r\n\t\t\t\r\n\t\t\tif (working /*|| drawArea == null || drawArea.getGraphicsConfiguration() == null*/)\r\n\t\t\t\tcontinue;\r\n\t\t\t\r\n\t\t\tworker = new MySwingWorker(tempImage,this);\r\n\t\t \tworker.execute();\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}", "@Override\r\n\tpublic void run() {\n\t\twhile(true){\r\n\t\t\trepaint();\r\n\t\t\ttry {\r\n\t\t\t\tThread.sleep(2000);\r\n\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\r\n\t\tpublic void run() {\n\t\t\twhile(running) {\r\n\t\t\t\trepaint();\r\n\t\t\t\ttry {\r\n\t\t\t\t\tThread.sleep(100);\r\n\t\t\t\t}catch (InterruptedException e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}", "@Override\n\t\tpublic void run()\n\t\t{\n\t\t\twhile (true)\n\t\t\t{\n\t\t\t\trepaint();\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tsleep(20);\n\t\t\t\t}\n\t\t\t\tcatch (InterruptedException ie)\n\t\t\t\t{\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t}", "@Override\n\tpublic void run() {\n\t\twhile (true) \n\t\t{\n\t\t\t//\n\t\t\tmove();\n\t\t\t\n\t\t\t// \n\t\t\tcollisions();\n\t\t\t\n\t\t\t// Refresh the display\n repaint(); // Callback paintComponent()\n // Delay for timing control and give other threads a chance\n try {\n Thread.sleep(1000 / UPDATE_RATE); // milliseconds\n } catch (InterruptedException ex) { }\n\t\t}\n\t}", "@Override\n\tpublic void run() {\n\t\twhile(true){\n\t\t\ttry {\n\t\t\t\tThread.currentThread().sleep(1);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\trepaint();\n\t\t}\n\t}", "@Override\n\tpublic void run() {\n\t\twhile (runing) {\n\t\t\tdraw(canvas, paint);\n\t\t\ttry {\n\t\t\t\tThread.sleep(15);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\n\t}", "@Override\n\tpublic void run() {\n\t\twhile (true){\n\t\t\ttry {\n\t\t\t\tThread.sleep(200);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\ttime ++;\n\t\t\tthis.repaint();\n\t\t}\n\t}", "public void start(){\r\n\t\tnew Thread(\r\n\t new Runnable() {\r\n\t public void run() {\r\n\t \twhile(true){\r\n\t \t\t try {\r\n\t \t Thread.sleep(200);\r\n\t \t } catch (Exception e) {\r\n\t \t e.printStackTrace();\r\n\t \t }\r\n\t \t // Functions.DEBUG(\r\n\t \t // \"child thread \" + new Date(System.currentTimeMillis()));\r\n\t \t repaint();\r\n\t \t}\r\n\t }\r\n\t }).start();\r\n\t}", "private void startAutoRefresh(final Canvas canvas) {\n \t\tnew Thread() {\n \n \t\t\t{\n \t\t\t\tsetDaemon(true);\n \t\t\t}\n \n \t\t\tpublic void run() {\n \t\t\t\twhile (true) {\n \t\t\t\t\tcanvas.repaint();\n \t\t\t\t\ttry {\n \t\t\t\t\t\tThread.sleep(1000 / 30); // 30 fps\n \t\t\t\t\t} catch (InterruptedException ex) {\n \t\t\t\t\t\tLogger.getLogger(WorldEditor.class.getName()).log(\n \t\t\t\t\t\t\t\tLevel.SEVERE, null, ex);\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t};\n \t\t}.start();\n \t}", "public void run()\r\n {\r\n try\r\n {\r\n while(j.isEnabled())\r\n {\r\n while((x+100) < j.getWidth()){\r\n rev = false;\r\n x += 20;\r\n repaint();\r\n Thread.sleep(time);\r\n }\r\n \r\n while((x-100)> j.getWidth()-j.getWidth()){\r\n rev = true;\r\n x -= 20;\r\n repaint();\r\n Thread.sleep(time);\r\n }\r\n }\r\n }\r\n catch(InterruptedException e)\r\n {\r\n return;\r\n }\r\n }", "@Override\n public void run() {\n while (threadFlag) {\n long startTime = System.currentTimeMillis();\n drawSelf();\n long endTime = System.currentTimeMillis();\n try {\n if (endTime - startTime < 500)\n Thread.sleep(500 - (endTime - startTime));\n } catch (InterruptedException err) {\n err.printStackTrace();\n }\n }\n }", "public void run() {\n while (true) {\n animate();\n repaint();\n \n \n double seconds = .04; //time that 1 frame takes.\n int miliseconds = (int) (1000.0 * seconds);\n try {\n Thread.sleep(miliseconds);\n } catch (InterruptedException e) {\n }\n }\n }", "@Override\n\t\tpublic void run() {\n\t\t\twhile(true){\n\t\t\t\tfb.repaint();\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep(600);\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}", "@Override\n\tpublic void run() {\n\t\twhile(true) {\n\t\t\t//休眠1s\n\t\t\ttry {\n\t\t\t\tThread.sleep(500);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\ttimes++;\n\t\t\tthis.repaint();\n\t\t}\n\t}", "@Override\n\tpublic void run() {\n\t\twhile (threadFlag) {\n\t\t\tlong startTime = System.currentTimeMillis();\n\t\t\tdrawSelf();\n\t\t\tlong endTime = System.currentTimeMillis();\n\t\t\ttry {\n\t\t\t\tif (endTime - startTime < 500)\n\t\t\t\t\tThread.sleep(500 - (endTime - startTime));\n\t\t\t} catch (InterruptedException err) {\n\t\t\t\terr.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public void run() {\n\t\twhile (true ) {\n\t\t\tmoveShapes();\n\t\t\tframe.repaint();\n\t\t\ttry {\n\t\t\t\tThread.sleep(75);\n\t\t\t} catch (Exception ex) {}\n\t\t}\n\t}", "public void start(){\n isRunning = true;\n\n // This is where the magic happens\n Thread loop = new Thread(){\n\t\t\tpublic void run(){\n\t\t final double targetHertz = 30; // target updates per second\n\t\t final double updateTime = 1e9 / targetHertz; // target time between updates\n\t\t final int maxUpdates = 5; // max updates before a render is forced\n\t\t \n\t\t final double targetFps = 60; // target frames per second (fps)\n\t\t final double renderTime = 1e9 / targetFps; // target time between renders\n\t\t \n\t\t double lastUpdate = System.nanoTime();\n\t\t double lastRender = System.nanoTime();\n\n\t\t while (isRunning){\n\t\t \tdouble now = System.nanoTime();\n\t\t \t\n\t\t \tint updates = 0;\n\t\t \twhile (now - lastUpdate > updateTime && updates < maxUpdates){ // Update the game as much as possible before drawing\n\t\t \t\tgamePanel.update();\n\t\t \t\tlastUpdate += updateTime;\n\t\t \t\tupdates++;\n\t\t \t}\n\t\t \t\n\t\t \tif (now - lastUpdate > updateTime){ // Compensate for really long updates\n\t\t \t\tlastUpdate = now - updateTime;\n\t\t \t}\n\t\t \t\n\t\t \t// Draw the game\n\t\t \tgamePanel.repaint();\n\t\t \tlastRender = now;\n\t\t \t\n\t\t \t// kill some time until next draw\n\t\t \t\n\t\t \twhile (now - lastRender < renderTime && now - lastUpdate < updateTime){\n\t\t \t\tThread.yield();\n\t\t \t\t\n\t\t \t\ttry { Thread.sleep(1);} catch (Exception e) { }\n\t\t \t\t\n\t\t \t\tnow = System.nanoTime();\n\t\t \t}\n\t\t }\n\t\t\t}\n\t\t};\n\t\tloop.start();\n }", "void go() {\n\t\ttry {\n\t\t\twhile(x + 60 < getWidth()) {\n\t\t\t\tx += 10;\n\t\t\t\twin.repaint();\n\t\t\t\tThread.sleep(100);\n\t\t\t}\n\t\t\twhile(y + 60 < getHeight()) {\n\t\t\t\ty += 10;\n\t\t\t\twin.repaint();\n\t\t\t\tThread.sleep(100);\n\t\t\t}\n\t\t\twhile(x > 10) {\n\t\t\t\tx -= 10;\n\t\t\t\twin.repaint();\n\t\t\t\tThread.sleep(100);\n\t\t\t}\n\t\t\twhile(y > 10) {\n\t\t\t\ty -= 10;\n\t\t\t\twin.repaint();\n\t\t\t\tThread.sleep(100);\n\t\t\t}\n\t\t} catch(InterruptedException e) {\n\t\t\tSystem.out.println(\"Thread sleep interrupted\");\n\t\t}\n\t}", "public void run(){\n this.requestFocus();\n long lastTime = System.nanoTime();\n double amountOfTicks = 60.0;\n double ns = 1000000000 / amountOfTicks;\n double delta = 0;\n long timer = System.currentTimeMillis();\n int frames = 0;\n\n while(isRunning){\n long now = System.nanoTime();\n delta += (now - lastTime) / ns;\n lastTime = now;\n while(delta >= 1){\n tick();\n delta--;\n }\n render();\n frames++;\n\n if(System.currentTimeMillis() - timer > 1000){\n timer += 1000;\n frames = 0;\n }\n }\n stop();\n }", "@Override\n public void run() {\n try {\n while (true) {\n frame.updateState();\n Thread.sleep(1000);\n }\n } catch (Exception e) {\n // e.printStackTrace();\n }\n }", "public void run() {\r\n\t\twhile (true) {\r\n\t\t\tanimate();\r\n\t\t\trepaint();\r\n\t\t\tdouble seconds = 0.02; //time that 1 frame takes.\r\n\t\t\tint miliseconds = (int)(1000.0 * seconds);\r\n\t\t\ttry {\r\n\t\t\t\tThread.sleep(miliseconds);\r\n\t\t\t} catch (InterruptedException e) {}\r\n\t\t}\r\n\t}", "@Override\n\tpublic void run() {\n\t\tif (state != 3) {\n\t\t\tthis.requestFocus();\n\t\t\tlong lastTime = System.nanoTime();\n\t\t\tdouble amountOfTicks = 60.0;\n\t\t\tdouble ns = 1000000000 / amountOfTicks;\n\t\t\tdouble delta = 0;\n\t\t\tlong timer = System.currentTimeMillis();\n\t\t\tint frames = 0;\n\t\t\twhile (isRunning) {\n\n\t\t\t\tlong now = System.nanoTime();\n\n\t\t\t\tdelta += (now - lastTime) / ns;\n\t\t\t\tlastTime = now;\n\n\t\t\t\twhile (delta >= 1) {\n\t\t\t\t\ttick();\n\t\t\t\t\tdelta--;\n\t\t\t\t}\n\t\t\t\trender();\n\t\t\t\tframes++;\n\n\t\t\t\tif (System.currentTimeMillis() - timer > 1000) {\n\t\t\t\t\ttimer += 1000;\n\t\t\t\t\tframes = 0;\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tstop();\n\n\t\t}\n\n\t}", "@Override\n public void run(){\n store.phaser.arriveAndAwaitAdvance();\n //System.out.println(Thread.currentThread().getName() + \" is started.\");\n for(int y = startLine; y < endLine; y++){\n for(int x = 0; x < store.image.getWidth(); x++){\n Color c = new Color(store.image.getRGB(x, y));\n int grayScale = (int) ((c.getRed() * 0.299) + (c.getGreen() * 0.587) + (c.getBlue() * 0.114));\n Color newColor = new Color(grayScale, grayScale, grayScale);\n store.image.setRGB(x, y, newColor.getRGB());\n }\n }\n store.phaser.arriveAndAwaitAdvance();\n }", "@Override\n public void run() {\n drawComponents();\n // Ve lai sau 1p\n drawComponentsHandler.postDelayed(drawComponentsRunnable, 60000);\n }", "public void run() \n \t{\n \t\twhile(m_isDrawing)\n \t\t{\n \t\t\tCanvas canvas = m_surface.lockCanvas();\n \t\t\t\n \t\t\ttry\n \t\t\t{\n \t\t\t\t// clear canvas\n \t\t\t\tcanvas.drawColor(Color.WHITE);\n \t\t\t\t\n \t\t\t\t// draw stuffs\n \t\t\t\tm_grid.Draw(canvas, m_camera);\n \t\t\t}\n \t\t\tfinally\n \t\t\t{\n \t\t\t\tm_surface.unlockCanvasAndPost(canvas);\n \t\t\t}\n \t\t\t\n \t\t\t// then sleep for a bit\n \t\t\ttry \n \t\t\t{\n \t\t\t\tThread.sleep((long) (1000.0f / FPS));\n \t\t\t} \n \t\t\tcatch (InterruptedException e) \n \t\t\t{\n \t\t\t\t// Don't care, just log it and move on\n \t\t\t\tLog.w(TAG, \"Interrupted while sleeping!\");\n \t\t\t}\n \t\t}\n \t}", "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\twhile(true){\r\n\t\t\t\t\tdraw();\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}", "private void changer() {\n\n\t\ttry {\n\t\t\twhile (true) {\n\n\n\t\t\t\tThread.sleep(1000);\n\t\t\t\tvfeu1.lock();\n\t\t\t\tvfeu2.lock();\n\t\t\t\tif(r.feu==1)\n\t\t\t\t{\n\t\t\t\t\t//if(r.x>=100 && r.x<400)\n\t\t\t\t\tif(r.x>=100 && r.x<200)\n\t\t\t\t\t{\n\t\t\t\t\t\tcf1.await();\n\n\t\t\t\t\t}\n\n\n\t\t\t\t\tr.img= ImageIO.read(new File(\"C:/Users/Anonyme/Tutorials/DAC_Controle_Carrefour/src/Carrefour/route.png\"));\n\n\t\t\t\t\tr.img1=ImageIO.read(new File(\"C:/Users/Anonyme/Tutorials/DAC_Controle_Carrefour/src/Carrefour/pietonvert.png\"));\n\t\t\t\t\tr.img2= ImageIO.read(new File(\"C:/Users/Anonyme/Tutorials/DAC_Controle_Carrefour/src/Carrefour/pietonrouge.png\"));\n\t\t\t\t\tr.feu=2;\n\t\t\t\t}else\n\t\t\t\t{\n\t\t\t\t\t//if(r.y>=120 && r.y<300)\n\t\t\t\t\tif(r.y>=200 && r.y<300)\n\t\t\t\t\t{ \n\t\t\t\t\t\tcf2.await();\n\t\t\t\t\t}\n\n\t\t\t\t\tr.img= ImageIO.read(new File(\"C:/Users/Anonyme/Tutorials/DAC_Controle_Carrefour/src/Carrefour/route.png\"));\n\n\t\t\t\t\tr.img1=ImageIO.read(new File(\"C:/Users/Anonyme/Tutorials/DAC_Controle_Carrefour/src/Carrefour/pietonrouge.png\"));\n\t\t\t\t\tr.img2= ImageIO.read(new File(\"C:/Users/Anonyme/Tutorials/DAC_Controle_Carrefour/src/Carrefour/pietonvert.png\"));\n\n\n\t\t\t\t\tr.feu=1;\n\n\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tr.repaint();\n\t\t\t\tvfeu1.unlock();\n\t\t\t\tvfeu2.unlock();\n\t\t\t}\n\t\t} catch (InterruptedException | IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}finally {\n\n\t\t}\n\n\t}", "private void control() {\n new Thread( new ColorControl()).start();\n new Thread( new ColorControl()).start();\n new Thread( new ColorControl()).start();\n }", "@Override\n\t\tpublic void run() {\n\t\t\tsuper.run();\n\t\t\twhile(flag == true){\n\t\t\t\t\n\t\t\t\tssinView.postInvalidate();\n\t\t\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep(sleepTime);\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}", "@Override\n\tpublic void run() {\n\t\twhile(isBreak){\n\t\t\tif(x <= 380)\n\t\t\t\trepaint();\n\t\t\ttry{\n\t\t\t\tThread.sleep(100);\n\t\t\t\ti++;\n\t\t\t\tj -= 6;\n\t\t\t\tu += 10;\n\t\t\t\tif(tt == 3){\n\t\t\t\t\twidth -= 20;\n\t\t\t\t}\n\t\t\t\tif(i == 4){\n\t\t\t\t\ttt++;\n\t\t\t\t\tif(isBreak && x >120+k*20)\n\t\t\t\t\t{\n\t\t\t\t\t\tk++;\n\t\t\t\t\t}\t\t\t\t\t\n\t\t\t\t\tif(k >= gg.length-1)\n\t\t\t\t\t{\n\t\t\t\t\t\tisBreak = false;\n\t\t\t\t\t}\n\t\t\t\t\tx+=10;\n\t\t\t\t\ti = 0;\n\t\t\t\t\tj = 40;\n\t\t\t\t\tu = 10;\n\t\t\t\t\tdian++;\n\t\t\t\t\tif(dian>3)\n\t\t\t\t\t{\n\t\t\t\t\t\tdian = 0;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}catch (InterruptedException e) {\n\t\t\t\t// TODO: handle exception\n\t\t\t\tSystem.out.println(\"Thread interrupted.\");\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public void run() {\n\t\t\t heavyResize();\n\t\t\t invokeRedraw();\n\t\t }", "@Override\n public void run() {\n\n ui = new UI(this);\n\n addMouseWheelListener(UI.mouse.wheelControls);\n addMouseListener(UI.mouse.adapter);\n EventLoader.loadEvents(this);\n long beforeTime, timeDiff, sleep;\n\n UI.mouse.setShape(new Ellipse2D.Float(0, 0, 1, 1), true);\n Application.grid.reset(600, 600);\n // Application.grid.reset(600, 600);\n // Particle tracer = Application.grid.spawn(300, 300, Tracer.class);\n // tracer.vel = new Vector2D(2, 0);\n beforeTime = System.currentTimeMillis();\n\n while (true) {\n\n repaint();\n\n Application.grid.updateParticles();\n\n timeDiff = System.currentTimeMillis() - beforeTime;\n sleep = DELAY - timeDiff;\n\n if (sleep < 0) {\n sleep = 2;\n\n }\n\n fps = 1 / ((sleep + timeDiff) * 1e-3);\n\n try {\n Thread.sleep(sleep);\n } catch (InterruptedException e) {\n\n String msg = String.format(\"Thread interrupted: %s\", e.getMessage());\n\n JOptionPane.showMessageDialog(this, msg, \"Error\", JOptionPane.ERROR_MESSAGE);\n }\n\n beforeTime = System.currentTimeMillis();\n }\n }", "public void run() {\n\t\tlong lastTime = System.nanoTime();\n\t\tlong timer = System.currentTimeMillis();\n\t\tfinal double ns = 1000000000.0/60;\n\t\tdouble delta = 0;\n\t\tint frames = 0;\n\t\tint updates = 0;\n\t\trequestFocus();\n\t\twhile(running){\n\t\t\tlong now = System.nanoTime();\n\t\t\tdelta += (now-lastTime) /ns;\n\t\t\tlastTime = now;\n\t\t\twhile(delta >= 1){//60 times per sec\n\t\t\t\ttick();\n\t\t\t\tupdates++;\n\t\t\t\tdelta--;\n\t\t\t}\n\t\t\trender();//as fast as i can\n\t\t\tframes ++;\n\t\t\tif(System.currentTimeMillis() -timer > 1000){\n\t\t\t\ttimer += 1000;\n\t\t\t\tSystem.out.println(\"Fps:\"+frames+\" Updates:\"+updates);\n\t\t\t\tupdates = 0;\n\t\t\t\tframes = 0;\n\t\t\t\tthis.seconds++;\n\t\t\t}\n\t\t}\n\t\t\n\t}", "public void run() {\n myCanvas.repaint();\n }", "public void run() {\n this.requestFocus();\n long lastTime = System.nanoTime();\n double amountOfTicks = 60.0;\n double ns = 1000000000 / amountOfTicks;\n double delta = 0;\n long timer = System.currentTimeMillis();\n int frames = 0;\n while (running) {\n long now = System.nanoTime();\n delta += (now - lastTime) / ns;\n lastTime = now;\n while (delta >= 1) {\n tick();\n delta--;\n }\n if (running) {\n render();\n }\n frames++;\n if (System.currentTimeMillis() - timer > 1000) {\n timer += 1000;\n System.out.println(\"FPS: \" + frames);\n\n frames = 0;\n }\n }\n stop();\n }", "private void run() {\n\t\twhile(fraction<=1){ \n\t\t\tUI.clearGraphics();\n\t\t\tredraw();\n\t\t\tUI.sleep(rate);\n\t\t\tthis.fraction += step;\n\t\t\tUI.repaintGraphics();\n\t\t}\n\t}", "public void run() {\n\t\t\tparar=false;\n\t\t\t\n\t\t\t//recojo hiloActual\n\t\t\tThread hiloActual=Thread.currentThread();\n\t\t\t\n\t\t\tint ancho = Integer.parseInt(this.getParameter(\"WIDTH\")); \n\t\t\tint alto = Integer.parseInt(this.getParameter(\"HEIGHT\")); \n\t\t\t\n\t\t\tcontador = ancho-20;\n\t\t\t\n\t\t\tboolean izquierda = false;\n\t\t\t\n\t\t\twhile (h==hiloActual && !parar){\n\t\t\t\ttry{\n\t\t\t\t\tThread.sleep(100);\n\t\t\t\t}catch (InterruptedException e){e.printStackTrace();}\n\t\t\t\trepaint();\n\t\t\t\t\n\t\t\t\tif(!izquierda)\t\n\t\t\t\t\tcontador=contador-10;\n\t\t\t\tif(izquierda)\n\t\t\t\t\tcontador=contador+10;\n\t\t\t\tif(contador<=0 ){\n\t\t\t\t\tizquierda=true;\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tif (contador>=ancho-20)\n\t\t\t\t\t\tizquierda=false;\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t}//fin while\n\t\t\t\n\t\t}", "public void run() {\r\n\t\tint frames = 0;\r\n\t\tdouble unprocessedSeconds = 0;\r\n\t\tlong previousTime = System.nanoTime();\r\n\t\tdouble secondsPerTick = 1 / 60.0;\r\n\t\tint tickCount = 0;\r\n\t\tboolean ticked = false;\r\n\t\t\r\n\t\twhile (running) {\r\n\t\t\tlong currentTime = System.nanoTime();\r\n\t\t\tlong passedTime = currentTime - previousTime;\r\n\t\t\tpreviousTime = currentTime;\r\n\t\t\tunprocessedSeconds += passedTime / 1000000000.0;\r\n\t\t\trequestFocus();//has the window selected when program is lanched\r\n\r\n\t\t\twhile (unprocessedSeconds > secondsPerTick) {\r\n\t\t\t\tunprocessedSeconds -= secondsPerTick;\r\n\t\t\t\tticked = true;\r\n\t\t\t\ttickCount++;\r\n\t\t\t\tif (tickCount % 3 == 0) {//calls on tick 20x/second\r\n\t\t\t\t\ttick();\r\n\t\t\t\t\tnumberOfTicks++;\r\n\t\t\t\t}\r\n\t\t\t\tif (tickCount % 60 == 0) {\r\n\t\t\t\t\t//System.out.println(frames + \"fps\");\r\n\t\t\t\t\tfps = frames;\r\n\t\t\t\t\tpreviousTime += 1000;\r\n\t\t\t\t\tframes = 0;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\trender();\r\n\t\t\tframes++;\r\n\t\t}\r\n\t}", "static void start() {\n if( flag == 1 ) return;\n for( Tile x : tiles ) {\n if( x.getBackground() == cyan ) x.setBackground(white);\n }\n Thread fill = new Thread(new FloodFill());\n fill.start();\n flag = 1;\n }", "@Override\n\tpublic void run() {\n\t\tInpainter.init((BufferedImage) entry.getImage(), (BufferedImage) entry.getImage(), fastInpaint);\n\t}", "public void run()\n {\n while (true) // infinite loop\n {\n for (int i = 0; i < display.getSpeed(); i++)\n {\n step();\n }\n updateDisplay();\n display.repaint();\n display.pause(1); //wait for redrawing and for mouse\n int[] mouseLoc = display.getMouseLocation();\n if (mouseLoc != null) //test if mouse clicked\n {\n locationClicked(mouseLoc[0], mouseLoc[1], display.getTool());\n }\n }\n }", "@Override\n\tpublic void run() {\n\t\twhile(!StaticValue.flag){\n\t\t\tint tmp = 0;\n\t\t\t\n\t\t\tthis.x -= 20;\n\t\t\tif(this.x==-100){\n\t\t\t\tthis.x=900;\n\t\t\t\tStaticValue.counter++;\n\t\t\t}\n\n\t\t\tif(true){\n\t\t\t\tmove++;\n\t\t\t\ttmp+=move;\n\t\t\t\tif(move==4){\n\t\t\t\t\tmove=0;\n\t\t\t\t}\n\t\t\t}\n\t\tif(type==1)\n\t\t\tthis.showImage = StaticValue.allFlyImage.get(tmp);\n\t\telse if (type==2)\n\t\t\tthis.showImage = StaticValue.allLandImage.get(tmp);\n\t\telse if (type==3)\n\t\t\tthis.showImage = StaticValue.allTreeImage.get(tmp);\n\t\telse if (type==4)\n\t\t\tthis.showImage = StaticValue.allStrenImage.get(tmp);\n\t\telse if (type==5)\n\t\t\tthis.showImage = StaticValue.allClsImage.get(tmp);\n\t\t\n\t\t\ttry {\n\t\t\t\tThread.sleep(50);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t}", "public void run() {\t\t\r\n\t\tif(this.stopped) {\r\n\t\t\tthis.animationFigure.showBusy(false);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif(this.state==null || this.state.getState() == State.UNBLOCKED) {\r\n\t\t\tthis.finished=true;\r\n\t\t this.animationFigure.showBusy(false);\r\n\t\t\t//notify Listeners and tell them that animation finished. This listeners are user defined listeners which will be informed.\r\n\t\t\tanimationFigure.notifyAnimationListener(new AnimationFinishedEvent(animationFigure, AnimationFinishedEvent.BUSY_FINISHED));\r\n\t\t\t//notify observers, here the observer which listens if animation is finished. this Observer looks into the animationqueue \r\n\t\t\t//after each finished \r\n\t\t\tsetChanged();\r\n\t\t\tnotifyObservers(this.animationFigure);\r\n\t\t\t\r\n\t\t\t// notify waiting threads\r\n\t\t\tsynchronized (this) {\r\n\t\t\t\tthis.notifyAll();\r\n\t\t\t}\r\n\t\t return;\r\n\t\t}\r\n\t\tif (counter >= 5) {\r\n\t\t\tcounter = 0;\r\n\t\t\tthis.animationFigure.showBusy(!this.animationFigure.isShowBusy());\r\n\t\t}\r\n\t\tcounter++;\r\n\t\tmap.getDisplay().timerExec(100, this);\t\t\t\r\n\t}", "@Override\n\tpublic void run() {\n\t\tticks = 0;\n\t\twhile (running) {\n\t\t\tticks++;\n\t\t\texec.update(ticks);\n\t\t\tscreen.repaint();\n\t\t\ttry {\n\t\t\t\tThread.sleep(15);\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\tscreen.getFrame().dispose();\n\t\texec.stop();\n\t\tSystem.exit(0);\n\t}", "@Override\n\tpublic void run() {\n\t\twhile(!Thread.currentThread().isInterrupted()){\n\t\t\ttry{\n\t\t\tThread.sleep(100);\n\t\t\t}\n\t\t\tcatch(InterruptedException e){\n\t\t\t\tThread.currentThread().interrupt();\n\t\t\t}\n\t\t\t\n\t\t\tpostInvalidate();\n\t\t}\n\t}", "public void run(){\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(10L);\n\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\tupdateButtonBounds();\n\t\t\t\t}", "@Override\n\tpublic void run() {\n\t\t\n\t\t\n\t\twhile (running) {\n\t\t\tupdate();\n\t\t\ttry {\n\t\t\t\tthread.sleep(1);\n\t\t\t} catch (InterruptedException e) {\t\t\t\t\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\trender();\n\t\t}\n\t\t\n\t}", "@Override\r\n public void paint(Graphics g){\n if(ch.moveCountY == 1 && flag == false){ \r\n flag = true;\r\n animator = new Thread(this);\r\n animator.start();\r\n }\r\n \r\n super.paint(g);\r\n \r\n Graphics2D g2d = (Graphics2D) g;\r\n \r\n if(ch.v == 330){\r\n ch.mainC = img;\r\n }\r\n \r\n if(pos2 < -15){\r\n // g2d.drawImage(img_bg2 , pos2, 0 , null);\r\n b.setBounds(pos2, 0, 995, 610);\r\n \r\n }\r\n \r\n if(pos <= -15){\r\n b.setBounds(pos2, 0, 995, 610);\r\n //g2d.drawImage(img_bg2 , pos2, 0 , null);\r\n \r\n }\r\n \r\n \r\n a.setBounds(pos, 0, 995, 610);\r\n g2d.drawImage(ch.getImage() , ch.getMoveX() , ch.v , null);\r\n g2d.drawImage(obs1.getImage() , obs1.getX() , obs1.getY() , null);\r\n g2d.drawImage(obs2.pic2 , obs2.getX() , obs2.getY() , null);\r\n \r\n }", "public void PerformTimerTask() {\n \tif(refreshRate !=0){\n x+=px;\n y+=py;\n if (x+width >= panelW) {\n x = panelW - width;\n px = -px;\n }\n if (y+height >= panelH) {\n y = panelH - height;\n py = -py;\n }\n if (x < 0) {\n x = 0;\n px = -px;\n }\n if (y < 0) {\n y = 0;\n py = -py;\n }\n repaint();\n \t}\n }", "public void start() {\r\n\t\tif (animationFigure instanceof TrainFigure) {\r\n\t\t\t((TrainFigure) animationFigure).setBusyColor(org.eclipse.draw2d.ColorConstants.red);\r\n\t\t}\r\n\t\tcounter = 1;\r\n\t\t//notify Listeners\r\n\t\tanimationFigure.notifyAnimationListener(new AnimationStartedEvent(animationFigure, AnimationStartedEvent.BUSY_STARTED));\r\n\t\tthis.stopped=false;\r\n\t\tmap.getDisplay().asyncExec(this);\r\n\t}", "public void run() {\n\t\tinitialise();\n\t\tlong beforeTime, afterTime, deltaTime = 0;\n\t\tlong counter = System.nanoTime() + 1000000000;\n\t\tint maxFPS = GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice().getDisplayModes()[0]\n\t\t\t\t.getRefreshRate();\n\t\tif (maxFPS == 0) {\n\t\t\tmaxFPS = 60;\n\t\t}\n\t\tint fps = 0;\n\t\tlong minFrameTime = 1000000000l / maxFPS;\n\t\tdeltaTime = 1;\n\t\tupdate(0);\n\t\twhile (running) {\n\t\t\tbeforeTime = System.nanoTime();\n\t\t\tdraw();\n\t\t\tupdate(deltaTime / 1000000000f);\n\t\t\tafterTime = System.nanoTime();\n\t\t\tdeltaTime = afterTime - beforeTime;\n\t\t\tfps++;\n\t\t\tif (deltaTime < minFrameTime) {\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep((minFrameTime - deltaTime) / 1000000l);\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (System.nanoTime() > counter) {\n\t\t\t\tcounter += 1000000000;\n\t\t\t\tSystem.out.println(fps);\n\t\t\t\tfps = 0;\n\t\t\t}\n\t\t}\n\t\tclose();\n\t}", "@Override\r\n\tpublic Void call(){\r\n\t\tupdateProgress(0, 1);\r\n\t\trendering = true;\r\n\t\t\r\n\t\tlong startTime = System.currentTimeMillis();\r\n\t\t\r\n\t\tfor(int i = 0; i < numberOfThreads; i++){\r\n\t\t\tthreads[i] = new RenderThread(i * (WIDTH / numberOfThreads), (i + 1) * (WIDTH / numberOfThreads), this);\r\n\t\t}\r\n\t\t\r\n\t\twhile(rendering){\r\n\t\t\tint threadsRunning = numberOfThreads;\r\n\t\t\tfloat percentComplete = 0f;\r\n\r\n\t\t\tfor(RenderThread t : threads){\r\n\t\t\t\tif(!t.isRendering()){\r\n\t\t\t\t\tthreadsRunning -= 1;\r\n\t\t\t\t\tpercentComplete += 1f / numberOfThreads;\r\n\t\t\t\t}else{\r\n\t\t\t\t\tfloat percent = t.getPercentComplete();\r\n\t\t\t\t\tpercentComplete += (percent / numberOfThreads);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tupdateProgress((double) (percentComplete), 1);\r\n\t\t\t\r\n\t\t\tif(threadsRunning == 0){\r\n\t\t\t\trendering = false;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tlong renderTime = System.currentTimeMillis() - startTime;\r\n\t\t\r\n\t\trendering = false;\r\n\t\t\r\n\t\tlong hours = TimeUnit.MILLISECONDS.toHours(renderTime);\r\n\t\trenderTime -= TimeUnit.HOURS.toMillis(hours);\r\n\t\tlong minutes = TimeUnit.MILLISECONDS.toMinutes(renderTime);\r\n\t\trenderTime -= TimeUnit.MINUTES.toMillis(minutes);\r\n\t\tlong seconds = TimeUnit.MILLISECONDS.toSeconds(renderTime);\r\n\t\t\r\n\t\tString time = String.format(\"Render Time: %d hours, %d minutes, %d seconds\", hours, minutes, seconds);\r\n\t\tToolkit.getDefaultToolkit().beep();\r\n\t\t\r\n\t\tSystem.out.println(time);\r\n\t\t\r\n\t\tdrawSet();\r\n\t\t\r\n\t\tif(autoSave){\r\n\t\t\tautoSave();\r\n\t\t}\r\n\t\t\r\n\t\tif(iterationChange){\r\n\t\t\tITERATIONS = changedIterations;\r\n\t\t\titerationChange = false;\r\n\t\t}\r\n\t\t\r\n\t\tif(zoomChange){\r\n\t\t\tZOOM = changedZoom;\r\n\t\t\tzoomChange = false;\r\n\t\t\tchangedZoom = null;\r\n\t\t}\r\n\t\t\r\n\t\tif(numberOfThreadsChanged){\r\n\t\t\tnumberOfThreads = changedNumberOfThreads;\r\n\t\t\tnumberOfThreadsChanged = false;\r\n\t\t\tchangedNumberOfThreads = 0;\r\n\t\t}\r\n\t\t\r\n\t\tif(xyChange){\r\n\t\t\txOffset = changedXOffset;\r\n\t\t\tyOffset = changedYOffset;\r\n\t\t\txyChange = false;\r\n\t\t\tchangedXOffset = null;\r\n\t\t\tchangedYOffset = null;\r\n\t\t}\r\n\t\t\r\n\t\tif(imageAspectChanged){\r\n\t\t\tWIDTH = newWIDTH;\r\n\t\t\tHEIGHT = newHEIGHT;\r\n\t\t\timageAspectChanged = false;\r\n\t\t\tnewWIDTH = 0;\r\n\t\t\tnewHEIGHT = 0;\r\n\t\t\timg = new WritableImage(WIDTH, HEIGHT);\r\n\t\t\trgbArray = new int[WIDTH * HEIGHT];\r\n\t\t\tsetMaxAndMins();\r\n\t\t}\r\n\t\t\r\n\t\treturn null;\r\n\t}", "public void startTracking()\n {\n if(!pixyThread.isAlive())\n {\n pixyThread = new Thread(this);\n pixyThread.start();\n leds.setMode(LEDController.Mode.ON);\n }\n }", "@SuppressWarnings(\"static-access\")\n\t@Override\n\tpublic void run() \n\t{\n\t\tint currentdx = 0;\n\t\tint currentdy = 0;\n\t\twhile(currentdy < Math.abs(dy) || currentdx < Math.abs(dx))\n\t\t{\n\t\t\tif(time == 0)\n\t\t\t{\n\t\t\t\tif(dx < 0 || dy < 0){\n\t\t\t\tdy = -dy;\n\t\t\t\tdx = -dx;\n\t\t\t\tcurrentdy = dy;\n\t\t\t\tcurrentdx = dx;\n\t\t\t\tMainController.getInstance().moveImage(name, -dx, -dy);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tcurrentdy = dy;\n\t\t\t\t\tcurrentdx = dx;\n\t\t\t\t\tMainController.getInstance().moveImage(name, dx, dy);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(currentdy < Math.abs(dy) && currentdx < Math.abs(dx)){\n\t\t\t\tcurrentdy++;\n\t\t\t\tcurrentdx++;\t\t\t\t\n\t\t\t\tMainController.getInstance().moveImage(name, dx/Math.abs(dx), dy/Math.abs(dy));\n\t\t\t}\n\t\t\telse{\n\t\t\t\tif(currentdy < Math.abs(dy)){\n\t\t\t\t\tcurrentdy++;\t\n\t\t\t\t\tMainController.getInstance().moveImage(name, 0, dy/Math.abs(dy));\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tif(currentdx < Math.abs(dx)){\n\t\t\t\t\tcurrentdx++;\t\t\t\t\n\t\t\t\t\tMainController.getInstance().moveImage(name, dx/Math.abs(dx), 0);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tthis.sleep(time * 1000 / (( Math.max(Math.abs(dx), Math.abs(dy) ))+1));\n\t\t\t\tMainController.getInstance().repaint();\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\t\n\t\t\tif((currentdx % 100 == 0 && currentdx != dx )|| (currentdy % 100 == 0&& currentdy!=dy))\n\t\t\t\tSystem.out.println(currentdx + \" \" + currentdy);\n\t\t}\n\t}", "@Override\r\n\tpublic void run() {\n\t\ttry {\r\n\t\t\tfor(int i=1;;i++) {\r\n\t\t\t\tball.move(component.getBounds());\r\n\t\t\t\tcomponent.repaint();\r\n\t\t\t\tThread.sleep(DELAY);\r\n\t\t\t}\r\n\t\t}catch(InterruptedException e) {\r\n\t\t\t\r\n\t\t}\r\n\t}", "@Override\n public void run() {\n long startTime = System.currentTimeMillis();\n\n //Animation loop.\n while (Thread.currentThread() == animatorThread) {\n //Advance the animation frame.\n frameNumber++;\n repaint();\n //Delay depending on how far we are behind.\n try {\n startTime += delay;\n Thread.sleep(Math.max(0,\n startTime - System.currentTimeMillis()));\n } catch (InterruptedException e) {\n break;\n }\n }\n }", "public void run() {\n long lasTime = System.nanoTime();//pega o tempo atual do nosso computador em nano segundos, isso da mais precisão nos fps de maneira profissional\n double amountOfTicks = 60.0;//local onde seta o FPS.\n double ns = 1000000000 / amountOfTicks;//calculo para saber o momento certo de atualizar a tela do jogo\n double delta = 0;\n int frames = 0;\n double timer = System.currentTimeMillis();//retorna o tempo do computador, usamos isso para contagem do fps, mas é opcional.\n requestFocus();//Método que foca a tela automaticamente\n while(isRunning){\n long now = System.nanoTime();\n delta+= (now - lasTime) / ns;\n lasTime = now;\n if(delta >= 1) {\n tick();//atualização da tela.\n render();//renderização da tela.\n frames++;\n delta--;\n }\n\n if(System.currentTimeMillis() - timer >= 1000){\n System.out.println(\"FPS: \" + frames);\n frames = 0;\n timer+= 1000;\n }\n\n }\n\n stop();\n }", "public void run() {\n\t\t\t\t\t\t\t\t heavyResize();\n\t\t\t\t\t\t\t\t invokeRedraw();\n\t\t\t\t\t\t\t\t }", "private void jMenuItem9ActionPerformed(ActionEvent evt) {\n\t\tfastInpaint = true;\n\t\tInpainter.halt = false;\n\t\tInpainter.completed = false;\n\t\tif (inpaintThread == null) {\n\t\t\tentry.setDisabled();\n\t\t\tinpaintThread = new Thread(this);\n\t\t\tinpaintThread.start();\n\t\t}\n\t}", "@Override\n public void run() {\n while (true) {\n long currentTime = System.nanoTime();\n\n draw();\n check(currentTime);\n }\n }", "public void teleopPeriodic() \n {\n // NIVision.Rect rect = new NIVision.Rect(10, 10, 100, 100);\n /*\n NIVision.IMAQdxGrab(session, frame, 1);\n //NIVision.imaqDrawShapeOnImage(frame, frame, rect,\n // DrawMode.DRAW_VALUE, ShapeMode.SHAPE_OVAL, 0.0f);\n */\n \n //cam.getImage(frame);\n //camServer.setImage(frame);\n \n //CameraServer.getInstance().setImage(frame);\n \n if(verticalLift.limitSwitchHit())\n verticalLift.resetEnc();\n \n Scheduler.getInstance().run();\n }", "public GameLoop()\n\t{\n\t\t/*\n\t\t * System.out.println(\"created game loop\");\n\t\t \n\t\t\n\t\tthis.setBackground(backGroundColor);\n\t\tthis.setVisible(true);\n\t\tthis.setOpaque(true);\n\t\tthis.setSize(new Dimension(1283,1038));\n\t}\n\t\n\tpublic void paintComponent(Graphics g)\n\t{\n\t\tSystem.out.println(\"drawing game area\");\n\t\t\n\t\tg.setColor(backGroundColor);\n\t\tg.fillRect(0, 0, this.getWidth(), this.getHeight());\n\t\t\n\t\tg.setColor(textColor);\n\t\t\n\t\tg.drawLine(25, 50, 25, 550);\n\t\tg.drawLine(400, 50, 400, 550);\n\t\tg.drawLine(775, 50, 775, 550);\n\t\t\n\t\tg.drawLine(25, 50, 775, 50);\n\t\tg.drawLine(25, 550, 775, 550);\n\t\t\n\t\t//g.drawLine(0, 0, 800, 600);\n\t\t\n\t\t\n\t\t\n\t}\n\n\t@Override\n\tpublic void run() \n\t{\n\t\tThread.currentThread().setPriority(Thread.MIN_PRIORITY);\n\t\t\n\t\twhile(true)\n\t\t{\n\t\t\n\t\t\ttry\n\t\t {\n\t\t Thread.sleep (sleepTime);\n\t\t }\n\t\t catch (InterruptedException ex){}\n\t\t\t\n\t\t\tThread.currentThread().setPriority(Thread.MAX_PRIORITY);\n\t\t}\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}\n\t*/\n\t\t\n\t\t\n\t\t//This Code is currently not in use!!!\n}", "public void run() {\n android.os.Process.setThreadPriority(android.os.Process.THREAD_PRIORITY_BACKGROUND);\n\n while (ok) {\n //perform canvas drawing\n if (!holder.getSurface().isValid()) {//if surface is not valid\n continue;//skip anything below it\n }\n\n Canvas c = holder.lockCanvas(); //Lock canvas, paint canvas, unlock canvas\n synchronized (holder) {\n long beginTime = System.currentTimeMillis();\n int framesSkipped = 0;\n // update game state\n this.updateCanvas();\n // render state to the screen\n // draws the canvas on the panel\n this.drawCanvas(c);\n // calculate how long did the cycle take\n long timeDiff = System.currentTimeMillis() - beginTime;\n // calculate sleep time\n int sleepTime = (int) (FRAME_PERIOD - timeDiff);\n if (sleepTime > 0) {\n // if sleepTime > 0 put to sleep for short period of time\n try {\n // send the thread to sleep for a short period\n // very useful for battery saving\n Thread.sleep(sleepTime);\n } catch (InterruptedException e) {\n }\n }\n\n //ADD THIS IF WE ARE DOING LOTS OF WORK\n //If sleeptime is greater than a frame length, skip a number of frames\n while (sleepTime < 0 && framesSkipped < MAX_FRAME_SKIPS) {\n // we need to catch up\n // update without rendering\n this.updateCanvas();\n // add frame period to check if in next frame\n sleepTime += FRAME_PERIOD;\n framesSkipped++;\n }\n\n holder.unlockCanvasAndPost(c);\n }\n }\n }", "public static void run()\r\n\t{\r\n\t\tlong lastTime = System.nanoTime();\r\n\t\tdouble nsPerTick = 1000000000D / 30D;\r\n\t\t\r\n\t\tlong lastTimer = System.currentTimeMillis();\r\n\t\tdouble delta = 0; \r\n\r\n\t\twhile(isRunning)\r\n\t\t{\r\n\t\t\tlong now = System.nanoTime();\r\n\t\t\tdelta += (now - lastTime) / nsPerTick;\r\n\t\t\tlastTime = now;\r\n\t\t\t\r\n\t\t\twhile(delta >= 1)\r\n\t\t\t{\r\n\t\t\t\tdisplay.update();\r\n\t\t\t\tdisplay.render();\r\n\t\t\t\tdelta -= 1;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif(System.currentTimeMillis() - lastTimer > 1000)\r\n\t\t\t{\r\n\t\t\t\tlastTimer += 1000;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\n public void run() {\n try {\n\n while (true) {\n moveBlockDown();\n repaint();\n Thread.sleep(1000);\n }\n } catch (InterruptedException e) {\n\n }\n\n }", "void go() {\n while (!gameOver) {\n try {\n Thread.sleep(showDelay);\n } catch (Exception e) {\n e.printStackTrace();\n }\n canvas.repaint();\n checkFilling();\n if (figure.isTouchGround()) {\n figure.leaveOnTheGround();\n figure = new Shapes(this);\n gameOver = figure.isCrossGround(); // Is there space for a new figure?\n } else\n figure.stepDown();\n }\n }", "public void run() {\r\n \t g2d = getGraphics();\r\n while(true) {\r\n try { \r\n // Call the process method (computes keys)\r\n process();\r\n \r\n // Draw everything\r\n draw(g2d);\r\n \r\n \r\n // Sleep to prevent starvation\r\n try{ Thread.sleep(30); } catch(Exception e) {}\r\n }\r\n catch(Exception e) {\r\n\r\n e.printStackTrace();\r\n }\r\n }\r\n\r\n }", "public void renderImage() {\r\n\r\n\t\tfinal int nX = _imageWriter.getNx();\r\n\t\tfinal int nY = _imageWriter.getNy();\r\n\t\tfinal double dist = _scene.get_screenDistance();\r\n\t\tfinal double width = _imageWriter.getWidth();\r\n\t\tfinal double height = _imageWriter.getHeight();\r\n\t\tfinal Camera camera = _scene.get_camera();\r\n\r\n\t\tfinal Pixel thePixel = new Pixel(nY, nX);\r\n\r\n// Generate threads\r\n\t\tThread[] threads = new Thread[_threads];\r\n\t\tfor (int i = _threads - 1; i >= 0; --i) {\r\n\t\t\tthreads[i] = new Thread(() -> {\r\n\t\t\t\tPixel pixel = new Pixel();\r\n\r\n\t\t\t\twhile (thePixel.nextPixel(pixel)) {\r\n\t\t\t\t\tif (_imageWriter.getAcceleration()) {\r\n\r\n\t\t\t\t\t\tColor generalColor = renderMini2(pixel.col, pixel.row);\r\n\t\t\t\t\t\t_imageWriter.writePixel(pixel.row, pixel.col, generalColor.getColor());\r\n\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tColor avgColor = renderHelp(pixel.col, pixel.row);\r\n\t\t\t\t\t\t_imageWriter.writePixel(pixel.row, pixel.col, avgColor.getColor());\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n// Start threads\r\n\t\tfor (Thread thread : threads)\r\n\t\t\tthread.start();\r\n\r\n// Wait for all threads to finish\r\n\t\tfor (Thread thread : threads)\r\n\t\t\ttry {\r\n\t\t\t\tthread.join();\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t}\r\n\t\tif (_print)\r\n\t\t\tSystem.out.printf(\"\\r100%%\\n\");\r\n\t}", "public void run() {\n\t\twhile (true) {\n\t\t\tmoveBird();\n\t\t\tcheckHits();\n\t\t\trepaint();\n\t\t\t\n\t\t\ttry {Thread.sleep(20);} \n\t\t\tcatch (InterruptedException e) {}\n\t\t}\n\t}", "private void loopButton(ActionEvent e) {\n if (loop) {\n if (drawPanel.animationDone()) {\n this.tick = 0;\n atTick(this.tick);\n timer.restart();\n }\n }\n }", "@Override\n public void run() {\n long previousTime = System.currentTimeMillis();\n long timeSinceLastTick = 0L;\n long timeSinceLastDisplayFrame = 0L;\n\n final double millisecondsPerDisplayFrame = 1000.0 / DISPLAY_FPS;\n\n while (this.game.isRunning() && !this.game.isGameOver()) {\n long currentTime = System.currentTimeMillis();\n long elapsedTime = currentTime - previousTime;\n timeSinceLastTick += elapsedTime;\n timeSinceLastDisplayFrame += elapsedTime;\n\n if (timeSinceLastTick >= MILLISECONDS_PER_TICK) { // Check if enough time has passed to update the physics.\n this.updatePhysics(); // Perform one 'step' in the game.\n timeSinceLastTick = 0L;\n }\n if (timeSinceLastDisplayFrame >= millisecondsPerDisplayFrame) { // Check if enough time has passed to refresh the display.\n this.game.notifyListeners(timeSinceLastTick); // Tell the asteroids panel that it should refresh.\n timeSinceLastDisplayFrame = 0L;\n }\n\n previousTime = currentTime;\n }\n }", "public void run() {\n\n while (true) {\n System.out.println(this);\n // updateGraph takes in seconds and this.TIMEBETWEENFRAMES is given in milliseconds.\n this.updateBoard(this.TIMEBETWEENFRAMES / 1000);\n try {\n Thread.sleep((long) (this.TIMEBETWEENFRAMES));\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n checkRep();\n }\n }", "public void actionPerformed(ActionEvent e)\n/* */ {\n/* */ \n/* */ \n/* 60 */ new Thread()\n/* */ {\n/* */ public void run()\n/* */ {\n/* 55 */ P2PAnalysisFrame.this.start.setEnabled(false);\n/* 56 */ P2PAnalysisFrame.this.init();\n/* 57 */ P2PAnalysisFrame.this.analysis();\n/* 58 */ P2PAnalysisFrame.this.start.setEnabled(true);\n/* */ }\n/* */ }.start();\n/* */ }", "private void doGameCycle() {\n update();\n repaint();\n }", "public MazeSolverDrawing() throws InterruptedException {\n initComponents();\n mz = new Maze();\n solver = new MazeSolver(mz);\n new Thread(solver).start();\n timer = new Timer(5, this); \n timer.start();\n timer.addActionListener(this);\n\n }", "@Override\n\tpublic void run() {\n\t\twhile(true) \n\t\t{\n\t\t\tinfomation.revalidate();\n\t\t\tfrmIpfs.repaint();\n\t\t\ttry {\n\t\t\t\tThread.sleep(100);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public void sleep()\r\n\t{\r\n\t\tif (regulate)\r\n\t\t{\r\n\t\t\tDisplay.sync(fps);\r\n\t\t}\r\n\t}", "@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\tsuper.run();\n\t\t\t\t\twhile (isonshow) {\n\t\t\t\t\t\tfor (int i = 0; i<(0.0416*scrrenHeight); i++) {\n\t\t\t\t\t\t\t//Log.i(\"thread\", i+\"\");\n\t\t\t\t\t\t\tsc.scrollTo(0, i);\n\t\t\t\t\t\t\t//handler11.sendEmptyMessage(i);\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tsleep(20);\n\n\t\t\t\t\t\t\t\tif(!isonshow){\n\t\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t\t}else{}\n\t\t\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t}\n\n\n\t\t\t\t\t\ttry {\n\n\t\t\t\t\t\t\tfor (int i = 0; i < 20; i++) {\n\n\t\t\t\t\t\t\t\tsleep(40);\n\t\t\t\t\t\t\t\tif(!isonshow){\n\t\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t\t}else{}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t} catch (InterruptedException e1) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tsc.scrollTo(0, 0);\n\n\t\t\t\t\t\thandler11.sendEmptyMessage(0);\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tsleep(80);\n\t\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\n\t\t\t\t}", "public Frame1() {\n initComponents();\n setBounds(300,250,450,350);\n p1.setBackground(new Color(100,100,240));\n setResizable(false);\n Thread t=new Thread(this);\nt.start();\n }", "public void start() {\n initGUI();\n initDemo();\n\n float target = 1000 / 60.0f;\n float frameAverage = target;\n long lastFrame = System.currentTimeMillis();\n float yield = 10000f;\n float damping = 0.1f;\n\n while (running) {\n // adaptive timing loop from Master Onyx\n long timeNow = System.currentTimeMillis();\n frameAverage = (frameAverage * 10 + (timeNow - lastFrame)) / 11;\n lastFrame = timeNow;\n\n yield += yield * ((target / frameAverage) - 1) * damping + 0.05f;\n\n for (int i = 0; i < yield; i++) {\n Thread.yield();\n }\n\n update();\n\n // render\n Graphics2D g = (Graphics2D) strategy.getDrawGraphics();\n g.setColor(background);\n g.fillRect(0, 0, 500, 500);\n\n draw(g);\n renderGUI(g);\n g.dispose();\n strategy.show();\n }\n }", "public void start(){\n\t\tthis.lastUpdate = System.currentTimeMillis();\n\t\tthis.millisIntoFrame=0;\n\t\tthis.currentFrame=0;\n\t}", "public void setRepaintThread(RepaintThread repaintThread) {\n this.repaintThread = repaintThread;\n }", "public void run()\r\n\t{\r\n\t\ttry {\r\n\t\t\twhile(true) {\r\n\t\t\t\tgl.use();\r\n\t\t\t\tspinDisplay();\r\n\t\t\t\tThread.sleep(10);\r\n\t\t\t}\r\n\t\t}\r\n catch (InterruptedException e){\r\n // the user sent an interupt,\r\n // So lets exit...\r\n\t\t}\r\n\t}", "public void paint()\n {\n try { Thread.sleep(SPEED); } \n catch (Exception e) { }\n \n this.printMap();\n }", "private static void start()\r\n\t{\r\n\t\tif(isRunning)\r\n\t\t\treturn;\r\n\t\t\r\n\t\tisRunning = true;\r\n\t\t\r\n\t\tdisplay = new Display();\r\n\t\trun();\r\n\t}", "public void run() {\r\n\t\t\tfor (int k = 0; k < 5; k++) {\r\n\t\t\t\t// System.out.println(\"\"+k);\r\n\t\t\t\ttry {\r\n\t\t\t\t\tThread.sleep(1000);\r\n\t\t\t\t} catch (InterruptedException ie) {\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tfor (int i = 0; i <= 4; i++) {\r\n\t\t\t\tfor (int j = 0; j < 1000000; j++) {\r\n\t\t\t\t}\r\n\t\t\t\tsetStep((int) Math.pow(2, i) - 1);\r\n\t\t\t\t// enabled = i;\r\n\t\t\t\trepaint();\r\n\t\t\t\ttry {\r\n\t\t\t\t\tThread.sleep(1000);\r\n\t\t\t\t} catch (InterruptedException ie) {\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t// System.out.println(\"ENDE\");\r\n\t\t}", "@Override\n\n\tpublic void run() {\n\n\t\ttheBoard.repaint();\n\n\t}", "public void run() {\n\t\t\t\t\t\tint x=665;\n\t\t\t\t\t\tint y=36;\n\t\t\t\t\t\twhile(x!=905){\n\t\t\t\t\t\t\tif((905-x)>10){\n\t\t\t\t\t\t\t\tx+=10;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\tx=905;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tThread.sleep(50);\n\t\t\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tJPanelEdit.this.setLocation(x, y);\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "public void run(){\n\t\twhile(game_running){\n\t\t\tif(singleplayer){\n\t\t\t\tcomputeDelta(); //Zeit für vorausgehenden Schleifendurchlauf wird errechnet\n\t\t\t\t//Erst Methoden abarbeiten, wenn Spiel gestartet ist\n\t\t\t\tif(isStarted()){\n\t\t\t\t\t\n\t\t\t\t\tcheckKeys(); //Tastaturabfrage\n\t\t\t\t\tdoLogic(); //Ausführung der Logik\n\t\t\t\t\tmoveObjects(); //Bewegen von Objekten\n\t\t\t\t\t\n\t\t\t\t}\n\n\t\t\t\trepaint();\n\t\t\t\t\n\t\t\t\ttry{\n\t\t\t\t\tif(System.nanoTime()-last < 16666666){\n\t\t\t\t\t\tThread.sleep((16666666 - (System.nanoTime() - last))/1000000); //Zum flüssigen Spiellauf und stabiler FPS-Rate\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t}catch (InterruptedException e){}\n\t\t\t} else{\n\t\t\t\tif(serverMode){\n\t\t\t\t\t //Zeit für vorausgehenden Schleifendurchlauf wird errechnet\n\t\t\t\t\t//Erst Methoden abarbeiten, wenn Spiel gestartet ist\n\t\t\t\t\tcomputeDelta();\n\t\t\t\t\tif(isStarted()){\n\t\t\t\t\t\t\n\t\t\t\t\t\tcheckKeys(); //Tastaturabfrage\n\t\t\t\t\t\tdoLogic(); //Ausführung der Logik\n\t\t\t\t\t\tmoveObjects(); //Bewegen von Objekten\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\n\t\t\t\t\trepaint();\n\t\t\t\t\t\n\t\t\t\t\t//System.out.println(System.nanoTime() - last);\n\t\t\t\t\ttry{\n\t\t\t\t\t\tif(!isStarted()){\n\t\t\t\t\t\t\tThread.sleep(20);\n\t\t\t\t\t\t}else if(System.nanoTime()-last < 16666666){\n\t\t\t\t\t\t\tThread.sleep((16666666 - (System.nanoTime() - last))/1000000);\n\t\t\t\t\t\t}\n//\t\t\t\t\t\tif(System.nanoTime()-last < 16666666){\n//\t\t\t\t\t\t\tThread.sleep((16666666 - (System.nanoTime() - last))/1000000); //Zum flüssigen Spiellauf und stabiler FPS-Rate\n//\t\t\t\t\t\t}\n\t\t\t\t\t}catch (InterruptedException e){}\n\t\t\t\t}else if(clientMode){\n\t\t\t\t\tcomputeDelta();\n\t\t\t\t\tif(isStarted()){\n\t\t\t\t\t\tcheckKeys();\n\t\t\t\t\t\tdoLogic();\n\t\t\t\t\t\tmoveObjects();\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\trepaint();\n\t\t\t\t\t\n\t\t\t\t\t//System.out.println(System.nanoTime() - last);\n\t\t\t\t\ttry{\n\t\t\t\t\t\t//Thread.sleep(20);\n\t\t\t\t\t\tif(!isStarted()){\n\t\t\t\t\t\t\tThread.sleep(20);\n\t\t\t\t\t\t}else if(System.nanoTime()-last < 16666666){\n\t\t\t\t\t\t\tThread.sleep((16666666 - (System.nanoTime() - last))/1000000);\n\t\t\t\t\t\t}\n//\t\t\t\t\t\tif(System.nanoTime()-last < 16666666){\n//\t\t\t\t\t\t\tThread.sleep((16666666 - (System.nanoTime() - last))/1000000); //Zum flüssigen Spiellauf und stabiler FPS-Rate\n//\t\t\t\t\t\t}\n\t\t\t\t\t}catch (InterruptedException e){}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}\t\n\t}", "public void run() {\r\n System.out.println(\"Start sim\");\r\n for (; isRunning;) {\r\n //int horLaneNum = optView.getUserHorNum();\r\n //if (horLaneNum == 1) {\r\n horX++;\r\n horSTX = horSTX;\r\n horSTY = horSTY;\r\n verY++;\r\n view.repaint();\r\n try {\r\n Thread.sleep(10);\r\n }\r\n catch (InterruptedException e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n }", "public void repaint() {}", "@Override\n public void run() {\n threadRunning = true;\n //Color clr = new Color();\n\n while (threadRunning){\n\n colorRGBSensor.fetchSample(sample, 0);\n color.setR(sample[0]*1024);\n color.setG(sample[1]*1024);\n color.setB(sample[2]*1024);\n\n synchronized (this){\n setColor(color);\n }\n\n try {\n Thread.sleep(Constants.LIGHT_SENSOR_UPDATE_TIME);\n } catch (Exception e) {\n }\n }\n }", "public void run() {\n\t\t\t\t\t\tint x=905;\n\t\t\t\t\t\tint y=36;\n\t\t\t\t\t\twhile(x!=665){\n\t\t\t\t\t\t\tif((x-665)>10){\n\t\t\t\t\t\t\t\tx-=10;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\tx=665;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tThread.sleep(50);\n\t\t\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tJPanelEdit.this.setLocation(x, y);\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "public void run() {\n\t// Remember the starting time\n\tlong tm = System.currentTimeMillis();\n\twhile (Thread.currentThread() == animator) {\n\t // Display the next frame of animation.\n\t repaint();\n\n\t // Delay depending on how far we are behind.\n\t try {\n\t\ttm += delay;\n\t\tThread.sleep(Math.max(0, tm - System.currentTimeMillis()));\n\t } catch (InterruptedException e) {\n\t\tbreak;\n\t }\n\n\t // Advance the frame\n\t frame++;\n\t}\n }", "@Override\n\tpublic void run() {\n\t\twhile (true) {\n\n\t\t\ttry {\n\n\t\t\t\tThread.sleep(50);\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tswitch (direct) {\n\n\t\t\tcase 0:// 子弹向上\n\t\t\t\ty -= speed;\n\t\t\t\tbreak;\n\t\t\tcase 1:// 子弹向右\n\t\t\t\tx += speed;\n\t\t\t\tbreak;\n\t\t\tcase 2:// 子弹向下\n\t\t\t\ty += speed;\n\t\t\t\tbreak;\n\t\t\tcase 3:// 子弹向左\n\t\t\t\tx -= speed;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t// 输出子弹坐标\n\t\t\tSystem.out.println(\"shot: x=\" + x + \" y=\" + y);\n\n\t\t\t// 子弹线程死亡\n\t\t\t// 判断子弹是否碰到边缘\n\t\t\tif (x < 0 || x > 400 || y < 0 || y > 300) {\n\t\t\t\tthis.isLive = false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "public void start() {\n\t\tcanvas.createBufferStrategy(2);\n\t\tbuffer = canvas.getBufferStrategy();\n\t\tthread = new Thread(this);\n\t\tthread.start();\n\t}", "@Override\n public void run()\n {\n while(bomb[0][0].getyAxis()<1000)\n {\n for(int i=0; i<bomb.length; i++)\n {\n for(int j=0; j<bomb[i].length; j++)\n {\n bomb[i][j].setyAxis(bomb[i][j].getyAxis()+10);\n }\n }\n try \n {\n Thread.sleep(1000);\n } \n catch (InterruptedException ex) \n {\n ex.printStackTrace();\n }\n fl.repaint();\n }\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\twhile (true) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(300);\n\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\tseatTableSpace.repaint();\n\t\t\t\t\tfor (int i = 0; i < count; i++)\n\t\t\t\t\t\tb[i].setLocation(arrX[i], arrY[i]);\n\t\t\t\t}\n\t\t\t}", "public void tick() {\n long elapsed = (System.nanoTime()-startTime)/1000000;\n\n if(elapsed>delay) {\n currentFrame++;\n startTime = System.nanoTime();\n }\n if(currentFrame == images.length){\n currentFrame = 0;\n }\n }" ]
[ "0.71829504", "0.71690226", "0.70372635", "0.7027626", "0.69161177", "0.6902876", "0.68790334", "0.68375874", "0.68269634", "0.6732516", "0.66934043", "0.6677797", "0.665396", "0.6647206", "0.66453826", "0.6635531", "0.6631468", "0.6624201", "0.6602261", "0.6599609", "0.6545167", "0.65375876", "0.65225583", "0.64828014", "0.6474386", "0.64146984", "0.64043015", "0.64024204", "0.6387957", "0.6374733", "0.63637364", "0.6335672", "0.6323028", "0.63094693", "0.63034487", "0.6295202", "0.6277635", "0.6273895", "0.62308", "0.6229931", "0.62099624", "0.6208103", "0.6179785", "0.6177445", "0.6170619", "0.6160578", "0.61465913", "0.6138228", "0.61360925", "0.6127853", "0.6123477", "0.61196995", "0.6112373", "0.6100787", "0.60984343", "0.60838705", "0.60751504", "0.60723245", "0.6068638", "0.6049714", "0.6045796", "0.6038441", "0.60188174", "0.6018226", "0.60126424", "0.6012123", "0.60120475", "0.59835166", "0.59751385", "0.59717005", "0.59684104", "0.5966641", "0.5961708", "0.59575707", "0.595517", "0.5939451", "0.5935723", "0.5933106", "0.5922915", "0.59040266", "0.5899036", "0.5890119", "0.5878353", "0.5877173", "0.58735436", "0.58699894", "0.58662176", "0.5853906", "0.58483875", "0.5843523", "0.58422", "0.58307093", "0.58295876", "0.58032155", "0.5800441", "0.57948637", "0.57878006", "0.5784806", "0.57847375", "0.5783968" ]
0.7334526
0
/ initialize screen panel based on rows, columns, text font and font size, background and text color
public void set_screen(int new_rows, int new_cols, Font new_font, Color new_background_color, Color new_text_color){ stop_scn_updates(); scn_rows = new_rows; scn_cols = new_cols; scn_font = new_font; scn_background_color = new_background_color; scn_text_color = new_text_color; scn_font_size = scn_font.getSize(); scn_image = new BufferedImage(100,100,BufferedImage.TYPE_INT_ARGB); scn_grid = scn_image.createGraphics(); calc_screen_size(); scn_panel = new JScrollPane(this); start_scn_updates(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void init() {\n this.screen = new Rectangle(PADDING, PADDING, Game.TOTAL_COLUMNS * CELL_SIZE, Game.TOTAL_ROWS * CELL_SIZE);\n\n // display the background\n this.screen.setColor(Color.LIGHT_GRAY);//board edge color\n this.screen.fill();\n\n }", "private void initializePanels() {\n queueInfoPanel.setBackground(new Color(236, 125, 51));\n queueButtonsPanel.setBackground(new Color(93, 118, 161));\n createLabelForPanel(queueInfoPanel);\n createButtonsForPanel(queueButtonsPanel);\n }", "private void initPanels() {\r\n\t\r\n\tpanel = new JPanel();\r\n\tpanel.setBounds(0, 0, ScreenSize.WIDTH + 25, ScreenSize.HEIGHT + 50);\r\n\tpanel.setLayout(new BorderLayout());\r\n\tpanel.addComponentListener(this);\r\n\r\n\tbord = new BordPanel();\r\n\tbord.setBounds(0 ,0 ,ScreenSize.WIDTH, ScreenSize.HEIGHT);\r\n\tbord.setOpaque(true);\r\n\r\n\tlabel = new JLabel();\r\n\tlabel.setText(\"Text\");\r\n\r\n\tpanel.add(label, BorderLayout.SOUTH);\r\n\tpanel.add(bord, BorderLayout.CENTER);\r\n\t\r\n\tframe.add(panel);\r\n }", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.getContentPane().setBackground(Color.BLACK);\n\t\tframe.getContentPane().setLayout(null);\n\t\tframe.setExtendedState(JFrame.MAXIMIZED_BOTH);\n\t\t\n\t\tJLabel lblDesignCopyrights = new JLabel(\"design copyrights \\u00A9 chinmaya\");\n\t\tlblDesignCopyrights.setFont(new Font(\"Times New Roman\", Font.PLAIN, 14));\n\t\tlblDesignCopyrights.setForeground(new Color(255, 255, 224));\n\t\tlblDesignCopyrights.setBounds(1711, 1018, 183, 23);\n\t\tframe.getContentPane().add(lblDesignCopyrights);\n\t\t\n\t\tJPanel background = new JPanel();\n\t\tbackground.setLayout(null);\n\t\tbackground.setBackground(Color.DARK_GRAY);\n\t\tbackground.setBounds(14, 200, 1880, 809);\n\t\tframe.getContentPane().add(background);\n\t\t\n\t\t\n\t\tJLabel lblTypesOfMachine = new JLabel(\"MACHINE NAME\");\n\t\tlblTypesOfMachine.setHorizontalAlignment(SwingConstants.LEFT);\n\t\tlblTypesOfMachine.setVerticalAlignment(SwingConstants.TOP);\n\t\tlblTypesOfMachine.setForeground(Color.WHITE);\n\t\tlblTypesOfMachine.setFont(new Font(\"Times New Roman\", Font.PLAIN, 19));\n\t\tlblTypesOfMachine.setBounds(69, 378, 178, 30);\n\t\tbackground.add(lblTypesOfMachine);\n\t\t\n\t\t\n\t\tJLabel lblAppointment = new JLabel(\"LIST TO DO\");\n\t\tlblAppointment.setForeground(Color.WHITE);\n\t\tlblAppointment.setFont(new Font(\"Times New Roman\", Font.PLAIN, 30));\n\t\tlblAppointment.setBounds(69, 117, 319, 48);\n\t\tbackground.add(lblAppointment);\n\t\t\n\t\tJLabel lblQuantity = new JLabel(\"QUANTITY\");\n\t\tlblQuantity.setHorizontalAlignment(SwingConstants.LEFT);\n\t\tlblQuantity.setVerticalAlignment(SwingConstants.TOP);\n\t\tlblQuantity.setForeground(Color.WHITE);\n\t\tlblQuantity.setFont(new Font(\"Times New Roman\", Font.PLAIN, 19));\n\t\tlblQuantity.setBounds(69, 428, 178, 30);\n\t\tbackground.add(lblQuantity);\n\t\t\n\t\tPanel panel = new Panel();\n\t\tpanel.setLayout(null);\n\t\tpanel.setBackground(Color.BLACK);\n\t\tpanel.setBounds(0, 30, 1880, 67);\n\t\tbackground.add(panel);\n\t\t\n\t\tJButton cusbtn = new JButton(\"CUSTOMER\");\n\t\tcusbtn.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) \n\t\t\t{\n\t\t\t\t customer cr = new customer();\n\t\t cr.csStart();\n\t\t frame.dispose();\n\t\t\t}\n\t\t});\n\t\tcusbtn.setForeground(Color.WHITE);\n\t\tcusbtn.setFont(new Font(\"Times New Roman\", Font.PLAIN, 15));\n\t\tcusbtn.setBackground(Color.BLACK);\n\t\tcusbtn.setBounds(1257, 11, 613, 44);\n\t\tpanel.add(cusbtn);\n\t\t\n\t\tJButton bilbtn = new JButton(\"INVOICE\");\n\t\tbilbtn.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e)\n\t\t\t{\n\t\t\t\tadminInvoice inv= new adminInvoice();\n\t\t\t\tinv. adminInvoiceStart();\n\t\t\t\tframe.dispose();\n\n\t\t\t}\n\t\t});\n\t\tbilbtn.setForeground(Color.WHITE);\n\t\tbilbtn.setFont(new Font(\"Times New Roman\", Font.PLAIN, 15));\n\t\tbilbtn.setBackground(Color.BLACK);\n\t\tbilbtn.setBounds(633, 11, 613, 44);\n\t\tpanel.add(bilbtn);\n\t\t\n\t\tJButton prdbtn = new JButton(\"PRODUCTS\");\n\t\tprdbtn.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) \n\t\t\t{\n\t\t\t\tadminproducts prd = new adminproducts();\n\t\t\t\tprd.adminPrd();\n\t\t\t\tframe.dispose();\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tprdbtn.setForeground(Color.WHITE);\n\t\tprdbtn.setFont(new Font(\"Times New Roman\", Font.PLAIN, 15));\n\t\tprdbtn.setBackground(Color.BLACK);\n\t\tprdbtn.setBounds(10, 11, 613, 44);\n\t\tpanel.add(prdbtn);\n\t\t\n\t\tJLabel lblCustomerName = new JLabel(\"CUSTOMER NAME\");\n\t\tlblCustomerName.setVerticalAlignment(SwingConstants.TOP);\n\t\tlblCustomerName.setHorizontalAlignment(SwingConstants.LEFT);\n\t\tlblCustomerName.setForeground(Color.WHITE);\n\t\tlblCustomerName.setFont(new Font(\"Times New Roman\", Font.PLAIN, 19));\n\t\tlblCustomerName.setBounds(69, 278, 178, 30);\n\t\tbackground.add(lblCustomerName);\n\t\t\n\t\tJLabel lblMachineType = new JLabel(\"MACHINE TYPE\");\n\t\tlblMachineType.setVerticalAlignment(SwingConstants.TOP);\n\t\tlblMachineType.setHorizontalAlignment(SwingConstants.LEFT);\n\t\tlblMachineType.setForeground(Color.WHITE);\n\t\tlblMachineType.setFont(new Font(\"Times New Roman\", Font.PLAIN, 19));\n\t\tlblMachineType.setBounds(69, 328, 178, 30);\n\t\tbackground.add(lblMachineType);\n\t\t\n\t\t\n\t\tJButton btnStore = new JButton(\"STORE\");\n\t\tbtnStore.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) \n\t\t\t{\n\t\t\t\tString dateEntry=date.getText();\n\t\t\t\tString cusname= customerName.getText();\t\n\t\t\t\tString machType=machineType.getText();\n\t\t\t\tString machName=machineName.getText();\n\t\t\t\tString quan=quantity.getText();\n\t\t\t\tString dl= deadline.getText();\n\t\t\t\tConnection con;\n\t\t\t\tPreparedStatement insert;\n\t\t\t\t\n\t\t\t\tif(dateEntry.isEmpty()||cusname.isEmpty()||machName.isEmpty()||machType.isEmpty()||quan.isEmpty()||dl.isEmpty()) \n\t\t\t\t{\n\t\t\t\t\tJOptionPane.showMessageDialog(null,\"no field must be left empty\",\"registration error\", JOptionPane.ERROR_MESSAGE);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t\t\n\t\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \" Appointment added!!\");\n\t\t\t\t}\n\t\t\t\ttry \n\t\t\t\t{\n\t\t\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\t\t\t\t\tcon = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/machine_works\", \"root\", \"\");\n\t\t\t\t\tinsert = con.prepareStatement(\"insert into appointment (date,cusname,machType,machName,quan,deadline) values (?,?,?,?,?,?)\");\n\t\t insert.setString(1, dateEntry);\n\t\t insert.setString(2, cusname);\n\t\t insert.setString(3, machType);\n\t\t insert.setString(4, machName);\n\t\t insert.setString(5, quan);\n\t\t insert.setString(6, dl);\n\t\t insert.executeUpdate();\n\t\t\t\t}\n\t\t\t\tcatch(Exception E)\n\t\t\t\t{\n\t\t\t\t\tE.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tbtnStore.setForeground(Color.WHITE);\n\t\tbtnStore.setFont(new Font(\"Times New Roman\", Font.PLAIN, 15));\n\t\tbtnStore.setBackground(Color.BLACK);\n\t\tbtnStore.setBounds(580, 578, 116, 44);\n\t\tbackground.add(btnStore);\n\t\t\n\t\tJScrollPane scrollPane = new JScrollPane();\n\t\tscrollPane.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS);\n\t\tscrollPane.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);\n\t\tscrollPane.setBounds(1000, 230, 613, 267);\n\t\tbackground.add(scrollPane);\n\t\t\n\t\tinvoice = new JTable();\n\t\tscrollPane.setViewportView(invoice);\n\t\t\n\t\tJLabel lblInvoice = new JLabel(\"VIEW TO-DO LIST\");\n\t\tlblInvoice.setForeground(Color.WHITE);\n\t\tlblInvoice.setFont(new Font(\"Times New Roman\", Font.PLAIN, 30));\n\t\tlblInvoice.setBounds(1010, 117, 387, 48);\n\t\tbackground.add(lblInvoice);\n\t\t\n\t\tquantity = new JTextField();\n\t\tquantity.setFont(new Font(\"Times New Roman\", Font.PLAIN, 15));\n\t\tquantity.setColumns(10);\n\t\tquantity.setBounds(279, 428, 289, 30);\n\t\tbackground.add(quantity);\n\t\t\n\t\tmachineName = new JTextField();\n\t\tmachineName.setFont(new Font(\"Times New Roman\", Font.PLAIN, 15));\n\t\tmachineName.setColumns(10);\n\t\tmachineName.setBounds(279, 328, 289, 30);\n\t\tbackground.add(machineName);\n\t\t\n\t\tmachineType = new JTextField();\n\t\tmachineType.setFont(new Font(\"Times New Roman\", Font.PLAIN, 15));\n\t\tmachineType.setColumns(10);\n\t\tmachineType.setBounds(279, 378, 289, 30);\n\t\tbackground.add(machineType);\n\t\t\n\t\tcustomerName = new JTextField();\n\t\tcustomerName.setFont(new Font(\"Times New Roman\", Font.PLAIN, 15));\n\t\tcustomerName.setColumns(10);\n\t\tcustomerName.setBounds(279, 278, 289, 30);\n\t\tbackground.add(customerName);\n\t\t\n\t\tJLabel deadlineLbl = new JLabel(\"DEADLINE\");\n\t\tdeadlineLbl.setVerticalAlignment(SwingConstants.TOP);\n\t\tdeadlineLbl.setHorizontalAlignment(SwingConstants.LEFT);\n\t\tdeadlineLbl.setForeground(Color.WHITE);\n\t\tdeadlineLbl.setFont(new Font(\"Times New Roman\", Font.PLAIN, 19));\n\t\tdeadlineLbl.setBounds(69, 481, 178, 30);\n\t\tbackground.add(deadlineLbl);\n\t\t\n\t\tJLabel lblDate = new JLabel(\"DATE\");\n\t\tlblDate.setVerticalAlignment(SwingConstants.TOP);\n\t\tlblDate.setHorizontalAlignment(SwingConstants.LEFT);\n\t\tlblDate.setForeground(Color.WHITE);\n\t\tlblDate.setFont(new Font(\"Times New Roman\", Font.PLAIN, 19));\n\t\tlblDate.setBounds(69, 228, 178, 30);\n\t\tbackground.add(lblDate);\n\t\t\n\t\tdate = new JTextField();\n\t\tdate.setFont(new Font(\"Times New Roman\", Font.PLAIN, 15));\n\t\tdate.setColumns(10);\n\t\tdate.setBounds(279, 228, 289, 30);\n\t\tbackground.add(date);\n\t\t\n\t\tJButton btnView = new JButton(\"VIEW\");\n\t\tbtnView.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) \n\t\t\t{\n\t\t\t\ttry \n\t\t\t\t{\n\t\t\t\t\tConnection con = null;\n\t\t\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\t\t\t\t\tcon = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/machine_works\", \"root\", \"\");\n\t\t String query=\"select * from appointment \";\n\t\t\t\t\tPreparedStatement pst = con.prepareStatement(query);\n\t\t\t\t\tResultSet rs = pst.executeQuery();\n\t\t\t\t\t\n\t\t\t\t\tinvoice.setModel(DbUtils.resultSetToTableModel(rs));\n\t\t\t\t\n\t\t\t\t}\n\t\t\t\tcatch(Exception E)\n\t\t\t\t{\n\t\t\t\t\tE.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnView.setForeground(Color.WHITE);\n\t\tbtnView.setFont(new Font(\"Times New Roman\", Font.PLAIN, 15));\n\t\tbtnView.setBackground(Color.BLACK);\n\t\tbtnView.setBounds(1584, 578, 116, 44);\n\t\tbackground.add(btnView);\n\t\t\n\t\tdeadline = new JTextField();\n\t\tdeadline.setFont(new Font(\"Times New Roman\", Font.PLAIN, 15));\n\t\tdeadline.setColumns(10);\n\t\tdeadline.setBounds(279, 481, 289, 30);\n\t\tbackground.add(deadline);\n\t\t\n\t\tJPanel header = new JPanel();\n\t\theader.setLayout(null);\n\t\theader.setBackground(Color.DARK_GRAY);\n\t\theader.setBounds(14, 23, 1880, 163);\n\t\tframe.getContentPane().add(header);\n\t\t\n\t\tJPanel mwtitle = new JPanel();\n\t\tmwtitle.setLayout(null);\n\t\tmwtitle.setForeground(Color.WHITE);\n\t\tmwtitle.setBackground(Color.BLACK);\n\t\tmwtitle.setBounds(209, 7, 649, 151);\n\t\theader.add(mwtitle);\n\t\t\n\t\tJLabel label = new JLabel(\"MACHINE WORKS\");\n\t\tlabel.setForeground(Color.WHITE);\n\t\tlabel.setFont(new Font(\"Times New Roman\", Font.PLAIN, 69));\n\t\tlabel.setBounds(20, 11, 605, 72);\n\t\tmwtitle.add(label);\n\t\t\n\t\tJLabel lblWhereAllThe = new JLabel(\"Where all the WORK is done by MACHINE\");\n\t\tlblWhereAllThe.setForeground(Color.ORANGE);\n\t\tlblWhereAllThe.setFont(new Font(\"Times New Roman\", Font.PLAIN, 30));\n\t\tlblWhereAllThe.setBounds(38, 94, 581, 48);\n\t\tmwtitle.add(lblWhereAllThe);\n\t\t\n\t\tJLabel logolbl = new JLabel(\"\");\n\t\tlogolbl.setIcon(new ImageIcon(\"C:\\\\Users\\\\CHINMAYA SH\\\\Pictures\\\\download.png\"));\n\t\tlogolbl.setBounds(58, 7, 151, 151);\n\t\theader.add(logolbl);\n\t\t\n\t\tJButton lgbtn = new JButton(\"LOGOUT\");\n\t\tlgbtn.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) \n\t\t\t{\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Logged out Successfull !!\");\n\t\t\t\tindex ind = new index();\n\t\t\t\tind.indexStart();\n\t\t\t\tframe.dispose();\n\t\t\t}\n\t\t});\n\t\tlgbtn.setForeground(Color.WHITE);\n\t\tlgbtn.setFont(new Font(\"Times New Roman\", Font.PLAIN, 15));\n\t\tlgbtn.setBackground(Color.BLACK);\n\t\tlgbtn.setBounds(1674, 60, 116, 44);\n\t\theader.add(lgbtn);\n\t\t\n\t\tJButton button_1 = new JButton(\"SIGN UP\");\n\t\tbutton_1.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) \n\t\t\t{\n\t\t\t\tsignup sg = new signup();\n\t\t\t\tsg.signupStart();\n\t\t\t\tframe.dispose();\n\t\t\t}\n\t\t});\n\t\tbutton_1.setForeground(Color.WHITE);\n\t\tbutton_1.setFont(new Font(\"Times New Roman\", Font.PLAIN, 15));\n\t\tbutton_1.setBackground(Color.BLACK);\n\t\tbutton_1.setBounds(1488, 60, 116, 44);\n\t\theader.add(button_1);\n\t\t\n\t\tJButton btnAppointment = new JButton(\"TO-DO\");\n\t\tbtnAppointment.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) \n\t\t\t{\n\t\t\t\tappointments ap = new appointments();\n\t\t\t\tap.appointmentList();\n\t\t\t\tframe.dispose();\n\t\t\t}\n\t\t});\n\t\tbtnAppointment.setForeground(Color.WHITE);\n\t\tbtnAppointment.setFont(new Font(\"Times New Roman\", Font.PLAIN, 15));\n\t\tbtnAppointment.setBackground(Color.BLACK);\n\t\tbtnAppointment.setBounds(1309, 60, 125, 44);\n\t\theader.add(btnAppointment);\n\t\tframe.setBackground(Color.BLACK);\n\t\tframe.setBounds(100, 100, 1920\t, 1080);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\n\t}", "private void initBoard() {\n initCommands();\n setBackground(Color.BLACK);\n setPreferredSize(new Dimension((int) (W * Application.scale), (int) (H * Application.scale)));\n\n commandClasses.forEach((cmdstr) -> {\n try {\n Object obj = Class.forName(cmdstr).getDeclaredConstructor().newInstance();\n Command cmd = (Command) obj;\n connectCommand(cmd);\n System.out.println(\"Loaded \" + cmdstr);\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n });\n\n Particle.heatmap.addColor(0, Color.GREEN);\n Particle.heatmap.addColor(50, Color.YELLOW);\n Particle.heatmap.addColor(100, Color.RED);\n\n Particle.slopemap.addColor(-5, Color.RED);\n Particle.slopemap.addColor(0, Color.WHITE);\n Particle.slopemap.addColor(5, Color.GREEN);\n\n setFocusable(true);\n }", "public void InitializeComponents(){\n\n\n screen = new JPanel();\n screen.setLayout(null);\n screen.setBackground(Color.BLUE);\n this.getContentPane().add(screen);\n ScreenComps();\n\n }", "private void init() {\r\n\r\n createGUI();\r\n\r\n setSize(new Dimension(600, 600));\r\n setTitle(\"Grid - Regular Grid Renderer\");\r\n }", "private void initialize() {\r\n\t\tframe = new JFrame();\r\n\t\tframe.getContentPane().setForeground(new Color(0, 0, 0));\r\n\t\tframe.setBounds(100, 100, 450, 367);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.getContentPane().setLayout(null);\r\n\t\t\r\n\t\tJPanel panel = new JPanel();\r\n\t\tpanel.setBounds(75, 34, 77, -30);\r\n\t\tframe.getContentPane().add(panel);\r\n\t\t\r\n\t\tJPanel panel_1 = new JPanel();\r\n\t\tpanel_1.setBackground(Color.WHITE);\r\n\t\tpanel_1.setBounds(15, 20, 398, 53);\r\n\t\tframe.getContentPane().add(panel_1);\r\n\t\tpanel_1.setLayout(null);\r\n\t\t\r\n\t\tJLabel lblBodyMassIndex = new JLabel(\"Body mass index\");\r\n\t\tlblBodyMassIndex.setForeground(Color.GREEN);\r\n\t\tlblBodyMassIndex.setFont(new Font(\"Times New Roman\", Font.BOLD, 17));\r\n\t\tlblBodyMassIndex.setBounds(105, 16, 250, 20);\r\n\t\tpanel_1.add(lblBodyMassIndex);\r\n\t\t\r\n\t\tJPanel panel_2 = new JPanel();\r\n\t\tpanel_2.setBackground(Color.PINK);\r\n\t\tpanel_2.setForeground(Color.DARK_GRAY);\r\n\t\tpanel_2.setBounds(15, 77, 398, 214);\r\n\t\tframe.getContentPane().add(panel_2);\r\n\t\tpanel_2.setLayout(null);\r\n\t\t\r\n\t\tJLabel l1 = new JLabel(\"Height(m)\");\r\n\t\tl1.setFont(new Font(\"Times New Roman\", Font.BOLD, 16));\r\n\t\tl1.setBounds(28, 38, 103, 20);\r\n\t\tpanel_2.add(l1);\r\n\t\t\r\n\t\tJLabel l2 = new JLabel(\"Weight(kg)\");\r\n\t\tl2.setFont(new Font(\"Times New Roman\", Font.BOLD, 16));\r\n\t\tl2.setBounds(28, 94, 88, 20);\r\n\t\tpanel_2.add(l2);\r\n\t\t\r\n\t\ttf = new JTextField();\r\n\t\ttf.setBounds(183, 35, 146, 26);\r\n\t\tpanel_2.add(tf);\r\n\t\ttf.setColumns(10);\r\n\t\t\r\n\t\ttf1 = new JTextField();\r\n\t\ttf1.setBounds(183, 91, 146, 26);\r\n\t\tpanel_2.add(tf1);\r\n\t\ttf1.setColumns(10);\r\n\t\t\r\n\t\tJLabel l3 = new JLabel(\"BMI\");\r\n\t\tl3.setFont(new Font(\"Times New Roman\", Font.BOLD, 17));\r\n\t\tl3.setBounds(38, 130, 69, 20);\r\n\t\tpanel_2.add(l3);\r\n\t\t\r\n\t\ttf2 = new JTextField();\r\n\t\ttf2.setBounds(143, 126, 88, 26);\r\n\t\tpanel_2.add(tf2);\r\n\t\ttf2.setColumns(10);\r\n\t\t\r\n\t\tJLabel l4 = new JLabel(\"\");\r\n\t\tl4.setBounds(249, 130, 134, 20);\r\n\t\tpanel_2.add(l4);\r\n\t\t\r\n\t\tJButton b1 = new JButton(\"Calculate\");\r\n\t\tb1.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\tString a=tf.getText();\r\n\t\t\t\tfloat height=Float.valueOf(a);\r\n\t\t\t\tString b=tf1.getText();\r\n\t\t\t\tfloat weight=Float.valueOf(b);\r\n\t\t\t\tfloat c=height*height;\r\n\t\t\t\tfloat d=weight/c;\r\n\t\t\t\tString e=String.valueOf(d);\r\n\t\t\t\ttf2.setText(e);\r\n\t\t\t\tif(d<18.5)\r\n\t\t\t\t{\r\n\t\t\t\t\tl4.setText(\"Under Weight\");\r\n\t\t\t\t}\r\n\t\t\t\telse if(d>18.5&&d<24.5)\r\n\t\t\t\t{\r\n\t\t\t\t\tl4.setText(\"Normal Weight\");\r\n\t\t\t\t}\r\n\t\t\t\telse if(d>25&&d<29.9)\r\n\t\t\t\t{\r\n\t\t\t\t\tl4.setText(\"Over Weight\");\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tl4.setText(\"obese\");\r\n\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\r\n\t\t});\r\n\t\tb1.setBounds(0, 169, 104, 29);\r\n\t\tpanel_2.add(b1);\r\n\t\t\r\n\t\tJButton b2 = new JButton(\"Clear\");\r\n\t\tb2.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\ttf.setText(\"\");\r\n\t\t\t\ttf1.setText(\"\");\r\n\t\t\t\ttf2.setText(\"\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tb2.setBounds(131, 168, 100, 29);\r\n\t\tpanel_2.add(b2);\r\n\t\t\r\n\t\tJButton b3 = new JButton(\"Exit\");\r\n\t\tb3.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tSystem.exit(0);\r\n\t\t\t}\r\n\t\t});\r\n\t\tb3.setBounds(253, 169, 103, 29);\r\n\t\tpanel_2.add(b3);\r\n\t\t\r\n\t\t\r\n\t}", "public WinScreen()\r\n { \r\n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\r\n super(1500, 500, 1); \r\n\r\n prepare();\r\n }", "public BoardCanvas() {\n Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();\n int height1 = screenSize.height * 9 / 14;\n int remainNum = height1 % 9;\n int heightBoard = height1 - remainNum;\n setBounds(0, 0, heightBoard, heightBoard);\n GraphicsEnvironment env = GraphicsEnvironment.getLocalGraphicsEnvironment();\n HashSet<String> availableNames = new HashSet();\n for (String name : env.getAvailableFontFamilyNames()) {\n availableNames.add(name);\n }\n for (String pf : preferredFonts) {\n if (availableNames.contains(pf)) {\n font = new Font(pf, Font.PLAIN, 20);\n break;\n }\n }\n }", "private void setupDisplay() {\n sizeFirstField_.setText(Double.toString(af_.SIZE_FIRST));\n numFirstField_.setText(Double.toString(af_.NUM_FIRST));\n sizeSecondField_.setText(Double.toString(af_.SIZE_SECOND));\n numSecondField_.setText(Double.toString(af_.NUM_SECOND));\n cropSizeField_.setText(Double.toString(af_.CROP_SIZE));\n thresField_.setText(Double.toString(af_.THRES));\n channelField1_.setText(af_.CHANNEL1);\n channelField2_.setText(af_.CHANNEL2);\n }", "private static void createContents() {\r\n\t\t\r\n\t\tcolorPreview = new Composite(colorUI, SWT.BORDER);\r\n\t\tcolorPreview.setBounds(10, 23, 85, 226);\r\n\t\t\r\n\t\tscRed = new Scale(colorUI, SWT.NONE);\r\n\t\tscRed.setMaximum(255);\r\n\t\tscRed.setMinimum(0);\r\n\t\tscRed.setForeground(SWTResourceManager.getColor(SWT.COLOR_RED));\r\n\t\tscRed.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\tscRed.setBounds(244, 34, 324, 42);\r\n\t\tscRed.setIncrement(1);\r\n\t\tscRed.setPageIncrement(10);\r\n\t\tscRed.addSelectionListener(new SelectionAdapter(){\r\n\t\t\tpublic void widgetSelected(SelectionEvent e){\r\n\t\t\t\tR = scRed.getSelection();\r\n\t\t\t\tmRed.setText(Integer.toString(scRed.getSelection()));\r\n\t\t\t\tcolorPreview.setBackground(SWTResourceManager.getColor(R, G, B));\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tmRed = new Label(colorUI, SWT.NONE);\r\n\t\tmRed.setAlignment(SWT.RIGHT);\r\n\t\tmRed.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\tmRed.setBounds(180, 47, 55, 15);\r\n\t\tmRed.setText(\"0\");\r\n\r\n\t\tscGreen = new Scale(colorUI, SWT.NONE);\r\n\t\tscGreen.setMaximum(255);\r\n\t\tscGreen.setMinimum(0);\r\n\t\tscGreen.setForeground(SWTResourceManager.getColor(SWT.COLOR_RED));\r\n\t\tscGreen.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\tscGreen.setBounds(244, 84, 324, 42);\r\n\t\tscGreen.setIncrement(1);\r\n\t\tscGreen.setPageIncrement(10);\r\n\t\tscGreen.addSelectionListener(new SelectionAdapter(){\r\n\t\t\tpublic void widgetSelected(SelectionEvent e){\r\n\t\t\t\tG = scGreen.getSelection();\r\n\t\t\t\tmGreen.setText(Integer.toString(scGreen.getSelection()));\r\n\t\t\t\tcolorPreview.setBackground(SWTResourceManager.getColor(R, G, B));\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tmGreen = new Label(colorUI, SWT.NONE);\r\n\t\tmGreen.setAlignment(SWT.RIGHT);\r\n\t\tmGreen.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\tmGreen.setText(\"0\");\r\n\t\tmGreen.setBounds(180, 97, 55, 15);\r\n\t\t\r\n\t\tscBlue = new Scale(colorUI, SWT.NONE);\r\n\t\tscBlue.setMaximum(255);\r\n\t\tscBlue.setMinimum(0);\r\n\t\tscBlue.setForeground(SWTResourceManager.getColor(SWT.COLOR_RED));\r\n\t\tscBlue.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\tscBlue.setBounds(244, 138, 324, 42);\r\n\t\tscBlue.setIncrement(1);\r\n\t\tscBlue.setPageIncrement(10);\r\n\t\tscBlue.addSelectionListener(new SelectionAdapter(){\r\n\t\t\tpublic void widgetSelected(SelectionEvent e){\r\n\t\t\t\tB = scBlue.getSelection();\r\n\t\t\t\tmBlue.setText(Integer.toString(scBlue.getSelection()));\r\n\t\t\t\tcolorPreview.setBackground(SWTResourceManager.getColor(R, G, B));\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tmBlue = new Label(colorUI, SWT.NONE);\r\n\t\tmBlue.setAlignment(SWT.RIGHT);\r\n\t\tmBlue.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\tmBlue.setText(\"0\");\r\n\t\tmBlue.setBounds(180, 151, 55, 15);\r\n\t\t\r\n\t\tscAlpha = new Scale(colorUI, SWT.NONE);\r\n\t\tscAlpha.setMaximum(255);\r\n\t\tscAlpha.setMinimum(0);\r\n\t\tscAlpha.setForeground(SWTResourceManager.getColor(SWT.COLOR_RED));\r\n\t\tscAlpha.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\tscAlpha.setBounds(244, 192, 324, 42);\r\n\t\tscAlpha.setIncrement(1);\r\n\t\tscAlpha.addSelectionListener(new SelectionAdapter(){\r\n\t\t\tpublic void widgetSelected(SelectionEvent e){\r\n\t\t\t\tA = scAlpha.getSelection();\r\n\t\t\t\tmAlpha.setText(Integer.toString(scAlpha.getSelection()));\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tbtnOkay = new Button(colorUI, SWT.NONE);\r\n\t\tbtnOkay.setBounds(300, 261, 80, 30);\r\n\t\tbtnOkay.setText(\"Okay\");\r\n\t\tbtnOkay.addSelectionListener(new SelectionAdapter(){\r\n\t\t\tpublic void widgetSelected(SelectionEvent e){\r\n\t\t\t\tOptions.cr.ColorR = R;\r\n\t\t\t\tOptions.cr.ColorG = G;\r\n\t\t\t\tOptions.cr.ColorB = B;\r\n\t\t\t\tOptions.cr.ColorA = A;\r\n\t\t\t\tOptions.colorPreview.setBackground(SWTResourceManager.getColor(R, G, B));\r\n\t\t\t\tcolorUI.close();\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tbtnCancel = new Button(colorUI, SWT.NONE);\r\n\t\tbtnCancel.setText(\"Cancel\");\r\n\t\tbtnCancel.setBounds(195, 261, 80, 30);\r\n\t\tbtnCancel.addSelectionListener(new SelectionAdapter(){\r\n\t\t\tpublic void widgetSelected(SelectionEvent e){\r\n\t\t\t\tOptions.colorPreview.setBackground(SWTResourceManager.getColor(Options.cr.ColorR, Options.cr.ColorG, Options.cr.ColorB));\r\n\t\t\t\tR = Options.cr.ColorR;\r\n\t\t\t\tG = Options.cr.ColorG;\r\n\t\t\t\tB = Options.cr.ColorB;\r\n\t\t\t\tA = Options.cr.ColorA;\r\n\t\t\t\tcolorUI.close();\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tmAlpha = new Label(colorUI, SWT.NONE);\r\n\t\tmAlpha.setAlignment(SWT.RIGHT);\r\n\t\tmAlpha.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\tmAlpha.setText(\"0\");\r\n\t\tmAlpha.setBounds(180, 206, 55, 15);\r\n\t\t\r\n\t\tLabel lblRed = new Label(colorUI, SWT.NONE);\r\n\t\tlblRed.setFont(SWTResourceManager.getFont(\"Segoe UI\", 9, SWT.BOLD));\r\n\t\tlblRed.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\tlblRed.setBounds(123, 47, 55, 15);\r\n\t\tlblRed.setText(\"Red\");\r\n\t\t\r\n\t\tLabel lblGreen = new Label(colorUI, SWT.NONE);\r\n\t\tlblGreen.setFont(SWTResourceManager.getFont(\"Segoe UI\", 9, SWT.BOLD));\r\n\t\tlblGreen.setText(\"Green\");\r\n\t\tlblGreen.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\tlblGreen.setBounds(123, 97, 55, 15);\r\n\t\t\r\n\t\tLabel lblBlue = new Label(colorUI, SWT.NONE);\r\n\t\tlblBlue.setFont(SWTResourceManager.getFont(\"Segoe UI\", 9, SWT.BOLD));\r\n\t\tlblBlue.setText(\"Blue\");\r\n\t\tlblBlue.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\tlblBlue.setBounds(123, 151, 55, 15);\r\n\t\t\r\n\t\tLabel lblAlpha = new Label(colorUI, SWT.NONE);\r\n\t\tlblAlpha.setFont(SWTResourceManager.getFont(\"Segoe UI\", 9, SWT.BOLD));\r\n\t\tlblAlpha.setText(\"Alpha\");\r\n\t\tlblAlpha.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\tlblAlpha.setBounds(123, 206, 55, 15);\r\n\t\t\r\n\t\t\r\n\t}", "private void $$$setupUI$$$() {\n contentPane = new JPanel();\n contentPane.setLayout(new GridLayoutManager(1, 3, new Insets(0, 0, 0, 0), -1, -1));\n materialFirstWordLabel = new JLabel();\n materialFirstWordLabel.setText(\"нет данных\");\n contentPane.add(materialFirstWordLabel, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(10, -1), null, 0, false));\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new GridLayoutManager(3, 1, new Insets(0, 0, 0, 0), -1, -1));\n contentPane.add(panel1, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n materialMarkLabel = new JLabel();\n materialMarkLabel.setText(\" \");\n materialMarkLabel.setVerticalTextPosition(1);\n panel1.add(materialMarkLabel, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n materialProfileLabel = new JLabel();\n materialProfileLabel.setText(\" \");\n materialProfileLabel.setVerticalTextPosition(3);\n panel1.add(materialProfileLabel, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n materialSeparator = new JSeparator();\n panel1.add(materialSeparator, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n final Spacer spacer1 = new Spacer();\n contentPane.add(spacer1, new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n }", "public static void initComponents() {\n\n StyleConstants.setFontSize(headingStyle, 12);\n StyleConstants.setBold(headingStyle, true);\n StyleConstants.setFontFamily(headingStyle, \"Monospaced\");\n\n StyleConstants.setFontSize(black, 10);\n StyleConstants.setFontFamily(black, \"Monospaced\");\n\n StyleConstants.setFontSize(red, 10);\n StyleConstants.setFontFamily(red, \"Monospaced\");\n StyleConstants.setForeground(red, Color.red);\n\n StyleConstants.setFontSize(green, 10);\n StyleConstants.setFontFamily(green, \"Monospaced\");\n StyleConstants.setForeground(green, Color.blue);\n\n try {\n textPane.setCharacterAttributes(headingStyle, true);\n documentModel.insertString(documentModel.getLength(), \"Logging started ...\\n\\n\", headingStyle);\n } catch (BadLocationException ble) {\n System.out.println(\"Bad location for text insert on logpanel.\");\n }\n }", "protected void createContents() {\n\t\tsetText(\"SWT Application\");\n\t\tsetSize(656, 296);\n\n\t}", "private void setGrid() {\r\n maxRows = (FORM_HEIGHT - FORM_HEIGHT_ADJUST) / SQUARE_SIZE;\r\n maxColumns = (FORM_WIDTH - FORM_WIDTH_ADJUST) / SQUARE_SIZE; \r\n grid = new JLabel[maxRows][maxColumns];\r\n int y = (FORM_HEIGHT - (maxRows * SQUARE_SIZE)) / 2;\r\n for (int row = 0; row < maxRows; row++) {\r\n int x = (FORM_WIDTH - (maxColumns * SQUARE_SIZE)) / 2;\r\n for (int column = 0; column < maxColumns; column++) {\r\n createSquare(x,y,row,column);\r\n x += SQUARE_SIZE;\r\n }\r\n y += SQUARE_SIZE;\r\n } \r\n }", "public Test1UI() {\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tthis.setLayout(new BorderLayout());\n\t\tsetDefaultValues();\n\t\taddActionListeners();\n\n\t\tthis.add(pnlWest, BorderLayout.WEST);\n\t\tthis.add(pnlEast, BorderLayout.EAST);\n\t\tthis.add(pnlCenter, BorderLayout.CENTER);\n\t\tthis.add(pnlSouth, BorderLayout.SOUTH);\n\n\t\tfor (int row = 0; row < 7; row++) {\n\t\t\tpnlWest.add(tfWest[row]);\n\t\t\tpnlSouth.add(tfSouth[row]);\n\t\t\tfor (int col = 0; col < 7; col++) {\n\t\t\t\tpnlCenter.add(lblCenter[row][col]);\n\t\t\t}\n\t\t}\n\t\tpnlEast.add(pnlEastTop, BorderLayout.NORTH);\n\t\tpnlEast.add(pnlEastBottom, BorderLayout.SOUTH);\n\n\t\tpnlEastTop.add(pnlEastTopText);\n\t\tpnlEastTop.add(btnReadRow);\n\t\tpnlEastTop.add(btnPrintRow);\n\t\tpnlEastTopText.add(lblRow);\n\t\tpnlEastTopText.add(tfRow);\n\n\t\tpnlEastBottom.add(pnlEastBottomText);\n\t\tpnlEastBottom.add(btnReadCol);\n\t\tpnlEastBottom.add(btnPrintCol);\n\t\tpnlEastBottomText.add(lblCol);\n\t\tpnlEastBottomText.add(tfCol);\n\n\t\tpack();\n\t\tsetVisible(true);\n\t}", "public void initComponents() {\n\t\tscreen = new JTextArea();\r\n screen.setBackground(Color.black);\r\n screen.setForeground(Color.green);\r\n screen.setCaretColor(Color.green);\r\n ConsoleCaret caret = new ConsoleCaret(); //set up custom caret, for looks\r\n caret.setUpdatePolicy(ConsoleCaret.ALWAYS_UPDATE);\r\n screen.setCaret(caret);\r\n screen.setEditable(false);\r\n screen.addKeyListener(this);\r\n screen.setLineWrap(true);\r\n screen.setFocusable(false);\r\n screen.getCaret().setVisible(true);\r\n initFont();\r\n \r\n commandlib = new CommandLib(this); //init command lib\r\n out = new ConsoleWriter(new ConsoleStream(screen), commandlib, prefix);\r\n commandlib.setOutput(out);\r\n scrollPane = new JScrollPane(screen);\r\n scrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);\r\n scrollPane.setForeground(Color.green);\r\n scrollPane.setBackground(Color.black);\r\n scrollPane.requestFocus();\r\n scrollPane.addKeyListener(this);\r\n \r\n }", "private void setUpPanel() { \n this.setPreferredSize(new Dimension(myWidth, myHeight)); \n // Set this panel as a grid panel with 1 column, 6 rows. \n this.setLayout(new GridLayout(NUM_ROWS, 1)); \n // Create the next piece panel.\n this.myNextPiece = new TetrisNextPiecePanel();\n this.add(myNextPiece); \n // Add another panel which will show game instruction.\n final HowToPlayPanel instructionsPanel = new HowToPlayPanel();\n this.add(instructionsPanel);\n // add the last panel which will show the scores, level, game state etc.\n this.setUpLastPanel();\n }", "protected void createComponents() {\n sampleText = new JTextField(20);\n displayArea = new JLabel(\"\");\n displayArea.setPreferredSize(new Dimension(200, 75));\n displayArea.setMinimumSize(new Dimension(200, 75));\n }", "public void initCon() {\n\t\t\n\t\t//ImageIcon icon = new ImageIcon(this.getClass().getResource(\"lib/data/icon/log.png\"));\n\t\t//txtArea.setLineWrap(true);\n\t\ttxtArea = new JTextArea(16,70);\n\t\t//txtArea.setLineWrap(true);\n\t\tJTabbedPane tPane = new JTabbedPane();\n\t\t\n\t\tJScrollPane scrollPane = new JScrollPane(txtArea); \n\t\t\n\t\t\n\t\tJPanel top = new JPanel();\n\t\tJPanel center = new JPanel();\n\t\t\n\t\tbottom = new JPanel();\n\t\tColor color = UIManager.getColor ( \"Panel.background\" );\n\t\t\n\t\ttop.add( scrollPane );\n\t\ttPane.addTab(\"Console\", top);\n\t\t\n\t\t\n\t\t//set colors\n\t\treadout.setBackground(color);\n\t\ttop.setBackground(color);\n\t\tcenter.setBackground(color);\n\t\tbottom.setBackground(color);\n\t\t//.setOpaque(true);\n\t\t\n\t\tbottom.setLayout(new GridLayout(1,2));\n\t\tbottom.add(readout);\n\t\tcenter.setLayout(new GridLayout(2,1));\n\t\tadd(center, BorderLayout.CENTER);\n\t\tadd(bottom, BorderLayout.SOUTH);\n\t\tadd(tPane, BorderLayout.NORTH);\n\t}", "public WinScreen()\n { \n // Create a new world with 800x600 cells with a cell size of 1x1 pixels.\n super(800, 600, 1); \n showText( \"CONGRATS, YOU WIN!!!\", 393, 264); \n showText( \"Click Emoji to Reset the Game! -->\", 393, 300);\n showText( \"Click Here to go Back to Start Screen! -->\", 555, 572);\n addObject( new ResetButton(), 609, 300);\n addObject( new BackButton(), 764, 572);\n }", "private void createTextPanel()\n\t{\t\t\n\t\ttextPanel.setLayout (new BorderLayout());\n\t\ttextPanel.add(entry, BorderLayout.CENTER);\n\t\t\n\t}", "protected void createContents() {\n\t\tsetText(\"SWT Application\");\n\t\tsetSize(838, 649);\n\n\t}", "private void init() {\n setLayout(new BorderLayout());\n setBackground(ProgramPresets.COLOR_BACKGROUND);\n add(getTitlePanel(), BorderLayout.NORTH);\n add(getTextPanel(), BorderLayout.CENTER);\n add(getLinkPanel(), BorderLayout.SOUTH);\n }", "private void $$$setupUI$$$() {\r\n panel1 = new BackGroundPanel();\r\n panel1.setOpaque(false);\r\n panel1.setLayout(new GridLayoutManager(4, 2, new Insets(0, 0, 0, 0), -1, -1));\r\n final Spacer spacer1 = new Spacer();\r\n panel1.add(spacer1, new GridConstraints(1, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\r\n textPane1 = new JTextArea();\r\n textPane1.setFont(new Font(\"HGMinchoL\", textPane1.getFont().getStyle(), 22));\r\n textPane1.setText(\"\");\r\n textPane1.setEditable(false);\r\n textPane1.setOpaque(false);\r\n panel1.add(textPane1, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_WANT_GROW, null, new Dimension(150, 50), null, 0, false));\r\n final JLabel label1 = new JLabel();\r\n label1.setText(\"Answer:\");\r\n panel1.add(label1, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\r\n textField1 = new JTextField();\r\n panel1.add(textField1, new GridConstraints(3, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\r\n SWINGButton = createButton(\"bat\", \"SWING!\");\r\n //SWINGButton.setText(\"SWING\");\r\n panel1.add(SWINGButton, new GridConstraints(3, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\r\n formattedTextField1 = new JFormattedTextField();\r\n formattedTextField1.setEditable(false);\r\n formattedTextField1.setFont(new Font(\"HGMinchol\", formattedTextField1.getFont().getStyle(), 22));\r\n panel1.add(formattedTextField1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\r\n }", "protected void createContents() {\r\n\t\tsetText(\"SWT Application\");\r\n\t\tsetSize(450, 300);\r\n\r\n\t}", "protected void createContents() {\n\t\tsetText(\"Muokkaa asiakastietoja\");\n\t\tsetSize(800, 550);\n\n\t}", "private void init(){\n panel_principal = new JPanel();\r\n panel_principal.setLayout(new BorderLayout());\r\n //EN EL NORTE IRA LA CAJA DE TEXTO\r\n caja = new JTextField();\r\n panel_principal.add(\"North\",caja);\r\n //EN EL CENTRO IRA EL PANEL DE BOTONES\r\n panel_botones = new JPanel();\r\n //El GRIDLAYOUT RECIBE COMO PARAMETROS:\r\n //FILAS,COLUMNAS ESPACIADO ENTRE FILAS,\r\n //ESPACIADO ENTRE COLUMNAS\r\n panel_botones.setLayout(new GridLayout(5,4,8,8));\r\n agregarBotones();\r\n panel_principal.add(\"Center\",panel_botones);\r\n //AGREGAMOS TODO EL CONTENIDO QUE ACABAMOS DE HACER EN\r\n //PANEL_PRINCIPAL A EL PANEL DEL FORMULARIO\r\n getContentPane().add(panel_principal);\r\n\r\n }", "private void setUpLayout() {\n\n this.setLayout(new GridLayout(7, 1, 40, 37));\n this.setBackground(new Color(72, 0, 0));\n this.setBorder(BorderFactory.createEmptyBorder(8, 150, 8, 150));\n }", "private void setupUI() {\r\n\t\tWindow.setTitle(\"Battle\");\r\n\r\n\t\tVerticalPanel panel = new VerticalPanel();\r\n\t\tpanel.addStyleName(NAME);\r\n\t\tinitWidget(panel);\r\n\t\t\r\n\t\tlabelTitle = new Label(\"Battle\");\r\n\t\tlabelTitle.addStyleName(Styles.page_title);\r\n\t\tpanel.add(labelTitle);\r\n\t\t\r\n\t\tLabel instructions = new Label(\"Click to go!\");\r\n\t\tpanel.add(instructions);\r\n\r\n\t\tHorizontalPanel hPanel = new HorizontalPanel();\r\n\t\tpanel.add(hPanel);\r\n\t\t\r\n\t\tCanvas canvas = Canvas.createIfSupported();\r\n\t\thPanel.add(canvas);\r\n\r\n\t\tVerticalPanel vPanelInfo = new VerticalPanel();\r\n\t\thPanel.add(vPanelInfo);\r\n\t\t\r\n\t\tlabelInfo = new Label();\r\n\t\tlabelInfo.addStyleName(Styles.battle_info);\r\n\t\tvPanelInfo.add(labelInfo);\r\n\t\t\r\n\t\tvPanelInfoHistory = new VerticalPanel();\r\n\t\tvPanelInfoHistory.addStyleName(Styles.battle_info_history);\r\n\t\tvPanelInfo.add(vPanelInfoHistory);\r\n\r\n\t\t\r\n\t\tcanvas.setWidth(width + \"px\");\r\n\t\tcanvas.setHeight(height + \"px\");\r\n\t\tcanvas.setCoordinateSpaceWidth(width);\r\n\t\tcanvas.setCoordinateSpaceHeight(height);\r\n\r\n\t\t//Adding handlers seems to create a performance issue in Java\r\n\t\t//mode, but likely not in javascript\r\n\t\tcanvas.addMouseDownHandler(this);\r\n//\t\tcanvas.addMouseUpHandler(this);\r\n//\t\tcanvas.addMouseMoveHandler(this);\r\n\r\n\t\tcontext2d = canvas.getContext2d();\r\n\r\n\t\tlastUpdate = System.currentTimeMillis();\r\n\t\ttimer = new Timer() {\r\n\t\t\t@Override\r\n\t\t\tpublic void run() {\r\n\t\t\t\tlong now = System.currentTimeMillis();\r\n\t\t\t\tupdate(now - lastUpdate);\r\n\t\t\t\tlastUpdate = now;\r\n\r\n\t\t\t\tdraw();\r\n\t\t\t}\r\n\t\t};\r\n\t\ttimer.scheduleRepeating(1000 / 60);\r\n\t}", "private void initialize() {\r\n this.setSize(new Dimension(374, 288));\r\n this.setContentPane(getJPanel());\r\n this.setResizable(false);\r\n this.setModal(true);\r\n this.setTitle(\"颜色选择面板\");\r\n addJPanel();\r\n\t}", "private void initialize() {\n\t\tAddsessFrm = new JFrame();\n\t\tAddsessFrm.getContentPane().setForeground(SystemColor.activeCaption);\n\t\tAddsessFrm.getContentPane().setBackground(SystemColor.activeCaption);\n\t\tAddsessFrm.setBackground(Color.YELLOW);\n\t\t//AddsessFrm.setResizable(false);\n\t\tAddsessFrm.setTitle(\"Add Session\");\n\t\tAddsessFrm.setSize(1400, 860);\n\t\tAddsessFrm.setBounds(0, 0, 1350, 700);\n\t\tAddsessFrm.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tAddsessFrm.getContentPane().setLayout(null);\n\t\tAddsessFrm.setLocationRelativeTo(null); //this method display the JFrame to center position of a screen\n\t\t//AddsessFrm.setVisible(true);\n\n\t\tJPanel panel_2 = new JPanel();\n\t\tpanel_2.setForeground(SystemColor.activeCaption);\n\t\tpanel_2.setLayout(null);\n\t\tpanel_2.setBackground(new Color(230, 230, 250));\n\t\tpanel_2.setBounds(227, 127, 1084, 543);\n\t\tAddsessFrm.getContentPane().add(panel_2);\n\n\t\tJPanel panel_3 = new JPanel();\n\t\tpanel_3.setLayout(null);\n\t\tpanel_3.setBorder(new TitledBorder(null, \"\", TitledBorder.LEADING, TitledBorder.TOP, null, null));\n\t\tpanel_3.setBackground(Color.DARK_GRAY);\n\t\tpanel_3.setBounds(10, 23, 1055, 491);\n\t\tpanel_2.add(panel_3);\n\t\t\n\t\tJScrollPane scrollPane = new JScrollPane();\n\t\tscrollPane.setBounds(771, 217, 239, 57);\n\t\tpanel_3.add(scrollPane);\n\t\t\n\t\tJTextArea sign = new JTextArea();\n\t\tsign.setEditable(false);\n\t\tsign.setFont(new Font(\"Microsoft YaHei UI\", Font.PLAIN, 12));\n\t\tscrollPane.setViewportView(sign);\n\t\t\n\t\tJScrollBar scrollBar = new JScrollBar();\n\t\tscrollPane.setRowHeaderView(scrollBar);\n\n\t\tJLabel lblLecturer = new JLabel(\"Lecturer 1\");\n\t\tlblLecturer.setForeground(Color.WHITE);\n\t\tlblLecturer.setBackground(Color.WHITE);\n\t\tlblLecturer.setFont(new Font(\"Tahoma\", Font.BOLD, 12));\n\t\tlblLecturer.setBounds(70, 37, 96, 23);\n\t\tpanel_3.add(lblLecturer);\n\n\t\t lec1 = new JComboBox();\n\t\t lec1.setModel(new DefaultComboBoxModel(new String[] {\"Select Lecturer 1\"}));\n\t\tlec1.setBounds(254, 38, 239, 28);\n\t\tpanel_3.add(lec1);\n\n\t\tJLabel label_1 = new JLabel(\"Tag\");\n\t\tlabel_1.setForeground(Color.WHITE);\n\t\tlabel_1.setBackground(Color.WHITE);\n\t\tlabel_1.setFont(new Font(\"Tahoma\", Font.BOLD, 12));\n\t\tlabel_1.setBounds(72, 278, 132, 23);\n\t\tpanel_3.add(label_1);\n\n\t\t subname = new JComboBox();\n\t\n\t\t subname.setModel(new DefaultComboBoxModel(new String[] {\"Select Subject\"}));\n\t\tsubname.setBounds(254, 159, 239, 28);\n\t\tpanel_3.add(subname);\n\n\t\t tag = new JComboBox();\n\t\t tag.setModel(new DefaultComboBoxModel(new String[] {\"Select Tag\"}));\n\t\ttag.setBounds(254, 279, 239, 28);\n\t\tpanel_3.add(tag);\n\n\t\tJLabel label_2 = new JLabel(\"Group/Sub Group ID\");\n\t\tlabel_2.setForeground(Color.WHITE);\n\t\tlabel_2.setBackground(Color.WHITE);\n\t\tlabel_2.setFont(new Font(\"Tahoma\", Font.BOLD, 12));\n\t\tlabel_2.setBounds(611, 37, 150, 23);\n\t\tpanel_3.add(label_2);\n\n\t\t groupId = new JComboBox();\n\t\tgroupId.setModel(new DefaultComboBoxModel(new String[] {\"Select Group/Sub Group ID\"}));\n\t\tgroupId.setBounds(771, 38, 239, 28);\n\t\tpanel_3.add(groupId);\n\n\t\tJLabel lblLecturer_1 = new JLabel(\"Lecturer 2\");\n\t\tlblLecturer_1.setForeground(Color.WHITE);\n\t\tlblLecturer_1.setBackground(Color.WHITE);\n\t\tlblLecturer_1.setFont(new Font(\"Tahoma\", Font.BOLD, 12));\n\t\tlblLecturer_1.setBounds(70, 98, 149, 23);\n\t\tpanel_3.add(lblLecturer_1);\n\n\t\tJLabel label_4 = new JLabel(\"Subject Name\");\n\t\tlabel_4.setForeground(Color.WHITE);\n\t\tlabel_4.setBackground(Color.WHITE);\n\t\tlabel_4.setFont(new Font(\"Tahoma\", Font.BOLD, 12));\n\t\tlabel_4.setBounds(70, 158, 149, 23);\n\t\tpanel_3.add(label_4);\n\n\t\tJLabel label_5 = new JLabel(\"Selected Subject Code\");\n\t\tlabel_5.setForeground(Color.WHITE);\n\t\tlabel_5.setBackground(Color.WHITE);\n\t\tlabel_5.setFont(new Font(\"Tahoma\", Font.BOLD, 12));\n\t\tlabel_5.setBounds(70, 217, 149, 23);\n\t\tpanel_3.add(label_5);\n\n\t\tJLabel label_6 = new JLabel(\"No Of Students\");\n\t\tlabel_6.setForeground(Color.WHITE);\n\t\tlabel_6.setBackground(Color.WHITE);\n\t\tlabel_6.setFont(new Font(\"Tahoma\", Font.BOLD, 12));\n\t\tlabel_6.setBounds(611, 98, 108, 23);\n\t\tpanel_3.add(label_6);\n\n\t\tJSpinner students = new JSpinner();\n\t\tstudents.setFont(new Font(\"Tahoma\", Font.BOLD, 12));\n\t\tstudents.setBounds(771, 98, 239, 28);\n\t\tpanel_3.add(students);\n\n\t\tJLabel label_7 = new JLabel(\"Duration(hrs)\");\n\t\tlabel_7.setForeground(Color.WHITE);\n\t\tlabel_7.setBackground(Color.WHITE);\n\t\tlabel_7.setFont(new Font(\"Tahoma\", Font.BOLD, 12));\n\t\tlabel_7.setBounds(611, 158, 108, 23);\n\t\tpanel_3.add(label_7);\n\n\t\tJSpinner duration = new JSpinner();\n\t\tduration.setFont(new Font(\"Tahoma\", Font.BOLD, 12));\n\t\tduration.setBounds(771, 158, 239, 28);\n\t\tpanel_3.add(duration);\n\n\t\t\n\t\t\n\t\t\n\n\t\tJButton btnClear = new JButton(\"CLEAR\");\n\t\tbtnClear.setToolTipText(\"Click button to clear\");\n\t\t\n\t\tbtnClear.setForeground(Color.WHITE);\n\t\tbtnClear.setFont(new Font(\"Tahoma\", Font.BOLD, 14));\n\t\tbtnClear.setEnabled(true);\n\t\tbtnClear.setBackground(Color.BLACK);\n\t\tbtnClear.setBounds(611, 403, 150, 46);\n\t\tpanel_3.add(btnClear);\n\t\t\n\t\t lec2 = new JComboBox();\n\t\t lec2.setModel(new DefaultComboBoxModel(new String[] {\"-\"}));\n\t\tlec2.setBounds(254, 100, 239, 28);\n\t\tpanel_3.add(lec2);\n\t\t\n\t\tJLabel lblSessionSignature = new JLabel(\"Session Signature\");\n\t\tlblSessionSignature.setForeground(Color.WHITE);\n\t\tlblSessionSignature.setBackground(Color.WHITE);\n\t\tlblSessionSignature.setFont(new Font(\"Tahoma\", Font.BOLD, 12));\n\t\tlblSessionSignature.setBounds(621, 243, 126, 23);\n\t\tpanel_3.add(lblSessionSignature);\n\t\t\n\t\t\n\t\t\n\t\t//generate session signature\n\t\tJButton btnGensign = new JButton(\"GENERATE SESSION SIGNATURE\");\n\t\tbtnGensign.setToolTipText(\"Click button to generate session signature\");\n\t\tbtnGensign.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\n\t\t\t\tString lecregx = \"-\";\n\t\t\t\tString lecrs = \"----------Select Lecturer 1 ----------\";\n\t\t\t\tString namer = \"----------Select Subject----------\";\n\t\t\t\tString tagr = \"------------Select Tag ------------\";\n\t\t\t\tString grpidr = \"--------Select Group/Sub Group ID--------\";\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tif(lec1.getSelectedItem().toString().equals(lecrs)||subname.getSelectedItem().toString().equals(namer)|| tag.getSelectedItem().toString().equals(tagr)|| groupId.getSelectedItem().toString().equals(grpidr)|| students.getValue().equals(0)|| duration.getValue().equals(0))\n\t\t\t\t{\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \" Please Enter Values\",\"Alert\",JOptionPane.WARNING_MESSAGE);\n\t\n\t\t\t\t\t\n\t\t\t\t}else {\n\t\t\t\tif(lec2.getSelectedItem().toString().matches(lecregx ));\n\t\t\t\t{\n\t\t\t\t\tsign.setText(lec1.getSelectedItem().toString()+ \" - \"+ txtSubcod.getText()+\" - \"+ subname.getSelectedItem().toString()\n\t\t\t\t\t\t\t+\" - \"+tag.getSelectedItem().toString()+\" - \"+groupId.getSelectedItem().toString()+\" - \"+students.getValue().toString()+\" - \"+\n\t\t\t\t\t\t\tduration.getValue().toString());\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(!(lec2.getSelectedItem().toString().matches(lecregx)))\n\t\t\t\t{\n\t\t\t\tsign.setText(lec1.getSelectedItem().toString()+\" - \" + lec2.getSelectedItem().toString()+ \" - \"+ txtSubcod.getText()+\" - \"+ subname.getSelectedItem().toString()\n\t\t\t\t\t\t+\" - \"+tag.getSelectedItem().toString()+\" - \"+groupId.getSelectedItem().toString()+\" - \"+students.getValue().toString()+\" - \"+\n\t\t\t\t\t\tduration.getValue().toString());\n\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tJLabel label8 = new JLabel(\"Session Signature Generated Successfully\");\n\t\t\t\tlabel8.setHorizontalAlignment(SwingConstants.CENTER);\n\t\t\t\tJOptionPane.showMessageDialog(null, label8);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t\n\t\t\n\t\t// Add new session\n\t\tJButton btnAdd = new JButton(\"ADD\");\n\t\tbtnAdd.setToolTipText(\"Click button to save details\");\n\t\tbtnAdd.setForeground(Color.WHITE);\n\t\tbtnAdd.setFont(new Font(\"Tahoma\", Font.BOLD, 14));\n\t\tbtnAdd.setBackground(Color.BLACK);\n\t\tbtnAdd.setBounds(339, 403, 154, 46);\n\t\tpanel_3.add(btnAdd);\n\t\tbtnAdd.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\n\t\t\t\tString lect1 = lec1.getSelectedItem().toString();\n\t\t\t\tString lect2 = lec2.getSelectedItem().toString();\n\t\t\t\tString subjname = subname.getSelectedItem().toString();\n\t\t\t\tString subjcode = txtSubcod.getText();\n\t\t\t\tString tags = tag.getSelectedItem().toString();\n\t\t\t\tString grpId = groupId.getSelectedItem().toString();\n\t\t\t\tString count = students.getValue().toString();\n\t\t\t\tString hour = duration.getValue().toString();\n\t\t\t\tString signature =sign.getText();\n\t\t\t\t\n\t\t\t\t\n\t\t\n\t\t\t\tString lecrs = \"----------Select Lecturer 1 ----------\";\n\t\t\t\tString namer = \"----------Select Subject----------\";\n\t\t\t\tString tagr = \"------------Select Tag ------------\";\n\t\t\t\tString grpidr = \"--------Select Group/Sub Group ID--------\";\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tif(sign.getText().equals(\"\")) {\n\t\t\t\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Please Generate Session Signature.\",\"Alert\",JOptionPane.WARNING_MESSAGE);\n\n\t\t\t\t}else if(lec1.getSelectedItem().toString().equals(lec2.getSelectedItem().toString())){\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Select a different lecturer for lecturer 2\",\"Alert\",JOptionPane.WARNING_MESSAGE);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\telse {\n\n\t\t\t\t\ttry {\n\n\t\t\t\t\t\tif(lec1.getSelectedItem().toString().equals(lecrs) || subname.getSelectedItem().equals(namer) || txtSubcod.getText().equals(\"\") ||tag.getSelectedItem().toString().equals(tagr)||groupId.getSelectedItem().toString().equals(grpidr)|| duration.getValue().equals(0)||students.getValue().equals(0)) {\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \" Please Fill All the Fields\",\"Failed\",JOptionPane.WARNING_MESSAGE);\n\n\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\tConnection con = DBConnection.connect();\n\t\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\tString query = \"INSERT INTO session values(null, '\" + lect1 + \"','\" + lect2 + \"','\" + subjcode + \"', '\" + subjname + \"', '\" + tags + \"', '\" + grpId + \"','\"+count+\"','\"+hour+\"','\"+signature+\"')\";\n\n\t\t\t\t\t\tStatement sta = con.createStatement();\n\t\t\t\t\t\tint x = sta.executeUpdate(query);\n\t\t\t\t\t\tif (x == 0) {\n\n\n\t\t\t\t\t\t\tJLabel label = new JLabel(\"This is alredy exist\");\n\t\t\t\t\t\t\tlabel.setHorizontalAlignment(SwingConstants.CENTER);\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null, label);\n\n\n\t\t\t\t\t\t\t// JOptionPane.showMessageDialog(btnNewButton, \"This is alredy exist\");\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t//JOptionPane.showMessageDialog(btnNewButton,\"Welcome, Student Group details successfully inserted!\");\n\n\t\t\t\t\t\t\tJLabel label = new JLabel(\"Session Created Successfully\");\n\t\t\t\t\t\t\tlabel.setHorizontalAlignment(SwingConstants.CENTER);\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null, label);\n\n\n\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcon.close();\n\t\t\t\t\t}} catch (Exception exception) {\n\t\t\t\t\t\tSystem.out.println(\"Failed!!\");\n\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t\n\t\tbtnGensign.setForeground(Color.WHITE);\n\t\tbtnGensign.setFont(new Font(\"Tahoma\", Font.BOLD, 13));\n\t\tbtnGensign.setBackground(Color.GRAY);\n\t\tbtnGensign.setBounds(722, 295, 297, 36);\n\t\tpanel_3.add(btnGensign);\n\t\t\n\t\ttxtSubcod = new JTextField();\n\t\ttxtSubcod.setBackground(Color.WHITE);\n\t\ttxtSubcod.setEditable(false);\n\t\ttxtSubcod.setFont(new Font(\"Microsoft JhengHei UI\", Font.BOLD, 12));\n\t\ttxtSubcod.setBounds(254, 219, 239, 28);\n\t\tpanel_3.add(txtSubcod);\n\t\ttxtSubcod.setColumns(10);\n\t\t\n\t\t\n\t\t//Display subCode when entering subName\n\t\t subname.addActionListener(new ActionListener() {\n\t\t\t \tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t \t\t\n\t\t\t \t\ttry {\n\t\t\t\t\t\tString subject = subname.getSelectedItem().toString();\n\t\t\t\t\t\tConnection con = DBConnection.connect();\n\t\t\t\t\t\tString query = \"select SubjectCode from SUbjects where SubjectName = '\" + subject + \"'\";\n\t\t\t\t\t\tPreparedStatement pst = con.prepareStatement(query);\n\t\t\t\t\t\tResultSet rs = pst.executeQuery();\n\t\t\t\t\t\t\n\t\t\t\t\t\twhile (rs.next()) {\n\n\t\t\t\t\t\t\tString name = rs.getString(\"SubjectCode\");\n\t\t\t\t\t\t\ttxtSubcod.setText(name);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcon.close();\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t \t}\n\t\t\t });\n\t\t\n\t\tJPanel panel_2_1 = new JPanel();\n\t\tpanel_2_1.setBackground(Color.GRAY);\n\t\tpanel_2_1.setBounds(0, 615, 174, 48);\n\t\tAddsessFrm.getContentPane().add(panel_2_1);\n\t\t\n\t\tJButton btnDelete = new JButton(\"<<Back\");\n\t\tbtnDelete.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\n\t\t\t\tDashboard dashboard=new Dashboard();\n\t\t\t\tDashboard.main(null);\n\t\t\t\tAddsessFrm.setVisible(false);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t});\n\t\t\n\t\tbtnDelete.setForeground(new Color(240, 248, 255));\n\t\tbtnDelete.setFont(new Font(\"SansSerif\", Font.BOLD, 13));\n\t\tbtnDelete.setBackground(Color.BLACK);\n\t\tpanel_2_1.add(btnDelete);\n\t\t\n\t\tJPanel panel_1 = new JPanel();\n\t\tpanel_1.setBackground(Color.GRAY);\n\t\tpanel_1.setBounds(0, 466, 174, 150);\n\t\tAddsessFrm.getContentPane().add(panel_1);\n\t\t\n\t\tJButton btnManageSession = new JButton(\"MANAGE SESSION\");\n\t\tbtnManageSession.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\n\t\t\t\tManage_Sessions managesession=new Manage_Sessions();\n\t\t\t\tManage_Sessions.main(null);\n\t\t\t\tAddsessFrm.setVisible(false);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t});\n\t\t\n\t\tbtnManageSession.setForeground(Color.WHITE);\n\t\tbtnManageSession.setFont(new Font(\"Arial Black\", Font.BOLD, 11));\n\t\tbtnManageSession.setBackground(Color.BLACK);\n\t\tbtnManageSession.setBounds(0, 435, 174, 35);\n\t\tAddsessFrm.getContentPane().add(btnManageSession);\n\t\t\n\t\tJButton btnManageLsession = new JButton(\"ADD SESSION\");\n\t\tbtnManageLsession.setForeground(Color.RED);\n\t\tbtnManageLsession.setFont(new Font(\"Arial Black\", Font.BOLD, 11));\n\t\tbtnManageLsession.setBackground(Color.BLACK);\n\t\tbtnManageLsession.setBounds(0, 400, 174, 35);\n\t\tAddsessFrm.getContentPane().add(btnManageLsession);\n\t\t\n\t\tJButton btnUpdateSession = new JButton(\"MANAGE SUBJECTS\");\n\t\t\n\n\t\tbtnUpdateSession.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\n\t\t\t\tManage_Subjects managesubjects=new Manage_Subjects();\n\t\t\t\tManage_Subjects.main(null);\n\t\t\t\tAddsessFrm.setVisible(false);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t});\n\n\t\tbtnUpdateSession.setForeground(Color.WHITE);\n\t\tbtnUpdateSession.setFont(new Font(\"Arial Black\", Font.BOLD, 11));\n\t\tbtnUpdateSession.setBackground(Color.BLACK);\n\t\tbtnUpdateSession.setBounds(0, 372, 174, 29);\n\t\tAddsessFrm.getContentPane().add(btnUpdateSession);\n\t\t\n\t\tJButton btnAddSession = new JButton(\"ADD SUBJECT\");\n\t\t\n\t\tbtnAddSession.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\n\t\t\t\tAdd_Subjects addsubjects=new Add_Subjects();\n\t\t\t\tAdd_Subjects.main(null);\n\t\t\t\tAddsessFrm.setVisible(false);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t});\n\n\t\tbtnAddSession.setForeground(Color.WHITE);\n\t\tbtnAddSession.setFont(new Font(\"Arial Black\", Font.BOLD, 11));\n\t\tbtnAddSession.setBackground(Color.BLACK);\n\t\tbtnAddSession.setBounds(0, 337, 174, 35);\n\t\tAddsessFrm.getContentPane().add(btnAddSession);\n\t\t\n\t\tJButton btnManageLecturer = new JButton(\"MANAGE LECTURERS\");\n\n\t\n\t\t\n\t\tbtnManageLecturer.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\n\t\t\t\tManage_Lecturer managelecture=new Manage_Lecturer();\n\t\t\t\tManage_Lecturer.main(null);\n\t\t\t\tAddsessFrm.setVisible(false);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t});\n\t\t\n\t\tbtnManageLecturer.setForeground(Color.WHITE);\n\t\tbtnManageLecturer.setFont(new Font(\"Arial Black\", Font.BOLD, 11));\n\t\tbtnManageLecturer.setBackground(Color.BLACK);\n\t\tbtnManageLecturer.setBounds(0, 309, 174, 29);\n\t\tAddsessFrm.getContentPane().add(btnManageLecturer);\n\t\t\n\t\tJButton btnAddLecturer = new JButton(\"ADD LECTURER\");\n\t\n\t\t\n\t\tbtnAddLecturer.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\n\t\t\t\tAdd_Lecturer addlecturer=new Add_Lecturer();\n\t\t\t\tAdd_Lecturer.main(null);\n\t\t\t\tAddsessFrm.setVisible(false);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t});\n\t\t\n\t\tbtnAddLecturer.setForeground(Color.WHITE);\n\t\tbtnAddLecturer.setFont(new Font(\"Arial Black\", Font.BOLD, 11));\n\t\tbtnAddLecturer.setBackground(Color.BLACK);\n\t\tbtnAddLecturer.setBounds(0, 274, 174, 35);\n\t\tAddsessFrm.getContentPane().add(btnAddLecturer);\n\t\t\n\t\tJPanel panel_1_1 = new JPanel();\n\t\tpanel_1_1.setBackground(Color.GRAY);\n\t\tpanel_1_1.setBounds(0, 127, 174, 150);\n\t\tAddsessFrm.getContentPane().add(panel_1_1);\n\t\t\n\t\ttxtTimeTableManagement = new JTextField();\n\t\ttxtTimeTableManagement.setText(\" Time Table Management System\");\n\t\ttxtTimeTableManagement.setForeground(Color.WHITE);\n\t\ttxtTimeTableManagement.setFont(new Font(\"Tahoma\", Font.PLAIN, 23));\n\t\ttxtTimeTableManagement.setEditable(false);\n\t\ttxtTimeTableManagement.setColumns(10);\n\t\ttxtTimeTableManagement.setBackground(Color.GRAY);\n\t\ttxtTimeTableManagement.setBounds(0, 27, 1334, 66);\n\t\tAddsessFrm.getContentPane().add(txtTimeTableManagement);\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t///Add header navigation bar\n\t\t\n\t\t\n\t\tJMenuBar menuBar = new JMenuBar();\n\t\tmenuBar.setForeground(Color.BLACK);\n\t\tmenuBar.setBorderPainted(false);\n\t\tmenuBar.setBorder(null);\n\t\tmenuBar.setBackground(Color.BLACK);\n\t\tmenuBar.setBounds(0, 0, 1344, 27);\n\t\tAddsessFrm.getContentPane().add(menuBar);\n\t\t\n\t\t\n\t\t\n\t\tJMenu mnNewMenu = new JMenu(\"Category\");\n\t\tmnNewMenu.setFont(new Font(\"Segoe UI\", Font.BOLD, 15));\n\t\tmnNewMenu.setBackground(Color.BLACK);\n\t\tmnNewMenu.setForeground(Color.YELLOW);\n\t\tmenuBar.add(mnNewMenu);\n\t\t\n\t\tJMenu mnNewMenu_1 = new JMenu(\"Lectures & Subjects\");\n\t\tmnNewMenu_1.setBackground(new Color(128, 128, 128));\n\t\tmnNewMenu.add(mnNewMenu_1);\n\t\t\n\t\tJMenuItem mntmNewMenuItem = new JMenuItem(\"Add Lecture\");\n\t\tmntmNewMenuItem.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\n\t\t\t\tAdd_Lecturer add_Lecturer=new Add_Lecturer();\n\t\t\t\tAdd_Lecturer.main(null);\n\t\t\t\tAddsessFrm.setVisible(false);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t});\n\t\tmnNewMenu_1.add(mntmNewMenuItem);\n\t\t\n\t\tJMenuItem mntmNewMenuItem_1 = new JMenuItem(\"Add Subjects\");\n\t\tmntmNewMenuItem_1.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\n\t\t\t\tAdd_Subjects add_Subjects=new Add_Subjects();\n\t\t\t\tAdd_Subjects.main(null);\n\t\t\t\tAddsessFrm.setVisible(false);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t});\n\t\tmnNewMenu_1.add(mntmNewMenuItem_1);\n\t\t\n\t\tJMenuItem mntmNewMenuItem_2 = new JMenuItem(\"Manage Lecturers\");\n\t\tmntmNewMenuItem_2.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\n\t\t\t\tManage_Lecturer manage_Lecturer=new Manage_Lecturer();\n\t\t\t\tManage_Lecturer.main(null);\n\t\t\t\tAddsessFrm.setVisible(false);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t});\n\t\tmnNewMenu_1.add(mntmNewMenuItem_2);\n\t\t\n\t\tJMenuItem mntmNewMenuItem_3 = new JMenuItem(\"Manage Subjects\");\n\t\tmntmNewMenuItem_3.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\n\t\t\t\tManage_Subjects manage_Subjects=new Manage_Subjects();\n\t\t\t\tManage_Subjects.main(null);\n\t\t\t\tAddsessFrm.setVisible(false);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t});\n\t\tmnNewMenu_1.add(mntmNewMenuItem_3);\n\t\t\n\t\tJMenuBar menuBar_1 = new JMenuBar();\n\t\tmnNewMenu_1.add(menuBar_1);\n\t\t\n\t\tJMenu mnNewMenu_2 = new JMenu(\"Session & Time Allocation\");\n\t\tmnNewMenu.add(mnNewMenu_2);\n\t\t\n\t\tJMenuItem mntmNewMenuItem_5 = new JMenuItem(\"Add Session\");\n\t\tmntmNewMenuItem_5.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\n\t\t\t\tAdd_Session add_Session=new Add_Session();\n\t\t\t\tAdd_Session.main(null);\n\t\t\t\tAddsessFrm.setVisible(false);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t});\n\t\tmnNewMenu_2.add(mntmNewMenuItem_5);\n\t\t\n\t\tJMenuItem mntmNewMenuItem_4 = new JMenuItem(\"Manage Not Available Times\");\n\t\tmntmNewMenuItem_4.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\n\t\t\t\tManage_Session_Rooms manage_Not_Available_Times=new Manage_Session_Rooms();\n\t\t\t\tManage_Session_Rooms.main(null);\n\t\t\t\tAddsessFrm.setVisible(false);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t});\n\t\tmnNewMenu_2.add(mntmNewMenuItem_4);\n\t\t\n\t\tJMenuItem mntmNewMenuItem_6 = new JMenuItem(\"Consecutive Session rooms\");\n\t\tmntmNewMenuItem_6.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\n\t\t\t\tConsecutiveSessionRooms manage_Session_Rooms=new ConsecutiveSessionRooms();\n\t\t\t\tConsecutiveSessionRooms.main(null);\n\t\t\t\tAddsessFrm.setVisible(false);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t});\n\t\t\n\t\tmnNewMenu_2.add(mntmNewMenuItem_6);\n\t\t\n\t\tJMenuItem mntmNewMenuItem_7 = new JMenuItem(\"Manage Sessions\");\n\t\tmntmNewMenuItem_7.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\n\t\t\t\tManage_Sessions manage_Sessions=new Manage_Sessions();\n\t\t\t\tManage_Sessions.main(null);\n\t\t\t\tAddsessFrm.setVisible(false);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t});\n\t\t\n\t\t\n\t\tmnNewMenu_2.add(mntmNewMenuItem_7);\n\t\t\n\t\t///\n\t\t\n\t\t\n\t\tJMenuItem mntmNewMenuItem_21 = new JMenuItem(\"Session Rooms\");\n\t\tmntmNewMenuItem_21.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\n\t\t\t\tSessionsRooms manage_Session_Rooms=new SessionsRooms();\n\t\t\t\tSessionsRooms.main(null);\n\t\t\t\tAddsessFrm.setVisible(false);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t});\n\t\t\n\t\tmnNewMenu_2.add(mntmNewMenuItem_21);\n\t\t///\n\t\t\n\t\t\n\t\t\n\t\t\n\t\tJMenuItem mntmNewMenuItem_8 = new JMenuItem(\"Not Available Time\");\n\t\tmntmNewMenuItem_8.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\n\t\t\t\tNot_Available_Time not_Available_Time=new Not_Available_Time();\n\t\t\t\tNot_Available_Time.main(null);\n\t\t\t\tAddsessFrm.setVisible(false);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t});\n\t\t\n\t\t\n\t\tmnNewMenu_2.add(mntmNewMenuItem_8);\n\t\t\n\t\tJMenuItem mntmNewMenuItem_9 = new JMenuItem(\"Sessions & Not Available Time Allocation Consecutive\");\n\t\tmntmNewMenuItem_9.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\n\t\t\t\tSessionsANDnotAvailableTimeAllocationConsecutive sessionsANDnotAvailableTimeAllocationConsecutive=new SessionsANDnotAvailableTimeAllocationConsecutive();\n\t\t\t\tSessionsANDnotAvailableTimeAllocationConsecutive.main(null);\n\t\t\t\tAddsessFrm.setVisible(false);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t});\n\t\tmnNewMenu_2.add(mntmNewMenuItem_9);\n\t\t\n\t\t\n\t\tJMenuItem mntmNewMenuItem_10 = new JMenuItem(\"Sessions & Not Available Time Allocation Non Overlaping\");\n\t\tmntmNewMenuItem_10.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\n\t\t\t\tSessionsANDnotAvailableTimeAllocationNoneOverlaping sessionsANDnotAvailableTimeAllocationNoneOverlaping=new SessionsANDnotAvailableTimeAllocationNoneOverlaping();\n\t\t\t\tSessionsANDnotAvailableTimeAllocationNoneOverlaping.main(null);\n\t\t\t\tAddsessFrm.setVisible(false);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t});\n\t\tmnNewMenu_2.add(mntmNewMenuItem_10);\n\t\t\n\t\t\n\t\tJMenuItem mntmNewMenuItem_31 = new JMenuItem(\"Sessions & Not Available Time Allocation Parallel\");\n\t\tmntmNewMenuItem_31.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\n\t\t\t\tSessionsANDnotAvailableTimeAllocationParallel sessionsANDnotAvailableTimeAllocationParallel=new SessionsANDnotAvailableTimeAllocationParallel();\n\t\t\t\tSessionsANDnotAvailableTimeAllocationParallel.main(null);\n\t\t\t\tAddsessFrm.setVisible(false);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t});\n\t\tmnNewMenu_2.add(mntmNewMenuItem_31);\n\n\n\t\t\n\t\tJMenu mnNewMenu_3 = new JMenu(\"Working Days & Hours \");\n\t\tmnNewMenu.add(mnNewMenu_3);\n\t\t\n\t\tJMenuItem mntmNewMenuItem_11 = new JMenuItem(\"Add Workingdays Hours\");\n\t\tmntmNewMenuItem_11.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\n\t\t\t\tAdd_Workingdays_Hours add_Workingdays_Hours=new Add_Workingdays_Hours();\n\t\t\t\tAdd_Workingdays_Hours.main(null);\n\t\t\t\tAddsessFrm.setVisible(false);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t});\n\t\tmnNewMenu_3.add(mntmNewMenuItem_11);\n\t\t\n\t\t\n\t\t\n\t\tJMenuItem mntmNewMenuItem_65 = new JMenuItem(\"Manage Workingdays Hours\");\n\t\tmntmNewMenuItem_65.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\n\t\t\t\tManage_Workingdays_Hours add_Workingdays_Hours=new Manage_Workingdays_Hours();\n\t\t\t\tManage_Workingdays_Hours.main(null);\n\t\t\t\tAddsessFrm.setVisible(false);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t});\n\t\tmnNewMenu_3.add(mntmNewMenuItem_65);\n\t\t\n\t\t\n\t\tJMenu mnNewMenu_4 = new JMenu(\"Student & Tags\");\n\t\tmnNewMenu.add(mnNewMenu_4);\n\t\t\n\t\tJMenuItem mntmNewMenuItem_14 = new JMenuItem(\"Add Student Groups\");\n\t\t\n\t\tmntmNewMenuItem_14.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\n\t\t\t\tAdd_Student_Groups addstudentgroups=new Add_Student_Groups();\n\t\t\t\tAdd_Student_Groups.main(null);\n\t\t\t\tAddsessFrm.setVisible(false);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t});\n\t\t\n\t\t\n\t\tmnNewMenu_4.add(mntmNewMenuItem_14);\n\t\t\n\t\tJMenuItem mntmNewMenuItem_15 = new JMenuItem(\"Add Tag\");\n\t\tmntmNewMenuItem_15.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\n\t\t\t\tAdd_Tag addtags=new Add_Tag();\n\t\t\t\tAdd_Tag.main(null);\n\t\t\t\tAddsessFrm.setVisible(false);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t});\n\t\t\n\t\tmnNewMenu_4.add(mntmNewMenuItem_15);\n\t\t\n\t\tJMenuItem mntmNewMenuItem_16 = new JMenuItem(\"Manage Student Groups\");\n\t\t\n\t\t\n\t\tmntmNewMenuItem_16.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\n\t\t\t\tManage_Student_Groups managestudentgroups=new Manage_Student_Groups();\n\t\t\t\tManage_Student_Groups.main(null);\n\t\t\t\tAddsessFrm.setVisible(false);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t});\n\t\t\n\t\tmnNewMenu_4.add(mntmNewMenuItem_16);\n\t\t\n\t\tJMenuItem mntmNewMenuItem_17 = new JMenuItem(\"Manage Tags\");\n\t\t\n\t\t\n\t\tmntmNewMenuItem_17.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\n\t\t\t\tManage_Tags managetags=new Manage_Tags();\n\t\t\t\tManage_Tags.main(null);\n\t\t\t\tAddsessFrm.setVisible(false);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t});\n\t\tmnNewMenu_4.add(mntmNewMenuItem_17);\n\t\t\n\t\tJMenu mnNewMenu_5 = new JMenu(\"Location & Statistics\");\n\t\tmnNewMenu.add(mnNewMenu_5);\n\t\t\n\n\t\t\n\t\tJMenuItem mntmNewMenuItem_19 = new JMenuItem(\"Add Locations\");\n\t\t\n\t\t\n\t\t\n\t\tmntmNewMenuItem_19.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\n\t\t\t\tAdd_Locations addlocations=new Add_Locations();\n\t\t\t\tAdd_Locations.main(null);\n\t\t\t\tAddsessFrm.setVisible(false);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t});\n\t\tmnNewMenu_5.add(mntmNewMenuItem_19);\n\t\t\n\t\tJMenuItem mntmNewMenuItem_30 = new JMenuItem(\"Manage Locations\");\n\t\t\n\t\t\n\t\t\n\t\tmntmNewMenuItem_30.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\n\t\t\t\tManage_Locations managelocations=new Manage_Locations();\n\t\t\t\tManage_Locations.main(null);\n\t\t\t\tAddsessFrm.setVisible(false);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t});\n\t\t\n\t\tmnNewMenu_5.add(mntmNewMenuItem_30);\n\t\t\n\t\t\n\tJMenuItem mntmNewMenuItem_34 = new JMenuItem(\"Visualizing Static\");\n\t\t\n\t\t\n\t\t\n\t\tmntmNewMenuItem_34.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\n\t\t\t\tVisualizing_static visualizing_static=new Visualizing_static();\n\t\t\t\tVisualizing_static.main(null);\n\t\t\t\tAddsessFrm.setVisible(false);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t});\n\t\t\n\t\tmnNewMenu_5.add(mntmNewMenuItem_34);\n\t\t\n\t\t\n\t\t\n\t\tJMenu mnNewMenu_33 = new JMenu(\"Generate Time Tables\");\n\t\tmnNewMenu.add(mnNewMenu_33);\n\t\t\n\t\tJMenuItem mntmNewMenuItem_111 = new JMenuItem(\"Lecturer\");\n\t\tmntmNewMenuItem_111.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\n\t\t\t\tLecturer lec=new Lecturer();\n\t\t\t\tLecturer.main(null);\n\t\t\t\tAddsessFrm.setVisible(false);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t});\n\t\tmnNewMenu_33.add(mntmNewMenuItem_111);\n\t\t\n\t\t\n\t\t\n\t\tJMenuItem mntmNewMenuItem_655 = new JMenuItem(\"Student\");\n\t\tmntmNewMenuItem_655.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\n\t\t\t\tStudent student=new Student();\n\t\t\t\tStudent.main(null);\n\t\t\t\tAddsessFrm.setVisible(false);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t});\n\t\tmnNewMenu_33.add(mntmNewMenuItem_655);\n\n\t\t\n\t\tJMenuItem mntmNewMenuItem_432 = new JMenuItem(\"Location\");\n\t\tmntmNewMenuItem_432.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\n\t\t\t\tLocation location=new Location();\n\t\t\t\tLocation.main(null);\n\t\t\t\tAddsessFrm.setVisible(false);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t});\n\t\tmnNewMenu_33.add(mntmNewMenuItem_432);\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t////////////////////////////////////////////////////////////\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\tJMenu mnNewMenu_7 = new JMenu(\"About\");\n\t\t\n\t\t\n\n\n\t\tmnNewMenu_7.setFont(new Font(\"Segoe UI\", Font.BOLD, 15));\n\t\tmnNewMenu_7.setBackground(Color.BLACK);\n\t\tmnNewMenu_7.setForeground(Color.WHITE);\n\t\tmenuBar.add(mnNewMenu_7);\n\t\t\n\t\tJMenuItem mntmNewMenuItem_22 = new JMenuItem(\"About\");\n\t\t\n\t\t\n\t\t\n\t\t\n\t\tmntmNewMenuItem_22.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\n\t\t\t\tStartUp startup=new StartUp();\n\t\t\t\tStartUp.main(null);\n\t\t\t\tAddsessFrm.setVisible(false);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t});\n\t\t\n\t\tmnNewMenu_7.add(mntmNewMenuItem_22);\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t//////////////////////////\n\n\t\t\t\t\n\t\t\t\t\t\tJPanel panel_5 = new JPanel();\n\t\t\t\t\t\tpanel_5.setBounds(0, 92, 1334, 38);\n\t\t\t\t\t\tAddsessFrm.getContentPane().add(panel_5);\n\t\t\t\t\t\tpanel_5.setForeground(Color.RED);\n\t\t\t\t\t\tpanel_5.setBackground(Color.BLACK);\n\t\t\t\t\t\tpanel_5.setLayout(null);\n\t\t\t\t\t\tpanel_5.setBorder(new MatteBorder(0, 0, 1, 0, (Color) Color.LIGHT_GRAY));\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tJLabel lblAddNewSession = new JLabel(\"ADD SESSION\");\n\t\t\t\t\t\t\t\tbtnManageLsession.addActionListener(new ActionListener() {\n\t\t\t\t\t\t\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tAdd_Session addsession=new Add_Session();\n\t\t\t\t\t\t\t\t\t\tAdd_Session.main(null);\n\t\t\t\t\t\t\t\t\t\tframe.setVisible(false);\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tlblAddNewSession.setHorizontalAlignment(SwingConstants.CENTER);\n\t\t\t\t\t\t\t\tlblAddNewSession.setForeground(Color.RED);\n\t\t\t\t\t\t\t\tlblAddNewSession.setFont(new Font(\"Arial Black\", Font.BOLD, 20));\n\t\t\t\t\t\t\t\tlblAddNewSession.setBounds(507, 0, 278, 31);\n\t\t\t\t\t\t\t\tpanel_5.add(lblAddNewSession);\n\n\t\t\t\t\n\t\t\t\t\n\t\t//clear button\n\t\tbtnClear.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t\ttxtSubcod.setText(\"\");\n\t\t\t\tlec1.setSelectedIndex(0);\n\t\t\t\tlec2.setSelectedIndex(0);\n\t\t\t\tsubname.setSelectedIndex(0);\n\t\t\t\ttag.setSelectedIndex(0);\n\t\t\t\tgroupId.setSelectedIndex(0);\n\t\t\t\tsign.setText(\"\");\n\t\t\t\tstudents.setValue(0);\n\t\t\t\tduration.setValue(0);\n\t\t\t\t\n\t\t\t}\n\t\t});\n\n\t\t//load data to dropdown lec1\n\t\tloadLecturer1();\n\t\t//load data to dropdown lec2\n\t\tloadLecturer2();\n\t\t//load data to dropdown subject name\n\t\tloadSubjectName();\n\t\t//load data to dropdown tag\n\t\tloadTag();\n\t\t//load data to dropdown group id\n\t\tloadGroup();\n\t\t//load data to dropdown Subgroup id\n\t\tloadSubGroup();\n\t\n\t\n\t}", "public void addToJPanel() {\r\n\t\tedit_terrain.add(header);\r\n\t\tJLabel blank1 = new JLabel(\"\");\r\n\t\tedit_terrain.add(blank1);\r\n\t\t\r\n\t\tedit_terrain.add(add_terrain);\r\n\t\tJLabel blank2 = new JLabel(\"\");\r\n\t\tedit_terrain.add(blank2);\r\n\t\t\r\n\t\tedit_terrain.add(scale_lb);\r\n\t\tedit_terrain.add(scale);\r\n\t\t\r\n\t\tedit_terrain.add(shape_lb);\r\n\t\tedit_terrain.add(shape_cb);\r\n\t\t\r\n\t\tedit_terrain.add(material_lb);\r\n\t\tedit_terrain.add(material_cb);\r\n\t\t\r\n\t\tedit_terrain.add(colour_lb);\r\n\t\tedit_terrain.add(colour_cb);\r\n\t\t\r\n\t\tedit_terrain.add(position_x_lb);\r\n\t\tedit_terrain.add(position_x);\r\n\t\t\r\n\t\tedit_terrain.add(position_y_lb);\r\n\t\tedit_terrain.add(position_y);\r\n\t\t\r\n\t\tedit_terrain.add(apply_terrain);\r\n\t\tedit_terrain.add(reset_terrain);\r\n\t\t\r\n\t\tsetAllFont();\r\n\t}", "private void setUpPanel() {\n this.panel = new JPanel();\n functions = new JPanel();\n panel.setPreferredSize(new Dimension(Screen.screenWidth, Screen.screenHeight));\n\n int borderBottom = Screen.screenHeight / 8;\n if (Screen.screenHeight > 1400) {\n borderBottom = Screen.screenHeight / 7;\n }\n\n panel.setBorder(BorderFactory.createEmptyBorder(80, Screen.border, borderBottom, Screen.border));\n panel.setLayout(new BoxLayout(panel, BoxLayout.Y_AXIS));\n functions.setPreferredSize(new Dimension(600, 500));\n functions.setLayout(cardLayout);\n }", "public void resize_screen(){\r\n \tstop_scn_updates();\r\n \tscn_font_size = min_font_size+1;\r\n \twhile (scn_font_size < max_font_size){\r\n \t\tscn_font = new Font(tz390.z390_font,Font.BOLD,scn_font_size);\r\n \t\tcalc_screen_size();\r\n \t\tif (scn_image.getWidth() < main_panel_width\r\n \t\t\t&& scn_image.getHeight() < main_panel_height){\r\n \t\t\tscn_font_size++;\r\n \t\t} else {\r\n \t\t scn_font_size--;\r\n \t\t break;\r\n \t\t}\r\n \t} \t\r\n \tscn_font = new Font(tz390.z390_font,Font.BOLD,scn_font_size);\r\n \tcalc_screen_size();\r\n start_scn_updates();\r\n }", "private void fillPanel(){\n\t\t\tcontent.setLayout(new GridLayout(9,1));\n\t\t\tcontent.setBackground(Color.BLACK);\n\t\t\tcontent.add(playerNameLabel);\n\t\t\tcontent.add(playerNameField);\n\t\t\tcontent.add(placeHolder);\n\t\t\tcontent.add(passwordLabel);\n\t\t\tcontent.add(passwordField);\n\t\t\tcontent.add(passwordLabelRepeat);\n\t\t\tcontent.add(passwordFieldRepeat);\n\t\t\tcontent.add(placeHolder2);\n\t\t\tcontent.add(createButton);\t\n\t\t}", "private void initialize() {\r\n\t\tthis.setSize(734, 710);\r\n\t\tfinal GridBagLayout gridBagLayout_1 = new GridBagLayout();\r\n\t\tgridBagLayout_1.rowWeights = new double[]{0.0, 1.0,0};\r\n\t\tgridBagLayout_1.columnWeights = new double[]{1.0};\r\n\t\tgridBagLayout_1.rowHeights = new int[] {0,0, 0}; \r\n\t\tthis.setLayout(gridBagLayout_1);\r\n\r\n\t\teditROIPanel = new JPanel();\r\n\t\tfinal GridBagLayout gridBagLayout_2 = new GridBagLayout();\r\n\t\tgridBagLayout_2.rowHeights = new int[] {0,0,7};\r\n\t\tgridBagLayout_2.columnWidths = new int[] {0,7};\r\n\t\teditROIPanel.setLayout(gridBagLayout_2);\r\n\t\tfinal GridBagConstraints gridBagConstraints_6 = new GridBagConstraints();\r\n\t\tgridBagConstraints_6.anchor = GridBagConstraints.WEST;\r\n\t\tgridBagConstraints_6.insets = new Insets(2, 2, 5, 2);\r\n\t\tgridBagConstraints_6.weightx = 1.0;\r\n\t\tgridBagConstraints_6.gridy = 0;\r\n\t\tgridBagConstraints_6.gridx = 0;\r\n\t\tadd(editROIPanel, gridBagConstraints_6);\r\n\r\n\t\tfinal JLabel infoLabel = new JLabel();\r\n\t\tinfoLabel.setText(\"Data Info:\");\r\n\t\tfinal GridBagConstraints gridBagConstraints_12 = new GridBagConstraints();\r\n\t\tgridBagConstraints_12.insets = new Insets(0, 0, 0, 4);\r\n\t\tgridBagConstraints_12.anchor = GridBagConstraints.EAST;\r\n\t\tgridBagConstraints_12.gridy = 0;\r\n\t\tgridBagConstraints_12.gridx = 0;\r\n\t\teditROIPanel.add(infoLabel, gridBagConstraints_12);\r\n\r\n\t\ttextLabel = new JLabel();\r\n\t\ttextLabel.setPreferredSize(new Dimension(500, 20));\r\n\t\ttextLabel.setMinimumSize(new Dimension(500, 20));\r\n\t\tfinal GridBagConstraints gridBagConstraints_2 = new GridBagConstraints();\r\n\t\tgridBagConstraints_2.fill = GridBagConstraints.HORIZONTAL;\r\n\t\tgridBagConstraints_2.weightx = 1;\r\n\t\tgridBagConstraints_2.insets = new Insets(0, 2, 0, 0);\r\n\t\tgridBagConstraints_2.anchor = GridBagConstraints.WEST;\r\n\t\tgridBagConstraints_2.gridy = 0;\r\n\t\tgridBagConstraints_2.gridx = 1;\r\n\t\tgridBagConstraints_2.gridwidth = 2;\r\n\t\teditROIPanel.add(textLabel, gridBagConstraints_2);\r\n\t\ttextLabel.setText(\"No FRAP DataSet loaded.\");\r\n\r\n\t\tautoCropButton = new JButton(new ImageIcon(getClass().getResource(\"/images/autoCrop.gif\")));\r\n\t\tautoCropButton.setName(\"roiAutoCropBtn\");\r\n\t\tautoCropButton.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(final ActionEvent e) {\r\n\t\t\t\tfirePropertyChange(FRAP_DATA_AUTOCROP_PROPERTY, null,null);\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tclearROIbutton = new JButton(new ImageIcon(getClass().getResource(\"/images/clearROI.gif\")));\r\n\t\tclearROIbutton.setEnabled(false);\r\n\t\tclearROIbutton.setName(\"clearROIBtn\");\r\n\t\tclearROIbutton.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(final ActionEvent e) {\r\n\t\t\t\tif(roiComboBox.getItemCount() == 0){\r\n\t\t\t\t\tgiveROIRequiredWarning(\"Clear Domain\");\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tfirePropertyChange(FRAP_DATA_CLEARROI_PROPERTY, ((ROIMultiPaintManager.ComboboxROIName)roiComboBox.getSelectedItem()), null);\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tviewZLabel = new JLabel();\r\n\t\tviewZLabel.setText(\"View Z:\");\r\n\t\tfinal GridBagConstraints gridBagConstraints_17 = new GridBagConstraints();\r\n\t\tgridBagConstraints_17.insets = new Insets(0, 0, 0, 4);\r\n\t\tgridBagConstraints_17.anchor = GridBagConstraints.EAST;\r\n\t\tgridBagConstraints_17.gridy = 1;\r\n\t\tgridBagConstraints_17.gridx = 0;\r\n\t\teditROIPanel.add(viewZLabel, gridBagConstraints_17);\r\n\r\n\t\tfinal JPanel panel_1 = new JPanel();\r\n\t\tfinal GridBagLayout gridBagLayout_4 = new GridBagLayout();\r\n\t\tgridBagLayout_4.columnWeights = new double[]{1.0};\r\n\t\tgridBagLayout_4.columnWidths = new int[] {7};\r\n\t\tpanel_1.setLayout(gridBagLayout_4);\r\n\t\tfinal GridBagConstraints gridBagConstraints_18 = new GridBagConstraints();\r\n\t\tgridBagConstraints_18.anchor = GridBagConstraints.WEST;\r\n\t\tgridBagConstraints_18.insets = new Insets(0, 2, 0, 0);\r\n\t\tgridBagConstraints_18.fill = GridBagConstraints.HORIZONTAL;\r\n\t\tgridBagConstraints_18.weightx = 0;\r\n\t\tgridBagConstraints_18.gridy = 1;\r\n\t\tgridBagConstraints_18.gridx = 1;\r\n\t\teditROIPanel.add(panel_1, gridBagConstraints_18);\r\n\t\tfinal GridBagConstraints gridBagConstraints_19 = new GridBagConstraints();\r\n\t\tgridBagConstraints_19.insets = new Insets(0, 0, 5, 0);\r\n\t\tgridBagConstraints_19.fill = GridBagConstraints.HORIZONTAL;\r\n\t\tgridBagConstraints_19.anchor = GridBagConstraints.WEST;\r\n\t\tgridBagConstraints_19.weightx = 1;\r\n\t\tgridBagConstraints_19.gridy = 0;\r\n\t\tgridBagConstraints_19.gridx = 0;\r\n\t\tpanel_1.add(getZSlider(), gridBagConstraints_19);\r\n\r\n\t\tviewTLabel = new JLabel();\r\n\t\tviewTLabel.setText(\"View Time:\");\r\n\t\tfinal GridBagConstraints gridBagConstraints_13 = new GridBagConstraints();\r\n\t\tgridBagConstraints_13.insets = new Insets(0, 0, 0, 4);\r\n\t\tgridBagConstraints_13.anchor = GridBagConstraints.EAST;\r\n\t\tgridBagConstraints_13.gridy = 2;\r\n\t\tgridBagConstraints_13.gridx = 0;\r\n\t\teditROIPanel.add(viewTLabel, gridBagConstraints_13);\r\n\r\n\t\tfinal JPanel panel = new JPanel();\r\n\t\tpanel.setLayout(new GridBagLayout());\r\n\t\tfinal GridBagConstraints gridBagConstraints_15 = new GridBagConstraints();\r\n\t\tgridBagConstraints_15.fill = GridBagConstraints.HORIZONTAL;\r\n\t\tgridBagConstraints_15.weightx = 1;\r\n\t\tgridBagConstraints_15.insets = new Insets(0, 0, 0, 0);\r\n\t\tgridBagConstraints_15.anchor = GridBagConstraints.WEST;\r\n\t\tgridBagConstraints_15.gridy = 0;\r\n\t\tgridBagConstraints_15.gridx = 0;\r\n\t\tpanel.add(getTimeSlider(), gridBagConstraints_15);\r\n\t\t\r\n\t\tfinal GridBagConstraints gridBagConstraints_14 = new GridBagConstraints();\r\n\t\tgridBagConstraints_14.fill = GridBagConstraints.HORIZONTAL;\r\n\t\tgridBagConstraints_14.insets = new Insets(0, 2, 0, 0);\r\n\t\tgridBagConstraints_14.anchor = GridBagConstraints.WEST;\r\n\t\tgridBagConstraints_14.gridy = 2;\r\n\t\tgridBagConstraints_14.gridx = 1;\r\n\t\teditROIPanel.add(panel, gridBagConstraints_14);\r\n\r\n\t\tfinal JPanel editROIButtonPanel = new JPanel();\r\n\t\tfinal GridBagLayout gridBagLayout_3 = new GridBagLayout();\r\n\t\tgridBagLayout_3.rowWeights = new double[]{0.0, 1.0};\r\n\t\tgridBagLayout_3.columnWeights = new double[]{0.0, 1.0, 0.0, 0.0, 0.0, 0.0};\r\n\t\tgridBagLayout_3.columnWidths = new int[] {0, 0,7,7, 0, 0};\r\n\t\teditROIButtonPanel.setLayout(gridBagLayout_3);\r\n\t\tfinal GridBagConstraints gridBagConstraints_8 = new GridBagConstraints();\r\n\t\tgridBagConstraints_8.gridwidth = 2;\r\n\t\tgridBagConstraints_8.weightx = 0;\r\n\t\tgridBagConstraints_8.fill = GridBagConstraints.HORIZONTAL;\r\n\t\tgridBagConstraints_8.insets = new Insets(0, 2, 0, 0);\r\n\t\tgridBagConstraints_8.anchor = GridBagConstraints.WEST;\r\n\t\tgridBagConstraints_8.gridy = 3;\r\n\t\tgridBagConstraints_8.gridx = 0;\r\n\t\teditROIPanel.add(editROIButtonPanel, gridBagConstraints_8);\r\n\t\t\r\n\t\tpanel_2 = new JPanel();\r\n\t\tGridBagConstraints gbc_panel_2 = new GridBagConstraints();\r\n\t\tgbc_panel_2.insets = new Insets(2, 2, 2, 2);\r\n\t\tgbc_panel_2.weighty = 1.0;\r\n\t\tgbc_panel_2.weightx = 1.0;\r\n\t\tgbc_panel_2.fill = GridBagConstraints.BOTH;\r\n\t\tgbc_panel_2.gridx = 0;\r\n\t\tgbc_panel_2.gridy = 1;\r\n\t\tadd(panel_2, gbc_panel_2);\r\n\t\tGridBagLayout gbl_panel_2 = new GridBagLayout();\r\n\t\tgbl_panel_2.columnWidths = new int[]{0, 0, 0};\r\n\t\tgbl_panel_2.rowHeights = new int[]{0};\r\n\t\tgbl_panel_2.columnWeights = new double[]{0, 1.0, 0.0};\r\n\t\tgbl_panel_2.rowWeights = new double[]{0.0};\r\n\t\tpanel_2.setLayout(gbl_panel_2);\r\n\t\t\r\n\t\tpanel_3 = new JPanel();\r\n\t\tpanel_3.setBorder(new LineBorder(new Color(0, 0, 0)));\r\n\t\tGridBagConstraints gbc_panel_3 = new GridBagConstraints();\r\n\t\tgbc_panel_3.fill = GridBagConstraints.BOTH;\r\n\t\tgbc_panel_3.insets = new Insets(2, 2, 2, 2);\r\n\t\tgbc_panel_3.gridx = 0;\r\n\t\tgbc_panel_3.gridy = 0;\r\n\t\tpanel_2.add(panel_3, gbc_panel_3);\r\n\t\tGridBagLayout gbl_panel_3 = new GridBagLayout();\r\n\t\tgbl_panel_3.columnWidths = new int[]{0, 0};\r\n\t\tgbl_panel_3.rowHeights = new int[]{0, 0, 0, 0};\r\n\t\tgbl_panel_3.columnWeights = new double[]{0.0, Double.MIN_VALUE};\r\n\t\tgbl_panel_3.rowWeights = new double[]{0.0, 0.0, 0.0, Double.MIN_VALUE};\r\n\t\tpanel_3.setLayout(gbl_panel_3);\r\n\t\t\r\n\t\tdomainRegionLabel = new JLabel(DOMAIN_LIST_TEXT);\r\n\t\tGridBagConstraints gbc_domainRegionLabel = new GridBagConstraints();\r\n\t\tgbc_domainRegionLabel.insets = new Insets(0, 0, 2, 0);\r\n\t\tgbc_domainRegionLabel.gridx = 0;\r\n\t\tgbc_domainRegionLabel.gridy = 0;\r\n\t\tpanel_3.add(domainRegionLabel, gbc_domainRegionLabel);\r\n\t\t\r\n\t\tscrollPane = new JScrollPane();\r\n\t\tGridBagConstraints gbc_scrollPane = new GridBagConstraints();\r\n\t\tgbc_scrollPane.insets = new Insets(0, 2, 0, 0);\r\n\t\tgbc_scrollPane.weighty = 1.0;\r\n\t\tgbc_scrollPane.fill = GridBagConstraints.BOTH;\r\n\t\tgbc_scrollPane.gridx = 0;\r\n\t\tgbc_scrollPane.gridy = 1;\r\n\t\tpanel_3.add(scrollPane, gbc_scrollPane);\r\n\t\tscrollPane.setPreferredSize(new Dimension(125, 10));\r\n\t\tscrollPane.setMinimumSize(new Dimension(125,10));\r\n\t\tscrollPane.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);\r\n\t\tscrollPane.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS);\r\n\t\t\r\n\t\tresolvedList = new JList();\r\n\t\tresolvedList.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseClicked(MouseEvent e) {\r\n\t\t\t\tsuper.mouseClicked(e);\r\n\t\t\t\tif(showConvertPopup(e,false) == SHOWCONVERT.HANDLED){\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif(e.getClickCount() == 2){\r\n\t\t\t\t\tfirePropertyChange(FRAP_DATA_FINDROI_PROPERTY, null, resolvedList.getSelectedValue());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t@Override\r\n\t\t\tpublic void mousePressed(MouseEvent e) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tsuper.mousePressed(e);\r\n\t\t\t\tif(showConvertPopup(e,false) == SHOWCONVERT.HANDLED){\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseReleased(MouseEvent e) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tsuper.mouseReleased(e);\r\n\t\t\t\tif(showConvertPopup(e,false) == SHOWCONVERT.HANDLED){\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t});\r\n\t\tresolvedList.addListSelectionListener(resolvedListSelectionListener);\r\n\t\tresolvedList.setCellRenderer(resolvedObjectListCellRenderer);\r\n\t\tscrollPane.setViewportView(resolvedList);\r\n\t\t\r\n\t\tmergeButton = new JButton(\"Auto-Merge\");\r\n\t\tmergeButton.setToolTipText(\"Remove regions by merging with neighbor\");\r\n\t\tmergeButton.setEnabled(false);\r\n\t\tmergeButton.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tresolvedListSelection(true);\r\n\t\t\t}\r\n\t\t});\r\n\t\tGridBagConstraints gbc_mergeButton = new GridBagConstraints();\r\n\t\tgbc_mergeButton.gridx = 0;\r\n\t\tgbc_mergeButton.gridy = 2;\r\n\t\tpanel_3.add(mergeButton, gbc_mergeButton);\r\n\t\tGridBagConstraints gbc_jScrollPane2 = new GridBagConstraints();\r\n\t\tgbc_jScrollPane2.weighty = 1.0;\r\n\t\tgbc_jScrollPane2.weightx = 1.0;\r\n\t\tgbc_jScrollPane2.fill = GridBagConstraints.BOTH;\r\n\t\tgbc_jScrollPane2.insets = new Insets(2, 2, 2, 2);\r\n\t\tgbc_jScrollPane2.gridx = 1;\r\n\t\tgbc_jScrollPane2.gridy = 0;\r\n\t\tpanel_2.add(getJScrollPane2(), gbc_jScrollPane2);\r\n\t\tGridBagConstraints gbc_toolButtonPanel = new GridBagConstraints();\r\n\t\tgbc_toolButtonPanel.weighty = 1.0;\r\n\t\tgbc_toolButtonPanel.insets = new Insets(2, 2, 0, 2);\r\n\t\tgbc_toolButtonPanel.anchor = GridBagConstraints.NORTH;\r\n\t\tgbc_toolButtonPanel.gridx = 2;\r\n\t\tgbc_toolButtonPanel.gridy = 0;\r\n\t\tpanel_2.add(getToolButtonPanel(), gbc_toolButtonPanel);\r\n\r\n\t\troiComboBox = new JComboBox();\r\n\t\troiComboBox.setName(\"activeROIComboBox\");\r\n\t\troiComboBox.setRenderer(new ListCellRenderer() {\r\n\t\t\tprivate DefaultListCellRenderer listCellRender = new DefaultListCellRenderer();\r\n\t\t\tpublic Component getListCellRendererComponent(JList list, Object value,\r\n\t\t\t\t\tint index, boolean isSelected, boolean cellHasFocus) {\r\n\t\t\t\tROIMultiPaintManager.ComboboxROIName comboboxROIName = (ROIMultiPaintManager.ComboboxROIName)value;\r\n\t\t\t\tif(comboboxROIName == null){//return blank\r\n\t\t\t\t\treturn listCellRender.getListCellRendererComponent(list, null, index, isSelected, cellHasFocus);\r\n\t\t\t\t}\r\n\t\t\t\tif(comboboxROIName.getHighlightColor() == null){//return text only\r\n\t\t\t\t\treturn listCellRender.getListCellRendererComponent(list, comboboxROIName.getROIName(), index, isSelected, cellHasFocus);\r\n\t\t\t\t}\r\n\t\t\t\t//return text with small color box\r\n\t\t\t\tIcon icon = new ColorIcon(20,20,comboboxROIName.getHighlightColor());\r\n\t\t\t\tJLabel jlable = (JLabel)listCellRender.getListCellRendererComponent(list, icon, index, isSelected, cellHasFocus);\r\n\t\t\t\tjlable.setText(comboboxROIName.getROIName());\r\n\t\t\t\treturn jlable;\r\n\t\t\t}\r\n\t\t});\r\n\t\troiComboBox.addActionListener(ROI_COMBOBOX_ACTIONLISTENER);\r\n\t\t\r\n\t\tlblNewLabel = new JLabel(\"Active Domain:\");\r\n\t\tGridBagConstraints gbc_lblNewLabel = new GridBagConstraints();\r\n\t\tgbc_lblNewLabel.insets = new Insets(4, 4, 4, 4);\r\n\t\tgbc_lblNewLabel.anchor = GridBagConstraints.EAST;\r\n\t\tgbc_lblNewLabel.gridx = 0;\r\n\t\tgbc_lblNewLabel.gridy = 0;\r\n\t\teditROIButtonPanel.add(lblNewLabel, gbc_lblNewLabel);\r\n\t\tfinal GridBagConstraints gridBagConstraints_1 = new GridBagConstraints();\r\n\t\tgridBagConstraints_1.fill = GridBagConstraints.HORIZONTAL;\r\n\t\tgridBagConstraints_1.insets = new Insets(4, 4, 5, 5);\r\n\t\tgridBagConstraints_1.weightx = 1;\r\n\t\tgridBagConstraints_1.gridy = 0;\r\n\t\tgridBagConstraints_1.gridx = 1;\r\n\t\teditROIButtonPanel.add(roiComboBox, gridBagConstraints_1);\r\n\r\n\t\taddROIButton = new JButton();\r\n\t\taddROIButton.setName(\"roiAddBtn\");\r\n\t\taddROIButton.addActionListener(addROIActionListener);\r\n\t\taddROIButton.setText(\"Add Domain...\");\r\n\t\tfinal GridBagConstraints gridBagConstraints_3 = new GridBagConstraints();\r\n\t\tgridBagConstraints_3.insets = new Insets(4, 4, 5, 5);\r\n\t\tgridBagConstraints_3.gridy = 0;\r\n\t\tgridBagConstraints_3.gridx = 2;\r\n\t\teditROIButtonPanel.add(addROIButton, gridBagConstraints_3);\r\n\r\n\t\tdelROIButton = new JButton();\r\n\t\tdelROIButton.setName(\"roiDeleteBtn\");\r\n\t\tdelROIButton.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(final ActionEvent e) {\r\n\t\t\t\tfirePropertyChange(FRAP_DATA_DELETEROI_PROPERTY, ((ROIMultiPaintManager.ComboboxROIName)roiComboBox.getSelectedItem()), null);\r\n\t\t\t}\r\n\t\t});\r\n\t\tdelROIButton.setText(\"Delete Domain...\");\r\n\t\tdelROIButton.setEnabled(false);\r\n\t\tfinal GridBagConstraints gridBagConstraints_4 = new GridBagConstraints();\r\n\t\tgridBagConstraints_4.insets = new Insets(4, 4, 5, 5);\r\n\t\tgridBagConstraints_4.gridy = 0;\r\n\t\tgridBagConstraints_4.gridx = 3;\r\n\t\teditROIButtonPanel.add(delROIButton, gridBagConstraints_4);\r\n\t\t\r\n\t\tdiscardHighlightsButton = new JButton(\"Clear Selections\");\r\n\t\tdiscardHighlightsButton.setEnabled(false);\r\n\t\tdiscardHighlightsButton.setName(\"clearHighlightsBtn\");\r\n\t\tdiscardHighlightsButton.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tfirePropertyChange(FRAP_DATA_DISCARDHIGHLIGHT_PROPERTY,null,null);\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tGridBagConstraints gbc_specialActionsButton = new GridBagConstraints();\r\n\t\tgbc_specialActionsButton.insets = new Insets(4, 4, 5, 5);\r\n\t\tgbc_specialActionsButton.gridx = 4;\r\n\t\tgbc_specialActionsButton.gridy = 0;\r\n\t\teditROIButtonPanel.add(discardHighlightsButton, gbc_specialActionsButton);\r\n\t\t\r\n\t\tchannelComboBox = new JComboBox();\r\n\t\tGridBagConstraints gbc_channelComboBox = new GridBagConstraints();\r\n\t\tgbc_channelComboBox.insets = new Insets(4, 4, 5, 4);\r\n\t\tgbc_channelComboBox.gridx = 5;\r\n\t\tgbc_channelComboBox.gridy = 0;\r\n\t\teditROIButtonPanel.add(channelComboBox, gbc_channelComboBox);\r\n\t\tchannelComboBox.addActionListener(channelActionListener);\r\n\t\tchannelComboBox.setPreferredSize(new Dimension(100, 22));\r\n\t\tchannelComboBox.setMinimumSize(new Dimension(100, 20));\r\n\t\t\r\n\t\tblendPercentPanel = new JPanel();\r\n\t\tblendPercentPanel.setBorder(new LineBorder(new Color(0, 0, 0)));\r\n\t\tGridBagConstraints gbc_panel_2a = new GridBagConstraints();\r\n\t\tgbc_panel_2a.gridwidth = 6;\r\n\t\tgbc_panel_2a.insets = new Insets(4, 4, 4, 4);\r\n\t\tgbc_panel_2a.fill = GridBagConstraints.BOTH;\r\n\t\tgbc_panel_2a.gridx = 0;\r\n\t\tgbc_panel_2a.gridy = 1;\r\n\t\teditROIButtonPanel.add(blendPercentPanel, gbc_panel_2a);\r\n\t\tGridBagLayout gbl_panel_2a = new GridBagLayout();\r\n\t\tblendPercentPanel.setLayout(gbl_panel_2a);\r\n\t\t\r\n\t\tblendPercentROILabel = new JLabel(\"Domains\");\r\n\t\tGridBagConstraints gbc_blendPercentROILabel = new GridBagConstraints();\r\n\t\tgbc_blendPercentROILabel.anchor = GridBagConstraints.WEST;\r\n\t\tgbc_blendPercentROILabel.gridx = 0;\r\n\t\tgbc_blendPercentROILabel.gridy = 0;\r\n\t\tblendPercentPanel.add(blendPercentROILabel, gbc_blendPercentROILabel);\r\n\t\t\r\n\t\tblendPercentSlider = new JSlider();\r\n\t\tblendPercentSlider.setToolTipText(\"Mix view of Domains and background image\");\r\n\t\tblendPercentSlider.addChangeListener(new ChangeListener() {\r\n\t\t\tpublic void stateChanged(ChangeEvent e) {\r\n\t\t\t\tsetBlendPercent(blendPercentSlider.getValue());\r\n//\t\t\t\tif(!blendPercentSlider.getValueIsAdjusting()){\r\n//\t\t\t\t\tsetBlendPercent(blendPercentSlider.getValue());\r\n//\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tGridBagConstraints gbc_blendPercentSlider = new GridBagConstraints();\r\n\t\tgbc_blendPercentSlider.fill = GridBagConstraints.HORIZONTAL;\r\n\t\tgbc_blendPercentSlider.weightx = 0.5;\r\n\t\tgbc_blendPercentSlider.gridx = 1;\r\n\t\tgbc_blendPercentSlider.gridy = 0;\r\n\t\tblendPercentPanel.add(blendPercentSlider, gbc_blendPercentSlider);\r\n\t\t\r\n\t\tblendPercentImageLabel = new JLabel(\"Image\");\r\n\t\tGridBagConstraints gbc_blendPercentImageLabel = new GridBagConstraints();\r\n\t\tgbc_blendPercentImageLabel.anchor = GridBagConstraints.EAST;\r\n\t\tgbc_blendPercentImageLabel.gridx = 2;\r\n\t\tgbc_blendPercentImageLabel.gridy = 0;\r\n\t\tblendPercentPanel.add(blendPercentImageLabel, gbc_blendPercentImageLabel);\r\n\t\t\r\n\t\tsmoothOrigLabel = new JLabel(\"Original\");\r\n\t\tGridBagConstraints gbc_smoothOrigLabel = new GridBagConstraints();\r\n\t\tgbc_smoothOrigLabel.insets = new Insets(0, 20, 0, 0);\r\n\t\tgbc_smoothOrigLabel.gridx = 3;\r\n\t\tgbc_smoothOrigLabel.gridy = 0;\r\n\t\tblendPercentPanel.add(smoothOrigLabel, gbc_smoothOrigLabel);\r\n\t\t\r\n\t\tsmoothslider = new JSlider();\r\n\t\tsmoothslider.setToolTipText(\"Smooth background image\");\r\n\t\tsmoothslider.setSnapToTicks(true);\r\n\t\tsmoothslider.setPaintTicks(true);\r\n\t\tsmoothslider.setMajorTickSpacing(1);\r\n\t\tsmoothslider.setMaximum(10);\r\n\t\tsmoothslider.setValue(0);\r\n\t\tsmoothslider.addChangeListener(new ChangeListener() {\r\n\t\t\tpublic void stateChanged(ChangeEvent e) {\r\n\t\t\t\tif(!smoothslider.getValueIsAdjusting()){\r\n\t\t\t\t\tfirePropertyChange(FRAP_DATA_UNDERLAY_SMOOTH_PROPERTY, null, new Integer(smoothslider.getValue()));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tGridBagConstraints gbc_smoothslider = new GridBagConstraints();\r\n\t\tgbc_smoothslider.fill = GridBagConstraints.HORIZONTAL;\r\n\t\tgbc_smoothslider.weightx = 0.5;\r\n\t\tgbc_smoothslider.gridx = 4;\r\n\t\tgbc_smoothslider.gridy = 0;\r\n\t\tblendPercentPanel.add(smoothslider, gbc_smoothslider);\r\n\t\t\r\n\t\tsmootherLabel = new JLabel(\"Smoother\");\r\n\t\tGridBagConstraints gbc_smootherLabel = new GridBagConstraints();\r\n\t\tgbc_smootherLabel.gridx = 5;\r\n\t\tgbc_smootherLabel.gridy = 0;\r\n\t\tblendPercentPanel.add(smootherLabel, gbc_smootherLabel);\r\n\t\t\r\n\t\troiDrawButtonGroup.add(selectButton);\r\n\t\troiDrawButtonGroup.add(paintButton);\r\n\t\troiDrawButtonGroup.add(eraseButton);\r\n\t\troiDrawButtonGroup.add(fillButton);\r\n\t\troiDrawButtonGroup.add(cropButton);\r\n\t\troiDrawButtonGroup.add(translateToolButton);\r\n\t\troiDrawButtonGroup.add(scaleToolButton);\r\n\t\t\r\n\t\tBeanUtils.enableComponents(getToolButtonPanel(), false);\r\n\t\tBeanUtils.enableComponents(editROIPanel, false);\r\n\t\t\r\n\t\thistogramPanel = new HistogramPanel();\r\n\t\thistogramPanel.addPropertyChangeListener(new PropertyChangeListener() {\r\n\t\t\tpublic void propertyChange(PropertyChangeEvent evt) {\r\n\t\t\t\tif(evt.getPropertyName().equals(HistogramPanel.HISTOGRAM_SELECT_PROPERTY)){\r\n\t\t\t\t\tOverlayEditorPanelJAI.this.firePropertyChange(\r\n\t\t\t\t\tOverlayEditorPanelJAI.FRAP_DATA_HISTOUPDATEHIGHLIGHT_PROPERTY, null, (ListSelectionModel)evt.getNewValue());\r\n\t\t\t\t}else if(evt.getPropertyName().equals(HistogramPanel.HISTOGRAM_APPLY_ACTION)){\r\n\t\t\t\t\tfirePropertyChange(OverlayEditorPanelJAI.FRAP_DATA_UPDATEROI_WITHHIGHLIGHT_PROPERTY,null,null);\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t});\r\n\t\thistogramPanel.setVisible(false);\r\n\t\thistogramPanel.setBorder(new LineBorder(new Color(0, 0, 0)));\r\n\t\tGridBagConstraints gbc_histogramButton = new GridBagConstraints();\r\n\t\tgbc_histogramButton.fill = GridBagConstraints.BOTH;\r\n\t\tgbc_histogramButton.insets = new Insets(2, 2, 2, 2);\r\n\t\tgbc_histogramButton.gridx = 0;\r\n\t\tgbc_histogramButton.gridy = 2;\r\n\t\tadd(histogramPanel, gbc_histogramButton);\r\n\t}", "private void createpanel1() {\r\n\t\theader = new JLabel();\r\n\t\theader.setText(\"Type in Userinformation\");\r\n\t\theader.setFont(customFont.deriveFont(25f));\r\n\t\theader.setForeground(Color.WHITE);\r\n\r\n\t\tpanels[0].add(header);\r\n\t\tpanels[0].setOpaque(false);\r\n\t\tallComponents.add(panels[0]);\r\n\r\n\t}", "public BoardGUI()\n {\n setBackground(Color.GRAY);\n setLayout(null);\n }", "protected void createContents() {\n\t\tsetText(\"SWT Application\");\n\t\tsetSize(437, 529);\n\n\t}", "private void calc_screen_size(){\r\n \tscn_grid.setFont(scn_font);\r\n \tscn_context = scn_grid.getFontRenderContext();\r\n \t scn_layout = new TextLayout(\"X\",scn_font,scn_context);\r\n scn_char_rect = scn_layout.getBlackBoxBounds(0,1).getBounds();\r\n scn_char_height = (int) (scn_char_rect.getHeight()); // RPI 630 was Width in err, 6 to *1.5\r\n \tscn_char_base = scn_char_height/2+1;\r\n \tscn_char_height = scn_char_height + scn_char_base+2;\r\n scn_char_width = (int) (scn_char_rect.getWidth()); // RPI 630 was Height in err\r\n \tscn_height = scn_rows * scn_char_height; // RPI 408 + 5 \r\n \tscn_width = scn_cols * scn_char_width + 3; // RPI 408 + 5 \r\n \tscn_size = new Dimension(scn_width,scn_height);\r\n \tscn_image = new BufferedImage(scn_width,scn_height,BufferedImage.TYPE_INT_ARGB);\r\n \tscn_grid = scn_image.createGraphics();\r\n \tscn_grid.setFont(scn_font); \r\n scn_grid.setColor(scn_text_color);\r\n \t scn_context = scn_grid.getFontRenderContext();\r\n scn_grid.setRenderingHint(RenderingHints.KEY_ANTIALIASING,\r\n RenderingHints.VALUE_ANTIALIAS_ON);\r\n }", "private void setupPanel()\n\t{\n\t\tthis.setLayout(baseLayout);\n\t\tqueryButton = new JButton(\"query\");\n\t\tthis.add(queryButton);\n\t\tthis.add(displayPane);\n\t\tdisplayArea = new JTextArea(10,30);\n\t\tadd(displayArea);\n\t\t\n\t\t\n\t}", "public PrintsPanel() {\n initComponents();\n createPanels();\n\n }", "public void initUI() {\n\t\t\n\t\tsetPreferredSize(new Dimension((int)((2*Board.NUMBER_OF_FREE_COLUMNS)+1)*Board.TILE_SIZE + 2*Board.GAP_WIDTH, (int)((2*Board.NUMBER_OF_FREE_ROWS)+1)*Board.TILE_SIZE));\n\t\tsetLayout(new GridLayout(10,1));\n\t\taddKeyListener(this);\n\t\tsetBackground(Color.WHITE);\n\t\tJLabel label1 = new JLabel();\n\t\t\n\t\tlabel1.setFont(new Font(\"Verdana\", Font.BOLD, 55));\n\t\t\n\t\tlabel1.setHorizontalAlignment(SwingConstants.CENTER);\n\t\t\n\t\tlabel1.setText(\"Player \"+winner+\" has won!\");\n\t \n\t add(label1);\n\t}", "private void initPanel() {\n\t\tthis.panel = new JPanel();\n\t\tthis.panel.setBounds(5, 5, 130, 20);\n\t\tthis.panel.setLayout(null); \n\n\t}", "SettingsScreenClass(Dimension dim){\r\n cursorRow=0;\r\n counter=0;\r\n endPart=false;\r\n initSprites();\r\n setImage(dim.width,dim.height);\r\n fadeAmount=12;\r\n for(int i=0;i<12;i++){\r\n fadeColors[i]=new Color(0,0,0,(i)*20);\r\n }\r\n }", "private void setupBoard() {\n setBackground(Color.BLACK);\n setPreferredSize(new Dimension(myWidth, myHeight));\n myBoard.addObserver(this);\n enableStartupKeys();\n }", "public static void initialisePanel(){\n\t\t\n\t\tBrewPanel = new JPanel();\n\t\tBrewPanel.setLayout(new MigLayout(\"\", \"[grow][65px:n:65px]\", \"[20px:n:20px][25px:n:25px][grow]\"));\n\t\t\n\t\t\n\t\t//Header\n\t\tBrewHeader = new JLabel(\"Brew\");\n\t\tBrewHeader.setFont(new Font(\"Tahoma\", Font.BOLD, 18));\n\t\tBrewPanel.add(BrewHeader, \"cell 0 0,grow\");\n\t\t\n\t\t\n\t\t//Subtitle\n\t\tBrewSubtitle = new JLabel(\"Browse and edit the brew database.\");\n\t\tBrewSubtitle.setFont(new Font(\"Tahoma\", Font.ITALIC, 13));\n\t\tBrewPanel.add(BrewSubtitle, \"cell 0 1,growx,aligny top\");\n\t\t\n\t\tbtnPrintBrew = new JButton();\n\t\tbtnPrintBrew.setIcon(new ImageIcon(BrewPanel.class.getResource(\"/images/print.png\")));\n\t\tbtnPrintBrew.setToolTipText(\"Save currently selected brew data to printable .pdf\");\n\t\tBrewPanel.setVisible(true);\n \tbtnPrintBrew.setVisible(false);\n\t\tbtnPrintBrew.setEnabled(false);\n\t\tBrewPanel.add(btnPrintBrew, \"cell 1 0\");\n\t\t\n\t\t//Tabbed Pane\n\t\ttabbedBrewPane = new JTabbedPane(JTabbedPane.TOP);\n\t\tBrewPanel.add(tabbedBrewPane, \"cell 0 2 2,grow\");\n\t\t\t\t\n\t\t\n\t\t//Brew Search Tab\n\t\tBrewSearchPanel.initialisePanel();\t\t\n\t\ttabbedBrewPane.addTab(\"Search\", null, BrewSearchPanel.tabbedBrewSearchPanel, null);\n\t\t\n\t\t\n\t\t//Brew Data Tab\n\t\tBrewDataPanel.initialisePanel();\t\t\n\t\ttabbedBrewPane.addTab(\"Brew Data\", null, BrewDataPanel.tabbedBrewDataPanel, null);\n\t\t\n\t\t\n\t\t//Brew Notes Tab\n\t\tBrewNotesPanel.initialisePanel();\n\t\ttabbedBrewPane.addTab(\"Brew Notes\", null, BrewNotesPanel.tabbedBrewNotesPanel, null);\n\t\t\n\t\t\n\t\t//Brew Pictures Tab\n\t\tBrewPicturesPanel.initialisePanel();\n\t\ttabbedBrewPane.addTab(\"Brew Pictures\", null, BrewPicturesPanel.tabbedBrewPicturesPanel, null);\n\t\t\n\t\t\n\t\t//Brew Pictures Tab\n\t\tBrewCostPanel.initialisePanel();\n\t\ttabbedBrewPane.addTab(\"Brew Costs\", null, BrewCostPanel.tabbedBrewCostPanel, null);\n\t\t\t\t\n\t\t\n\t\t//Add New Brew Tab\n\t\tBrewAddPanel.initialisePanel();\n\t\ttabbedBrewPane.addTab(\"Add New Brew\", new ImageIcon(BrewPanel.class.getResource(\"/images/new.png\")), BrewAddPanel.tabbedBrewAddPanel, null);\n\t\t\n\t\t\n\t\t//Set some tabs disabled initially\n\t\ttabbedBrewPane.setEnabledAt(1, false);\n\t\ttabbedBrewPane.setEnabledAt(2, false);\n\t\ttabbedBrewPane.setEnabledAt(3, false);\n\t\ttabbedBrewPane.setEnabledAt(4, false);\n\t\t\n\t \t\n\t\t//Add it all to the main window\n\t\tLegacyApp.WineBrewDBFrame.getContentPane().add(BrewPanel, \"cell 0 0,grow\");\n\t\tBrewPanel.setVisible(false);\n\n\t\t\n\t\tBrewPanelStatus = \"Initialised\";\n\t\t\n\t\t\n\t\t//Add print button listener\n\t\tbtnPrintBrew.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tJFileChooser c = new JFileChooser();\n\t\t\t int rVal = c.showSaveDialog(LegacyApp.WineBrewDBFrame);\n\t\t\t if (rVal == JFileChooser.APPROVE_OPTION) {\t\t\t \t \t \n\t\t\t\t\tString pdflocation = c.getCurrentDirectory().toString() + LegacyApp.OSSlash + c.getSelectedFile().getName() + \".pdf\";\n\t\t\t\t\tBrewPDF.createPDF(pdflocation);\t \t \n\t\t\t \t \n\t\t\t }\n\t\t\t if (rVal == JFileChooser.CANCEL_OPTION) {\n\t\t\t \t \n\t\t\t }\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t\n\t\ttabbedBrewPane.addChangeListener(new ChangeListener() {\n\t\t // This method is called whenever the selected tab changes\n\t\t public void stateChanged(ChangeEvent evt) {\n\t\t JTabbedPane pane = (JTabbedPane)evt.getSource();\n\n\t\t // Get current tab\n\t\t int sel = pane.getSelectedIndex();\n\t\t if(sel == 0 || sel == 5){\n\t\t \tbtnPrintBrew.setVisible(false);\n\t\t \t\tbtnPrintBrew.setEnabled(false);\n\t\t }else{\n\t\t \tbtnPrintBrew.setVisible(true);\n\t\t \t\tbtnPrintBrew.setEnabled(true);\n\t\t }\n\t\t }\n\t\t});\n\t}", "SettingsScreenClass(){\r\n cursorRow=0;\r\n counter=0;\r\n endPart=false;\r\n initSprites();\r\n setImage(512,500);\r\n fadeAmount=12;\r\n for(int i=0;i<12;i++){\r\n fadeColors[i]=new Color(0,0,0,(i)*20);\r\n }\r\n }", "public void setupUI() {\r\n\t\t\r\n\t\tvPanel = new VerticalPanel();\r\n\t\thPanel = new HorizontalPanel();\r\n\t\t\r\n\t\titemName = new Label();\r\n\t\titemName.addStyleName(Styles.page_title);\r\n\t\titemDesc = new Label();\r\n\t\titemDesc.addStyleName(Styles.quest_desc);\r\n\t\titemType = new Label();\r\n\t\titemType.addStyleName(Styles.quest_lvl);\r\n\t\t\r\n\t\tVerticalPanel img = new VerticalPanel();\r\n\t\timg.add(new Image(imgDir));\r\n\t\t\r\n\t\tvPanel.add(itemName);\r\n\t\tvPanel.add(itemDesc);\r\n\t\tvPanel.add(img);\r\n\t\tvPanel.add(hPanel);\r\n\t\t\r\n\t\tVerticalPanel mainPanel = new VerticalPanel();\r\n\t\tmainPanel.setWidth(\"100%\");\r\n\t\tvPanel.addStyleName(NAME);\r\n\t\t\r\n\t\tmainPanel.add(vPanel);\r\n \tinitWidget(mainPanel);\r\n }", "public DisplayBox(int lines, int columns, Font font) {\n this.lines = lines;\n this.columns = columns;\n this.fontSize = font.getSize();\n\n components = new DisplayComponent[lines][columns];\n\n setPreferredSize(new Dimension(columns * fontSize, lines * fontSize));\n setFont(font);\n }", "public void create() {\n\t\t// setup Chess board\n\t\tthis.removeAll();\n\t\tthis.layout = new GridLayout(this.startupBoardSize, this.startupBoardSize);\n\t\tthis.squares = new SquarePanel[this.startupBoardSize][this.startupBoardSize];\n\t\t\n\t\tsetLayout(layout);\n\t\tsetPreferredSize(new Dimension(600, 600));\n\t\tsetBorder(new LineBorder(new Color(0, 0, 0)));\n\n\t\t//paint the chess board\n\n\t\tfor (int i = 0; i < this.startupBoardSize; i++) \n\t\t{\n\t\t\tfor (int j = 0; j < this.startupBoardSize; j++) \n\t\t\t{\n\t\t\t\tsquares[i][j] = new SquarePanel(j, i);\n\t\t\t\tsquares[i][j].setPreferredSize(new Dimension(600 / this.startupBoardSize - 5, 600 / this.startupBoardSize - 5));\n\n\n\t\t\t\tsquares[i][j].setBackground(Color.WHITE);\n\t\t\t\t\n\t\t\t\tif (((i + j) % 2) == 0) \n\t\t\t\t{\n\t\t\t\t\tsquares[i][j].setBackground(Color.DARK_GRAY);\n\t\t\t\t}\n\t\t\t\tadd(squares[i][j]);\n\t\t\t}\n\t\t}\n\t}", "public StartScreen()\n { \n // Create a new world with 1111x602 cells with a cell size of 1x1 pixels.\n super(1111, 602, 1); \n prepare();\n background.playLoop();\n }", "Board createLayout();", "private void initialize() {\n\t\tframe = new JFrame();\n\t\townPanel = new NicePanel();\n\t\tframe.setTitle(\"Per Seconde Wijzer\");\n\t\tframe.setContentPane(ownPanel);\n\t\t// frame.getContentPane().setBackground(Color.BLACK);\n\t\tframe.setBounds(100, 100, 1280, 720);\n\t\tframe.setLocationRelativeTo(null);\n\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(\n\t\t\t\tnew MigLayout(\"\", \"[300.00,grow,left][100.00,grow,fill][100.00,grow][300.00,grow]\",\n\t\t\t\t\t\t\"[157.00,grow,fill][160px:172.00px:180px,fill][][][][][157.00,grow]\"));\n\n\t\tJLabel lblNewLabel = new JLabel(\"<html>PER<br />\\nSECONDE<br />\\nWIJZER</html>\");\n\t\tlblNewLabel.setFont(new Font(\"Dialog\", Font.BOLD, 42));\n\t\tlblNewLabel.setForeground(Color.WHITE);\n\t\townPanel.add(lblNewLabel, \"cell 1 1 2 1\");\n\n\t\ttxtVulHierJe = new JTextField();\n\t\ttxtVulHierJe.setFont(new Font(\"Tahoma\", Font.PLAIN, 16));\n\t\ttxtVulHierJe.setText(TXT_PLACEH_NAAM_INPUT);\n\t\tframe.getContentPane().add(txtVulHierJe, \"cell 1 2 2 1,growx\");\n\t\ttxtVulHierJe.setColumns(10);\n\n\t\t// Als er met de mouse geklikt wordt zal de placeholder text verwijderd\n\t\t// worden\n\t\ttxtVulHierJe.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\tif (arg0.getButton() == 0x1 && txtVulHierJe.getText().equals(TXT_PLACEH_NAAM_INPUT))\n\t\t\t\t\ttxtVulHierJe.setText(\"\");\n\t\t\t}\n\t\t});\n\t\t// Placeholder wijzgen d.m.v. een keypress\n\t\ttxtVulHierJe.addKeyListener(new KeyAdapter() {\n\t\t\t@Override\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tif (txtVulHierJe.getText().equals(TXT_PLACEH_NAAM_INPUT)) txtVulHierJe.setText(\"\");\n\t\t\t}\n\t\t});\n\n\t\tNiceButton btnNewButton = new NiceButton(\"Spelregels\");\n\t\tfinal HelpScherm helpScherm = new HelpScherm(this);\n\t\tbtnNewButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\topenPanel(helpScherm);\n\t\t\t}\n\t\t});\n\t\tframe.getContentPane().add(btnNewButton, \"cell 1 3,growx\");\n\n\t\tNiceButton btnNewButton_3 = new NiceButton(\"Start\");\n\t\tbtnNewButton_3.setFont(new Font(\"Tahoma\", Font.PLAIN, 30));\n\n\t\ttxtVulHierJe.addKeyListener(new KeyAdapter() {\n\t\t\t@Override\n\t\t\tpublic void keyReleased(KeyEvent arg0) {\n\t\t\t\tif (arg0.getKeyCode() == KeyEvent.VK_ENTER) startGame();\n\t\t\t}\n\t\t});\n\n\t\tbtnNewButton_3.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tstartGame();\n\t\t\t}\n\t\t});\n\t\tframe.getContentPane().add(btnNewButton_3, \"cell 2 3 1 2,grow\");\n\n\t\tNiceButton btnNewButton_2 = new NiceButton(\"Highscores\");\n\t\tbtnNewButton_2.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\topenPanel(new Highscore(spel));\n\t\t\t}\n\t\t});\n\t\tframe.getContentPane().add(btnNewButton_2, \"cell 1 4,growx\");\n\t}", "private void setupChatRoom() {\n add(announcementBtn).expandX().width(ChessGame.MENU_WIDTH);\n row();\n add(currentGamesBtn).expandX().width(ChessGame.MENU_WIDTH);\n row();\n add(friendsListBtn).expandX().width(ChessGame.MENU_WIDTH);\n row();\n add(leaderboardBtn).expandX().width(ChessGame.MENU_WIDTH);\n row();\n add(settingsBtn).expandX().width(ChessGame.MENU_WIDTH);\n row();\n }", "protected JComponent makeTextPanel(String text)\n\t{\n\t\tJPanel panel = new JPanel(false);\n\t\tpanel.setBackground(new Color(55, 55, 55));\n\t\tpanel.setLayout(null);\n\t\treturn panel;\n\t}", "private void $$$setupUI$$$() {\n mainPanel = new JPanel();\n mainPanel.setLayout(new GridLayoutManager(4, 2, new Insets(10, 10, 10, 10), -1, -1));\n textPanel = new JPanel();\n textPanel.setLayout(new GridLayoutManager(5, 2, new Insets(0, 0, 0, 0), -1, -1));\n mainPanel.add(textPanel, new GridConstraints(0, 0, 4, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, new Dimension(371, 24), null, 0, false));\n inputScroll = new JScrollPane();\n textPanel.add(inputScroll, new GridConstraints(1, 0, 1, 2, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n inputArea = new JTextArea();\n inputArea.setText(\"\");\n inputScroll.setViewportView(inputArea);\n outputScroll = new JScrollPane();\n textPanel.add(outputScroll, new GridConstraints(4, 0, 1, 2, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n outputArea = new JTextArea();\n outputScroll.setViewportView(outputArea);\n final Spacer spacer1 = new Spacer();\n textPanel.add(spacer1, new GridConstraints(2, 0, 1, 2, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n input = new JLabel();\n input.setText(\"Input\");\n textPanel.add(input, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n output = new JLabel();\n output.setText(\"Output\");\n textPanel.add(output, new GridConstraints(3, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n clearButton = new JButton();\n clearButton.setText(\"Clear\");\n mainPanel.add(clearButton, new GridConstraints(2, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n buttonPanel = new JPanel();\n buttonPanel.setLayout(new GridLayoutManager(2, 1, new Insets(0, 0, 0, 0), -1, -1));\n mainPanel.add(buttonPanel, new GridConstraints(3, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n final Spacer spacer2 = new Spacer();\n buttonPanel.add(spacer2, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n closeButton = new JButton();\n closeButton.setText(\"Close\");\n buttonPanel.add(closeButton, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n spartanizeButton = new JButton();\n spartanizeButton.setText(\"Spartanize\");\n mainPanel.add(spartanizeButton, new GridConstraints(1, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n }", "public void init() {\n\t\tsetSize(500,300);\n\t}", "private void $$$setupUI$$$() {\n createUIComponents();\n panel = new JPanel();\n panel.setLayout(new GridLayoutManager(2, 1, new Insets(10, 10, 10, 10), -1, -1));\n final JScrollPane scrollPane1 = new JScrollPane();\n panel.add(scrollPane1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n scrollPane1.setViewportView(table);\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new GridLayoutManager(1, 3, new Insets(0, 0, 0, 0), -1, -1));\n panel.add(panel1, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n buttonRegister = new JButton();\n buttonRegister.setText(\"Track\");\n panel1.add(buttonRegister, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n buttonMenu = new JButton();\n buttonMenu.setText(\"Menu\");\n panel1.add(buttonMenu, new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final Spacer spacer1 = new Spacer();\n panel1.add(spacer1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n }", "public void fillGamePanel() {\n for (int row = 0; row < world.getRowCount(); row++) {\n for (int col = 0; col < world.getColumnCount(); col++) {\n add(world.getCellAt(row, col));\n world.getCellAt(row, col).setBorder(\n BorderFactory.createMatteBorder(\n 1, 1, 0, 0, Color.BLACK));\n }\n }\n for (int row = 0; row < world.getRowCount(); row++) {\n for (int col = 0; col < world.getColumnCount(); col++) {\n gridPanel.add(world.getCellAt(row, col));\n world.getCellAt(row, col).setBorder(\n BorderFactory.createMatteBorder(\n 1, 1, 0, 0, Color.BLACK));\n }\n }\n }", "public void initPanel(){\r\n\t \r\n\t\t//Titre\r\n\t\tlabel.setFont(new Font(\"Verdana\",1,40));\r\n\t label.setForeground(Color.black);\r\n\t label.setBorder(BorderFactory.createLineBorder(Color.BLACK, 2));\r\n\t label.setBounds(110,0,575,50);\r\n\t\tthis.panel.setLayout(null);\t \r\n\t this.panel.add(label);\r\n\t \r\n\t //dc\r\n\t this.panel.add(label1, BorderLayout.CENTER);\r\n\t label1.setFont(new Font(\"Verdana\",1,40));\r\n\t label1.setForeground(Color.black);\r\n\t label1.setBorder(BorderFactory.createLineBorder(Color.BLACK, 2));\r\n\t label1.setBounds(150,500,100,50);\r\n\t //ab\r\n\t this.panel.add(label2);\r\n\t label2.setFont(new Font(\"Verdana\",1,40));\r\n\t label2.setForeground(Color.black);\r\n\t label2.setBorder(BorderFactory.createLineBorder(Color.BLACK, 2));\r\n\t label2.setBounds(550,500,100,50);\r\n\t //Button dc\r\n\t\tdc.setBounds(50,200,300,250);\r\n\t\tthis.panel.add(dc);\r\n\t\tdc.addActionListener(this);\r\n\t\t//Button ab\r\n\t\tab.setBounds(450,200,300,250);\r\n\t\tthis.panel.add(ab);\r\n\t\tab.addActionListener(this);\r\n\t\t\r\n\t\tthis.panel.add(label3);\r\n\t label3.setFont(new Font(\"Verdana\",1,20));\r\n\t label3.setForeground(Color.black);\r\n\t label3.setBorder(BorderFactory.createLineBorder(Color.BLACK, 2));\r\n\t label3.setBounds(90,575,220,30);\r\n\t \r\n\t this.panel.add(label4);\r\n\t label4.setFont(new Font(\"Verdana\",1,20));\r\n\t label4.setForeground(Color.black);\r\n\t label4.setBorder(BorderFactory.createLineBorder(Color.BLACK, 2));\r\n\t label4.setBounds(490,575,220,30);\r\n\t}", "public void initUI() {\n\t\tadd(board);\r\n\t\t//Set if frame is resizable by user\r\n\t\tsetResizable(false);\r\n\t\t//call pack method to fit the \r\n\t\t//preferred size and layout of subcomponents\r\n\t\t//***important head might not work correctly with collision of bottom and right borders\r\n\t\tpack();\r\n\t\t//set title for frame\r\n\t\tsetTitle(\"Snake\");\r\n\t\t//set location on screen(null centers it)\r\n\t\tsetLocationRelativeTo(null);\r\n\t\t//set default for close button of frame\r\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t}", "private void initialize() {\r\n\t\tframe = new JFrame();\r\n\t\tframe.getContentPane().setBackground(new Color(255, 255, 255));\r\n\t\tframe.setBounds(100, 100, 450, 511);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.getContentPane().setLayout(null);\r\n\t\t\r\n\t\tJPanel panel = new JPanel();\r\n\t\tpanel.setBackground(Color.DARK_GRAY);\r\n\t\tpanel.setBounds(10, 95, 414, 187);\r\n\t\tframe.getContentPane().add(panel);\r\n\t\tpanel.setLayout(null);\r\n\t\t\r\n\t\tJLabel lblNewLabel = new JLabel(\"Height(m)\");\r\n\t\tlblNewLabel.setFont(new Font(\"Stencil\", Font.PLAIN, 13));\r\n\t\tlblNewLabel.setForeground(new Color(255, 255, 255));\r\n\t\tlblNewLabel.setBackground(new Color(255, 255, 255));\r\n\t\tlblNewLabel.setBounds(97, 29, 86, 21);\r\n\t\tpanel.add(lblNewLabel);\r\n\t\t\r\n\t\tH = new JTextField();\r\n\t\tH.setBounds(244, 29, 86, 20);\r\n\t\tpanel.add(H);\r\n\t\tH.setColumns(10);\r\n\t\t\r\n\t\tJLabel lblNewLabel_1 = new JLabel(\"Weight(KG)\");\r\n\t\tlblNewLabel_1.setFont(new Font(\"Stencil\", Font.PLAIN, 14));\r\n\t\tlblNewLabel_1.setForeground(new Color(255, 255, 255));\r\n\t\tlblNewLabel_1.setBackground(new Color(255, 255, 255));\r\n\t\tlblNewLabel_1.setBounds(97, 72, 86, 14);\r\n\t\tpanel.add(lblNewLabel_1);\r\n\t\t\r\n\t\tW = new JTextField();\r\n\t\tW.setBounds(244, 69, 86, 20);\r\n\t\tpanel.add(W);\r\n\t\tW.setColumns(10);\r\n\t\t\r\n\t\tJLabel lblNewLabel_2 = new JLabel(\"BMI :\");\r\n\t\tlblNewLabel_2.setForeground(new Color(255, 255, 255));\r\n\t\tlblNewLabel_2.setFont(new Font(\"Stencil\", Font.PLAIN, 16));\r\n\t\tlblNewLabel_2.setBounds(64, 115, 46, 14);\r\n\t\tpanel.add(lblNewLabel_2);\r\n\t\t\r\n\t\tbmi = new JTextField();\r\n\t\tbmi.setBounds(126, 112, 86, 20);\r\n\t\tpanel.add(bmi);\r\n\t\tbmi.setColumns(10);\r\n\t\t\r\n\t\tJLabel re = new JLabel(\"\");\r\n\t\tre.setForeground(new Color(255, 255, 255));\r\n\t\tre.setBounds(262, 115, 89, 14);\r\n\t\tpanel.add(re);\r\n\t\t\r\n\t\tJButton cal = new JButton(\"Calculate\");\r\n\t\tcal.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\tfloat r1=Float.parseFloat(H.getText());\r\n\t\t\t\tfloat r2=Float.parseFloat(W.getText());\r\n\t\t\t\tfloat res=(float)(r2/(r1*r1));\r\n\t\t\t\tbmi.setText(String.valueOf(res));\r\n\t\t\t\tif(res<=18.5)\r\n\t\t\t\t{\r\n\t\t\t\t\tre.setForeground(Color.YELLOW);\r\n\t\t\t\t\tre.setText(\"Under Weight\");\r\n\t\t\t\t}\r\n\t\t\t\telse if(res>18.5&&res<24.9)\r\n\t\t\t\t{\r\n\t\t\t\t\tre.setForeground(Color.GREEN);\r\n\t\t\t\t\tre.setText(\"Normal Weight\");\r\n\t\t\t\t}\r\n\t\t\t\telse if(res>25&&res<29.9)\r\n\t\t\t\t{\r\n\t\t\t\t\tre.setForeground(Color.ORANGE);\r\n\t\t\t\t\tre.setText(\"OverWeight\");\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tre.setForeground(Color.RED);\r\n\t\t\t\tre.setText(\"Obese\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tcal.setBounds(50, 153, 89, 23);\r\n\t\tpanel.add(cal);\r\n\t\t\r\n\t\tJButton clr = new JButton(\"Clear\");\r\n\t\tclr.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\tH.setText(\"\");\r\n\t\t\t\tW.setText(\"\");\r\n\t\t\t\tbmi.setText(\"\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tclr.setBounds(171, 153, 89, 23);\r\n\t\tpanel.add(clr);\r\n\t\t\r\n\t\tJButton ex = new JButton(\"Exit\");\r\n\t\tex.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tSystem.exit(0);\r\n\t\t\t}\r\n\t\t});\r\n\t\tex.setBounds(284, 153, 89, 23);\r\n\t\tpanel.add(ex);\r\n\t\t\r\n\t\tJPanel panel2 = new JPanel();\r\n\t\tpanel2.setBackground(Color.LIGHT_GRAY);\r\n\t\tpanel2.setBounds(10, 293, 414, 169);\r\n\t\tframe.getContentPane().add(panel2);\r\n\t\tpanel2.setLayout(null);\r\n\t\t\r\n\t\ttable = new JTable();\r\n\t\ttable.setBackground(new Color(255, 255, 255));\r\n\t\ttable.setFillsViewportHeight(true);\r\n\t\ttable.setSurrendersFocusOnKeystroke(true);\r\n\t\ttable.setModel(new DefaultTableModel(\r\n\t\t\tnew Object[][] {\r\n\t\t\t\t{\"UnderWeight\", \"UnderWeight\", \"Normal Weight\", \"Obese\"},\r\n\t\t\t\t{\"< 18.5\", \"18.5 to 24.9\", \"25 to 29.9\", \"> 30\"},\r\n\t\t\t},\r\n\t\t\tnew String[] {\r\n\t\t\t\t\"UnderWeight\", \"Normal Weight\", \"Over Weight\", \"Obese\"\r\n\t\t\t}\r\n\t\t) {\r\n\t\t\tboolean[] columnEditables = new boolean[] {\r\n\t\t\t\ttrue, true, true, false\r\n\t\t\t};\r\n\t\t\tpublic boolean isCellEditable(int row, int column) {\r\n\t\t\t\treturn columnEditables[column];\r\n\t\t\t}\r\n\t\t});\r\n\t\ttable.getColumnModel().getColumn(0).setResizable(false);\r\n\t\ttable.getColumnModel().getColumn(0).setPreferredWidth(77);\r\n\t\ttable.setBorder(new EtchedBorder(EtchedBorder.LOWERED, null, null));\r\n\t\ttable.setColumnSelectionAllowed(true);\r\n\t\ttable.setCellSelectionEnabled(true);\r\n\t\ttable.setBounds(25, 112, 349, 46);\r\n\t\tpanel2.add(table);\r\n\t\t\r\n\t\tJPanel panel_2 = new JPanel();\r\n\t\tpanel_2.setBackground(Color.LIGHT_GRAY);\r\n\t\tpanel_2.setBounds(10, 11, 414, 73);\r\n\t\tframe.getContentPane().add(panel_2);\r\n\t\tpanel_2.setLayout(null);\r\n\t\t\r\n\t\tJLabel lblNewLabel_4 = new JLabel(\"BODY MASS INDEX\");\r\n\t\tlblNewLabel_4.setForeground(new Color(255, 255, 255));\r\n\t\tlblNewLabel_4.setFont(new Font(\"Bernard MT Condensed\", Font.BOLD | Font.ITALIC, 15));\r\n\t\tlblNewLabel_4.setBounds(132, 11, 136, 32);\r\n\t\tpanel_2.add(lblNewLabel_4);\r\n\t}", "private JPanel createContentPanel() {\n JPanel panel = new JPanel();\n panel.setLayout(new MigLayout());\n panel.setPreferredSize(new Dimension(400, 300));\n panel.setOpaque(true);\n panel.setBorder(BorderFactory.createTitledBorder(\n localization.get(\"AttributesTitle\")));\n\n roomNameField = LabeledComponent\n .textField(localization.get(\"RoomNameLabel\"),\n new InfoPanelDocListener(this, new SetName()));\n roomNameField.addToPanel(panel);\n\n includeField = LabeledComponent\n .textField(localization.get(\"IncludeLabel\"),\n new InfoPanelDocListener(this, new SetInclude()));\n includeField.addToPanel(panel);\n\n inheritField = LabeledComponent\n .textField(localization.get(\"InheritLabel\"),\n new InfoPanelDocListener(this, new SetInherit()));\n inheritField.addToPanel(panel);\n\n buildStreetNameField(panel);\n\n buildAddEditStreetsButton(panel);\n\n buildColorSelector(panel);\n\n shortDescriptionField = LabeledComponent\n .textField(localization.get(\"ShortDescLabel\"),\n new InfoPanelDocListener(this, new SetShort()));\n panel.add(shortDescriptionField.getLabel());\n panel.add(shortDescriptionField.getComponent(), \"span, grow, wrap\");\n\n determinateField = LabeledComponent\n .textField(localization.get(\"DeterminateLabel\"),\n new InfoPanelDocListener(this, new SetDeterminate()));\n determinateField.addToPanel(panel);\n\n lightField = LabeledComponent\n .textField(localization.get(\"LightLabel\"),\n new InfoPanelDocListener(this, new SetLight()));\n lightField.addToPanel(panel);\n\n longDescriptionField = LabeledComponent\n .textArea(localization.get(\"LongDescLabel\"),\n new InfoPanelDocListener(this, new SetLong()));\n panel.add(longDescriptionField.getLabel(), \"wrap\");\n panel.add(longDescriptionField.getComponent(), \"span, grow\");\n\n return panel;\n }", "public Panel03Console() {\n System.out.println(\"Panel03 ConsolePanel()\");\n initComponents();\n super.setPreferredSize(new Dimension(CONSOLE_WIDTH, CONSOLE_HEIGHT));\n }", "private void initializePanels()\r\n\t{\r\n\t\tthis.subscribersPanel = new SubscribersPanel(DIMENSIONS);\r\n\t\tthis.consolePanel = new ConsolePanel(DIMENSIONS);\r\n\r\n\t\tthis.parametersPanel = new ParametersPanel(DIMENSIONS);\r\n\t\tthis.parametersPanel.setSize(DIMENSIONS);\r\n\r\n\t\tthis.mainPanel = new MainPanel(parametersPanel, this);\r\n\t\tthis.mainPanel.setSize(DIMENSIONS);\r\n\r\n\t\tshowParametersPanel();\r\n\t}", "private void initialize() {\n\n\t\tGridLayout gridLayout = new GridLayout();\n\t\tgridLayout.setRows(1);\n\t\t\n\t\tGridBagLayout gridbag = new GridBagLayout();\n\t\tbase=new JPanel(gridbag);\n\t\tbase.setBackground(new Color(250,251,245));\n\t\t// default size\n\t\tbase.setComponentOrientation(ComponentOrientation.LEFT_TO_RIGHT);\n\t\t//base.setPreferredSize(new Dimension(200,320));\n\t\t\n\t\t/*\n\t\t// separator\n\t\tGridBagConstraints constraints1 = new GridBagConstraints();\n\t\tconstraints1.gridx = 0;\n\t\tconstraints1.gridy = 0;\n\t\tconstraints1.gridwidth= 1;\n\t\tconstraints1.gridheight = 1;\n\t\tconstraints1.insets = new Insets(0, 0, 0, 0);\n\n\t\tJSeparator vspr=new JSeparator(JSeparator.HORIZONTAL);\n\t\tvspr.setPreferredSize(new Dimension(200, 20));\n\t\tgridbag.setConstraints(vspr, constraints1);\n\t\tbase.add(vspr);\n\t\t*/\n\t\t\n\t\t// panel1\n\t\tString st = Path.getPath()+\"/images//program_h6_bg_illuminance.gif\";\n\t\tif(IsMacorWin.isMacOrWin()==false) st = Path.getPath()+\"images\\\\/program_h6_bg_illuminance.gif\";\n\n\t\tgJPanel = new GJPanel(st);\n\t\tgJPanel.setText(\"LEDライト\");\n\n\t\tGridBagConstraints constraints1 = new GridBagConstraints();\n\t\tconstraints1.gridx = 0;\n\t\tconstraints1.gridy = 1;\n\t\tconstraints1.gridwidth= 1;\n\t\tconstraints1.gridheight = 1;\n\t\tconstraints1.insets = new Insets(0, 0, 0, 0);\n\t\tgridbag.setConstraints(gJPanel, constraints1);\n\t\tbase.add(gJPanel);\n\t\t\n\t\t\n\t\t// panel\n\t\tJPanel jp1=new JPanel();\n\t\tjp1.setComponentOrientation(ComponentOrientation.LEFT_TO_RIGHT);\n\t\tjp1.setLayout(gridLayout);\n//\t\tjp1.setPreferredSize(new Dimension(gJPanel.getWidth(),gJPanel.getHeight()));\n\t\tjp1.setPreferredSize(new Dimension(160,50));\n\t\tjp1.setBackground(Color.gray);\n\t\n//\n\t\tifD1=new InfoDispEdit();\n\t\tifD1.setText(\"警告下限照度\");\n\t\t// lux\n\t\tString[] illumdata=new String[50];\n\t\tfor(int i=0;i<50;i++){\n\t\t\tillumdata[i]= String.valueOf(i*100);\n\t\t}\n\t\tifD1.setSelectionItems(illumdata);\n\t\tifD1.setSelectedIndex(22);// 2500 lux\n\t\tifD1.setUnit(\"lux\");\n\t\t//\n\t\tGridBagConstraints constraints2 = new GridBagConstraints();\n\t\tconstraints2.gridy = 0;\t\n\t\tconstraints2.gridy = 2;\t\n\t\tconstraints2.gridwidth= 1;\n\t\tconstraints2.gridheight = 1;\n\t\tconstraints2.insets = new Insets(0, 0, 0, 0);\n\t\tgridbag.setConstraints(ifD1, constraints2);\n\t\t\n\t\tif(Version.getRevision().equals(\"Education\")!=true)\n\t\t\tbase.add(ifD1);\n\n\t\tsetParentClass(this);\n\t\tthis.setLayout(new BorderLayout());\n\t\tthis.add( base, BorderLayout.CENTER );\n\n\t\t// 観察される人を生成\n\t\tobservableMan = new ObservableMan();\n\n\t\t// デフォルトの観察者を追加\n\t\tdefaultO=new PlantPrgEdit.ObserverA();\n\t\tobservableMan.addObserver(defaultO);\n\t}", "private void setupChessBoard() {\n add(announcementBtn).expandX().width(ChessGame.MENU_WIDTH);\n row();\n add(currentGamesBtn).expandX().width(ChessGame.MENU_WIDTH);\n row();\n add(chatRoomBtn).expandX().width(ChessGame.MENU_WIDTH);\n row();\n add(friendsListBtn).expandX().width(ChessGame.MENU_WIDTH);\n row();\n add(leaderboardBtn).expandX().width(ChessGame.MENU_WIDTH);\n row();\n add(settingsBtn).expandX().width(ChessGame.MENU_WIDTH);\n row();\n }", "protected void createContents() {\n\t\tsetText(\"Account Settings\");\n\t\tsetSize(450, 225);\n\n\t}", "private JPanel initializePanel() {\n JPanel myPanel = new JPanel();\n //myPanel.setPreferredSize(new Dimension(600,600));\n\n myPanel.setLayout(new GridLayout(8,8));\n myPanel.setSize(600,600);\n myPanel.setLocation(100,100);\n myPanel.setBorder(new LineBorder(Color.BLACK));\n return myPanel;\n }", "private void setupUI() {\n\t\tpanel1 = new JPanel();\n\t\tpanel1.setLayout(new BorderLayout(0, 0));\n\t\tfinal JPanel panel2 = new JPanel();\n\t\tpanel2.setLayout(new FlowLayout(FlowLayout.LEFT, 2, 2));\n\t\tpanel2.setBackground(Color.BLACK);\n\t\tpanel2.setPreferredSize(new Dimension(800, 34));\n\t\tpanel1.add(panel2, BorderLayout.SOUTH);\n\t\tstopButton = new JButton();\n\t\tstopButton.setText(\"STOP\");\n\t\tstopButton.setPreferredSize(new Dimension(82, 30));\n\t\tpanel2.add(stopButton);\n\t\tclsButton = new JButton();\n\t\tclsButton.setPreferredSize(new Dimension(82, 30));\n\t\tclsButton.setText(\"CLS\");\n\t\tpanel2.add(clsButton);\n\t\trunButton = new JButton();\n\t\trunButton.setPreferredSize(new Dimension(82, 30));\n\t\trunButton.setText(\"RUN\");\n\t\tpanel2.add(runButton);\n\t\tcaretLabel = new JLabel();\n\t\tcaretLabel.setPreferredSize(new Dimension(82, 30));\n\t\tcaretLabel.setForeground(Color.pink);\n\t\tpanel2.add(caretLabel);\n\t\tmainTextArea = new ShellTextComponent(this);\n\t\tmainTextArea.setCaretColor(new Color(Colors.COLORS[14]));\n\t\tfinal JScrollPane scrollPane1 = new JScrollPane(mainTextArea);\n\n\t\tpanel1.add(scrollPane1, BorderLayout.CENTER);\n\t\tpanel1.setPreferredSize(new Dimension(800, 600));\n\t}", "public void setSwingCharacteristics() {\n\t\tcharacterName.setPreferredSize(new Dimension(1050, 100));\n\t\tcharacterName.setFont(f);\n\n\t\talignment.setPreferredSize(new Dimension(400, 100));\n\t\talignment.setFont(f);\n\n\t\tplayerName.setPreferredSize(new Dimension(500, 100));\n\t\tplayerName.setFont(f);\n\n\t\tmultiClassLabel.setPreferredSize(new Dimension(200, 100));\n\t\tmultiClassLabel\n\t\t\t\t.setForeground(new Color(Colors.WHITE.getColorR(), Colors.WHITE.getColorG(), Colors.WHITE.getColorB()));\n\t\tmultiClassLabel.setFont(f);\n\n\t\tmultiClass.setPreferredSize(new Dimension(100, 100));\n\t\tmultiClass.setFont(f);\n\n\t\traceLabel.setPreferredSize(new Dimension(150, 100));\n\t\traceLabel.setFont(f);\n\n\t\trace.setPreferredSize(new Dimension(300, 100));\n\t\trace.setFont(f);\n\n\t\tsize.setPreferredSize(new Dimension(250, 100));\n\t\tsize.setFont(f);\n\n\t\tgender.setPreferredSize(new Dimension(200, 100));\n\t\tgender.setFont(f);\n\n\t\tgenderLabel.setPreferredSize(new Dimension(150, 100));\n\t\tgenderLabel.setFont(f);\n\n\t\tageRollOrInput.add(ageRollSelection);\n\t\tageRollOrInput.add(ageInputSelection);\n\n\t\tageRollSelection.setPreferredSize(new Dimension(200, 100));\n\t\tageRollSelection.setFont(f);\n\t\tageRollSelection.setBackground(lightGray);\n\n\t\tageInputSelection.setPreferredSize(new Dimension(240, 100));\n\t\tageInputSelection.setFont(f);\n\t\tageInputSelection.setBackground(lightGray);\n\n\t\tageRoll.setPreferredSize(new Dimension(150, 100));\n\t\tageRoll.setFont(f);\n\n\t\tageInput.setPreferredSize(new Dimension(200, 100));\n\t\tageInput.setFont(f);\n\n\t\tageRange.add(intuitive);\n\t\tageRange.add(selfTaught);\n\t\tageRange.add(trained);\n\n\t\tageLabel.setPreferredSize(new Dimension(75, 100));\n\t\tageLabel.setFont(f);\n\n\t\tintuitive.setPreferredSize(new Dimension(350, 100));\n\t\tintuitive.setFont(f);\n\n\t\tselfTaught.setPreferredSize(new Dimension(400, 100));\n\t\tselfTaught.setFont(f);\n\n\t\ttrained.setPreferredSize(new Dimension(350, 100));\n\t\ttrained.setFont(f);\n\n\t\theightRollOrInput.add(heightInputSelection);\n\t\theightRollOrInput.add(heightRollSelection);\n\n\t\theightInputSelection.setPreferredSize(new Dimension(300, 100));\n\t\theightInputSelection.setFont(f);\n\n\t\theightRollSelection.setPreferredSize(new Dimension(300, 100));\n\t\theightRollSelection.setFont(f);\n\n\t\theightRoll.setPreferredSize(new Dimension(150, 100));\n\t\theightRoll.setFont(f);\n\n\t\theightInput.setPreferredSize(new Dimension(150, 100));\n\t\theightInput.setFont(f);\n\n\t\theightLabel.setPreferredSize(new Dimension(150, 100));\n\t\theightLabel.setFont(f);\n\n\t\tweightRollOrInput.add(weightInputSelection);\n\t\tweightRollOrInput.add(weightRollSelection);\n\n\t\tweightInputSelection.setPreferredSize(new Dimension(300, 100));\n\t\tweightInputSelection.setFont(f);\n\n\t\tweightRollSelection.setPreferredSize(new Dimension(300, 100));\n\t\tweightRollSelection.setFont(f);\n\n\t\tweightRoll.setPreferredSize(new Dimension(200, 100));\n\t\tweightRoll.setFont(f);\n\n\t\tweightInput.setPreferredSize(new Dimension(150, 100));\n\t\tweightInput.setFont(f);\n\n\t\tweightLabel.setPreferredSize(new Dimension(150, 100));\n\t\tweightLabel.setFont(f);\n\n\t\thairLabel.setPreferredSize(new Dimension(200, 100));\n\t\thairLabel.setFont(f);\n\n\t\thairColor.setPreferredSize(new Dimension(400, 100));\n\t\thairColor.setFont(f);\n\n\t\teyeLabel.setPreferredSize(new Dimension(200, 100));\n\t\teyeLabel.setFont(f);\n\n\t\teyeColor.setPreferredSize(new Dimension(400, 100));\n\t\teyeColor.setFont(f);\n\n\t\tstrengthSpinner.setValue(10);\n\t\tstrengthSpinner.setPreferredSize(new Dimension(200, 150));\n\t\tstrengthSpinner.setFont(f);\n\n\t\tdexteritySpinner.setValue(10);\n\t\tdexteritySpinner.setPreferredSize(new Dimension(200, 150));\n\t\tdexteritySpinner.setFont(f);\n\n\t\tconstitutionSpinner.setValue(10);\n\t\tconstitutionSpinner.setPreferredSize(new Dimension(200, 150));\n\t\tconstitutionSpinner.setFont(f);\n\n\t\tintelligenceSpinner.setValue(10);\n\t\tintelligenceSpinner.setPreferredSize(new Dimension(200, 150));\n\t\tintelligenceSpinner.setFont(f);\n\n\t\twisdomSpinner.setValue(10);\n\t\twisdomSpinner.setPreferredSize(new Dimension(200, 150));\n\t\twisdomSpinner.setFont(f);\n\n\t\tcharismaSpinner.setValue(10);\n\t\tcharismaSpinner.setPreferredSize(new Dimension(200, 150));\n\t\tcharismaSpinner.setFont(f);\n\n\t\tstrengthLabel.setPreferredSize(new Dimension(200, 150));\n\t\tstrengthLabel.setFont(f);\n\t\tstrengthLabel.setOpaque(true);\n\t\tstrengthLabel.setBackground(black);\n\t\tstrengthLabel.setForeground(white);\n\n\t\tdexterityLabel.setPreferredSize(new Dimension(200, 150));\n\t\tdexterityLabel.setFont(f);\n\t\tdexterityLabel.setOpaque(true);\n\t\tdexterityLabel.setBackground(black);\n\t\tdexterityLabel.setForeground(white);\n\n\t\tconstitutionLabel.setPreferredSize(new Dimension(220, 150));\n\t\tconstitutionLabel.setFont(f);\n\t\tconstitutionLabel.setOpaque(true);\n\t\tconstitutionLabel.setBackground(black);\n\t\tconstitutionLabel.setForeground(white);\n\n\t\tintelligenceLabel.setPreferredSize(new Dimension(200, 150));\n\t\tintelligenceLabel.setFont(f);\n\t\tintelligenceLabel.setOpaque(true);\n\t\tintelligenceLabel.setBackground(black);\n\t\tintelligenceLabel.setForeground(white);\n\n\t\twisdomLabel.setPreferredSize(new Dimension(200, 150));\n\t\twisdomLabel.setFont(f);\n\t\twisdomLabel.setOpaque(true);\n\t\twisdomLabel.setBackground(black);\n\t\twisdomLabel.setForeground(white);\n\n\t\tcharismaLabel.setPreferredSize(new Dimension(200, 150));\n\t\tcharismaLabel.setFont(f);\n\t\tcharismaLabel.setOpaque(true);\n\t\tcharismaLabel.setBackground(black);\n\t\tcharismaLabel.setForeground(white);\n\n\t\tstrengthInput.setPreferredSize(new Dimension(200, 150));\n\t\tstrengthInput.setFont(f);\n\n\t\tdexterityInput.setPreferredSize(new Dimension(200, 150));\n\t\tdexterityInput.setFont(f);\n\n\t\tconstitutionInput.setPreferredSize(new Dimension(200, 150));\n\t\tconstitutionInput.setFont(f);\n\n\t\tintelligenceInput.setPreferredSize(new Dimension(200, 150));\n\t\tintelligenceInput.setFont(f);\n\n\t\twisdomInput.setPreferredSize(new Dimension(200, 150));\n\t\twisdomInput.setFont(f);\n\n\t\tcharismaInput.setPreferredSize(new Dimension(200, 150));\n\t\tcharismaInput.setFont(f);\n\n\t\tstrengthRoll.setPreferredSize(new Dimension(200, 150));\n\t\tstrengthRoll.setFont(f);\n\n\t\tdexterityRoll.setPreferredSize(new Dimension(200, 150));\n\t\tdexterityRoll.setFont(f);\n\n\t\tconstitutionRoll.setPreferredSize(new Dimension(250, 150));\n\t\tconstitutionRoll.setFont(f);\n\n\t\tintelligenceRoll.setPreferredSize(new Dimension(240, 150));\n\t\tintelligenceRoll.setFont(f);\n\n\t\twisdomRoll.setPreferredSize(new Dimension(180, 150));\n\t\twisdomRoll.setFont(f);\n\n\t\tcharismaRoll.setPreferredSize(new Dimension(220, 150));\n\t\tcharismaRoll.setFont(f);\n\n\t\ttemporaryStrengthInput.setPreferredSize(new Dimension(150, 150));\n\t\ttemporaryStrengthInput.setFont(f);\n\n\t\ttemporaryDexterityInput.setPreferredSize(new Dimension(150, 150));\n\t\ttemporaryDexterityInput.setFont(f);\n\n\t\ttemporaryConstitutionInput.setPreferredSize(new Dimension(150, 150));\n\t\ttemporaryConstitutionInput.setFont(f);\n\n\t\ttemporaryIntelligenceInput.setPreferredSize(new Dimension(150, 150));\n\t\ttemporaryIntelligenceInput.setFont(f);\n\n\t\ttemporaryWisdomInput.setPreferredSize(new Dimension(150, 150));\n\t\ttemporaryWisdomInput.setFont(f);\n\n\t\ttemporaryCharismaInput.setPreferredSize(new Dimension(150, 150));\n\t\ttemporaryCharismaInput.setFont(f);\n\n\t\ttemporaryStrengthLabel.setPreferredSize(new Dimension(200, 150));\n\t\ttemporaryStrengthLabel.setFont(f);\n\n\t\ttemporaryDexterityLabel.setPreferredSize(new Dimension(200, 150));\n\t\ttemporaryDexterityLabel.setFont(f);\n\n\t\ttemporaryConstitutionLabel.setPreferredSize(new Dimension(200, 150));\n\t\ttemporaryConstitutionLabel.setFont(f);\n\n\t\ttemporaryIntelligenceLabel.setPreferredSize(new Dimension(200, 150));\n\t\ttemporaryIntelligenceLabel.setFont(f);\n\n\t\ttemporaryWisdomLabel.setPreferredSize(new Dimension(200, 150));\n\t\ttemporaryWisdomLabel.setFont(f);\n\n\t\ttemporaryCharismaLabel.setPreferredSize(new Dimension(200, 150));\n\t\ttemporaryCharismaLabel.setFont(f);\n\n\t\tstrengthModifierLabel.setPreferredSize(new Dimension(200, 200));\n\t\tstrengthModifierLabel.setFont(f);\n\t\tstrengthModifierLabel.setText(\"<html>Modifier: \" + \"<br>\"\n\t\t\t\t+ String.valueOf((Integer.parseInt(strengthInput.getText()) - abilityScoreBaseValue) / 2) + \"</html>\");\n\n\t\tdexterityModifierLabel.setPreferredSize(new Dimension(200, 200));\n\t\tdexterityModifierLabel.setFont(f);\n\t\tdexterityModifierLabel.setText(\"<html>Modifier: \" + \"<br>\"\n\t\t\t\t+ String.valueOf((Integer.parseInt(dexterityInput.getText()) - abilityScoreBaseValue) / 2) + \"</html>\");\n\n\t\tconstitutionModifierLabel.setPreferredSize(new Dimension(200, 200));\n\t\tconstitutionModifierLabel.setFont(f);\n\t\tconstitutionModifierLabel.setText(\"<html>Modifier: \" + \"<br>\"\n\t\t\t\t+ String.valueOf((Integer.parseInt(constitutionInput.getText()) - abilityScoreBaseValue) / 2)\n\t\t\t\t+ \"</html>\");\n\n\t\tintelligenceModifierLabel.setPreferredSize(new Dimension(200, 200));\n\t\tintelligenceModifierLabel.setFont(f);\n\t\tintelligenceModifierLabel.setText(\"<html>Modifier: \" + \"<br>\"\n\t\t\t\t+ String.valueOf((Integer.parseInt(intelligenceInput.getText()) - abilityScoreBaseValue) / 2)\n\t\t\t\t+ \"</html>\");\n\n\t\twisdomModifierLabel.setPreferredSize(new Dimension(200, 200));\n\t\twisdomModifierLabel.setFont(f);\n\t\twisdomModifierLabel.setText(\"<html>Modifier: \" + \"<br>\"\n\t\t\t\t+ String.valueOf((Integer.parseInt(wisdomInput.getText()) - abilityScoreBaseValue) / 2) + \"</html>\");\n\n\t\tcharismaModifierLabel.setPreferredSize(new Dimension(200, 200));\n\t\tcharismaModifierLabel.setFont(f);\n\t\tcharismaModifierLabel.setText(\"<html>Modifier: \" + \"<br>\"\n\t\t\t\t+ String.valueOf((Integer.parseInt(charismaInput.getText()) - abilityScoreBaseValue) / 2) + \"</html>\");\n\n\t\ttemporaryStrengthModifierLabel.setPreferredSize(new Dimension(200, 150));\n\t\ttemporaryStrengthModifierLabel.setFont(f);\n\n\t\ttemporaryDexterityModifierLabel.setPreferredSize(new Dimension(200, 150));\n\t\ttemporaryDexterityModifierLabel.setFont(f);\n\n\t\ttemporaryConstitutionModifierLabel.setPreferredSize(new Dimension(200, 150));\n\t\ttemporaryConstitutionModifierLabel.setFont(f);\n\n\t\ttemporaryIntelligenceModifierLabel.setPreferredSize(new Dimension(200, 150));\n\t\ttemporaryIntelligenceModifierLabel.setFont(f);\n\n\t\ttemporaryWisdomModifierLabel.setPreferredSize(new Dimension(200, 150));\n\t\ttemporaryWisdomModifierLabel.setFont(f);\n\n\t\ttemporaryCharismaModifierLabel.setPreferredSize(new Dimension(200, 150));\n\t\ttemporaryCharismaModifierLabel.setFont(f);\n\n\t\tabilitySelection.add(abilityRoll);\n\t\tabilitySelection.add(abilityInput);\n\n\t\tabilityRoll.setPreferredSize(new Dimension(400, 100));\n\t\tabilityRoll.setFont(f);\n\n\t\tabilityInput.setPreferredSize(new Dimension(400, 100));\n\t\tabilityInput.setFont(f);\n\n\t\tfantasySelection.add(lowFantasy);\n\t\tfantasySelection.add(standardFantasy);\n\t\tfantasySelection.add(highFantasy);\n\t\tfantasySelection.add(epicFantasy);\n\n\t\tlowFantasy.setPreferredSize(new Dimension(450, 100));\n\t\tlowFantasy.setFont(f);\n\n\t\tstandardFantasy.setPreferredSize(new Dimension(550, 100));\n\t\tstandardFantasy.setFont(f);\n\n\t\thighFantasy.setPreferredSize(new Dimension(450, 100));\n\t\thighFantasy.setFont(f);\n\n\t\tepicFantasy.setPreferredSize(new Dimension(450, 100));\n\t\tepicFantasy.setFont(f);\n\n\t\tfantasyPointsLabel.setPreferredSize(new Dimension(400, 100));\n\t\tfantasyPointsLabel.setFont(f);\n\n\t\tsaveProgress.setPreferredSize(new Dimension(700, 100));\n\t\tsaveProgress.setFont(f);\n\n\t\tsaveAbility.setPreferredSize(new Dimension(300, 100));\n\t\tsaveAbility.setFont(f);\n\n\t}", "private void ArrayTexto() {\n int posicCol = 10, posicLin = 10, tamanhoLin = 40, alturaLin = 40;\n\n for (int lin = 0; lin < 9; lin++) {\n for (int col = 0; col < 9; col++) {\n array_texto[lin][col] = new JTextField(\"\");\n array_texto[lin][col].setBounds(posicCol, posicLin, tamanhoLin, alturaLin);\n array_texto[lin][col].setBackground(Color.white);\n getContentPane().add(array_texto[lin][col]);\n if (col == 2 || col == 5 || col == 8) {\n posicCol = posicCol + 45;\n } else {\n posicCol = posicCol + 40;\n }\n }\n posicCol = 10;\n if (lin == 2 || lin == 5 || lin == 8) {\n posicLin = posicLin + 45;\n } else {\n posicLin = posicLin + 40;\n }\n }\n }", "private void createPageContent() \n\t{\n\t\tGridLayout gl = new GridLayout(4, true);\n gl.verticalSpacing = 10;\n\t\t\n\t\tGridData gd;\n\t\tfinal Label wiz1Label = new Label(shell, SWT.NONE);\n\t\twiz1Label.setText(\"Enter Fields\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 4;\n\t\twiz1Label.setLayoutData(gd);\n\t\twiz1Label.pack();\n\t\tText nameInput = new Text(shell, SWT.BORDER);\n\t\tnameInput.setMessage(\"Name\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, false, false);\n\t\tgd.horizontalSpan = 2;\n\t\tnameInput.setLayoutData(gd);\n\t\tnameInput.pack();\n\t\t//Component\n\t\tText componentInput = new Text(shell, SWT.BORDER);\n\t\tcomponentInput.setMessage(\"Component\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 2;\n\t\tcomponentInput.setLayoutData(gd);\n\t\tcomponentInput.pack();\n\t\t//school\n\t\tText schoolInput = new Text(shell, SWT.BORDER);\n\t\tschoolInput.setMessage(\"School\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, false, false);\n\t\tgd.horizontalSpan = 2;\n\t\tschoolInput.setLayoutData(gd);\n\t\tschoolInput.pack();\n\t\t//range\n\t\tText rangeInput = new Text(shell, SWT.BORDER);\n\t\trangeInput.setMessage(\"Range\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 2;\n\t\trangeInput.setLayoutData(gd);\n\t\trangeInput.pack();\n\t\t//Effect\n\t\tText effectInput = new Text(shell, SWT.BORDER);\n\t\teffectInput.setMessage(\"Effect\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 4;\n\t\teffectInput.setLayoutData(gd);\n\t\teffectInput.pack();\n\t\t//castingtime\n\t\tText castimeInput = new Text(shell, SWT.BORDER);\n\t\tcastimeInput.setMessage(\"Casting Time\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, false, false);\n\t\tgd.horizontalSpan = 2;\n\t\tcastimeInput.setLayoutData(gd);\n\t\tcastimeInput.pack();\n\t\t//materialcomponent\n\t\tText materialInput = new Text(shell, SWT.BORDER);\n\t\tmaterialInput.setMessage(\"Material Component\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 2;\n\t\tmaterialInput.setLayoutData(gd);\n\t\tmaterialInput.pack();\n\t\t//Savingthrow\n\t\tText savthrowInput = new Text(shell, SWT.BORDER);\n\t\tsavthrowInput.setMessage(\"Saving Throw\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, false, false);\n\t\tgd.horizontalSpan = 2;\n\t\tsavthrowInput.setLayoutData(gd);\n\t\tsavthrowInput.pack();\n\t\t//Focus\n\t\tText focusInput = new Text(shell, SWT.BORDER);\n\t\tfocusInput.setMessage(\"Focus\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, false, false);\n\t\tgd.horizontalSpan = 2;\n\t\tfocusInput.setLayoutData(gd);\n\t\tfocusInput.pack();\n\t\t//Duration\n\t\tText durationInput = new Text(shell, SWT.BORDER);\n\t\tdurationInput.setMessage(\"Duration\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 2;\n\t\tdurationInput.setLayoutData(gd);\n\t\tdurationInput.pack();\n\t\t//spellresistance\n\t\tLabel resistanceLabel = new Label(shell, SWT.NONE);\n\t\tresistanceLabel.setText(\"Can Spell Be Resisted\");\n\t\tgd = new GridData(GridData.CENTER, GridData.FILL, false, false);\n\t\tgd.horizontalSpan = 1;\n\t\tresistanceLabel.setLayoutData(gd);\n\t\tresistanceLabel.pack();\n\t\tButton resistanceInput = new Button(shell, SWT.CHECK);\n\t\tgd = new GridData(GridData.CENTER, GridData.FILL, false, false);\n\t\tgd.horizontalSpan = 1;\n\t\tresistanceInput.setLayoutData(gd);\n\t\tresistanceInput.pack();\n\t\t//level\n\t\tText levelInput = new Text(shell, SWT.BORDER);\n\t\tlevelInput.setMessage(\"Level\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, false, false);\n\t\tlevelInput.setLayoutData(gd);\n\t\tlevelInput.pack();\n\t\t//Damage\n\t\tText damageInput = new Text(shell, SWT.BORDER);\n\t\tdamageInput.setMessage(\"Damage\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 1;\n\t\tdamageInput.setLayoutData(gd);\n\t\tdamageInput.pack();\n\t\t//DamageAlternative\n\t\tText damagealterInput = new Text(shell, SWT.BORDER);\n\t\tdamagealterInput.setMessage(\"Damage Alternative\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 2;\n\t\tdamagealterInput.setLayoutData(gd);\n\t\tdamagealterInput.pack();\n\t\n\t\t//description\n\t\t\n\t\tText descriptionInput = new Text(shell, SWT.WRAP | SWT.V_SCROLL);\n\t\tdescriptionInput.setText(\"Description (Optional)\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 4;\n\t\tgd.verticalSpan = 15;\n\t\tdescriptionInput.setLayoutData(gd);\n\t\tdescriptionInput.pack();\n\t\tLabel blank = new Label(shell, SWT.NONE);\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, true);\n\t\tgd.horizontalSpan = 4;\n\t\tblank.setLayoutData(gd);\n\t\tblank.pack();\n\t\tButton save = new Button(shell, SWT.PUSH);\n\n\t\tsave.setText(\"Save\");\n\t\tsave.addListener(SWT.Selection, new Listener()\n\t\t{\n\t\t\tpublic void handleEvent(Event event)\n\t\t\t{\n\t\t\t\tBoolean checkfault = false;\n\t\t\t\tLinkedHashMap<String, String> a = new LinkedHashMap<String, String>();\n\t\t\t\tif(nameInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tcheckfault = true;\n\t\t\t\t\tnameInput.setBackground(display.getSystemColor(SWT.COLOR_RED));\n\t\t\t\t}\n\t\t\t\tif(componentInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tcheckfault = true;\n\t\t\t\t\tcomponentInput.setBackground(display.getSystemColor(SWT.COLOR_RED));\n\t\t\t\t}\n\t\t\t\tif(schoolInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tcheckfault = true;\n\t\t\t\t\tschoolInput.setBackground(display.getSystemColor(SWT.COLOR_RED));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(castimeInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tcheckfault = true;\n\t\t\t\t\tcastimeInput.setBackground(display.getSystemColor(SWT.COLOR_RED));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(levelInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tcheckfault = true;\n\t\t\t\t\tlevelInput.setBackground(display.getSystemColor(SWT.COLOR_RED));\n\t\t\t\t}\n\t\t\t\tif(checkfault)\n\t\t\t\t{\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\ta.put(\"NAME\", nameInput.getText());\n\t\t\t\ta.put(\"COMPONENTS\", componentInput.getText());\n\t\t\t\ta.put(\"SCHOOL\", schoolInput.getText());\n\t\t\t\ta.put(\"CASTINGTIME\", castimeInput.getText());\n\t\t\t\ta.put(\"LEVEL\", levelInput.getText());\n\t\t\t\tif(resistanceInput.getSelection())\n\t\t\t\t{\n\t\t\t\t\ta.put(\"SPELLRESISTANCE\", \"YES\");\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\ta.put(\"SPELLRESISTANCE\", \"NO\");\n\t\t\t\t}\n\t\t\t\tif(!materialInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\ta.put(\"MATERIALCOMPONENT\", materialInput.getText());\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tif(!savthrowInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\ta.put(\"SAVINGTHROW\", savthrowInput.getText());\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tif(!focusInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\ta.put(\"FOCUS\", focusInput.getText());\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tif(!durationInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\ta.put(\"DURATION\", durationInput.getText());\n\t\t\t\t}\n\t\t\t\tif(!damageInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\ta.put(\"DAMAGE\", damageInput.getText());\n\t\t\t\t}\n\t\t\t\tif(!damagealterInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\ta.put(\"DAMAGEALTERNATE\", damagealterInput.getText());\n\t\t\t\t}\n\t\t\t\tif(!rangeInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\ta.put(\"RANGE\", rangeInput.getText());\n\t\t\t\t}\n\t\t\t\tif(!effectInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\ta.put(\"EFFECT\", effectInput.getText());\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\ta.put(\"DESCRIPTION\", descriptionInput.getText());\n\t\t\t\tnewspell = new SpellEntity(a);\n\t\t\t\tMain.gameState.abilities.put(newspell.getName(), newspell);\n\t\t\t\tMain.gameState.customContent.put(newspell.getName(), newspell);\n\t\t\t\tshell.close();\n\t\t\t}\n\t\t}\n\t\t);\n\t\tgd = new GridData(GridData.FILL, GridData.CENTER, false, false);\n\t\tgd.horizontalSpan = 1;\n\t\tsave.setLayoutData(gd);\n\t\tsave.pack();\n\t\tshell.setLayout(gl);\n\t\tshell.layout();\n\t\tshell.pack();\n//\t\t//wizard\n//\t\t\t\tfinal Composite wizPanel = new Composite(shell, SWT.BORDER);\n//\t\t\t\twizPanel.setBounds(0,0,WIDTH, HEIGHT);\n//\t\t\t\tfinal StackLayout wizLayout = new StackLayout();\n//\t\t\t\twizPanel.setLayout(wizLayout);\n//\t\t\t\t\n//\t\t\t\t//Page1 -- Name\n//\t\t\t\tfinal Composite wizpage1 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\twizpage1.setBounds(0,0,WIDTH,HEIGHT);\n//\t\t\t\t\n//\t\t\t\tfinal Label wiz1Label = new Label(wizpage1, SWT.NONE);\n//\t\t\t\twiz1Label.setText(\"Enter Name (required)\");\n//\t\t\t\twiz1Label.pack();\n//\t\t\t\tfinal Text wizpage1text = new Text(wizpage1, SWT.BORDER);\n//\t\t\t\twizpage1text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage1text.setText(\"FireBall\");\n//\t\t\t\tButton next1 = createNextButton(wizpage1);//TODO cancel and previous button\n//\t\t\t\tcreateBackButton(wizpage1, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage1, wizPanel, wizLayout);\n//\t\t\t\tnext1.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage1text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tspellname = wizpage1text.getText();\n//\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tSystem.out.println(\"PANIC: ITEM WIZARD PAGE 1 OUT\");\n//\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twiz1Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t}\n//\t\t\t\t}\n//\t\t\t\t);\n//\t\t\t\t\n//\t\t\t\twizPages.add(wizpage1);\n//\t\t\t\t//Page2 -- component\n//\t\t\t\tfinal Composite wizpage2 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz2Label = new Label(wizpage2, SWT.NONE);\n//\t\t\t\twiz2Label.setText(\"Enter Component: (required)\");\n//\t\t\t\twiz2Label.pack();\n//\t\t\t\tfinal Text wizpage2text = new Text(wizpage2, SWT.BORDER);\n//\t\t\t\twizpage2text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage2text.setText(\"Fire\");\n//\t\t\t\tButton next2 = createNextButton(wizpage2);\n//\t\t\t\tcreateBackButton(wizpage2, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage2, wizPanel, wizLayout);\n//\t\t\t\tnext2.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage2text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tspellcomp = wizpage2text.getText();\n//\t\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twiz2Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t\n//\n//\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage2);\n//\t\t\t\t//Page3 -- School\n//\t\t\t\tfinal Composite wizpage3 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz3Label = new Label(wizpage3, SWT.NONE);\n//\t\t\t\twiz3Label.setText(\"Enter School: (required)\");\n//\t\t\t\twiz3Label.pack();\n//\t\t\t\tfinal Text wizpage3text = new Text(wizpage3, SWT.BORDER);\n//\t\t\t\twizpage3text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage3text.setText(\"Descruction\");\n//\t\t\t\tButton next3 = createNextButton(wizpage3);\n//\t\t\t\tcreateBackButton(wizpage3, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage3, wizPanel, wizLayout);\n//\t\t\t\tnext3.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage3text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tspellschool = wizpage3text.getText();\n//\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twiz3Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage3);\n//\t\t\t\t//Page4 -- Range\n//\t\t\t\tfinal Composite wizpage4 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz4Label = new Label(wizpage4, SWT.NONE);\n//\t\t\t\twiz4Label.setText(\"Enter Range: (required)\");\n//\t\t\t\twiz4Label.pack();\n//\t\t\t\tfinal Text wizpage4text = new Text(wizpage4, SWT.BORDER);\n//\t\t\t\twizpage4text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage4text.setText(\"50 feet\");\n//\t\t\t\tButton next4 = createNextButton(wizpage4);\n//\t\t\t\tcreateBackButton(wizpage4, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage4, wizPanel, wizLayout);\n//\t\t\t\tnext4.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage4text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tspellrange = wizpage4text.getText();\n//\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twiz4Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage4);\n//\t\t\t\t//Page5 -- effect\n//\t\t\t\tfinal Composite wizpage5 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz5Label = new Label(wizpage5, SWT.NONE);\n//\t\t\t\twiz5Label.setText(\"Enter Effect: (required)\");\n//\t\t\t\twiz5Label.pack();\n//\t\t\t\tfinal Text wizpage5text = new Text(wizpage5, SWT.BORDER);\n//\t\t\t\twizpage5text.setBounds(50, 50, 250, 150);\n//\t\t\t\twizpage5text.setText(\"No effect\");\n//\t\t\t\tButton next5 = createNextButton(wizpage5);\n//\t\t\t\tcreateBackButton(wizpage5, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage5, wizPanel, wizLayout);\n//\t\t\t\tnext5.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage5text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tspelleffect = wizpage5text.getText();\n//\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twiz5Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage5);\n//\t\t\t\t//Page6 -- casting time\n//\t\t\t\tfinal Composite wizpage6 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz6Label = new Label(wizpage6, SWT.NONE);\n//\t\t\t\twiz6Label.setText(\"Enter Casting Time: (required)\");\n//\t\t\t\twiz6Label.pack();\n//\t\t\t\tfinal Text wizpage6text = new Text(wizpage6, SWT.BORDER);\n//\t\t\t\twizpage6text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage6text.setText(\"1 turn\");\n//\t\t\t\tButton next6 = createNextButton(wizpage6);\n//\t\t\t\tcreateBackButton(wizpage6, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage6, wizPanel, wizLayout);\n//\t\t\t\tnext6.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage5text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tspellcastime = wizpage6text.getText();\n//\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twiz6Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage6);\n//\t\t\t\t//Page7 -- Material Component\n//\t\t\t\tfinal Composite wizpage7 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz7Label = new Label(wizpage7, SWT.NONE);\n//\t\t\t\twiz7Label.setText(\"Enter Material Component: (required)\");\n//\t\t\t\twiz7Label.pack();\n//\t\t\t\tfinal Text wizpage7text = new Text(wizpage7, SWT.BORDER);\n//\t\t\t\twizpage7text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage7text.setText(\"None\");\n//\t\t\t\tButton next7 = createNextButton(wizpage7);\n//\t\t\t\tcreateBackButton(wizpage7, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage7, wizPanel, wizLayout);\n//\t\t\t\tnext7.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage7text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tspellmaterial = wizpage7text.getText();\n//\t\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twiz7Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t\n//\n//\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage7);\n//\t\t\t\t//Page8 -- saving throw\n//\t\t\t\tfinal Composite wizpage8 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz8Label = new Label(wizpage8, SWT.NONE);\n//\t\t\t\twiz8Label.setText(\"Enter Saving Throw: (required)\");\n//\t\t\t\twiz8Label.pack();\n//\t\t\t\tfinal Text wizpage8text = new Text(wizpage8, SWT.BORDER);\n//\t\t\t\twizpage8text.setBounds(50, 50, 200, 100);\n//\t\t\t\twizpage8text.setText(\"Will negate XX\");\n//\t\t\t\tButton next8 = createNextButton(wizpage8);\n//\t\t\t\tcreateBackButton(wizpage8, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage8, wizPanel, wizLayout);\n//\t\t\t\tnext8.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage8text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tspellsaving = wizpage8text.getText();\n//\t\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twiz8Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t\n//\n//\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage8);\n//\t\t\t\t//Page9 -- Focus\n//\t\t\t\tfinal Composite wizpage9 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz9Label = new Label(wizpage9, SWT.NONE);\n//\t\t\t\twiz9Label.setText(\"Enter Focus: (required)\");\n//\t\t\t\twiz9Label.pack();\n//\t\t\t\tfinal Text wizpage9text = new Text(wizpage9, SWT.BORDER);\n//\t\t\t\twizpage9text.setBounds(50, 50, 200, 100);\n//\t\t\t\twizpage9text.setText(\"A dart\");\n//\t\t\t\tButton next9 = createNextButton(wizpage9);\n//\t\t\t\tcreateBackButton(wizpage9, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage9, wizPanel, wizLayout);\n//\t\t\t\tnext9.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage9text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tspellfocus = wizpage9text.getText();\n//\t\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twiz9Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t\n//\n//\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage9);\n//\t\t\t\t//Page10 -- Duration\n//\t\t\t\tfinal Composite wizpage10 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz10Label = new Label(wizpage10, SWT.NONE);\n//\t\t\t\twiz10Label.setText(\"Enter Duration: (required)\");\n//\t\t\t\twiz10Label.pack();\n//\t\t\t\tfinal Text wizpage10text = new Text(wizpage10, SWT.BORDER);\n//\t\t\t\twizpage10text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage10text.setText(\"5 Turns\");\n//\t\t\t\tButton next10 = createNextButton(wizpage10);\n//\t\t\t\tcreateBackButton(wizpage10, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage10, wizPanel, wizLayout);\n//\t\t\t\tnext10.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage10text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tspellduration = wizpage10text.getText();\n//\t\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twiz10Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t\n//\n//\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage10);\n//\t\t\t\t//Page11 -- Level\n//\t\t\t\tfinal Composite wizpage11 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz11Label = new Label(wizpage11, SWT.NONE);\n//\t\t\t\twiz11Label.setText(\"Enter Level (required)\");\n//\t\t\t\twiz11Label.pack();\n//\t\t\t\tfinal Text wizpage11text = new Text(wizpage11, SWT.BORDER);\n//\t\t\t\twizpage11text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage11text.setText(\"1\");\n//\t\t\t\tButton next11 = createNextButton(wizpage11);\n//\t\t\t\tcreateBackButton(wizpage11, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage11, wizPanel, wizLayout);\n//\t\t\t\tnext11.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage11text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\ttry\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tif(Integer.parseInt(wizpage11text.getText()) >= 0)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tspelllevel = String.valueOf(Integer.parseInt(wizpage11text.getText()));\n//\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\telse\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\twiz11Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\tcatch(NumberFormatException a)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\twiz11Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twiz11Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage11);\n//\t\t\t\t//Page12 -- resistance\n//\t\t\t\tfinal Composite wizpage12 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz12Label = new Label(wizpage12, SWT.NONE);\n//\t\t\t\twiz12Label.setText(\"Enter Spell resistance: (Yes/No)\");\n//\t\t\t\twiz12Label.pack();\n//\t\t\t\tfinal Text wizpage12text = new Text(wizpage12, SWT.BORDER);\n//\t\t\t\twizpage12text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage12text.setText(\"Yes\");\n//\t\t\t\tButton next12 = createNextButton(wizpage12);\n//\t\t\t\tcreateBackButton(wizpage12, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage12, wizPanel, wizLayout);\n//\t\t\t\tnext12.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage12text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tspellresistance = wizpage12text.getText();\n//\t\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twiz12Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t\n//\n//\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage12);\n//\t\t\t\t//Page13 - Description\n//\t\t\t\tfinal Composite wizpage13 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tLabel wiz13Label = new Label(wizpage13, SWT.NONE);\n//\t\t\t\twiz13Label.setText(\"Enter Description (Optional)\");\n//\t\t\t\twiz13Label.pack(); \n//\t\t\t\tfinal Text wizpage13text = new Text(wizpage13, SWT.BORDER);\n//\t\t\t\twizpage13text.setBounds(50, 50, 300, 200);\n//\t\t\t\twizpage13text.setText(\"Description here\");\n//\t\t\t\tButton next13 = createNextButton(wizpage13);\n//\t\t\t\tcreateBackButton(wizpage13, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage13, wizPanel, wizLayout);\n//\t\t\t\tnext13.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage13text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tspellscript = wizpage13text.getText();\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tspellscript = \"<empty>\";\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\tCreateVerificationPage(wizPanel, wizLayout);\n//\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\n//\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t}\n//\t\t\t\t\t}\n//\n//\t\t\t\t\t\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage13);\n//\t\t\t\t\n//\t\t\t\twizLayout.topControl = wizpage1;\n//\t\t\t\twizPanel.layout();\n\t}", "private void createContents() {\n\t\tshell = new Shell(getParent(), SWT.MIN |SWT.APPLICATION_MODAL);\n\t\tshell.setImage(SWTResourceManager.getImage(WordWatermarkDialog.class, \"/com/yc/ui/1.jpg\"));\n\t\tshell.setSize(436, 321);\n\t\tshell.setText(\"设置文字水印\");\n\t\t\n\t\tLabel label_font = new Label(shell, SWT.NONE);\n\t\tlabel_font.setBounds(38, 80, 61, 17);\n\t\tlabel_font.setText(\"字体名称:\");\n\t\t\n\t\tLabel label_style = new Label(shell, SWT.NONE);\n\t\tlabel_style.setBounds(232, 77, 61, 17);\n\t\tlabel_style.setText(\"字体样式:\");\n\t\t\n\t\tLabel label_size = new Label(shell, SWT.NONE);\n\t\tlabel_size.setBounds(38, 120, 68, 17);\n\t\tlabel_size.setText(\"字体大小:\");\n\t\t\n\t\tLabel label_color = new Label(shell, SWT.NONE);\n\t\tlabel_color.setBounds(232, 120, 68, 17);\n\t\tlabel_color.setText(\"字体颜色:\");\n\t\t\n\t\tLabel label_word = new Label(shell, SWT.NONE);\n\t\tlabel_word.setBounds(38, 38, 61, 17);\n\t\tlabel_word.setText(\"水印文字:\");\n\t\t\n\t\ttext = new Text(shell, SWT.BORDER);\n\t\ttext.setBounds(115, 35, 278, 23);\n\t\t\n\t\tButton button_confirm = new Button(shell, SWT.NONE);\n\t\t\n\t\tbutton_confirm.setBounds(313, 256, 80, 27);\n\t\tbutton_confirm.setText(\"确定\");\n\t\t\n\t\tCombo combo = new Combo(shell, SWT.NONE);\n\t\tcombo.setItems(new String[] {\"宋体\", \"黑体\", \"楷体\", \"微软雅黑\", \"仿宋\"});\n\t\tcombo.setBounds(115, 77, 93, 25);\n\t\tcombo.setText(\"黑体\");\n\t\t\n\t\tCombo combo_1 = new Combo(shell, SWT.NONE);\n\t\tcombo_1.setItems(new String[] {\"粗体\", \"斜体\"});\n\t\tcombo_1.setBounds(300, 74, 93, 25);\n\t\tcombo_1.setText(\"粗体\");\n\t\t\n\t\tCombo combo_2 = new Combo(shell, SWT.NONE);\n\t\tcombo_2.setItems(new String[] {\"1\", \"3\", \"5\", \"8\", \"10\", \"12\", \"16\", \"18\", \"20\", \"24\", \"30\", \"36\", \"48\", \"56\", \"66\", \"72\"});\n\t\tcombo_2.setBounds(115, 117, 93, 25);\n\t\tcombo_2.setText(\"24\");\n\t\t\n\t\tCombo combo_3 = new Combo(shell, SWT.NONE);\n\t\tcombo_3.setItems(new String[] {\"红色\", \"绿色\", \"蓝色\"});\n\t\tcombo_3.setBounds(300, 117, 93, 25);\n\t\tcombo_3.setText(\"红色\");\n\t\t\n\t\tButton button_cancle = new Button(shell, SWT.NONE);\n\t\t\n\t\tbutton_cancle.setBounds(182, 256, 80, 27);\n\t\tbutton_cancle.setText(\"取消\");\n\t\t\n\t\tLabel label_X = new Label(shell, SWT.NONE);\n\t\tlabel_X.setBounds(31, 161, 68, 17);\n\t\tlabel_X.setText(\"X轴偏移值:\");\n\t\t\n\t\tCombo combo_4 = new Combo(shell, SWT.NONE);\n\t\tcombo_4.setItems(new String[] {\"10\", \"20\", \"30\", \"40\", \"50\", \"80\", \"100\", \"160\", \"320\", \"640\"});\n\t\tcombo_4.setBounds(115, 158, 93, 25);\n\t\tcombo_4.setText(\"50\");\n\t\t\n\t\tLabel label_Y = new Label(shell, SWT.NONE);\n\t\tlabel_Y.setText(\"Y轴偏移值:\");\n\t\tlabel_Y.setBounds(225, 161, 68, 17);\n\t\t\n\t\tCombo combo_5 = new Combo(shell, SWT.NONE);\n\t\tcombo_5.setItems(new String[] {\"10\", \"20\", \"30\", \"40\", \"50\", \"80\", \"100\", \"160\", \"320\", \"640\"});\n\t\tcombo_5.setBounds(300, 158, 93, 25);\n\t\tcombo_5.setText(\"50\");\n\t\t\n\t\tLabel label_alpha = new Label(shell, SWT.NONE);\n\t\tlabel_alpha.setBounds(46, 204, 53, 17);\n\t\tlabel_alpha.setText(\"透明度:\");\n\t\t\n\t\tCombo combo_6 = new Combo(shell, SWT.NONE);\n\t\tcombo_6.setItems(new String[] {\"0\", \"0.1\", \"0.2\", \"0.3\", \"0.4\", \"0.5\", \"0.6\", \"0.7\", \"0.8\", \"0.9\", \"1.0\"});\n\t\tcombo_6.setBounds(115, 201, 93, 25);\n\t\tcombo_6.setText(\"0.8\");\n\t\t\n\t\t//取消按钮\n\t\tbutton_cancle.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tWordWatermarkDialog.this.shell.dispose();\n\t\t\t}\n\t\t});\n\t\t\n\t\t//确认按钮\n\t\tbutton_confirm.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\n\t\t\t\tif(text.getText().trim()==null || \"\".equals(text.getText().trim())\n\t\t\t\t\t\t||combo.getText().trim()==null || \"\".equals(combo.getText().trim()) \n\t\t\t\t\t\t\t||combo_1.getText().trim()==null || \"\".equals(combo_1.getText().trim())\n\t\t\t\t\t\t\t\t|| combo_2.getText().trim()==null || \"\".equals(combo_2.getText().trim())\n\t\t\t\t\t\t\t\t\t|| combo_3.getText().trim()==null || \"\".equals(combo_3.getText().trim())\n\t\t\t\t\t\t\t\t\t\t||combo_4.getText().trim()==null || \"\".equals(combo_4.getText().trim())\n\t\t\t\t\t\t\t\t\t\t\t||combo_5.getText().trim()==null || \"\".equals(combo_5.getText().trim())\n\t\t\t\t\t\t\t\t\t\t\t\t||combo_6.getText().trim()==null || \"\".equals(combo_6.getText().trim())){\n\t\t\t\t\tMessageDialog.openError(shell, \"错误\", \"输入框不能为空或输入空值,请确认后重新输入!\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tString word=text.getText().trim();\n\t\t\t\tString wordName=getFontName(combo.getText().trim());\n\t\t\t\tint wordStyle=getFonStyle(combo_1.getText().trim());\n\t\t\t\tint wordSize=Integer.parseInt(combo_2.getText().trim());\n\t\t\t\tColor wordColor=getFontColor(combo_3.getText().trim());\n\t\t\t\tint word_X=Integer.parseInt(combo_4.getText().trim());\n\t\t\t\tint word_Y=Integer.parseInt(combo_5.getText().trim());\n\t\t\t\tfloat word_Alpha=Float.parseFloat(combo_6.getText().trim());\n\t\t\t\t\n\t\t\t\tis=MeituUtils.waterMarkWord(EditorUi.filePath,word, wordName, wordStyle, wordSize, wordColor, word_X, word_Y,word_Alpha);\n\t\t\t\tCommon.image=new Image(display,is);\n\t\t\t\tWordWatermarkDialog.this.shell.dispose();\n\t\t\t}\n\t\t});\n\t\t\n\t\t\n\t\tcombo.addVerifyListener(new VerifyListener() { \n\t\t\t public void verifyText(VerifyEvent e) { \n\t\t\t Pattern pattern = Pattern.compile(\"[^0-9]*\"); \n\t\t\t Matcher matcher = pattern.matcher(e.text); \n\t\t\t if (matcher.matches()) // 处理数字 \n\t\t\t \t e.doit = true; \n\t\t\t else if (e.text.length() > 0) // 有字符情况,包含中文、空格 \n\t\t\t \t e.doit = false; \n\t\t\t else \n\t\t\t \t e.doit = false; \n\t\t\t } \n\t\t });\n\n\t\tcombo_1.addVerifyListener(new VerifyListener() { \n\t\t\t public void verifyText(VerifyEvent e) { \n\t\t\t Pattern pattern = Pattern.compile(\"[^0-9]*\"); \n\t\t\t Matcher matcher = pattern.matcher(e.text); \n\t\t\t if (matcher.matches()) // 处理数字 \n\t\t\t \t e.doit = true; \n\t\t\t else if (e.text.length() > 0) // 有字符情况,包含中文、空格 \n\t\t\t \t e.doit = false; \n\t\t\t else \n\t\t\t \t e.doit = false; \n\t\t\t } \n\t\t });\n\t\t\n\t\tcombo_2.addVerifyListener(new VerifyListener() { \n\t\t\t public void verifyText(VerifyEvent e) { \n\t\t\t Pattern pattern = Pattern.compile(\"[0-9]\\\\d*\"); \n\t\t\t Matcher matcher = pattern.matcher(e.text); \n\t\t\t if (matcher.matches()) // 处理数字 \n\t\t\t \t e.doit = true; \n\t\t\t else if (e.text.length() > 0) // 有字符情况,包含中文、空格 \n\t\t\t \t e.doit = false; \n\t\t\t else \n\t\t\t \t e.doit = false; \n\t\t\t } \n\t\t });\n\t\t\n\t\tcombo_3.addVerifyListener(new VerifyListener() { \n\t\t\t public void verifyText(VerifyEvent e) { \n\t\t\t Pattern pattern = Pattern.compile(\"[^0-9]*\"); \n\t\t\t Matcher matcher = pattern.matcher(e.text); \n\t\t\t if (matcher.matches()) // 处理数字 \n\t\t\t \t e.doit = true; \n\t\t\t else if (e.text.length() > 0) // 有字符情况,包含中文、空格 \n\t\t\t \t e.doit = false; \n\t\t\t else \n\t\t\t \t e.doit = false; \n\t\t\t } \n\t\t });\n\t\t\n\t\t\n\t\t\n\t\tcombo_4.addVerifyListener(new VerifyListener() { \n\t\t\t public void verifyText(VerifyEvent e) { \n\t\t\t Pattern pattern = Pattern.compile(\"[0-9]\\\\d*\"); \n\t\t\t Matcher matcher = pattern.matcher(e.text); \n\t\t\t if (matcher.matches()) // 处理数字 \n\t\t\t \t e.doit = true; \n\t\t\t else if (e.text.length() > 0) // 有字符情况,包含中文、空格 \n\t\t\t \t e.doit = false; \n\t\t\t else \n\t\t\t \t e.doit = false; \n\t\t\t } \n\t\t });\n\t\t\n\t\tcombo_5.addVerifyListener(new VerifyListener() { \n\t\t\t public void verifyText(VerifyEvent e) { \n\t\t\t Pattern pattern = Pattern.compile(\"[0-9]\\\\d*\"); \n\t\t\t Matcher matcher = pattern.matcher(e.text); \n\t\t\t if (matcher.matches()) // 处理数字 \n\t\t\t \t e.doit = true; \n\t\t\t else if (e.text.length() > 0) // 有字符情况,包含中文、空格 \n\t\t\t \t e.doit = false; \n\t\t\t else \n\t\t\t \t e.doit = false; \n\t\t\t } \n\t\t });\n\t\t\n\t\tcombo_6.addVerifyListener(new VerifyListener() { \n\t\t\t public void verifyText(VerifyEvent e) { \n\t\t\t Pattern pattern = Pattern.compile(\".[0-9]*\"); \n\t\t\t Matcher matcher = pattern.matcher(e.text); \n\t\t\t if (matcher.matches()) // 处理数字 \n\t\t\t \t e.doit = true; \n\t\t\t else if (e.text.length() > 0) // 有字符情况,包含中文、空格 \n\t\t\t \t e.doit = false; \n\t\t\t else \n\t\t\t \t e.doit = false; \n\t\t\t } \n\t\t });\n\n\t}", "public void initApp() {\n \tint ms = (int) Math.round(1000d / Settings.getFramesPerSecond());\n \ttimer = new Timer(ms, this);\n \ttimer.start();\n setBackground(new Color(35, 35, 35));\n Dimension d = new Dimension(Settings.getGridDimensions());\n d.setSize(d.getWidth() + Settings.getBoxSize() * 4 + 80, d.getHeight());\n setPreferredSize(d);\n setFocusable(true);\n }", "public void initTurnPanel() {\n this.turnPanel = new JPanel();\n int turnPanelWidth = 0;\n Font f = new Font(\"Helvetica\", Font.BOLD, 18);\n\n turnPanel.setBackground(new Color(0xeaf1f7));\n turnPanel.setLayout(new GridLayout(1, nicknames.size(), 0, 0));\n\n for (int i = 0; i < nicknames.size(); i++) {\n turnPanelWidth = turnPanelWidth + nicknames.get(i).getText().length();\n nicknames.get(i).setFont(f);\n nicknames.get(i).setSize(new Dimension(nicknames.get(i).getText().length() * letterOffset, buttonHeight));\n turnPanel.add(nicknames.get(i));\n }\n turnPanelWidth = turnPanelWidth*letterOffset;\n turnPanel.setPreferredSize(new Dimension(turnPanelWidth+50*nicknames.size(), buttonHeight));\n\n blankLabels = new JLabel[2];\n for (int i = 0; i < blankLabels.length; i++) {\n blankLabels[i] = new JLabel();\n blankLabels[i].setPreferredSize(new Dimension(80, buttonHeight));\n navigationBar.add(blankLabels[i]);\n }\n\n this.navigationBar.add(turnPanel);\n }", "public void initTextPane()\r\n {\r\n\t setResultsFont();\r\n\t ResultsTextPane.setBorder(null);\r\n\r\n // Scroller.\r\n \tJScrollPane ResultsScrollPane = new JScrollPane();\r\n \tJViewport ResultsViewport = ResultsScrollPane.getViewport();\r\n \tResultsViewport.add(ResultsTextPane);\r\n\r\n \tJPanel ResultsPanel = new JPanel();\r\n \tResultsPanel.setLayout(new BorderLayout());\r\n \tResultsPanel.add(\"Center\", ResultsScrollPane);\r\n\r\n \tgetContentPane().add(\"Center\", ResultsPanel);\r\n }", "private void createContents() {\n // シェル\n super.createContents(this.parent, SWT.CLOSE | SWT.TITLE, false);\n this.getShell().setText(\"つぶやく\");\n this.shell = this.getShell();\n\n // レイアウト\n GridLayout glShell = new GridLayout(3, false);\n // glShell.horizontalSpacing = 1;\n glShell.marginHeight = 10;\n glShell.marginWidth = 10;\n // glShell.verticalSpacing = 1;\n this.shell.setLayout(glShell);\n\n Label thumnail = new Label(this.shell, SWT.NONE);\n GridData gdThumnail = new GridData(SWT.CENTER, SWT.CENTER, false, false, 3, 1);\n thumnail.setLayoutData(gdThumnail);\n try {\n Image orig = SwtUtils.makeImage(this.imageFile);\n thumnail.setImage(SwtUtils.scaleToFit(orig, 400, 300));\n orig.dispose();\n } catch (IOException e2) {\n SwtUtils.errorDialog(e2, TweetDialog.this.shell);\n }\n\n final Text text = new Text(this.shell, SWT.MULTI | SWT.BORDER | SWT.WRAP);\n GridData gdText = new GridData(SWT.FILL, SWT.FILL, true, true, 3, 1);\n gdText.widthHint = SwtUtils.DPIAwareWidth(300);\n gdText.heightHint = SwtUtils.DPIAwareHeight(80);\n text.setLayoutData(gdText);\n\n Label userName = new Label(this.shell, SWT.NONE);\n userName.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\n try {\n userName.setText(TwitterClient.getInstance().getUser().getScreenName());\n } catch (TwitterException e1) {\n SwtUtils.errorDialog(e1, TweetDialog.this.shell);\n }\n\n final Label remainChars = new Label(this.shell, SWT.NONE);\n remainChars.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));\n text.addModifyListener(new ModifyListener() {\n\n @Override\n public void modifyText(ModifyEvent e) {\n int remain = 117 - text.getText().length();\n remainChars.setText(String.valueOf(remain));\n }\n });\n text.setText(\"\");\n\n Button tweet = new Button(this.shell, SWT.NONE);\n GridData gdTweet = new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1);\n gdTweet.widthHint = SwtUtils.DPIAwareWidth(100);\n tweet.setLayoutData(gdTweet);\n tweet.setText(\"つぶやく\");\n tweet.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent e) {\n try {\n TwitterClient.getInstance().tweet(\n TweetDialog.this, text.getText(), TweetDialog.this.imageFile);\n TweetDialog.this.shell.close();\n ApplicationMain.logPrint(\"つぶやきました\");\n } catch (TwitterException e1) {\n SwtUtils.errorDialog(e1, TweetDialog.this.shell);\n }\n }\n });\n\n this.shell.pack();\n }", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.getContentPane().setForeground(new Color(0, 0, 0));\n\t\tframe.setBounds(100, 100, 450, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\tJPanel panel = new JPanel();\n\t\tpanel.setBackground(new Color(255, 0, 0));\n\t\tpanel.setBorder(new BevelBorder(BevelBorder.RAISED, Color.DARK_GRAY, Color.WHITE, null, null));\n\t\tpanel.setBounds(10, 24, 27, 31);\n\t\tframe.getContentPane().add(panel);\n\t\t\n\t\tJLabel A1 = new JLabel(\"A1\");\n\t\tpanel.add(A1);\n\t\t\n\t\tJPanel panel_1 = new JPanel();\n\t\tpanel_1.setBorder(new BevelBorder(BevelBorder.RAISED, Color.DARK_GRAY, Color.WHITE, null, null));\n\t\tpanel_1.setBounds(59, 24, 27, 31);\n\t\tframe.getContentPane().add(panel_1);\n\t\t\n\t\tJLabel A1_1 = new JLabel(\"A2\");\n\t\tpanel_1.add(A1_1);\n\t\t\n\t\tJPanel panel_2 = new JPanel();\n\t\tpanel_2.setBackground(new Color(0, 255, 255));\n\t\tpanel_2.setBorder(new BevelBorder(BevelBorder.RAISED, Color.DARK_GRAY, Color.WHITE, null, null));\n\t\tpanel_2.setBounds(110, 24, 27, 31);\n\t\tframe.getContentPane().add(panel_2);\n\t\t\n\t\tJLabel A1_2 = new JLabel(\"A3\");\n\t\tpanel_2.add(A1_2);\n\t\t\n\t\tJPanel panel_3 = new JPanel();\n\t\tpanel_3.setBorder(new BevelBorder(BevelBorder.RAISED, Color.DARK_GRAY, Color.WHITE, null, null));\n\t\tpanel_3.setBounds(10, 72, 27, 31);\n\t\tframe.getContentPane().add(panel_3);\n\t\t\n\t\tJLabel A1_3 = new JLabel(\"B1\");\n\t\tpanel_3.add(A1_3);\n\t\t\n\t\tJPanel panel_4 = new JPanel();\n\t\tpanel_4.setBorder(new BevelBorder(BevelBorder.RAISED, Color.DARK_GRAY, Color.WHITE, null, null));\n\t\tpanel_4.setBounds(59, 72, 27, 31);\n\t\tframe.getContentPane().add(panel_4);\n\t\t\n\t\tJLabel A1_4 = new JLabel(\"B2\");\n\t\tpanel_4.add(A1_4);\n\t\t\n\t\tJPanel panel_5 = new JPanel();\n\t\tpanel_5.setBorder(new BevelBorder(BevelBorder.RAISED, Color.DARK_GRAY, Color.WHITE, null, null));\n\t\tpanel_5.setBounds(110, 72, 27, 31);\n\t\tframe.getContentPane().add(panel_5);\n\t\t\n\t\tJLabel A1_5 = new JLabel(\"B3\");\n\t\tpanel_5.add(A1_5);\n\t\t\n\t\tJPanel panel_6 = new JPanel();\n\t\tpanel_6.setBorder(new BevelBorder(BevelBorder.RAISED, Color.DARK_GRAY, Color.WHITE, null, null));\n\t\tpanel_6.setBounds(10, 125, 27, 31);\n\t\tframe.getContentPane().add(panel_6);\n\t\t\n\t\tJLabel A1_6 = new JLabel(\"C1\");\n\t\tpanel_6.add(A1_6);\n\t\t\n\t\tJPanel panel_7 = new JPanel();\n\t\tpanel_7.setBorder(new BevelBorder(BevelBorder.RAISED, Color.DARK_GRAY, Color.WHITE, null, null));\n\t\tpanel_7.setBounds(59, 125, 27, 31);\n\t\tframe.getContentPane().add(panel_7);\n\t\t\n\t\tJLabel A1_7 = new JLabel(\"C2\");\n\t\tpanel_7.add(A1_7);\n\t\t\n\t\tJPanel panel_8 = new JPanel();\n\t\tpanel_8.setBorder(new BevelBorder(BevelBorder.RAISED, Color.DARK_GRAY, Color.WHITE, null, null));\n\t\tpanel_8.setBounds(110, 125, 27, 31);\n\t\tframe.getContentPane().add(panel_8);\n\t\t\n\t\tJLabel A1_8 = new JLabel(\"C3\");\n\t\tpanel_8.add(A1_8);\n\t\t\n\t\tJPanel panel_9 = new JPanel();\n\t\tpanel_9.setBounds(10, 226, 127, 24);\n\t\tframe.getContentPane().add(panel_9);\n\t\t\n\t\tJLabel lblNewLabel = new JLabel(\"Layar Bioskop\");\n\t\tlblNewLabel.setForeground(UIManager.getColor(\"CheckBox.foreground\"));\n\t\tpanel_9.add(lblNewLabel);\n\t\t\n\t\tJButton btnNewButton = new JButton(\"Pesan Tiket\");\n\t\tbtnNewButton.setBackground(UIManager.getColor(\"Button.disabledForeground\"));\n\t\tbtnNewButton.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t}\n\t\t});\n\t\tbtnNewButton.setBounds(295, 227, 89, 23);\n\t\tframe.getContentPane().add(btnNewButton);\n\t\t\n\t\tJLabel lblNewLabel_1 = new JLabel(\"Konfirmasi Pemesanan\");\n\t\tlblNewLabel_1.setFont(new Font(\"Tahoma\", Font.BOLD, 17));\n\t\tlblNewLabel_1.setVerticalAlignment(SwingConstants.TOP);\n\t\tlblNewLabel_1.setBounds(217, 5, 196, 31);\n\t\tframe.getContentPane().add(lblNewLabel_1);\n\t\t\n\t\tJLabel lblNewLabel_2 = new JLabel(\"Harga: Rp 50.000\");\n\t\tlblNewLabel_2.setBounds(217, 114, 89, 14);\n\t\tframe.getContentPane().add(lblNewLabel_2);\n\t\t\n\t\tJPanel panel_10 = new JPanel();\n\t\tpanel_10.setBorder(new EtchedBorder(EtchedBorder.LOWERED, UIManager.getColor(\"Button.focus\"), null));\n\t\tpanel_10.setBounds(0, 0, 196, 261);\n\t\tframe.getContentPane().add(panel_10);\n\t\t\n\t\tJLabel lblNewLabel_2_1 = new JLabel(\"Biaya adm: Rp 1.500 \");\n\t\tlblNewLabel_2_1.setBounds(217, 139, 127, 14);\n\t\tframe.getContentPane().add(lblNewLabel_2_1);\n\t\t\n\t\tJLabel lblNewLabel_2_2 = new JLabel(\"Bioskop: Transmart Buah Batu\");\n\t\tlblNewLabel_2_2.setBounds(216, 90, 152, 14);\n\t\tframe.getContentPane().add(lblNewLabel_2_2);\n\t\t\n\t\tJLabel lblNewLabel_2_3 = new JLabel(\"Tiket: 1 tiket\");\n\t\tlblNewLabel_2_3.setBounds(216, 66, 89, 14);\n\t\tframe.getContentPane().add(lblNewLabel_2_3);\n\t\t\n\t\tJLabel lblNewLabel_2_4 = new JLabel(\"Kursi: A3\");\n\t\tlblNewLabel_2_4.setBounds(216, 47, 89, 14);\n\t\tframe.getContentPane().add(lblNewLabel_2_4);\n\t}", "public void initComponents() {\n\t\taddButton = new JButton(addFlightText);\n\t\tdelayButton = new JButton(delayFlightText);\n\t\tquitButton = new JButton(quitText);\n\t\t// TODO: Add button instanciations for other operations\n\n\t\t// Initialize display area\n\t\tdisplayArea = new JTextArea(LINE_COUNT, LINE_SIZE);\n\t\tdisplayArea.setEditable(false);\n\t\tscrollPane = new JScrollPane(displayArea, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS,\n\t\t\t\tJScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);\n\t}", "private void initialize() {\r\n\r\n\t\ttitleFont = new Font(\"宋体\", Font.BOLD + Font.PLAIN, 16);\r\n\t\tfont = new Font(\"宋体\", Font.PLAIN, 12);\r\n\t\ttry {\r\n\t\t\tcolor = new Color(Integer.parseInt(\"D3D3D3\", 16));\r\n\t\t} catch (NumberFormatException e) {\r\n\t\t\t// codes to deal with this exception\r\n\t\t}\r\n\t\tdaojLabel = new JLabel();\r\n\t\tdaojLabel.setBounds(new Rectangle(255, 33, 15, 18));\r\n\t\tdaojLabel.setText(\"到\");\r\n\t\tdaojLabel.setFont(font);\r\n\t\tdaojLabel.setForeground(color);\r\n\t\tcxsjjLabel = new JLabel();\r\n\t\tcxsjjLabel.setBounds(new Rectangle(92, 33, 59, 18));\r\n\t\tcxsjjLabel.setText(\"查询时间:\");\r\n\t\tcxsjjLabel.setFont(font);\r\n\t\tcxsjjLabel.setForeground(color);\r\n\t\t// 设置导航panel\r\n\t\tnavigatePanel = new JPanel();\r\n\t\tnavigatePanel.setLayout(null);\r\n\t\tnavigatePanel.add(this.getProjButton());\r\n\t\tnavigatePanel.add(this.getNextjButton());\r\n\t\tnavigatePanel.setBounds(new Rectangle(95, 510, 788, 20));\r\n\t\tColor color = new Color(35, 35, 35);\r\n\t\t// navigatePanel.setBackground(Color.GRAY);\r\n\t\tnavigatePanel.setBackground(color);\r\n\t\tthis.add(navigatePanel);\r\n\r\n\t\tthis.setSize(976, 601);\r\n\t\tthis.setLayout(null);\r\n\t\tthis.add(cxsjjLabel, null);\r\n\t\tthis.add(getBegjTextField(), null);\r\n\t\tthis.add(daojLabel, null);\r\n\t\tthis.add(getEndjTextField(), null);\r\n\t\tthis.add(getCxjButton(), null);\r\n\r\n\t\tgetylcs = new GetYlcs();\r\n\t\tthis.add(getMainjPanel(), null);\r\n\r\n\t}", "public AbstractREPLPanel() {\r\n\t\tsuper(new BorderLayout());\r\n\r\n\t\tloadArea();\r\n\t\tstyles = StyleSettings.getInstance(area);\r\n\t}", "private void initUI() {\n\t\tPanel p = new Panel();\n\t\tp.setLayout(new BorderLayout());\n\t\t\n\t\tPanel flowLayoutPanel = new Panel();\n\t\tflowLayoutPanel.setLayout(new FlowLayout());\n\t\t\n\t\ttextArea = new JTextArea();\n\t\t\n\t\tMyCloseButton exitButton = new MyCloseButton(\"Exit\");\n\t\t/*\n\t\texit.addActionListener(new ActionListener(){\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t\t\t\t\n\t\t});\n\t\t*/\n\t\tMyOpenButton saveButton = new MyOpenButton(\"Open\");\n\t\t/*\n\t\tsaveButton.addActionListener(new ActionListener(){\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t\n\t\t});\n\t\t*/\n\t\tMySaveButton mySaveButton =new MySaveButton(\"Save\");\n\t\t//setVisible(mb);\n\t\tp.add(flowLayoutPanel, BorderLayout.SOUTH);\n\t\tflowLayoutPanel.add(exitButton);\n\t\tflowLayoutPanel.add(saveButton);\n\t\tflowLayoutPanel.add(mySaveButton);\n\t\tp.add(textArea, BorderLayout.CENTER); \n\t\tadd(p);\n\t\t\n\t\tcreateMenu();\n\t\t\n\t\tsetTitle(\"Text Editor\");\n\t\tsetSize(600, 600);\n\t\tsetLocationRelativeTo(null);\n\t\tsetDefaultCloseOperation(EXIT_ON_CLOSE);\n\t\t\n\t}", "private void initialize() {\r\n\t\tframe = new JFrame(\"Dashboard\");\r\n\t\tframe.getContentPane().setFont(new Font(\"Yu Gothic Medium\", Font.BOLD, 15));\r\n\t\tframe.getContentPane().setForeground(new Color(255, 255, 255));\r\n\t\tframe.getContentPane().setBackground(new Color(255, 255, 255));\r\n\t\tframe.setBackground(new Color(47, 79, 79));\r\n\t\tframe.setBounds(100, 100, 1126, 556);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.getContentPane().setLayout(null);\r\n\t\t\r\n\t\tBorder blackline = BorderFactory.createLineBorder(Color.red);\r\n\t\t\r\n\t\tJLabel lbl_name = new JLabel(\"Name\");\r\n\t\tlbl_name.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlbl_name.setForeground(new Color(255, 255, 255));\r\n\t\tlbl_name.setFont(new Font(\"Tahoma\", Font.BOLD, 15));\r\n\t\tlbl_name.setBounds(625, 196, 127, 24);\r\n\t\tframe.getContentPane().add(lbl_name);\r\n\t\t\r\n\t\tJLabel lbl_photo = new JLabel(\"\");\r\n\t\tlbl_photo.setBackground(new Color(255, 255, 255));\r\n\t\tlbl_photo.setBounds(625, 28, 127, 148);\r\n\t\tlbl_photo.setBorder(blackline);\r\n\t\tframe.getContentPane().add(lbl_photo);\r\n\t\t\r\n\t\tJPanel menuPanel = new JPanel();\r\n\t\tmenuPanel.setBounds(0, 0, 278, 517);\r\n\t\tmenuPanel.setBackground(new Color(47, 79, 79));\r\n\t\tframe.getContentPane().add(menuPanel);\r\n\t\tmenuPanel.setLayout(null);\r\n\t\t\r\n\t\tJLabel menuLabel = new JLabel(\"My Dashboard\");\r\n\t\tmenuLabel.setBounds(0, 0, 278, 54);\r\n\t\tmenuLabel.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tmenuLabel.setForeground(new Color(255, 255, 255));\r\n\t\tmenuLabel.setFont(new Font(\"Bell MT\", Font.BOLD, 28));\r\n\t\tmenuLabel.setBackground(new Color(46, 139, 87));\r\n\t\tmenuLabel.setOpaque(true);\r\n\t\tmenuPanel.add(menuLabel);\r\n\t\t\r\n\t\tJPanel panel = new JPanel();\r\n\t\tpanel.setBackground(new Color(47, 79, 79));\r\n\t\tpanel.setForeground(new Color(255, 255, 255));\r\n\t\tpanel.setBounds(10, 80, 258, 45);\r\n\t\tmenuPanel.add(panel);\r\n\t\tpanel.setLayout(null);\r\n\t\t\r\n\t\tJLabel lbl_1 = new JLabel(\"\");\r\n\t\tlbl_1.setBounds(20, 5, 40, 35);\r\n\t\tlbl_1.setIcon(new ImageIcon(img_home));\r\n\t\tpanel.add(lbl_1);\r\n\t\t\r\n\t\tJButton btn_home = new JButton(\"Home\");\r\n\t\tbtn_home.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseEntered(MouseEvent e) \r\n\t\t\t{\r\n\t\t\t\tbtn_home.setForeground((new Color(46, 139, 87)));\r\n\t\t\t}\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseExited(MouseEvent e) \r\n\t\t\t{\r\n\t\t\t\tbtn_home.setForeground(new Color(255, 255, 255));\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtn_home.setForeground(new Color(255, 255, 255));\r\n\t\tbtn_home.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) \r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"Home is clicked\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtn_home.setFont(new Font(\"Tahoma\", Font.BOLD, 16));\r\n\t\tbtn_home.setHorizontalAlignment(SwingConstants.LEADING);\r\n\t\tbtn_home.setBounds(66, 5, 142, 35);\r\n\t\tbtn_home.setOpaque(false);\r\n\t\tbtn_home.setContentAreaFilled(false);\r\n\t\tbtn_home.setBorderPainted(false);\r\n\t\tbtn_home.setFocusPainted(false);\r\n\t\tpanel.add(btn_home);\r\n\t\t\r\n\t\tJPanel panel_1 = new JPanel();\r\n\t\tpanel_1.setBackground(new Color(47, 79, 79));\r\n\t\tpanel_1.setLayout(null);\r\n\t\tpanel_1.setBounds(10, 145, 258, 45);\r\n\t\tmenuPanel.add(panel_1);\r\n\t\t\r\n\t\tJLabel lbl_2 = new JLabel(\"\");\r\n\t\tlbl_2.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlbl_2.setBounds(20, 5, 40, 35);\r\n\t\tlbl_2.setIcon(new ImageIcon(img_leave));\r\n\t\tpanel_1.add(lbl_2);\r\n\t\t\r\n\t\tJButton btn_leave = new JButton(\"Apply Leave\");\r\n\t\tbtn_leave.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseEntered(MouseEvent e) \r\n\t\t\t{\r\n\t\t\t\tbtn_leave.setForeground((new Color(46, 139, 87)));\r\n\t\t\t}\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseExited(MouseEvent e) \r\n\t\t\t{\r\n\t\t\t\tbtn_leave.setForeground((new Color(255, 255, 255)));\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtn_leave.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) \r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"Leave is clicked\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtn_leave.setForeground(new Color(255, 255, 255));\r\n\t\tbtn_leave.setHorizontalAlignment(SwingConstants.LEADING);\r\n\t\tbtn_leave.setFont(new Font(\"Tahoma\", Font.BOLD, 16));\r\n\t\tbtn_leave.setFocusPainted(false);\r\n\t\tbtn_leave.setContentAreaFilled(false);\r\n\t\tbtn_leave.setBorderPainted(false);\r\n\t\tbtn_leave.setBounds(70, 5, 142, 35);\r\n\t\tpanel_1.add(btn_leave);\r\n\t\t\r\n\t\tJPanel panel_1_1 = new JPanel();\r\n\t\tpanel_1_1.setBackground(new Color(47, 79, 79));\r\n\t\tpanel_1_1.setLayout(null);\r\n\t\tpanel_1_1.setBounds(10, 210, 258, 45);\r\n\t\tmenuPanel.add(panel_1_1);\r\n\t\t\r\n\t\tJLabel lbl_3 = new JLabel(\"\");\r\n\t\tlbl_3.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlbl_3.setBounds(20, 5, 40, 35);\r\n\t\tlbl_3.setIcon(new ImageIcon(img_marks));\r\n\t\tpanel_1_1.add(lbl_3);\r\n\t\t\r\n\t\tJButton btn_marks = new JButton(\"Marks\");\r\n\t\tbtn_marks.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseEntered(MouseEvent e) \r\n\t\t\t{\r\n\t\t\t\tbtn_marks.setForeground((new Color(46, 139, 87)));\r\n\t\t\t}\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseExited(MouseEvent e) \r\n\t\t\t{\r\n\t\t\t\tbtn_marks.setForeground((new Color(255, 255, 255)));\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtn_marks.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) \r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"Marks is clicked\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtn_marks.setForeground(new Color(255, 255, 255));\r\n\t\tbtn_marks.setOpaque(false);\r\n\t\tbtn_marks.setHorizontalAlignment(SwingConstants.LEADING);\r\n\t\tbtn_marks.setFont(new Font(\"Tahoma\", Font.BOLD, 16));\r\n\t\tbtn_marks.setFocusPainted(false);\r\n\t\tbtn_marks.setContentAreaFilled(false);\r\n\t\tbtn_marks.setBorderPainted(false);\r\n\t\tbtn_marks.setBounds(70, 5, 142, 35);\r\n\t\tpanel_1_1.add(btn_marks);\r\n\t\t\r\n\t\tJPanel panel_1_1_1 = new JPanel();\r\n\t\tpanel_1_1_1.setBackground(new Color(47, 79, 79));\r\n\t\tpanel_1_1_1.setLayout(null);\r\n\t\tpanel_1_1_1.setBounds(10, 275, 258, 45);\r\n\t\tmenuPanel.add(panel_1_1_1);\r\n\t\t\r\n\t\tJLabel lbl_4 = new JLabel(\"\");\r\n\t\tlbl_4.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlbl_4.setBounds(20, 5, 40, 35);\r\n\t\tlbl_4.setIcon(new ImageIcon(img_attendance));\r\n\t\tpanel_1_1_1.add(lbl_4);\r\n\t\t\r\n\t\tJButton btn_attendance = new JButton(\"Atendance\");\r\n\t\tbtn_attendance.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseEntered(MouseEvent e) \r\n\t\t\t{\r\n\t\t\t\tbtn_attendance.setForeground((new Color(46, 139, 87)));\r\n\t\t\t}\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseExited(MouseEvent e) \r\n\t\t\t{\r\n\t\t\t\tbtn_attendance.setForeground((new Color(255, 255, 255)));\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtn_attendance.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) \r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"Attendance is clicked\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtn_attendance.setForeground(new Color(255, 255, 255));\r\n\t\tbtn_attendance.setOpaque(false);\r\n\t\tbtn_attendance.setHorizontalAlignment(SwingConstants.LEADING);\r\n\t\tbtn_attendance.setFont(new Font(\"Tahoma\", Font.BOLD, 16));\r\n\t\tbtn_attendance.setFocusPainted(false);\r\n\t\tbtn_attendance.setContentAreaFilled(false);\r\n\t\tbtn_attendance.setBorderPainted(false);\r\n\t\tbtn_attendance.setBounds(70, 5, 142, 35);\r\n\t\tpanel_1_1_1.add(btn_attendance);\r\n\t\t\r\n\t\tJLabel lbl_back = new JLabel(\"\");\r\n\t\tlbl_back.setBounds(278, 0, 832, 255);\r\n\t\tlbl_back.setIcon(new ImageIcon(img_background));\r\n\t\tframe.getContentPane().add(lbl_back);\r\n\t\t\r\n\t\tJLabel lbl_logo = new JLabel(\"\");\r\n\t\tlbl_logo.setBounds(308, 255, 278, 100);\r\n\t\tlbl_logo.setIcon(new ImageIcon(img_logo));\r\n\t\tframe.getContentPane().add(lbl_logo);\r\n\t\t\r\n\t\tJLabel lbl_welcome = new JLabel(\"WELCOME\");\r\n\t\tlbl_welcome.setForeground(new Color(47, 79, 79));\r\n\t\tlbl_welcome.setFont(new Font(\"Times New Roman\", Font.BOLD, 25));\r\n\t\tlbl_welcome.setBounds(308, 366, 239, 38);\r\n\t\tframe.getContentPane().add(lbl_welcome);\r\n\t\t\r\n\t\tJLabel lbl_name1 = new JLabel(\"Name\");\r\n\t\tlbl_name1.setFont(new Font(\"Tahoma\", Font.PLAIN, 15));\r\n\t\tlbl_name1.setBounds(308, 415, 134, 24);\r\n\t\tframe.getContentPane().add(lbl_name1);\r\n\t\t\r\n\t\tJLabel lbl_id = new JLabel(\"ID : \");\r\n\t\tlbl_id.setForeground(new Color(47, 79, 79));\r\n\t\tlbl_id.setFont(new Font(\"Times New Roman\", Font.BOLD, 20));\r\n\t\tlbl_id.setBounds(308, 452, 90, 24);\r\n\t\tframe.getContentPane().add(lbl_id);\r\n\t\t\r\n\t\tJLabel lbl_id1 = new JLabel(\"Identification number\");\r\n\t\tlbl_id1.setFont(new Font(\"Tahoma\", Font.PLAIN, 15));\r\n\t\tlbl_id1.setBounds(308, 482, 144, 24);\r\n\t\tframe.getContentPane().add(lbl_id1);\r\n\t\t\r\n\t\t\r\n\t}", "private void init() {\n List<Contructor> list = servisContructor.getAllContructors();\n for (Contructor prod : list) {\n contructor.add(new ContructorViewer(prod));\n }\n\n Label label = new Label(\"Catalog Contructors\");\n label.setLayoutX(140);\n label.setLayoutY(20);\n label.setStyle(\"-fx-font-size:20px\");\n\n initTable();\n table.setLayoutX(120);\n table.setLayoutY(60);\n table.setStyle(\"-fx-font-size:16px\");\n\n GridPane control = new ControlPanel(this, 2).getPanel();\n control.setLayoutX(120);\n control.setLayoutY(300);\n\n panel.setAlignment(Pos.CENTER);\n panel.add(label, 0, 0);\n panel.add(table, 0, 1);\n panel.add(control, 0, 2);\n }", "public void addToJPanel() {\r\n\t\tsave_objects.add(header);\r\n\t\tJLabel blank1 = new JLabel(\"\");\r\n\t\tsave_objects.add(blank1);\r\n\t\t\r\n\t\tsave_objects.add(title_lb);\r\n\t\tsave_objects.add(title);\r\n\t\t\r\n\t\tsave_objects.add(width_lb);\r\n\t\tsave_objects.add(width);\r\n\t\t\r\n\t\tsave_objects.add(height_lb);\r\n\t\tsave_objects.add(height);\r\n\t\t\r\n\t\tsave_objects.add(save);\r\n\t\tsave_objects.add(reset);\r\n\t\t\r\n\t\tsetAllFont();\r\n\t}", "private void setPanel()\r\n\t{\r\n\t\tpanel = new JPanel();\r\n\t\tpanel.setLayout(new GridLayout(5, 2));\r\n\t\t\r\n\t\tpanel.add(bubbleL);\r\n\t\tpanel.add(bubblePB);\r\n\t\t\r\n\t\tpanel.add(insertionL);\r\n\t\tpanel.add(insertionPB);\r\n\t\t\r\n\t\tpanel.add(mergeL);\r\n\t\tpanel.add(mergePB);\r\n\t\t\r\n\t\tpanel.add(quickL);\r\n\t\tpanel.add(quickPB);\r\n\t\t\r\n\t\tpanel.add(radixL);\r\n\t\tpanel.add(radixPB);\r\n\t}", "public void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 806, 499);\n\t\tframe.setDefaultCloseOperation(1);\n\t\tframe.getContentPane().setLayout(null);\n\t\ttry {\n\t\t\tUIManager.setLookAndFeel(\"javax.swing.plaf.nimbus.NimbusLookAndFeel\");\n\t\t} catch (ClassNotFoundException | InstantiationException | IllegalAccessException\n\t\t\t\t| UnsupportedLookAndFeelException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tJPanel panel = new JPanel();\n\t\tpanel.setBounds(0, 243, 790, 217);\n\t\tframe.getContentPane().add(panel);\n\t\tpanel.setLayout(null);\n\t\t\n\t\tJScrollPane scrollPane = new JScrollPane();\n\t\tscrollPane.setBounds(10, 11, 770, 169);\n\t\tpanel.add(scrollPane);\n\t\t\n\t\ttable = new JTable();\n\t\ttable.setModel(model);\n\t\tmodel.setColumnIdentifiers(inventory);\n\t\tscrollPane.setViewportView(table);\n\t\ttable.getColumnModel().getColumn(0).setPreferredWidth(100);\n\t\ttable.getColumnModel().getColumn(1).setPreferredWidth(120);\n\t\ttable.getColumnModel().getColumn(2).setPreferredWidth(120);\n\t\ttable.getColumnModel().getColumn(3).setPreferredWidth(110);\n\t\ttable.getColumnModel().getColumn(4).setPreferredWidth(120);\n\t\ttable.getColumnModel().getColumn(5).setPreferredWidth(100);\n\t\ttable.getColumnModel().getColumn(6).setPreferredWidth(110);\n\t\ttable.getColumnModel().getColumn(7).setPreferredWidth(120);\n\t\ttable.getColumnModel().getColumn(7).setPreferredWidth(120);\n\n//\n//\t\ttable.setShowGrid(false);\n//\t\ttable.setShowHorizontalLines(true);\n//\t\ttable.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);\n\t\ttable.setDefaultEditor(Object.class, null);\n\t\tscrollPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);\n\t\t\n\t\tJPanel panel_1 = new JPanel();\n\t\tpanel_1.setBorder(new TitledBorder(new EtchedBorder(EtchedBorder.LOWERED, new Color(255, 255, 255), new Color(160, 160, 160)), \"Add New Item\", TitledBorder.LEADING, TitledBorder.TOP, null, new Color(0, 0, 205)));\n\t\tpanel_1.setBounds(10, 11, 770, 194);\n\t\tframe.getContentPane().add(panel_1);\n\t\tpanel_1.setLayout(null);\n\t\t\n\t\tdrugIDGen = new JTextField();\n\t\tdrugIDGen.setBounds(123, 32, 146, 26);\n\t\tpanel_1.add(drugIDGen);\n\t\tdrugIDGen.setColumns(10);\n\t\t\n\t\texDate = new JTextField();\n\t\texDate.setColumns(10);\n\t\texDate.setBounds(123, 143, 146, 26);\n\t\tpanel_1.add(exDate);\n\t\t\n\t\tdate = new JTextField();\n\t\tdate.setColumns(10);\n\t\tdate.setBounds(388, 143, 146, 26);\n\t\tpanel_1.add(date);\n\t\t\n\t\tdrugname = new JTextField();\n\t\tdrugname.setColumns(10);\n\t\tdrugname.setBounds(123, 69, 146, 26);\n\t\tpanel_1.add(drugname);\n\t\t\n\t\tuPrice = new JTextField();\n\t\tuPrice.setColumns(10);\n\t\tuPrice.setBounds(388, 32, 146, 26);\n\t\tpanel_1.add(uPrice);\n\t\t\n\t\tqSold = new JTextField();\n\t\tqSold.setColumns(10);\n\t\tqSold.setBounds(388, 69, 146, 26);\n\t\tpanel_1.add(qSold);\n\t\tqSold.setText(0+\"\");\n\t\tqSold.setEditable(false);\n\t\t\n\t\tgrammage = new JTextField();\n\t\tgrammage.setColumns(10);\n\t\tgrammage.setBounds(123, 106, 146, 26);\n\t\tpanel_1.add(grammage);\n\t\t\n\t\tqRemaining = new JTextField();\n\t\tqRemaining.setColumns(10);\n\t\tqRemaining.setBounds(388, 106, 146, 26);\n\t\tpanel_1.add(qRemaining);\n\t\t\n\t\tdrugidTxt = new JLabel(\"Drug ID\");\n\t\tdrugidTxt.setFont(new Font(\"Tahoma\", Font.BOLD, 15));\n\t\tdrugidTxt.setBounds(10, 33, 103, 20);\n\t\tpanel_1.add(drugidTxt);\n\t\t\n\t\tdrugnameTxt_1 = new JLabel(\"Drug Name\");\n\t\tdrugnameTxt_1.setFont(new Font(\"Tahoma\", Font.BOLD, 15));\n\t\tdrugnameTxt_1.setBounds(10, 75, 103, 20);\n\t\tpanel_1.add(drugnameTxt_1);\n\t\t\n\t\tdrugnameTxt = new JLabel(\"Grammage\");\n\t\tdrugnameTxt.setFont(new Font(\"Tahoma\", Font.BOLD, 15));\n\t\tdrugnameTxt.setBounds(10, 112, 103, 20);\n\t\tpanel_1.add(drugnameTxt);\n\t\t\n\t\tlblExpiryDate = new JLabel(\"Expiry Date\");\n\t\tlblExpiryDate.setFont(new Font(\"Tahoma\", Font.BOLD, 15));\n\t\tlblExpiryDate.setBounds(10, 149, 103, 20);\n\t\tpanel_1.add(lblExpiryDate);\n\t\t\n\t\tunitpriceTxt = new JLabel(\"Unit Price\");\n\t\tunitpriceTxt.setFont(new Font(\"Tahoma\", Font.BOLD, 15));\n\t\tunitpriceTxt.setBounds(279, 32, 103, 20);\n\t\tpanel_1.add(unitpriceTxt);\n\t\t\n\t\tlblQtySold = new JLabel(\"QTY Sold\");\n\t\tlblQtySold.setFont(new Font(\"Tahoma\", Font.BOLD, 15));\n\t\tlblQtySold.setBounds(279, 69, 103, 20);\n\t\tpanel_1.add(lblQtySold);\n\t\t\n\t\tlblQtyReamin = new JLabel(\"Drug QTY \");\n\t\tlblQtyReamin.setFont(new Font(\"Tahoma\", Font.BOLD, 15));\n\t\tlblQtyReamin.setBounds(275, 107, 103, 20);\n\t\tpanel_1.add(lblQtyReamin);\n\t\t\n\t\tlblPurchDate = new JLabel(\"Purch. Date\");\n\t\tlblPurchDate.setFont(new Font(\"Tahoma\", Font.BOLD, 15));\n\t\tlblPurchDate.setBounds(279, 144, 103, 20);\n\t\tpanel_1.add(lblPurchDate);\n\t\t\n\t\tpanel_2 = new JPanel();\n\t\tpanel_2.setBorder(new TitledBorder(new EtchedBorder(EtchedBorder.LOWERED, new Color(255, 255, 255), new Color(160, 160, 160)), \"Menu\", TitledBorder.LEADING, TitledBorder.TOP, null, new Color(0, 0, 205)));\n\t\tpanel_2.setBounds(544, 32, 216, 138);\n\t\tpanel_1.add(panel_2);\n\t\tpanel_2.setLayout(null);\n\t\t\n\t\tbtnNewButton = new JButton(\"Generate ID\");\n\t\tbtnNewButton.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\tdouble num = Math.floor(Math.random() * 1600);\n\t\t\t\tint runout = (int) num;\n\t\t\t\tString coll = drugname.getText();\n\t\t\t\tString output = \"\";\n\t\t\t\t\n\t\t\t\tif(drugname.getText().isEmpty()) {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Enter Drug Name in order to generate ID\");\n\t\t\t\t}\n\t\t\t\telse {\t\t\t\t\n\t\t\t\tif(coll.length()>=4) {\n\t\t\t\t\toutput = coll.substring(0, 4);\n\t\t\t\t\tdrugIDGen.setText(output + runout+\"\");\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\toutput = coll.substring(0, 3);\n\t\t\t\t\tdrugIDGen.setText(output + runout+\"\");\n\t\t\t\t}\n\t\t\t\n\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnNewButton.setBackground(new Color(50, 205, 50));\n\t\tbtnNewButton.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tbtnNewButton.setBounds(10, 20, 196, 29);\n\t\tpanel_2.add(btnNewButton);\n\t\t\n\t\tbtnAddDrugs = new JButton(\"Add New\");\n\t\tbtnAddDrugs.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\taddNewDrug();\n\t\t\t}\n\t\t});\n\t\tbtnAddDrugs.setBackground(new Color(50, 205, 50));\n\t\tbtnAddDrugs.setFont(new Font(\"Tahoma\", Font.PLAIN, 15));\n\t\tbtnAddDrugs.setBounds(10, 60, 196, 29);\n\t\tpanel_2.add(btnAddDrugs);\n\t\t\n\t\tbtnNewButton_2 = new JButton(\"View Details\");\n\t\tbtnNewButton_2.setBackground(new Color(50, 205, 50));\n\t\tbtnNewButton_2.setFont(new Font(\"Tahoma\", Font.PLAIN, 15));\n\t\tbtnNewButton_2.setBounds(10, 100, 196, 29);\n\t\tpanel_2.add(btnNewButton_2);\n\t\t\n\t\tlblNewLabel = new JLabel(\"Enter drug name to generate drug ID\");\n\t\tlblNewLabel.setFont(new Font(\"Tahoma\", Font.BOLD, 11));\n\t\tlblNewLabel.setBounds(544, 11, 216, 20);\n\t\tpanel_1.add(lblNewLabel);\n\t\t\n\t\ttextField = new JTextField();\n\t\ttextField.setColumns(10);\n\t\ttextField.setBounds(78, 210, 199, 26);\n\t\tframe.getContentPane().add(textField);\n\t\t\n\t\tlblSearch = new JLabel(\"Search\");\n\t\tlblSearch.setFont(new Font(\"Tahoma\", Font.BOLD, 15));\n\t\tlblSearch.setBounds(20, 212, 63, 20);\n\t\tframe.getContentPane().add(lblSearch);\n\t\tmodel.setColumnIdentifiers(inventory);\n\t}", "private void createpanel2() {\r\n\t\tpanels[1].setLayout(new GridLayout(1, 2));\r\n\r\n\t\tdescription[0] = new JLabel(\"Accountname: \");\r\n\t\tdescription[0].setFont(smallfont);\r\n\t\tdescription[0].setHorizontalAlignment(JLabel.CENTER);\r\n\t\tuserinfo = new JTextField() {\r\n\t\t\tprivate static final long serialVersionUID = 1L;\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void paint(Graphics g) {\r\n\t\t\t\tg.drawImage(ImageLoader.getImage(\"black_0.4\"), 0, 0, null);\r\n\t\t\t\tsuper.paint(g);\r\n\t\t\t}\r\n\t\t};\r\n\t\tif (System.getProperty(\"os.name\").startsWith(\"Windows\")) {\r\n\t\t\tuserinfo.setForeground(Color.WHITE);\r\n\t\t} else {\r\n\t\t\tuserinfo.setForeground(Color.BLACK);\r\n\t\t}\r\n\t\tuserinfo.setOpaque(false);\r\n\t\tuserinfo.setFont(smallfont);\r\n\t\tpanels[1].add(description[0]);\r\n\t\tpanels[1].add(userinfo);\r\n\t\tpanels[1].setOpaque(false);\r\n\t\tallComponents.add(panels[1]);\r\n\t\tpanels[0].revalidate();\r\n\t}", "private void setupPanels() {\n\t\tsplitPanel.addEast(east, Window.getClientWidth() / 5);\n\t\tsplitPanel.add(battleMatCanvasPanel);\n\t\tpanelsSetup = true;\n\t}", "void iniciaPanel() {\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tinfo[i][j] = new JLabel(\"\");\n\t\t\t\tinfo[i][j].setBorder(new LineBorder(new Color(0, 0, 0), 1, true));\n\t\t\t\tinfo[i][j].setOpaque(true);\n\t\t\t\tif(i==0) {\n\t\t\t\t\tinfo[i][j].setBackground(UIManager.getColor(\"List.selectionBackground\"));\n\t\t\t\t}\n\t\t\t\tif(i==1) {\n\t\t\t\t\tinfo[i][j].setBackground(Color.yellow);\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tif(i==2) {\n\t\t\t\t\tinfo[i][j].setBackground(Color.blue);\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tif(i==3) {\n\t\t\t\t\tinfo[i][j].setBackground(Color.red);\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tif(i==4) {\n\t\t\t\t\tinfo[i][j].setBackground(Color.gray);\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tpanel.add(info[i][j]);\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\tinfo[0][0].setText(\"PROCESOS\");\n\t\tinfo[1][0].setText(\"P1\");\n\t\tinfo[2][0].setText(\"P2\");\n\t\tinfo[3][0].setText(\"P3\");\n\t\tinfo[4][0].setText(\"P4\");\n\t\tinfo[0][1].setText(\"TIEMPO DE ARRIBO/LLEGADA\");\n\t\tinfo[0][2].setText(\"RAFAGAS DE USO DEL CPU\");\n\t\t\n\t\t//llenado donde estara la simulacion\t\t\n\t\tfor (int i = 0; i < ns; i++) {\n\t\t\tfor (int j = 0; j < ms; j++) {\n\t\t\t\tsimulacion[i][j] = new JLabel(\"\");\n\t\t\t\tsimulacion[i][j].setBorder(new LineBorder(new Color(0, 0, 0), 1, true));\n\t\t\t\tsimulacion[i][j].setOpaque(true);\n\t\t\t\tsimulacion[i][j].setBackground(Color.WHITE);\n\t\t\t\tsimulacion[i][j].setVisible(false);\n\t\t\t\tsimulacion[i][j].setFont(fuente2);\n\t\t\t\tpanel_2.add(simulacion[i][j]);\t\t\t\t\n\t\t\t}\n\t\t}\n\t\tllenainfo();\n\t\t\n\t}", "private void colorSetup(){\n Color color2 = Color.GRAY;\n Color color = Color.LIGHT_GRAY;\n this.setBackground(color);\n this.mainPanel.setBackground(color);\n this.leftPanel.setBackground(color);\n this.rightPanel.setBackground(color);\n this.rightCenPanel.setBackground(color);\n this.rightLowPanel.setBackground(color);\n this.rightTopPanel.setBackground(color);\n this.inputPanel.setBackground(color);\n this.controlPanel.setBackground(color);\n this.setupPanel.setBackground(color);\n this.cameraPanel.setBackground(color);\n this.jPanel4.setBackground(color);\n this.sensSlider.setBackground(color); \n }", "private void init() {\r\n\t\tthis.panel.setLayout(new BoxLayout(this.panel, BoxLayout.PAGE_AXIS));\r\n\t\tthis.labelTitle = new JLabel(\"Edit your weapons\");\r\n\t\tthis.labelTitle.setAlignmentX(Component.CENTER_ALIGNMENT);\r\n\t\tthis.initFilter();\r\n\t\tthis.initList();\r\n\t\tthis.list.setSelectedIndex(0);\r\n\t\tthis.initInfo();\r\n\t\tthis.initButton();\r\n\r\n\t\tJPanel panelWest = new JPanel();\r\n\t\tpanelWest.setLayout(new BoxLayout(panelWest, BoxLayout.PAGE_AXIS));\r\n\t\tJPanel panelCenter = new JPanel();\r\n\t\tpanelCenter.setLayout(new BoxLayout(panelCenter, BoxLayout.LINE_AXIS));\r\n\r\n\t\tpanelWest.add(this.panelFilter);\r\n\t\tpanelWest.add(Box.createRigidArea(new Dimension(0, 5)));\r\n\t\tpanelWest.add(this.panelInfo);\r\n\t\tpanelCenter.add(panelWest);\r\n\t\tpanelCenter.add(Box.createRigidArea(new Dimension(10, 0)));\r\n\t\tthis.panelList.setPreferredSize(new Dimension(300, 150));\r\n\t\tpanelCenter.add(this.panelList);\r\n\r\n\t\tthis.panel.add(this.labelTitle);\r\n\t\tthis.panel.add(Box.createRigidArea(new Dimension(0, 10)));\r\n\t\tthis.panel.add(panelCenter);\r\n\t\tthis.panel.add(Box.createRigidArea(new Dimension(0, 10)));\r\n\t\tthis.panel.add(this.panelButton);\r\n\r\n\t}", "public PanelJuego() {\r\n\t\tsetLayout(new GridLayout(3, 3, 20, 20));// Se crea una matriz 3x3 con un\r\n\t\t\t\t\t\t\t\t\t\t\t\t// espaciado tanto horizontal\r\n\t\t\t\t\t\t\t\t\t\t\t\t// como vertical.\r\n\t\tposicion = new JTextField[9];\r\n\t\tllenarPanel();\r\n\t\tsetBackground(Color.BLACK);// Se pinta el fondo de negro.\r\n\t\tsetVisible(true);\r\n\t}", "public void initGameboardPanel(){\n Image image = Toolkit.getDefaultToolkit().createImage(getClass().getResource(\"/board/Masters of Renaissance_PlayerBoard (11_2020)-1.png\"));\n this.backgroundImage = image.getScaledInstance(gameboardWidth,gameboardHeight,0);\n\n this.setSize(gameboardWidth,gameboardHeight);\n this.setBounds(0,0,gameboardWidth,gameboardHeight);\n this.setLayout(null);\n //this.addMouseListener(this);\n this.setVisible(true);\n }", "private void initialize() {\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(100, 100, 686, 366);\r\n\t\tframe.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\r\n\t\tframe.getContentPane().setLayout(null);\r\n\t\t\r\n\t\tJPanel panel = new JPanel();\r\n\t\tpanel.setBorder(new LineBorder(new Color(192, 192, 192)));\r\n\t\tpanel.setBounds(10, 11, 650, 311);\r\n\t\tframe.getContentPane().add(panel);\r\n\t\tpanel.setLayout(null);\r\n\t\t\r\n\t\tJLabel lblNewLabel = new JLabel(\"VOCABULARY\");\r\n\t\tlblNewLabel.setBounds(0, 0, 640, 50);\r\n\t\tlblNewLabel.setIcon(new ImageIcon(\"Images/minilisten.png\"));\r\n\t\tlblNewLabel.setForeground(new Color(0, 0, 255));\r\n\t\tlblNewLabel.setFont(new Font(\"Tahoma\", Font.PLAIN, 25));\r\n\t\tlblNewLabel.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tpanel.add(lblNewLabel);\r\n\t\t\r\n\t\tJPanel panel_1 = new JPanel();\r\n\t\tpanel_1.setBorder(new LineBorder(new Color(192, 192, 192)));\r\n\t\tpanel_1.setBounds(10, 56, 630, 244);\r\n\t\tpanel.add(panel_1);\r\n\t\tpanel_1.setLayout(null);\r\n\t\t\r\n\t\tJPanel panel_2 = new JPanel();\r\n\t\tpanel_2.setBackground(new Color(255, 255, 255));\r\n\t\tpanel_2.setBorder(new LineBorder(new Color(192, 192, 192)));\r\n\t\tpanel_2.setBounds(10, 10, 339, 174);\r\n\t\tpanel_1.add(panel_2);\r\n\t\tpanel_2.setLayout(null);\r\n\t\t\r\n\t\tJLabel lblNewLabel_1 = new JLabel(\"requirement\");\r\n\t\tlblNewLabel_1.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlblNewLabel_1.setFont(new Font(\"Tahoma\", Font.PLAIN, 15));\r\n\t\tlblNewLabel_1.setForeground(new Color(0, 0, 255));\r\n\t\tlblNewLabel_1.setBounds(10, 10, 319, 153);\r\n\t\tpanel_2.add(lblNewLabel_1);\r\n\t\t\r\n\t\tJPanel panel_3 = new JPanel();\r\n\t\tpanel_3.setBorder(new LineBorder(new Color(192, 192, 192)));\r\n\t\tpanel_3.setBounds(355, 10, 265, 174);\r\n\t\tpanel_1.add(panel_3);\r\n\t\tpanel_3.setLayout(null);\r\n\t\t\r\n\t\tJLabel lblNewLabel_2 = new JLabel(\"exercise\");\r\n\t\tlblNewLabel_2.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlblNewLabel_2.setFont(new Font(\"Tahoma\", Font.PLAIN, 15));\r\n\t\tlblNewLabel_2.setForeground(new Color(0, 100, 0));\r\n\t\tlblNewLabel_2.setBounds(10, 10, 245, 153);\r\n\t\tpanel_3.add(lblNewLabel_2);\r\n\t\t\r\n\t\tbtnOpenfile = new JButton(\"Open file\");\r\n\t\tbtnOpenfile.setForeground(new Color(0, 0, 255));\r\n\t\tbtnOpenfile.setFont(new Font(\"Dialog\", Font.PLAIN, 15));\r\n\t\tbtnOpenfile.setBounds(247, 190, 96, 44);\r\n\t\tbtnOpenfile.addActionListener(this);\r\n\t\tpanel_1.add(btnOpenfile);\r\n\t\t\r\n\t\tbtnFinal = new JButton(\"Final\");\r\n\t\tbtnFinal.setForeground(Color.BLUE);\r\n\t\tbtnFinal.setFont(new Font(\"Dialog\", Font.PLAIN, 15));\r\n\t\tbtnFinal.setBounds(355, 190, 83, 44);\r\n\t\tbtnFinal.addActionListener(this);\r\n\t\tpanel_1.add(btnFinal);\r\n\t\t\r\n\t\tbtnVclListen = new JButton(\"\");\r\n\t\tbtnVclListen.setIcon(new ImageIcon(\"Images/loa.png\"));\r\n\t\tbtnVclListen.setBounds(86, 195, 40, 38);\r\n\t\tbtnVclListen.addActionListener(this);\r\n\t\tpanel_1.add(btnVclListen);\r\n\t\t\r\n\t\tJLabel lbltime = new JLabel(\"00:00\");\r\n\t\tlbltime.setForeground(new Color(0, 0, 255));\r\n\t\tlbltime.setFont(new Font(\"Tahoma\", Font.PLAIN, 15));\r\n\t\tlbltime.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlbltime.setBounds(10, 193, 83, 38);\r\n\t\tpanel_1.add(lbltime);\r\n\t\t\r\n\t\tJLabel lblSoLuongCau = new JLabel(\"1/40\");\r\n\t\tlblSoLuongCau.setForeground(new Color(255, 0, 0));\r\n\t\tlblSoLuongCau.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlblSoLuongCau.setFont(new Font(\"Tahoma\", Font.PLAIN, 15));\r\n\t\tlblSoLuongCau.setBounds(147, 196, 83, 38);\r\n\t\tpanel_1.add(lblSoLuongCau);\r\n\t\t\r\n\t\tbtnHome = new JButton(\"Home\");\r\n\t\tbtnHome.setForeground(Color.BLUE);\r\n\t\tbtnHome.setFont(new Font(\"Dialog\", Font.PLAIN, 13));\r\n\t\tbtnHome.setBounds(554, 190, 66, 44);\r\n\t\tbtnHome.addActionListener(this);\r\n\t\tpanel_1.add(btnHome);\r\n\t}", "@Override\n public void initialiseUiCells() {\n }" ]
[ "0.72101897", "0.6620606", "0.65505636", "0.6385377", "0.6360604", "0.635373", "0.6336454", "0.6316179", "0.6309412", "0.62940884", "0.62779105", "0.6220463", "0.6219028", "0.6200912", "0.61691827", "0.6144279", "0.6137885", "0.61266536", "0.61115015", "0.61067665", "0.61028695", "0.60915273", "0.6059685", "0.60507995", "0.6034608", "0.6032852", "0.6025365", "0.6021492", "0.601761", "0.60173124", "0.60088724", "0.60026056", "0.6000674", "0.5999164", "0.59942764", "0.59927326", "0.59917724", "0.5984484", "0.5979021", "0.59763616", "0.59658825", "0.59623086", "0.5959936", "0.5959486", "0.5945398", "0.59449226", "0.5941908", "0.5931566", "0.5918464", "0.5909721", "0.5907542", "0.59015995", "0.5896083", "0.58845276", "0.58836854", "0.5870515", "0.58689356", "0.5862212", "0.5853729", "0.5852105", "0.5851251", "0.584428", "0.5843269", "0.5831666", "0.58278316", "0.58198553", "0.58185035", "0.5808465", "0.58017397", "0.57984805", "0.5795754", "0.5795617", "0.57864356", "0.5785938", "0.5783707", "0.5775579", "0.5775277", "0.57677054", "0.57668877", "0.5764555", "0.5759855", "0.57577485", "0.5755264", "0.57551026", "0.5754069", "0.5753683", "0.57505465", "0.5749752", "0.5747437", "0.57381946", "0.5737495", "0.57353175", "0.57340467", "0.57336825", "0.5731472", "0.5730781", "0.5728509", "0.5727696", "0.5723979", "0.5723537" ]
0.69312906
1
/ resize screen to fill current window by adjusting to max font size that will fit
public void resize_screen(){ stop_scn_updates(); scn_font_size = min_font_size+1; while (scn_font_size < max_font_size){ scn_font = new Font(tz390.z390_font,Font.BOLD,scn_font_size); calc_screen_size(); if (scn_image.getWidth() < main_panel_width && scn_image.getHeight() < main_panel_height){ scn_font_size++; } else { scn_font_size--; break; } } scn_font = new Font(tz390.z390_font,Font.BOLD,scn_font_size); calc_screen_size(); start_scn_updates(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void renderWindowToFit(int x, int y, String title) {\r\n\t\tSystem.out.printf(\"Setting window size: (%d, %d)\", x, y);\r\n\r\n\t\tthis.setTitle(title);\r\n\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tthis.setSize(x, y);\r\n\t\tthis.repaint();\r\n\t\tthis.revalidate();\r\n\t\tthis.setResizable(false);\r\n\r\n\t\t// Center window on screen\r\n\t\tthis.setLocationRelativeTo(null);\r\n\t}", "public abstract void resizeFrame(JFrame frame, int fontSize);", "@Override\n public void resize(int width, int height) {game.screenPort.update(width, height, true);}", "protected void doResize() {\r\n\t\tif (renderer.surface == null) {\r\n\t\t\tdoNew();\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tNewResizeDialog dlg = new NewResizeDialog(labels, false);\r\n\t\tdlg.widthText.setText(\"\" + renderer.surface.width);\r\n\t\tdlg.heightText.setText(\"\" + renderer.surface.height);\r\n\t\tdlg.setLocationRelativeTo(this);\r\n\t\tdlg.setVisible(true);\r\n\t\tif (dlg.success) {\r\n\t\t\trenderer.surface.width = dlg.width;\r\n\t\t\trenderer.surface.height = dlg.height;\r\n\t\t\trenderer.surface.computeRenderingLocations();\r\n\t\t}\r\n\t}", "private void calc_screen_size(){\r\n \tscn_grid.setFont(scn_font);\r\n \tscn_context = scn_grid.getFontRenderContext();\r\n \t scn_layout = new TextLayout(\"X\",scn_font,scn_context);\r\n scn_char_rect = scn_layout.getBlackBoxBounds(0,1).getBounds();\r\n scn_char_height = (int) (scn_char_rect.getHeight()); // RPI 630 was Width in err, 6 to *1.5\r\n \tscn_char_base = scn_char_height/2+1;\r\n \tscn_char_height = scn_char_height + scn_char_base+2;\r\n scn_char_width = (int) (scn_char_rect.getWidth()); // RPI 630 was Height in err\r\n \tscn_height = scn_rows * scn_char_height; // RPI 408 + 5 \r\n \tscn_width = scn_cols * scn_char_width + 3; // RPI 408 + 5 \r\n \tscn_size = new Dimension(scn_width,scn_height);\r\n \tscn_image = new BufferedImage(scn_width,scn_height,BufferedImage.TYPE_INT_ARGB);\r\n \tscn_grid = scn_image.createGraphics();\r\n \tscn_grid.setFont(scn_font); \r\n scn_grid.setColor(scn_text_color);\r\n \t scn_context = scn_grid.getFontRenderContext();\r\n scn_grid.setRenderingHint(RenderingHints.KEY_ANTIALIASING,\r\n RenderingHints.VALUE_ANTIALIAS_ON);\r\n }", "public abstract void windowResized();", "protected void newSize() {\r\n adjustSize();\r\n halt();\r\n newGame();\r\n }", "@Override\n\tpublic void resize(int w, int h) {\n\t\tthis.leveys = w;\n\t\tthis.korkeus = h;\n\t\tthis.batch = new SpriteBatch();\n\t\tthis.ylaPalkinKorkeus = (int) (0.0931 * leveys);\n\n//\t\tskaala = Math.min((float) (w - 50) / 640,\n//\t\t\t\t(float) (h - 50 - ylaPalkinKorkeus) / 370f);\n\t\tskaala = Math.min((float) (w - 50) / 590,\n\t\t\t\t(float) (h - 50 - ylaPalkinKorkeus) / 354f);\n\n\t\t//System.out.println(\"(w - 50) / 640 = \" + w + \" - 50) / 640 = \" + (float) (w - 50) / 640);\n\t\t//System.out.println(\"(h - 50 - ylaPalkinKorkeus) / 370f) = \" + h + \"- 50 - \" + ylaPalkinKorkeus + \") / 370f = \" + (float) (h - 50 - ylaPalkinKorkeus) / 370f);\n\t\tSystem.out.println(\"Fontin skaala: \" + skaala);\n\t\tfont2.setScale(skaala);\n\t\t//font2.setScale(skaala*0.2f);\n\t\t// leveysSkaala = w / 640;\n\t\t// korkeusSkaala = h / 480;\n\n\t}", "private void inputGridSize() {\n \ttest = new TextField();\n \ttest.setPrefSize(BUTTON_SIZE, TEXT_INPUT_BAR_HEIGHT);\n \tstartScreen.add(test, 2, 2);\n }", "public void settings() {\r\n size(WIDTH, HEIGHT); // Set size of screen\r\n }", "public void updateText()\r\n\t{\r\n\t\tdouble smallest = Math.min(menu.getController().getWidth(), menu.getController().getHeight());\r\n\t\tdouble equivalent12 = smallest/55;//Equivalent of 12 point font on base dimensions\r\n\t\t\r\n\t\ttextRenderer = new TextRenderer(new Font(fontName, Font.PLAIN, (int)(equivalent12*size)), true, true);\r\n\t}", "public void settings() { size(1200, 800); }", "@Override\n public void resize(int w, int h) {\n mainStage.getViewport().update(w, h, true);\n userInterface.getViewport().update(w, h, true);\n }", "@Override\n\tpublic void resize(int width, int height) {\n\t\tGdx.app.log(\"GameScreen\", \"resizing\");\n\t}", "@Override\n\tpublic void resize(int width, int height) {\n\t\tui.setViewport(width, height);\n\t\tcamera.setToOrtho(false);\n\t}", "@Override\n\tpublic void resize(int width, int height) {\n\t\tGdx.app.log(\"GameScreen\", \"Resizing\");\n\t}", "private void extendedSize(){\n setSize(600,400);\n }", "@Override\n public void resize(int width, int height) {\n bgViewPort.update(width, height, true);\n stage.getViewport().update(width, height, true);\n fonts.getFontViewport().update(width, height, true);\n }", "public static void setBounds() {\n\t\tDimension dim = Toolkit.getDefaultToolkit().getScreenSize();\r\n\t\t\r\n\t\t// Determine the new location of the window\r\n\t\tint w = gameFrame.getSize().width;\r\n\t\tint h = gameFrame.getSize().height;\r\n\t\tint x = (dim.width/2)-(w/2);\r\n\t\tint y = (dim.height/2)-(h/2);\r\n\t\t// Move the window\r\n\t\tgameFrame.setLocation(x, y);\r\n\t\tgameFrame.setVisible(true);\r\n\t}", "public void setSizePlayingFields()\r\n {\n setPreferredSize(new Dimension(109*8,72*8));//powieżchnia o 2 m z każdej strony większa niz boisko 106 i 69 pomnożone o 8\r\n //większe boisko żeby było widać\r\n setMaximumSize(getMaximumSize());\r\n setBackground(Color.green);\r\n }", "public void onWindowResized(int width, int height) {\n this.setHeight(\"\" + (height - TopPanel.HEIGHT));\n }", "private void basicSize(){\n setSize(375,400);\n }", "public void settings() {\n int widthOfWindow = 900;\n int heightOfWindow = 900;\n\n //Size of the program window\n size(widthOfWindow, heightOfWindow);\n //making the movement smooth, i think, comes from processing\n smooth();\n }", "private void setupTextSize()\n\t{\n\t\tContext context = getContext();\n\t\tResources res = context.getResources();\n\t\tthis.mTextSize = (int) res.getDimension(R.dimen.tsz_main);\n\t}", "public void adjustSize() {\r\n /*\r\n * Calculate target width: max of header, adjusted window, content\r\n * \r\n * TODO: restrict to available desktop space\r\n */\r\n int targetWidth = TOTAL_BORDER_THICKNESS\r\n + MathUtils.maxInt(headerBar.getOffsetWidth(),\r\n contentWidget.getOffsetWidth(), getWidth()\r\n - TOTAL_BORDER_THICKNESS);\r\n /*\r\n * Calculate target height: max of adjusted window, content\r\n * \r\n * TODO: restrict to available desktop space\r\n */\r\n int targetHeight = TOTAL_BORDER_THICKNESS\r\n + MathUtils.maxInt(contentWidget.getOffsetHeight(), getHeight()\r\n - TOTAL_BORDER_THICKNESS - headerBar.getOffsetHeight());\r\n\r\n setPixelSize(targetWidth, targetHeight);\r\n }", "private void setPrefSizeForText()\n {\n double prefW = getSuggestedPrefWidth();\n double prefH = _textArea.getPrefHeight();\n setPrefSize(prefW, prefH);\n }", "public void setScale() {\n Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();\n scaleAffine();\n Scalebar.putZoomLevelDistances();\n\n //Set up the JFrame using the monitors resolution.\n setSize(screenSize); //screenSize\n setPreferredSize(new Dimension(800, 600)); //screenSize\n setExtendedState(Frame.NORMAL); //Frame.MAXIMIZED_BOTH\n }", "void windowResized(ResizeEvent e);", "@Override\n public void settings() {\n setSize(WIDTH, HEIGHT);\n }", "protected void calculateBounds()\r\n {\r\n Toolkit DefaultToolkit = Toolkit.getDefaultToolkit();\r\n Dimension ScreenSize = DefaultToolkit.getScreenSize();\r\n int FrameWidth = ScreenSize.width - 100;\r\n int FrameHeight = ScreenSize.height - 100;\r\n setBounds(50, 50, FrameWidth, FrameHeight);\r\n }", "private void setGuiSizeToWorldSize() {\n worldPanel.setPreferredSize(new Dimension(worldPanel.getWorld()\n .getWidth(), worldPanel.getWorld().getHeight()));\n worldPanel.setSize(new Dimension(worldPanel.getWorld().getWidth(),\n worldPanel.getWorld().getHeight()));\n this.getParentFrame().pack();\n }", "public FrmMenuAdmin() {\n initComponents(); \n \n this.setExtendedState(FrmMenuAdmin.MAXIMIZED_BOTH);\n jDesktopPane1.setMaximumSize(this.getMaximumSize()); \n //tester();\n \n Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();\n width = (int) screenSize.getWidth();\n height = (int) screenSize.getHeight(); \n this.setSize((int)width,(int)height);\n this.setExtendedState(FrmMenuAdmin.MAXIMIZED_BOTH); \n }", "@Override\n\tpublic void resize(int arg0, int arg1) {\n\t\t\n\t\t\n\t\t\n\t\tif (getScreen() == null)\n\t\t{\n\t\t\tSCREEN_WIDTH = arg0;\n\t \tSCREEN_HEIGHT = arg1;\n\t \t\n\t \tfloat w = 800, h = 550;\n\t \tif (SCREEN_WIDTH * h < SCREEN_HEIGHT * w)\n\t \t\tRATIO = (float)SCREEN_WIDTH / (float)w;\n\t \telse\n\t \t\tRATIO = (float)SCREEN_HEIGHT / (float)h;\n\t \t\n\t \tGdx.app.log(\"RATIO\", \"\"+RATIO);\n\t\t\tsetScreen(getLoadingScreen(DESTINATION.START,DESTINATION.NO));\n\t \t//setScreen(getStartScreen());\n\t\t}\n\t\telse\n\t\t\tthis.getScreen().resize(arg0, arg1);\n\t}", "@Override\r\n\tpublic void resize(GL10 gl, int w, int h) {\n\t\t if (h == 0) \r\n\t\t\t h = 1;\r\n\r\n\t gl.glViewport(0, 0, w, h); // Reset The Current Viewport And Perspective Transformation\r\n\t gl.glMatrixMode(GL10.GL_PROJECTION); // Select The Projection Matrix\r\n\t gl.glLoadIdentity(); // Reset The Projection Matrix\r\n\t GLU.gluPerspective(gl, 45.0f, (float) w / (float) h, 0.1f, 100.0f); // Calculate The Aspect Ratio Of The Window\r\n\t GLU.gluLookAt(gl, 0, 0, -5, 0, 0, 0, 0, 1, 0);\r\n\t gl.glMatrixMode(GL10.GL_MODELVIEW); // Select The Modelview Matrix\r\n\t gl.glLoadIdentity(); // Reset The ModalView Matrix\r\n\t}", "public void set_screen(int new_rows, int new_cols, Font new_font, Color new_background_color, Color new_text_color){\r\n \tstop_scn_updates();\r\n \tscn_rows = new_rows;\r\n \tscn_cols = new_cols;\r\n \tscn_font = new_font;\r\n \tscn_background_color = new_background_color;\r\n \tscn_text_color = new_text_color;\r\n \tscn_font_size = scn_font.getSize();\r\n \tscn_image = new BufferedImage(100,100,BufferedImage.TYPE_INT_ARGB); \r\n \tscn_grid = scn_image.createGraphics();\r\n calc_screen_size();\r\n scn_panel = new JScrollPane(this);\r\n start_scn_updates();\r\n }", "private Dimension tailleEcranAdapté(){\n GraphicsEnvironment graphicsEnvironment =GraphicsEnvironment.getLocalGraphicsEnvironment();\n //get maximum window bounds\n Rectangle rectangle =graphicsEnvironment.getMaximumWindowBounds();\n //Dimension dim = java.awt.Toolkit.getDefaultToolkit().getScreenSize();\n Dimension dim = new Dimension((int)rectangle.getWidth(),(int)rectangle.getHeight());\n return dim;\n }", "public void settings() {\r\n size(750, 550);\r\n }", "public void resize() {\n\t\tsp.doLayout();\n\t}", "public void setDisplaySize(int width, int height)\r\n\t{\r\n\t\tint xDiff = (int) Math.abs(height - height*ASPECT);\r\n\t\tint yDiff = (int) Math.abs(width - width/ASPECT);\r\n\t\tif (xDiff < yDiff)\r\n\t\t{\r\n\t\t\tmMaxWidth = (int) (height*ASPECT);\r\n\t\t\tmMaxHeight = height;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tmMaxWidth = width;\r\n\t\t\tmMaxHeight = (int)(width/ASPECT);\r\n\t\t}\r\n\t}", "public BoardCanvas() {\n Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();\n int height1 = screenSize.height * 9 / 14;\n int remainNum = height1 % 9;\n int heightBoard = height1 - remainNum;\n setBounds(0, 0, heightBoard, heightBoard);\n GraphicsEnvironment env = GraphicsEnvironment.getLocalGraphicsEnvironment();\n HashSet<String> availableNames = new HashSet();\n for (String name : env.getAvailableFontFamilyNames()) {\n availableNames.add(name);\n }\n for (String pf : preferredFonts) {\n if (availableNames.contains(pf)) {\n font = new Font(pf, Font.PLAIN, 20);\n break;\n }\n }\n }", "public Screen() {\r\n \r\n frame = new JFrame(\"Transmission\");\r\n frame.setSize(screen);\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n frame.setResizable(false);\r\n frame.setLocationRelativeTo(null);\r\n frame.setVisible(true);\r\n \r\n panel = new Canvas();\r\n panel.setPreferredSize(screen);\r\n panel.setMaximumSize(screen);\r\n panel.setMinimumSize(screen);\r\n panel.setFocusable(false);\r\n \r\n frame.add(panel);\r\n frame.pack();\r\n }", "protected byte desiredWinScale() { return 9; }", "@Override\n protected void onSizeChanged(int w, int h, int oldw, int oldh) {\n super.onSizeChanged(w, h, oldw, oldh);\n if (w == 0 || h == 0) return;\n createGame();\n }", "public void setSize();", "public static void maximizarJInternalFrame(JInternalFrame frame) {\n Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();\n \n frame.setPreferredSize(new Dimension(screenSize.width, \n screenSize.height)); \n }", "public void SetResolution() {\r\n DisplayMetrics displayMetrics = new DisplayMetrics();\r\n WindowManager wm = (WindowManager) getContext().getSystemService(Context.WINDOW_SERVICE);\r\n wm.getDefaultDisplay().getMetrics(displayMetrics);\r\n this.ScreenWidth = displayMetrics.widthPixels;\r\n this.ScreenHeight = displayMetrics.heightPixels;\r\n }", "private void getScreenSize() {\n WindowManager wm = getWindowManager();\n Display disp = wm.getDefaultDisplay();\n Point size = new Point();\n disp.getSize(size);\n screenWidth = size.x;\n screenHeight = size.y;\n }", "public void adjustWidth() {\n int width = Short.MIN_VALUE;\n\n for (final TextBox tb : getAllTextBox()) {\n final int tbWidth = tb.getTextDim().width;\n\n if (tbWidth > width) width = tbWidth; // get the longer content\n }\n\n if (fullWidthStereotype > width) width = fullWidthStereotype;\n\n Change.push(new BufferBounds(this));\n\n setBounds(new Rectangle(\n bounds.x, bounds.y, width + GraphicView.getGridSize() + 15, bounds.height));\n\n Change.push(new BufferBounds(this));\n }", "public void update()\n {\n int screenHeight;\n int screenWidth;\n \n // Only update if the video memory has been updated\n// if (!videocard.vgaMemReqUpdate)\n// return;\n\n // Determine if in graphic/text mode; this is set in graphics register 0x06\n if (videocard.graphicsController.alphaNumDisable != 0)\n {}\n\n // alphaNumDisable == 0; Text mode\n else\n {\n // Cursor attributes\n int cursorXPos; // Cursor column position\n int cursorYPos; // Cursor row position\n int cursorWidth = 8; // 8 or 9 pixel cursor width\n int fullCursorAddress = 162; // Cursor location (byte number in vga memory) \n\n // Screen attributes \n int maxScanLine = 15; // Character height - 1\n int numColumns = 80; // (Char. clocks - 1) + 1 , i.e. number of columns\n int numRows = 25; // Number of text rows in screen \n screenWidth = cursorWidth * numColumns; // Screen width in pixels\n videocard.verticalDisplayEnd = 399;\n screenHeight = videocard.verticalDisplayEnd + 1; // Screen height in pixels\n \n int fullStartAddress = 0; // Upper left character of screen\n\n logger.log(Level.INFO, \"[\" + MODULE_TYPE + \"]\" + \" update() in progress; text mode\");\n \n // Collect text features to be passed to screen update\n textModeAttribs.fullStartAddress = (short) 0; \n textModeAttribs.cursorStartLine = (byte) 14;\n textModeAttribs.cursorEndLine = (byte) 15;\n textModeAttribs.lineOffset = (short) 160;\n textModeAttribs.lineCompare = (short) 1023;\n textModeAttribs.horizPanning = (byte) 0;\n textModeAttribs.vertPanning = (byte) 0;\n textModeAttribs.lineGraphics = 1;\n textModeAttribs.splitHorizPanning = 0;\n \n // Check if the GUI window needs to be resized\n if ((screenWidth != oldScreenWidth) || (screenHeight != oldScreenHeight) || (maxScanLine != oldMaxScanLine))\n {\n screen.updateScreenSize(screenWidth, screenHeight, cursorWidth, maxScanLine + 1);\n oldScreenWidth = screenWidth;\n oldScreenHeight = screenHeight;\n oldMaxScanLine = maxScanLine;\n }\n\n // Determine cursor position in terms of rows and columns\n if (fullCursorAddress < fullStartAddress) // Cursor is not on screen, so set unreachable values\n {\n cursorXPos = 0xFFFF;\n cursorYPos = 0xFFFF;\n }\n else // Cursor is on screen, calculate position\n {\n cursorXPos = ((fullCursorAddress - fullStartAddress) / 2) % (screenWidth / cursorWidth);\n cursorYPos = ((fullCursorAddress - fullStartAddress) / 2) / (screenWidth / cursorWidth);\n }\n \n // Call screen update for text mode\n screen.updateText(0, fullStartAddress, cursorXPos, cursorYPos, textModeAttribs.getAttributes(), numRows);\n \n // Screen has been updated, copy new contents into 'snapshot'\n System.arraycopy(videocard.vgaMemory, fullStartAddress, videocard.textSnapshot, 0, 2 * numColumns * numRows);\n \n videocard.vgaMemReqUpdate = false;\n }\n }", "private void setCorrectSize() {\n double newHeight = this.getContentPane().getPreferredSize().getHeight() +\n this.getContentPane().getPreferredSize().getHeight()/10 * 7;\n int newHeightInt = (int)Math.round(newHeight);\n \n this.setSize(this.getWidth(),newHeightInt);\n }", "void setWindowSize(int s);", "public void doFitSize(Event event) {\r\n final int height = ((Intbox) Path.getComponent(\"/outerIndexWindow/currentDesktopHeight\")).getValue().intValue();\r\n final int maxListBoxHeight = height - 148;\r\n borderlayout_MunivDetail.setHeight(String.valueOf(maxListBoxHeight) + \"px\");\r\n\r\n windowMunivDetail.invalidate();\r\n }", "public void setDisplayFont(int size){\n\t\tscreen.setFont(new Font(\"Serif\",Font.BOLD,size));\r\n\t}", "public void showOnScreen(int screen, JFrame frame) {\n\t\tGraphicsConfiguration[] screenConfig = screenDevices[screen].getConfigurations();\n\t\tSystem.out.println(\"width:\" + screenConfig[0].getBounds().getWidth());\n\t\tSystem.out.println(\"height:\" + screenConfig[0].getBounds().getHeight());\n\t\tint width = (int) screenConfig[0].getBounds().getWidth();\n\t\tint height = (int) screenConfig[0].getBounds().getHeight();\n\t\tsetPreferredSize(new Dimension(width, height));\n\t\tWIDTH = width / SCALE;\n\t\tHEIGHT = height / SCALE;\n\t\tGame.WIDTH = WIDTH;\n\t\tGame.HEIGHT = HEIGHT;\n\t\t// frame.setExtendedState(JFrame.MAXIMIZED_BOTH);\n\t\tframe.setUndecorated(true);\n\t\tframe.setResizable(false);\n\t\tframe.pack();\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tif (screen > -1 && screen < screenDevices.length) {\n\t\t\tscreenDevices[screen].setFullScreenWindow(frame);\n\t\t} else if (screenDevices.length > 0) {\n\t\t\tscreenDevices[0].setFullScreenWindow(frame);\n\t\t} else {\n\t\t\tthrow new RuntimeException(\"No Screens Found\");\n\t\t}\n\t}", "@Override\n\tpublic void resize(int width, int height) {\n\t\tgamePort.update(width,height);\n\n\t}", "private static void maximizeFirefoxWindow(int screenWidth, int screenHeight,WebDriver driver)\n {\n driver.manage().window().setPosition(new Point(0, 0));\n driver.manage().window().setSize(new Dimension(screenWidth, screenHeight));\n }", "public void setForcedSize(int width, int height) {\n boolean clear = this.mInitialDisplayWidth == width && this.mInitialDisplayHeight == height;\n if (!clear) {\n width = Math.min(Math.max(width, 200), this.mInitialDisplayWidth * 2);\n height = Math.min(Math.max(height, 200), this.mInitialDisplayHeight * 2);\n }\n Slog.i(TAG, \"Using new display size: \" + width + \"x\" + height);\n updateBaseDisplayMetrics(width, height, this.mBaseDisplayDensity);\n this.mWmService.reconfigureDisplayLocked(this);\n this.mWmService.resetFoldScreenInfo();\n if (clear) {\n height = 0;\n width = 0;\n }\n this.mWmService.mDisplayWindowSettings.setForcedSize(this, width, height);\n }", "private void fitTextToView() {\n int currentTextSize = (int) getTextSize();\n if (currentTextSize == mMinTextSize) {\n return;\n }\n\n final float width = getAvailableWidth();\n final String currentText = getText().toString();\n\n if (width <= 0 || TextUtils.isEmpty(currentText)) {\n return;\n }\n\n mTextPaint.set(getPaint());\n mTextPaint.setTextSize(currentTextSize);\n\n while (mTextPaint.measureText(currentText) > width && currentTextSize > mMinTextSize) {\n currentTextSize -= mTextSizeIncrement;\n mTextPaint.setTextSize(currentTextSize);\n }\n\n currentTextSize = Math.max(currentTextSize, mMinTextSize);\n setEllipsize(currentTextSize == mMinTextSize ? TextUtils.TruncateAt.END : null);\n\n setTextSize(TypedValue.COMPLEX_UNIT_PX, currentTextSize);\n }", "public void setMaxPaddleLength(){\n myRectangle.setWidth(myScreenWidth - SIDEBAR_WIDTH);\n }", "void setPaperSize(short size);", "public void maximize()\n {\n this.setExtendedState(JFrame.MAXIMIZED_BOTH);\n }", "public JFrame editFrame(String name) throws Exception {\r\n\t\tJFrame frame = new JFrame(name);\r\n\r\n\t\tDimension dim = Toolkit.getDefaultToolkit().getScreenSize();\r\n\r\n\t\tdouble width = GameScreen.WIDTH.getValue();\r\n\t\tdouble height = GameScreen.HEIGHT.getValue();\r\n\t\tdim.width = (int) (dim.width * width);\r\n\t\tdim.height = (int) (dim.height * height);\r\n\r\n\t\tSystem.out.println(dim.getHeight() + \" \" + dim.getWidth());\r\n\t\tframe.setSize(dim);\r\n\t\tBoxLayout boxLayout = new BoxLayout(frame.getContentPane(), BoxLayout.Y_AXIS); // top to bottom\r\n\t\tframe.setLayout(boxLayout);\r\n\r\n\t\treturn frame;\r\n\t}", "public void setMaximizing() {\r\n maximizing = true;\r\n }", "private void zeichneWindow(int ypos,int xpos, int size)\r\n {\r\n ypos = ypos + size/6;\r\n xpos = xpos + size/6;\r\n size = size/4;\r\n zeichneWand(\"blau\",ypos,xpos,size); \r\n }", "void childResized(int w, int h);", "private void setDialog()\n {\n //this.setSize(350,500);\n this.setTitle(Constant.getTextBundle(\"ปฏิกิริยาต่อกัน\"));\n Toolkit thekit = this.getToolkit(); \n Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();\n this.setLocation((screenSize.width-this.getSize().width)/2, (screenSize.height-this.getSize().height)/2);\n }", "private void resize() {\n }", "void setContentMaxWidth(String maxWidth);", "@Override\n protected void onSizeChanged(int w, int h, int oldw, int oldh) {\n if (pianoBitmap != null) {\n pianoBitmap.recycle(); // mark the bitmap as dead\n }\n pianoWidth = w;\n pianoHeight = h;\n pianoBitmap = Bitmap.createBitmap(pianoWidth, pianoHeight, Bitmap.Config.ARGB_8888);\n pianoCanvas.setBitmap(pianoBitmap);\n this.createShapes();\n this.drawOnBitmap();\n // Inform the user about the key combination to access the menu\n // (because the keyboard takes up the whole screen)\n String text = \"Vol\" + \"\\u2191\" + \"+\" + \"Vol\" + \"\\u2193\" + \" \" + \"\\u2192\" + \" menu\";\n// Toast.makeText(getContext().getApplicationContext(), text, Toast.LENGTH_LONG).show();\n }", "public int winSize() { return winSize; }", "public void grow() {\n\t\thtmlFontSize += 40;\n\t}", "private void updateDimensions() {\r\n width = gui.getWidth();\r\n height = gui.getHeight();\r\n yLabelsMargin = (int) gui.getLabelWidth(Integer.toString(((int) maximumDB / 10) * 10), true) + 2;\r\n if (track != null)\r\n scaleXpx = ((float) width - yLabelsMargin) / track.getBufferCapacity();\r\n else\r\n scaleXpx = 1;\r\n scaleYpx = (float) ((height - 1) / (maximumDB - minimumDB));\r\n if (scaleYpx == 0)\r\n scaleYpx = 1;\r\n }", "@Override\n\tpublic void render() {\n\t\tthis.w=this.width;\n\t\tthis.h=this.height;\n\t\tif(Gdx.graphics.getWidth()<400){\n\t\t\tthis.w=this.width*1.5f;\n\t\t\tthis.h=this.height*1.5f;\n\t\t}\n\t\telse if(Gdx.graphics.getWidth()>=400 && Gdx.graphics.getWidth()<480){\n\t\t\tthis.w=this.width*1.35f;\n\t\t\tthis.h=this.height*1.35f;\n\t\t}\n\t\telse if(Gdx.graphics.getWidth()>600 && Gdx.graphics.getWidth()<=800){\n\t\t\tthis.w=this.width/1.75f;\n\t\t\tthis.h=this.height/1.75f;\n\t\t}\n\t\telse if(Gdx.graphics.getWidth()>800 && Gdx.graphics.getWidth()<1100){\n\t\t\tthis.w=this.width/2f;\n\t\t\tthis.h=this.height/2f;\n\t\t}\n\t\t\n\t\telse if(Gdx.graphics.getWidth()>1100){\n\t\t\tthis.w=this.width/2.5f;\n\t\t\tthis.h=this.height/2.5f;\n\t\t}\n\t\tif(!isShow)\n\t\t\treturn;\n\t\tif(font != null){\n\t\t\tfont.setScale(w, h);\n//\t\t\tfont.draw(GlobalVars.ge.getScreen().getBatch(), text, x, y);\n//\t\t\tfont.drawMultiLine(GlobalVars.ge.getScreen().getBatch(),text, x, y, this.areaWidth, this.hAlignment);\n\t\t\tfont.drawWrapped(GlobalVars.ge.getScreen().getBatch(),text, x, y, this.areaWidth, this.hAlignment);\n\t\t}\n\t}", "public TamanhoInternalFrameTest() {\r\n initComponents();\r\n setExtendedState(java.awt.Frame.MAXIMIZED_BOTH); // iniciar com tela full\r\n}", "public void settings() {\r\n\t\tthis.size(PlayGame.WIDTH,PlayGame.HEIGHT);\r\n\t}", "private void maximizeWindow() {\n\t\tdriver.manage().window().maximize();\n\t}", "public void updateHelpBoxDimensions()\r\n\t{\r\n\t\tsaveFont();\r\n\t\tg.setFont(NumerateGame.CAPTION_FONT);\r\n\t\thelpLineHeight = helpLines.size()*g.getFontMetrics().getMaxDescent();\r\n\t\thelpLineHeight += Math.max(helpLines.size()-1,0)*NumerateGame.HELP_BOX_INNER_TEXT_PADDING;\r\n\t\t\r\n\t\thelpLineWidth = 0;\r\n\t\tIterator it = helpLines.iterator();\r\n\t\twhile (it.hasNext())\r\n\t\t{\r\n\t\t\tString current = (String)it.next();\r\n\t\t\tif (g.getFontMetrics().stringWidth(current) > helpLineWidth)\r\n\t\t\t{\r\n\t\t\t\thelpLineWidth = g.getFontMetrics().stringWidth(current);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\trevertFont();\r\n\t}", "@Override\r\n\tpublic void onSizeChanged(int w, int h, int oldW, int oldH) {\r\n\t\t// Set the movement bounds for the ball\r\n\t\txMax = w - 1;\r\n\t\tyMax = h - 1;\r\n\t}", "public void setBestSize() { setSize(getBestWidth(), getBestHeight()); }", "@Override\n protected void onSizeChanged(int w, int h, int oldw, int oldh)\n {\n super.onSizeChanged(w, h, oldw, oldh);\n dotsSet = false;\n\n\n startNewGame();\n keeper.start();\n }", "@Override\n public void onSizeChanged(int w, int h, int oldW, int oldH) {\n // Set the movement bounds for the ball\n displayArea.setDisp(w-1, h-1);\n if (!isInitBackground) {\n isInitBackground = true;\n backgCalculating = new BackCalculating(0, 0, displayArea.xMax, displayArea.yMax, Color.BLACK, Color.YELLOW);\n }\n }", "private void setWindowDefaultSize(UserPrefs prefs) {\n primaryStage.setHeight(prefs.getGuiSettings().getWindowHeight());\n\t\tTemplateClass.instrum(\"LineNumber: \",\"165\", \"Type: \",\"org.eclipse.jdt.core.dom.ExpressionStatement\", \"Method: \",\"setWindowDefaultSize\", \"Class: \",\"MainWindow\");\n primaryStage.setWidth(prefs.getGuiSettings().getWindowWidth());\n\t\tTemplateClass.instrum(\"LineNumber: \",\"166\", \"Type: \",\"org.eclipse.jdt.core.dom.ExpressionStatement\", \"Method: \",\"setWindowDefaultSize\", \"Class: \",\"MainWindow\");\n if (prefs.getGuiSettings().getWindowCoordinates() != null) {\n primaryStage.setX(prefs.getGuiSettings().getWindowCoordinates().getX());\n\t\t\tTemplateClass.instrum(\"LineNumber: \",\"168\", \"Type: \",\"org.eclipse.jdt.core.dom.ExpressionStatement\", \"Method: \",\"setWindowDefaultSize\", \"Class: \",\"MainWindow\");\n primaryStage.setY(prefs.getGuiSettings().getWindowCoordinates().getY());\n\t\t\tTemplateClass.instrum(\"LineNumber: \",\"169\", \"Type: \",\"org.eclipse.jdt.core.dom.ExpressionStatement\", \"Method: \",\"setWindowDefaultSize\", \"Class: \",\"MainWindow\");\n }\n\t\tTemplateClass.instrum(\"LineNumber: \",\"167\", \"Type: \",\"org.eclipse.jdt.core.dom.IfStatement\", \"Method: \",\"setWindowDefaultSize\", \"Class: \",\"MainWindow\");\n }", "void update(){\r\n\t\twindowHeight = this.getHeight();\r\n\t}", "public void resize(int w, int h) {}", "public void calculateWindow()\n {\n Vector2 windowBottomLeftBounds = new Vector2(1000000, 1000000);\n Vector2 windowTopRightBounds = new Vector2(-1000000, -1000000);\n for (Element<?> e : children())\n {\n if (e.id() != null && (e.id().startsWith(id() + \"hBar\") || e.id().startsWith(id() + \"vBar\")))\n {\n continue;\n }\n for (Element<?> child : e)\n {\n Vector2 alignmentVector = child.alignment().alignmentVector();\n Vector2 bottomLeftBounds = new Vector2(child.x() - (alignmentVector.x * child.width()), child.y()\n - (alignmentVector.y * child.height()));\n Vector2 topRightBounds = new Vector2(bottomLeftBounds.x + child.width(), bottomLeftBounds.y + child.height());\n // left\n if (windowBottomLeftBounds.x > bottomLeftBounds.x)\n {\n windowBottomLeftBounds.x = bottomLeftBounds.x;\n }\n // bottom\n if (windowBottomLeftBounds.y > bottomLeftBounds.y)\n {\n windowBottomLeftBounds.y = bottomLeftBounds.y;\n }\n // right\n if (windowTopRightBounds.x < topRightBounds.x)\n {\n windowTopRightBounds.x = topRightBounds.x;\n }\n // top\n if (windowTopRightBounds.y < topRightBounds.y)\n {\n windowTopRightBounds.y = topRightBounds.y;\n }\n }\n }\n \n content = new CRectangle(windowBottomLeftBounds.x, windowBottomLeftBounds.y, windowTopRightBounds.x - windowBottomLeftBounds.x,\n windowTopRightBounds.y - windowBottomLeftBounds.y);\n content.origin = new Vector2(0, 0);\n \n calculateScrollSize();\n }", "@Override\n public void onSurfaceChanged(GL10 gl, int width, int height) {\n if (height == 0) height = 1; // To prevent divide by zero\n float aspect = (float)width / height;\n \n // Set the viewport (display area) to cover the entire window\n gl.glViewport(0, 0, width, height);\n \n // Setup perspective projection, with aspect ratio matches viewport\n gl.glMatrixMode(GL10.GL_PROJECTION); // Select projection matrix\n gl.glLoadIdentity(); // Reset projection matrix\n // Use perspective projection\n GLU.gluPerspective(gl, 45, aspect, 0.1f, 100.f);\n \n gl.glMatrixMode(GL10.GL_MODELVIEW); // Select model-view matrix\n gl.glLoadIdentity(); // Reset\n \n // You OpenGL|ES display re-sizing code here\n // ......\n }", "private static void createWindow(){\n try{\n\n displayMode = new DisplayMode(1600 ,900);\n Display.setDisplayMode(displayMode);\n\n /*\n Display.setDisplayMode(getDisplayMode(1920 ,1080,false));\n if(displayMode.isFullscreenCapable()){\n Display.setFullscreen(true);\n }else{\n Display.setFullscreen(false);\n }\n */\n Display.setTitle(\"CubeKraft\");\n Display.create();\n }catch (Exception e){\n for(StackTraceElement s: e.getStackTrace()){\n System.out.println(s.toString());\n }\n }\n }", "private static void setupWindow() {\n window.setSize((2 * WINDOW_MARGINS) + (CELL_SIZE * SIZE_X), (2 * WINDOW_MARGINS) + (CELL_SIZE * SIZE_Y));\n window.add(canvas);\n window.setVisible(true);\n window.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n canvas.createBufferStrategy(2);\n }", "@Override\n\tpublic void resize(int width, int height) {\n\t\trenderer.setSize(width, height);\n\t\tthis.width = width;\n\t\tthis.height = height;\n\t}", "private void updateScrollBarSize() {\n int textHeight = getTextHeight();\n if (textHeight <= windowHeight) {\n Root.getChildren().remove(scrollBar);\n } else {\n if (!Root.getChildren().contains(scrollBar)) {\n Root.getChildren().add(scrollBar);\n }\n double range = textHeight - windowHeight;\n scrollBar.setMax(range);\n scrollBar.setVisibleAmount(10);\n }\n }", "public Dimension getPreferredSize() {\n Dimension size = super.getPreferredSize();\n size.width += extraWindowWidth;\n return size;\n }", "public void setupGUIWindow()\n { \n// _frame.setExtendedState(Frame.MAXIMIZED_BOTH);\n// exitOnClose(); \n// createButtonGrid(); \n// addButtonPanel(); \n \n\t //setSize(new Dimension(Toolkit.getDefaultToolkit().getScreenSize())); \n \n\t _frame.setExtendedState(Frame.MAXIMIZED_BOTH);\n\t _frame.addComponentListener(new WindowListener());\n\t exitOnClose(); \n\t createShipPlacementButton();\n\t createButtonGrid(_displayPanel, _buttonGrid2, null); // player\n\t createButtonGrid(_buttonPanel, _buttonGrid, new GridListener(_buttonGrid)); // enemy\n\t addButtonPanel(); \n }", "public static void MaximizeWindow() {\n\t\tBrowser.Driver.manage().window().maximize();\n\t}", "public void setSize(float width, float height);", "public void resize (int width, int height) \n\t{ \n\t\tcamera.viewportWidth = (Constants.VIEWPORT_HEIGHT / height) *\n\t\t\twidth;\n\t\tcamera.update();\n\t\tcameraGUI.viewportHeight = Constants.VIEWPORT_GUI_HEIGHT;\n\t\tcameraGUI.viewportWidth = (Constants.VIEWPORT_GUI_HEIGHT\n\t\t\t\t/ (float)height) * (float)width;\n\t\tcameraGUI.position.set(cameraGUI.viewportWidth / 2,\n\t\t\t\tcameraGUI.viewportHeight / 2, 0);\n\t\tcameraGUI.update();\n\t}", "public void recalculateViewport() {\r\n glViewport(0, 0, getWidth(), getHeight());\r\n spriteBatch.recalculateViewport(getWidth(), getHeight());\r\n EventManager.getEventManager().fireEvent(new WindowResizedEvent(getWidth(), getHeight()));\r\n }", "public synchronized void setManualFramingRect(int width, int height) {\n if (initialized) {\n Point screenResolution = getScreenResolution();\n if (width > screenResolution.x) {\n width = screenResolution.x;\n }\n if (height > screenResolution.y) {\n height = screenResolution.y;\n }\n int leftOffset = (screenResolution.x - width) / 2;\n int topOffset = (screenResolution.y - height) / 2;\n framingRect = new Rect(leftOffset, topOffset, leftOffset + width, topOffset + height);\n Log.d(TAG, \"Calculated manual framing rect: \" + framingRect);\n framingRectInPreview = null;\n } else {\n requestedFramingRectWidth = width;\n requestedFramingRectHeight = height;\n }\n }", "private void settings() {\n\t\tthis.setVisible(true);\n\t\tthis.setSize(800,200);\n\t}", "public void setScreenSize(int width, int height) {\r\n\t\tthis.width = width;\r\n\t\tthis.height = height;\r\n\t\tthis.halfWidth = width >> 1;\r\n\t\tthis.halfHeight = height >> 1;\r\n\t\tthis.scaleFactor = ((width + height) >> 7) + 1;\r\n\t\tchanged = true;\r\n\t}", "private static void initUsableDisplaySizes() {\n\t\t// Optimized display dimensions for display resolutions\n\t\tdisplaySizes.add(new Dimension(640, 480)); // Smaller 4:3 (1024x768 and smaller)\n\t\tdisplaySizes.add(new Dimension(800, 600)); // Larger 4:3 (1280x1024)\n\t\tdisplaySizes.add(new Dimension(864, 486)); // Larger 16:9 (1366x768 and larger)\n\t}" ]
[ "0.6778408", "0.666645", "0.6603492", "0.63907593", "0.6328211", "0.6327813", "0.6151112", "0.6125224", "0.61100566", "0.61019546", "0.6094614", "0.6082999", "0.60752475", "0.60576755", "0.6057341", "0.6056009", "0.60463953", "0.60437536", "0.6042435", "0.6011714", "0.5988238", "0.59583765", "0.5955043", "0.593182", "0.5921056", "0.59190834", "0.58771753", "0.5874172", "0.58704925", "0.5869666", "0.582804", "0.5815797", "0.5815161", "0.5807399", "0.58060324", "0.5805926", "0.5799374", "0.5796758", "0.5792208", "0.57750756", "0.57553303", "0.5753112", "0.5738029", "0.5714908", "0.5712154", "0.5693029", "0.56887877", "0.5678167", "0.5674147", "0.56673974", "0.566228", "0.5661078", "0.56472284", "0.5643435", "0.5643269", "0.5639273", "0.56270516", "0.5613477", "0.56069374", "0.55944955", "0.55839115", "0.5582331", "0.55816555", "0.5568461", "0.55632025", "0.5544599", "0.5534438", "0.55340195", "0.552845", "0.5526264", "0.5523363", "0.5517813", "0.5509353", "0.55062056", "0.54878944", "0.54788196", "0.54769564", "0.5476403", "0.5476197", "0.54673845", "0.546221", "0.5445873", "0.5444784", "0.54424775", "0.5439426", "0.54375917", "0.54365456", "0.5436247", "0.54248273", "0.54213727", "0.5418866", "0.5413873", "0.5413521", "0.5408243", "0.54064476", "0.540063", "0.53953147", "0.5379657", "0.5376563", "0.5376511" ]
0.81890094
0
/ calc scn_width and scn_height for current scn_rows, scn_cols, scn_font
private void calc_screen_size(){ scn_grid.setFont(scn_font); scn_context = scn_grid.getFontRenderContext(); scn_layout = new TextLayout("X",scn_font,scn_context); scn_char_rect = scn_layout.getBlackBoxBounds(0,1).getBounds(); scn_char_height = (int) (scn_char_rect.getHeight()); // RPI 630 was Width in err, 6 to *1.5 scn_char_base = scn_char_height/2+1; scn_char_height = scn_char_height + scn_char_base+2; scn_char_width = (int) (scn_char_rect.getWidth()); // RPI 630 was Height in err scn_height = scn_rows * scn_char_height; // RPI 408 + 5 scn_width = scn_cols * scn_char_width + 3; // RPI 408 + 5 scn_size = new Dimension(scn_width,scn_height); scn_image = new BufferedImage(scn_width,scn_height,BufferedImage.TYPE_INT_ARGB); scn_grid = scn_image.createGraphics(); scn_grid.setFont(scn_font); scn_grid.setColor(scn_text_color); scn_context = scn_grid.getFontRenderContext(); scn_grid.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void resize_screen(){\r\n \tstop_scn_updates();\r\n \tscn_font_size = min_font_size+1;\r\n \twhile (scn_font_size < max_font_size){\r\n \t\tscn_font = new Font(tz390.z390_font,Font.BOLD,scn_font_size);\r\n \t\tcalc_screen_size();\r\n \t\tif (scn_image.getWidth() < main_panel_width\r\n \t\t\t&& scn_image.getHeight() < main_panel_height){\r\n \t\t\tscn_font_size++;\r\n \t\t} else {\r\n \t\t scn_font_size--;\r\n \t\t break;\r\n \t\t}\r\n \t} \t\r\n \tscn_font = new Font(tz390.z390_font,Font.BOLD,scn_font_size);\r\n \tcalc_screen_size();\r\n start_scn_updates();\r\n }", "@Override\n\tpublic void render() {\n\t\tthis.w=this.width;\n\t\tthis.h=this.height;\n\t\tif(Gdx.graphics.getWidth()<400){\n\t\t\tthis.w=this.width*1.5f;\n\t\t\tthis.h=this.height*1.5f;\n\t\t}\n\t\telse if(Gdx.graphics.getWidth()>=400 && Gdx.graphics.getWidth()<480){\n\t\t\tthis.w=this.width*1.35f;\n\t\t\tthis.h=this.height*1.35f;\n\t\t}\n\t\telse if(Gdx.graphics.getWidth()>600 && Gdx.graphics.getWidth()<=800){\n\t\t\tthis.w=this.width/1.75f;\n\t\t\tthis.h=this.height/1.75f;\n\t\t}\n\t\telse if(Gdx.graphics.getWidth()>800 && Gdx.graphics.getWidth()<1100){\n\t\t\tthis.w=this.width/2f;\n\t\t\tthis.h=this.height/2f;\n\t\t}\n\t\t\n\t\telse if(Gdx.graphics.getWidth()>1100){\n\t\t\tthis.w=this.width/2.5f;\n\t\t\tthis.h=this.height/2.5f;\n\t\t}\n\t\tif(!isShow)\n\t\t\treturn;\n\t\tif(font != null){\n\t\t\tfont.setScale(w, h);\n//\t\t\tfont.draw(GlobalVars.ge.getScreen().getBatch(), text, x, y);\n//\t\t\tfont.drawMultiLine(GlobalVars.ge.getScreen().getBatch(),text, x, y, this.areaWidth, this.hAlignment);\n\t\t\tfont.drawWrapped(GlobalVars.ge.getScreen().getBatch(),text, x, y, this.areaWidth, this.hAlignment);\n\t\t}\n\t}", "protected void calculateBounds()\r\n {\r\n Toolkit DefaultToolkit = Toolkit.getDefaultToolkit();\r\n Dimension ScreenSize = DefaultToolkit.getScreenSize();\r\n int FrameWidth = ScreenSize.width - 100;\r\n int FrameHeight = ScreenSize.height - 100;\r\n setBounds(50, 50, FrameWidth, FrameHeight);\r\n }", "public void set_screen(int new_rows, int new_cols, Font new_font, Color new_background_color, Color new_text_color){\r\n \tstop_scn_updates();\r\n \tscn_rows = new_rows;\r\n \tscn_cols = new_cols;\r\n \tscn_font = new_font;\r\n \tscn_background_color = new_background_color;\r\n \tscn_text_color = new_text_color;\r\n \tscn_font_size = scn_font.getSize();\r\n \tscn_image = new BufferedImage(100,100,BufferedImage.TYPE_INT_ARGB); \r\n \tscn_grid = scn_image.createGraphics();\r\n calc_screen_size();\r\n scn_panel = new JScrollPane(this);\r\n start_scn_updates();\r\n }", "public void updateRenderRect() {\n int i = 0;\n if (this.mTargetRatio == 2) {\n this.mTx = this.mRenderWidth == 0 ? 0 : (this.mRenderOffsetX * this.mSurfaceWidth) / this.mRenderWidth;\n int i2 = (this.mSurfaceHeight - this.mSurfaceWidth) / 2;\n if (this.mRenderHeight != 0) {\n i = (this.mRenderOffsetY * this.mSurfaceHeight) / this.mRenderHeight;\n }\n this.mTy = i2 + i;\n this.mTwidth = this.mSurfaceWidth;\n this.mTheight = this.mSurfaceWidth;\n this.mRenderLayoutRect.set(this.mRenderOffsetX, ((this.mRenderHeight - this.mRenderWidth) / 2) + this.mRenderOffsetY, this.mRenderWidth + this.mRenderOffsetX, ((this.mRenderHeight - this.mRenderWidth) / 2) + this.mRenderOffsetY + this.mRenderWidth);\n return;\n }\n this.mTx = this.mRenderWidth == 0 ? 0 : (this.mRenderOffsetX * this.mSurfaceWidth) / this.mRenderWidth;\n this.mTy = this.mRenderHeight == 0 ? 0 : (this.mRenderOffsetY * this.mSurfaceHeight) / this.mRenderHeight;\n this.mTwidth = this.mSurfaceWidth;\n this.mTheight = this.mSurfaceHeight;\n this.mRenderLayoutRect.set(0, 0, this.mRenderWidth, this.mRenderHeight);\n }", "public void setSize(double width, double height){\r\n double topLaneHeight=height/100*myInformation.upperToDownPercent;\r\n double bottomLaneHeight=height-topLaneHeight;\r\n double leftSideWidth=width/100*myInformation.leftToRightPercent;\r\n double rightSideWidth=width-leftSideWidth-1;\r\n\r\n double buttonLeftHeight=(height-topLaneHeight)/100*myInformation.leftButtonsPercent;\r\n int countLeftButtons=0;\r\n double labelTopWidth=rightSideWidth/100*myInformation.upperButtonsPercent;\r\n int countTopLabels=0;\r\n //Regions\r\n leftVBox.setMinSize(leftSideWidth,height);\r\n leftVBox.setMaxSize(leftSideWidth,height);\r\n\r\n upperHBox.setMinSize(width,topLaneHeight);\r\n upperHBox.setMaxSize(width,topLaneHeight);\r\n\r\n canvas.setWidth(width);\r\n canvas.setHeight(bottomLaneHeight);\r\n\r\n pane.setMinSize(width,bottomLaneHeight);\r\n pane.setMaxSize(width,bottomLaneHeight);\r\n\r\n stackPane.setMinSize(width, height);\r\n stackPane.setMaxSize(width, height);\r\n\r\n mainVBox.setMinSize(width, height);\r\n mainVBox.setMaxSize(width, height);\r\n\r\n canvasStackPane.setMinSize(width,bottomLaneHeight);\r\n canvasStackPane.setMaxSize(width,bottomLaneHeight);\r\n\r\n listViewVBox.setMinSize(width, height);\r\n listViewVBox.setMaxSize(width, height);\r\n //Objects\r\n upperLeftButton.setMinSize(leftSideWidth,topLaneHeight);\r\n upperLeftButton.setMaxSize(leftSideWidth,topLaneHeight);\r\n //Left Side\r\n left1HintButton.setMinSize(leftSideWidth,buttonLeftHeight);\r\n left1HintButton.setMaxSize(leftSideWidth,buttonLeftHeight);\r\n countLeftButtons++;\r\n\r\n left2Button.setMinSize(leftSideWidth,buttonLeftHeight);\r\n left2Button.setMaxSize(leftSideWidth,buttonLeftHeight);\r\n countLeftButtons++;\r\n\r\n left3Button.setMinSize(leftSideWidth,buttonLeftHeight);\r\n left3Button.setMaxSize(leftSideWidth,buttonLeftHeight);\r\n countLeftButtons++;\r\n\r\n left4Button.setMinSize(leftSideWidth,buttonLeftHeight);\r\n left4Button.setMaxSize(leftSideWidth,buttonLeftHeight);\r\n countLeftButtons++;\r\n\r\n left5Button.setMinSize(leftSideWidth,buttonLeftHeight);\r\n left5Button.setMaxSize(leftSideWidth,buttonLeftHeight);\r\n countLeftButtons++;\r\n\r\n double restHeight=height-(buttonLeftHeight*countLeftButtons+topLaneHeight);\r\n leftRestLabel.setMinSize(leftSideWidth,restHeight);\r\n leftRestLabel.setMaxSize(leftSideWidth,restHeight);\r\n\r\n //Top\r\n upper1Label.setMinSize(labelTopWidth,topLaneHeight);\r\n upper1Label.setMaxSize(labelTopWidth,topLaneHeight);\r\n countTopLabels++;\r\n\r\n upper2Label.setMinSize(labelTopWidth,topLaneHeight);\r\n upper2Label.setMaxSize(labelTopWidth,topLaneHeight);\r\n countTopLabels++;\r\n\r\n upper3Label.setMinSize(labelTopWidth,topLaneHeight);\r\n upper3Label.setMaxSize(labelTopWidth,topLaneHeight);\r\n countTopLabels++;\r\n\r\n double restwidth=width-upperLeftButton.getWidth()-(labelTopWidth*countTopLabels);\r\n upperRestLabel.setMinSize(restwidth,topLaneHeight);\r\n upperRestLabel.setMaxSize(restwidth,topLaneHeight);\r\n //New Gamemode stuff\r\n newGamemodeHBox.setMinSize(width,height);\r\n newGamemodeHBox.setMaxSize(width,height);\r\n double nBWidth=width/100*myInformation.newGamemodeButtonsPercent.width;\r\n double nBHeight=height/100*myInformation.newGamemodeButtonsPercent.height;\r\n\r\n newGamemodebutton1.setMinSize(nBWidth,nBHeight);\r\n newGamemodebutton1.setMaxSize(nBWidth,nBHeight);\r\n\r\n newGamemodebutton2.setMinSize(nBWidth,nBHeight);\r\n newGamemodebutton2.setMaxSize(nBWidth,nBHeight);\r\n\r\n newGamemodebutton3.setMinSize(nBWidth,nBHeight);\r\n newGamemodebutton3.setMaxSize(nBWidth,nBHeight);\r\n\r\n //BackButton\r\n backPane.setMinSize(width, height);\r\n backPane.setMaxSize(width, height);\r\n double backWidth=width/100*myInformation.backButtonPercent.width;\r\n double backHeight=height/100*myInformation.backButtonPercent.height;\r\n backButton.setMinSize(backWidth,backHeight);\r\n backButton.setMaxSize(backWidth,backHeight);\r\n //New Graphmode\r\n newGraphModeHBox.setMinSize(width,height);\r\n newGraphModeHBox.setMaxSize(width,height);\r\n\r\n newGraphModebutton1.setMinSize(nBWidth,nBHeight);\r\n newGraphModebutton1.setMaxSize(nBWidth,nBHeight);\r\n\r\n newGraphModebutton2.setMinSize(nBWidth,nBHeight);\r\n newGraphModebutton2.setMaxSize(nBWidth,nBHeight);\r\n\r\n newGraphModebutton3.setMinSize(nBWidth,nBHeight);\r\n newGraphModebutton3.setMaxSize(nBWidth,nBHeight);\r\n\r\n sMBHBox.setMinSize(width,height);\r\n sMBHBox.setMaxSize(width,height);\r\n smallButton.setMinSize(nBWidth,nBHeight);\r\n smallButton.setMaxSize(nBWidth,nBHeight);\r\n middleButton.setMinSize(nBWidth,nBHeight);\r\n middleButton.setMaxSize(nBWidth,nBHeight);\r\n bigButton.setMinSize(nBWidth,nBHeight);\r\n bigButton.setMaxSize(nBWidth,nBHeight);\r\n\r\n gameEndButton.setMinSize(nBWidth,nBHeight);\r\n gameEndButton.setMaxSize(nBWidth,nBHeight);\r\n gameEndTop.setMinSize(width/2,height/5);\r\n gameEndTop.setMaxSize(width/2,height/5);\r\n\r\n\r\n listView.setMinSize(width/8,height/2);\r\n listView.setMaxSize(width/8,height/2);\r\n submit2.setMinSize(width/8,height/10);\r\n submit2.setMaxSize(width/8,height/10);\r\n\r\n textFieldHBox.setMinSize(width,height);\r\n textFieldHBox.setMaxSize(width,height);\r\n textFieldVertices.setMinSize(nBWidth,nBHeight);\r\n textFieldVertices.setMaxSize(nBWidth,nBHeight);\r\n textFieldEdges.setMinSize(nBWidth,nBHeight);\r\n textFieldEdges.setMaxSize(nBWidth,nBHeight);\r\n\r\n buttonTextfield.setMinSize(nBWidth/2,nBHeight);\r\n buttonTextfield.setMaxSize(nBWidth/2,nBHeight);\r\n\r\n //New Graph\r\n newGraphHBox.setMinSize(width,height);\r\n newGraphHBox.setMaxSize(width,height);\r\n\r\n newGraphButtonYes.setMinSize(nBWidth,nBHeight);\r\n newGraphButtonYes.setMaxSize(nBWidth,nBHeight);\r\n\r\n newGraphButtonNo.setMinSize(nBWidth,nBHeight);\r\n newGraphButtonNo.setMaxSize(nBWidth,nBHeight);\r\n\r\n hintButton1.setMinSize(nBWidth,nBHeight);\r\n hintButton1.setMaxSize(nBWidth,nBHeight);\r\n hintButton2.setMinSize(nBWidth,nBHeight);\r\n hintButton2.setMaxSize(nBWidth,nBHeight);\r\n hintButton3.setMinSize(nBWidth,nBHeight);\r\n hintButton3.setMaxSize(nBWidth,nBHeight);\r\n hintButton4.setMinSize(nBWidth,nBHeight);\r\n hintButton4.setMaxSize(nBWidth,nBHeight);\r\n hintButton5.setMinSize(nBWidth,nBHeight);\r\n hintButton5.setMaxSize(nBWidth,nBHeight);\r\n hintButton6.setMinSize(nBWidth,nBHeight);\r\n hintButton6.setMaxSize(nBWidth,nBHeight);\r\n hintButton7.setMinSize(nBWidth,nBHeight);\r\n hintButton7.setMaxSize(nBWidth,nBHeight);\r\n hintButton8.setMinSize(nBWidth,nBHeight);\r\n hintButton8.setMaxSize(nBWidth,nBHeight);\r\n hintButton9.setMinSize(nBWidth,nBHeight);\r\n hintButton9.setMaxSize(nBWidth,nBHeight);\r\n\r\n gameWinStackPane.setMinSize(width, height);\r\n gameWinStackPane.setMaxSize(width, height);\r\n\r\n gameWinButton1.setMinSize(nBWidth,nBHeight);\r\n gameWinButton1.setMaxSize(nBWidth,nBHeight);\r\n\r\n gameWinButton2.setMinSize(nBWidth,nBHeight);\r\n gameWinButton2.setMaxSize(nBWidth,nBHeight);\r\n\r\n gameWinHBox.setMinSize(width,height/4);\r\n gameWinHBox.setMaxSize(width,height/4);\r\n\r\n hintMenuStack.setMinSize(width, height);\r\n hintMenuStack.setMaxSize(width, height);\r\n\r\n hintMenu.setSpacing(width/30);\r\n vBoxHint.setSpacing(height/20);\r\n vBoxHint2.setSpacing(height/20);\r\n vBoxHint3.setSpacing(height/20);\r\n\r\n abstand.setMinSize(width,height/3);\r\n }", "public int winSize() { return winSize; }", "@Override\r\n\tprotected void onSizeChanged(int w, int h, int oldw, int oldh) {\n\t\tfloat xPad = getPaddingLeft() + getPaddingRight();\r\n\t\tfloat yPad = getPaddingTop() + getPaddingBottom();\r\n\t\tdimension = Math.min(w - xPad, (h - yPad) * 2);\r\n\t\tradius = 60;\r\n\t\tinsideLeft = w / 2 - radius;\r\n\t\tinsideRight = w / 2 + radius;\r\n\t\tinsideTop = dimension - getPaddingBottom() - radius;\r\n\t\tinsideBottom = dimension - getPaddingBottom();\r\n\t\t\r\n//\t\toutRect = new RectF(getPaddingLeft(), getPaddingTop(), dimension - getPaddingRight(), dimension - getPaddingBottom());\r\n//\t\toutRect = new RectF(getPaddingLeft(), getPaddingTop(), dimension - getPaddingRight(), dimension/2);\r\n//\t\toutRect = new RectF(getPaddingLeft(), getPaddingTop(), dimension, dimension);\r\n\t\toutRect = new RectF(getPaddingLeft(), getPaddingTop(), w-getPaddingRight(), h-getPaddingBottom());\r\n\t\tfloat insideRectDownH = dimension-getPaddingBottom()-getPaddingTop()+150;\r\n//\t\tinsideRect = new RectF(50, 300, 320, insideRectDownH);\r\n\t\tinsideRect = new RectF(w/2-radius, dimension-radius, w/2+radius, dimension+radius);\r\n\t}", "protected boolean calculateSize()\n\t{\n\t\tp_height = 0;\n\t\tfor (int r = 0; r < m_rows; r++)\n\t\t{\n\t\t\tp_height += m_rowHeight[r];\n\t\t\tif (m_rowHeight[r] > 0)\n\t\t\t\tp_height += m_rowGap;\n\t\t}\n\t\tp_height -= m_rowGap;\t//\tremove last\n\t\tp_width = 0;\n\t\tfor (int c = 0; c < m_cols; c++)\n\t\t{\n\t\t\tp_width += m_colWidth[c];\n\t\t\tif (m_colWidth[c] > 0)\n\t\t\t\tp_width += m_colGap;\n\t\t}\n\t\tp_width -= m_colGap;\t\t//\tremove last\n\t\treturn true;\n\t}", "void setWidthHeight() {\n\t\tsetWidthHeight(getNcols() * grid().gridW, getNvisibleRows() * grid().gridH);\n\t}", "int getBoundsHeight();", "public void draw() {\n final int columns = (int) (2 * Math.ceil(Math.max(-minx, maxx)));\n final int rows = (int) (2 * Math.ceil(Math.max(-miny, maxy)));\n\n final int drawColumns;\n final int drawRows;\n drawColumns = drawRows = Math.max(columns, rows);\n\n double leftOffsetPx = BORDER;\n double rightOffsetPx = BORDER;\n double topOffsetPx = BORDER;\n double bottomOffsetPx = BORDER;\n\n final double availableWidth = view.getWidth() - leftOffsetPx - rightOffsetPx;\n final double availableHeight = view.getHeight() - topOffsetPx - bottomOffsetPx;\n\n final double drawWidth;\n final double drawHeight;\n drawWidth = drawHeight = Math.min(availableWidth, availableHeight);\n\n leftOffsetPx = rightOffsetPx = (view.getWidth() - drawWidth) / 2;\n topOffsetPx = bottomOffsetPx = (view.getHeight() - drawHeight) / 2;\n\n // Adjust for aspect ratio\n columnWidth = rowHeight = drawHeight / columns;\n\n centerX = (drawColumns / 2.0) * columnWidth + leftOffsetPx;\n centerY = (drawRows / 2.0) * rowHeight + topOffsetPx;\n\n drawVerticalLine((float) centerX, topOffsetPx, bottomOffsetPx);\n drawHorizontalLine((float) centerY, leftOffsetPx, rightOffsetPx);\n\n int yTick = (int) (-drawRows / 2.0 / TICK_INTERVAL) * TICK_INTERVAL;\n while (yTick <= drawRows / 2.0) {\n if (yTick != 0) {\n final String label = yTick % (TICK_INTERVAL * 2) == 0 ? String.format(\"%d\", yTick) : null;\n drawYTick(-yTick * rowHeight + centerY, centerX, label);\n }\n yTick += TICK_INTERVAL;\n }\n\n int xTick = (int) (-drawColumns / 2.0 / TICK_INTERVAL) * TICK_INTERVAL;\n while (xTick <= drawColumns / 2.0) {\n if (xTick != 0) {\n final String label = xTick % (TICK_INTERVAL * 2) == 0 ? String.format(\"%d\", xTick) : null;\n drawXTick(xTick * columnWidth + centerX, centerY, label);\n }\n xTick += TICK_INTERVAL;\n }\n\n double adaptiveTextSize = getAdaptiveTextSize();\n\n final Paint paint = new Paint();\n final float textSize = TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_SP, (float)adaptiveTextSize, view.getResources().getDisplayMetrics());\n paint.setTextSize(textSize);\n paint.setTypeface(Typeface.create(Typeface.MONOSPACE, Typeface.NORMAL));\n for (Entry entry : data.getEntries()) {\n final double x = entry.getX();\n final double y = entry.getY();\n\n final double xDraw = x * columnWidth + centerX;\n final double yDraw = -y * rowHeight + centerY;\n\n CharSequence dispStr = entry.getStringLabel();\n if (dispStr == null) {\n dispStr = String.format(\"%.0f\", entry.getValue());\n }\n\n\n\n\n Rect bounds = getTextRectBounds(dispStr, paint);\n int textHeight = bounds.height();\n int textWidth = bounds.width();\n canvas.drawText(dispStr, 0, dispStr.length(),\n (float) xDraw - textWidth * 0.5f, (float) yDraw + textHeight * 0.5f,\n paint);\n }\n\n }", "@Override\n\tpublic void resize(int w, int h) {\n\t\tthis.leveys = w;\n\t\tthis.korkeus = h;\n\t\tthis.batch = new SpriteBatch();\n\t\tthis.ylaPalkinKorkeus = (int) (0.0931 * leveys);\n\n//\t\tskaala = Math.min((float) (w - 50) / 640,\n//\t\t\t\t(float) (h - 50 - ylaPalkinKorkeus) / 370f);\n\t\tskaala = Math.min((float) (w - 50) / 590,\n\t\t\t\t(float) (h - 50 - ylaPalkinKorkeus) / 354f);\n\n\t\t//System.out.println(\"(w - 50) / 640 = \" + w + \" - 50) / 640 = \" + (float) (w - 50) / 640);\n\t\t//System.out.println(\"(h - 50 - ylaPalkinKorkeus) / 370f) = \" + h + \"- 50 - \" + ylaPalkinKorkeus + \") / 370f = \" + (float) (h - 50 - ylaPalkinKorkeus) / 370f);\n\t\tSystem.out.println(\"Fontin skaala: \" + skaala);\n\t\tfont2.setScale(skaala);\n\t\t//font2.setScale(skaala*0.2f);\n\t\t// leveysSkaala = w / 640;\n\t\t// korkeusSkaala = h / 480;\n\n\t}", "public int grHeight() { return height; }", "@Override\r\n\t\tpublic void preCalculation() {\r\n\t\t\tint screenWidth = getWidth();\r\n\t\t\tint screenHeight = getHeight();\r\n\r\n\t\t\tmidWidth = screenWidth / 2 ;\r\n\t\t\tscreenRectWidth = (int)(screenWidth * SCALE_WIDTH_COEFFICIENT);\r\n\t\t\t/***** Calculate screen and board positions and measurements *****/\r\n\r\n\t\t\t/***** Calculate text positions and measurements *****/\r\n\t\t\tint headerRectHeight = (int)((screenHeight * HEADER_HEIGHT_RELATIVE) * SCALE_HEIGHT_COEFFICIENT);\r\n\r\n\t\t\tint subHeaderRectHeight = (int)((screenHeight * SUB_HEADER_HEIGHT_RELATIVE) * SCALE_HEIGHT_COEFFICIENT);\r\n\r\n\t\t\ttextRectHeight = (int)((screenHeight * TEXT_HEIGHT_RELATIVE) * SCALE_HEIGHT_COEFFICIENT);\r\n\r\n\t\t\tint headerHeight = (int) (screenHeight * HEADER_HEIGHT_RELATIVE_POS);\r\n\t\t\tint subHeaderHeight = (int) (screenHeight * SUB_HEADER_HEIGHT_RELATIVE_POS);\r\n\r\n\t\t\ttextHeight = (int) (screenHeight * TEXT_HEIGHT_RELATIVE_POS);\r\n\t\t\t/***** Calculate tile positions and measurements *****/\r\n\r\n\t\t\t/***** Define Paint objects *****/\r\n\t\t\ttextPaint = new Paint();\r\n\t\t\ttextPaint.setColor(Color.RED);\r\n\r\n\t\t\theaderTextPaint = new Paint();\r\n\t\t\theaderTextPaint.setTextSize(Logic_Utils.determineMaxTextSize(currentHeaderToPrint, screenRectWidth, headerRectHeight));\r\n\r\n\t\t\tRect headerBounds = new Rect();\r\n\r\n\t\t\theaderTextPaint.getTextBounds(currentHeaderToPrint, 0, currentHeaderToPrint.length(), headerBounds);\r\n\r\n\t\t\tsubHeaderTextPaint = new Paint();\r\n\t\t\tsubHeaderTextPaint.setTextSize(Logic_Utils.determineMaxTextSize(currentSubHeaderToPrint, screenRectWidth, subHeaderRectHeight));\r\n\r\n\t\t\tRect subHeaderBounds = new Rect();\r\n\r\n\t\t\tsubHeaderTextPaint.getTextBounds(currentSubHeaderToPrint, 0, currentSubHeaderToPrint.length(), subHeaderBounds);\r\n\t\t\t/***** Define Paint objects *****/\r\n\r\n\t\t\t/***** Calculate header positions and measurements *****/\r\n\t\t\theaderTextXpos = midWidth - (headerBounds.width() / 2);\r\n\t\t\theaderTextYpos = headerHeight;\r\n\t\t\t/***** Calculate header positions and measurements *****/\r\n\r\n\t\t\t/***** Calculate sub header positions and measurements *****/\r\n\t\t\tsubHeaderTextXpos = midWidth - (subHeaderBounds.width() / 2);\r\n\t\t\tsubHeaderTextYpos = subHeaderHeight;\r\n\t\t\t/***** Calculate sub header positions and measurements *****/\r\n\r\n\t\t}", "public void settings() { size(1200, 800); }", "private void countSizes() {\r\n Double pageWidth = Double.valueOf(pageWidthParameter.getType().getValue().replace(\",\", \".\"));\r\n double pageHeight = Double.valueOf(pageHeightParameter.getType().getValue().replace(\",\", \".\"));\r\n Double max = Math.max(pageWidth, pageHeight);\r\n max /= PAPER_SIZE;\r\n widthSize = (int) (pageWidth / max);\r\n heightSize = (int) (pageHeight / max);\r\n }", "private void setSizeBox() {\n\t\t\tthis.leftX = pointsSubStroke.get(0).getX();\n\t\t\tthis.righX = pointsSubStroke.get(0).getX();\n\t\t\tthis.topY = pointsSubStroke.get(0).getY();\n\t\t\tthis.bottomY = pointsSubStroke.get(0).getY();\n\t\t\t\n\t\t\tfor(int i = 0; i < pointsSubStroke.size();i++) {\n\t\t\t\tdouble x = pointsSubStroke.get(i).getX();\n\t\t\t\tdouble y = pointsSubStroke.get(i).getX();\n\t\t\t\t\n\t\t\t\tthis.leftX = Math.min(x, leftX);\n\t\t\t\tthis.righX = Math.max(x, righX);\n\t\t\t\tthis.topY = Math.min(y, topY);\n\t\t\t\tthis.bottomY = Math.max(y, bottomY);\n\t\t\t}\n\t\t}", "private void calcContentSize() {\n }", "private Dimension calculateCanvas() {\n \t\n \tint maxx=50;\n \tint minx=0;\n \tint maxy=50;\n \tint miny=0;\n \t\n \tVector v=Selector.getInstance().getAllEntitiesOnPanel();\n \tfor (int i=0; i<v.size(); i++) {\n \t\tEntity e =(Entity)v.elementAt(i);\n \t\tmaxx=Math.max(maxx,e.getX()+e.getWidth()+20);\n \t\tmaxy=Math.max(maxy,e.getY()+e.getHeight()+20);\n \t\tminx=Math.min(minx,e.getX()-20);\n \t\tminy=Math.min(miny,e.getY()-20);\n \t}\n \treturn new Dimension(maxx-minx,maxy-miny);\n }", "public int grWidth() { return width; }", "private double getCellSize() {\n double wr = canvas.getWidth() / board.getWidth();\n double hr = canvas.getHeight() / board.getHeight();\n\n return Math.min(wr, hr);\n }", "private void getWidthandHeight(char[] imagenaux) {\n for (iterator = 3; imagenaux[iterator] != '\\n'; ++iterator) {\n if (imagenaux[iterator] == ' ') anchura = false;\n else {\n if (anchura) {\n int aux = Character.getNumericValue(imagenaux[iterator]);\n width *= 10;\n width += aux;\n } else {\n int aux = Character.getNumericValue(imagenaux[iterator]);\n height *= 10;\n height += aux;\n }\n }\n }\n ++iterator;\n while (imagenaux[iterator] != '\\n') { ++iterator; }\n ++iterator;\n }", "public void paint(Graphics graphics)\r\n/* 30: */ {\r\n/* 31:27 */ Graphics2D g = (Graphics2D)graphics;\r\n/* 32:28 */ int height = getHeight();\r\n/* 33:29 */ int width = getWidth();\r\n/* 34: */ }", "private int getActualWidth(boolean withColor){\n return 5+2*cellWidth + (withColor?2*7:0);\n }", "private void getImgSize(){\n imgSizeX = 1080; //mAttacher.getDisplayRect().right - mAttacher.getDisplayRect().left;\n imgSizeY = 888.783f; //mAttacher.getDisplayRect().bottom - mAttacher.getDisplayRect().top;\n }", "public void size(final int theWidth, final int theHeight);", "public double getRectHeight() {\n return (hexHeight * 1.5) + 0.5;\n }", "public int getFrameSize();", "public int getGraphicsWidth(Graphics g);", "public abstract int getDisplayHeight();", "public void initSize() {\n WIDTH = 320;\n //WIDTH = 640;\n HEIGHT = 240;\n //HEIGHT = 480;\n SCALE = 2;\n //SCALE = 1;\n }", "public void updateBounds() {\n\t\tswitch (this.species){\n\t\tcase HOGCHOKER:\n\t\tcase SILVERSIDE:\n\t\tcase FLOUNDER:\n\t\t\tthis.topYBound = frameHeight / 3 * 2;\n\t\t\tthis.bottomYBound = frameHeight - imageHeight - frameBarSize;\n\t\t\tbreak;\n\t\tcase PERCH: \n\t\tcase MINNOW: \n\t\tcase WEAKFISH:\n\t\t\tthis.topYBound = frameHeight / 3;\n\t\t\tthis.bottomYBound = frameHeight / 3 * 2 - imageHeight;\n\t\t\tbreak;\n\n\t\tcase MENHADEN:\n\t\tcase MUMMICHOG:\n\t\t\tthis.topYBound = 0;\n\t\t\tthis.bottomYBound = frameHeight / 3 - imageHeight;\n\t\t\tbreak;\n\t\tcase GOLD:\n\t\tdefault:\n\t\t\ttopYBound = 0;\n\t\t\tbottomYBound = frameHeight;\n\t\t}\n\t}", "public int getGraphicsHeight(Graphics g);", "public abstract int getYSize();", "private void calculateCharSize() {\n int charMaxAscent;\n int charLeading;\n FontMetrics fm = getFontMetrics(getFont());\n charWidth = -1; // !!! Does not seem to work: fm.getMaxAdvance();\n charHeight = fm.getHeight() + lineSpaceDelta;\n charMaxAscent = fm.getMaxAscent();\n fm.getMaxDescent();\n charLeading = fm.getLeading();\n baselineIndex = charMaxAscent + charLeading - 1;\n\n if (charWidth == -1) {\n int widths[] = fm.getWidths();\n for (int i=32; i<127; i++) {\n if (widths[i] > charWidth) {\n charWidth = widths[i];\n }\n }\n }\n }", "public RMSize getSize() { return new RMSize(getWidth(), getHeight()); }", "public int getColspan() \n {\n return 1;\n }", "private void updateDimensions() {\r\n width = gui.getWidth();\r\n height = gui.getHeight();\r\n yLabelsMargin = (int) gui.getLabelWidth(Integer.toString(((int) maximumDB / 10) * 10), true) + 2;\r\n if (track != null)\r\n scaleXpx = ((float) width - yLabelsMargin) / track.getBufferCapacity();\r\n else\r\n scaleXpx = 1;\r\n scaleYpx = (float) ((height - 1) / (maximumDB - minimumDB));\r\n if (scaleYpx == 0)\r\n scaleYpx = 1;\r\n }", "private LabelLayout labelBounds(Font drawFont, FontRenderContext frc, String txt)\r\n {\r\n String[] lines = txt.split(\"\\\\n\");\r\n double maxW = 0.0;\r\n double maxH = 0.0;\r\n for (String ln : lines)\r\n {\r\n Rectangle2D r = drawFont.createGlyphVector(frc, ln).getLogicalBounds();\r\n maxW = Math.max(maxW, r.getWidth());\r\n maxH = Math.max(maxH, r.getHeight());\r\n }\r\n LabelLayout lay = new LabelLayout();\r\n lay.lineH = maxH;\r\n lay.rect = new Rectangle2D.Double(0.0, 0.0, maxW, maxH * lines.length);\r\n return lay;\r\n }", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "private void refreshDimensions() {\n //tamano del canvas\n targetWidth = canvasWidth;\n targetHeight = canvasHeight;\n//de las imagenes\n sourceWidth = bitmap.getWidth();\n sourceHeight = bitmap.getHeight();\n\n double targetRatio = (double) targetWidth / (double) targetHeight;\n double sourceRatio = (double) sourceWidth / (double) sourceHeight;\n\n targetOffsetX = 0;\n targetOffsetY = 0;\n\n if(sourceRatio > targetRatio)\n {\n int newTargetHeight = (int) (targetWidth / sourceRatio);\n int delta = targetHeight - newTargetHeight;\n targetOffsetY = delta / 2;\n targetHeight = newTargetHeight;\n }\n else if(sourceRatio < targetRatio)\n {\n int newTargetWidth = (int) (targetHeight * sourceRatio);\n int delta = targetWidth - newTargetWidth;\n targetOffsetX = delta / 2;\n targetWidth = newTargetWidth;\n }\n\n puzzleWidth = slidePuzzle.getWidth();\n puzzleHeight = slidePuzzle.getHeight();\n\n targetColumnWidth = targetWidth / puzzleWidth;\n targetRowHeight = targetHeight / puzzleHeight;\n sourceColumnWidth = sourceWidth / puzzleWidth;\n sourceRowHeight = sourceHeight / puzzleHeight;\n }", "protected void computeGridParameters() {\n float padding = 0.02f * overlay.getScalingValue();\n boolean flipX = x2 < x1;\n float xx1 = flipX ? (x1 + padding) : (x1 - padding);\n float xx2 = flipX ? (x2 - padding) : (x2 + padding);\n boolean flipY = y2 < y1;\n float yy1 = flipY ? (y1 + padding) : (y1 - padding);\n float yy2 = flipY ? (y2 - padding) : (y2 + padding);\n \n xGrid1 = xx1; yGrid1 = yy1;\n xGrid2 = xx2; yGrid2 = yy1;\n xGrid3 = xx1; yGrid3 = yy2;\n xGrid4 = xx2; yGrid4 = yy2;\n horizGridCount = 3; vertGridCount = 3;\n }", "int getBoundsWidth();", "int getAreaSize();", "public Dimension getPreferredSize()\n{ \n Dimension d=new Dimension(gRectangle.width+2*GC_CANVAS_HORIZ_GAP,\n gRectangle.height+2*GC_CANVAS_VERT_GAP);\n return d;\n}", "public BoardCanvas() {\n Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();\n int height1 = screenSize.height * 9 / 14;\n int remainNum = height1 % 9;\n int heightBoard = height1 - remainNum;\n setBounds(0, 0, heightBoard, heightBoard);\n GraphicsEnvironment env = GraphicsEnvironment.getLocalGraphicsEnvironment();\n HashSet<String> availableNames = new HashSet();\n for (String name : env.getAvailableFontFamilyNames()) {\n availableNames.add(name);\n }\n for (String pf : preferredFonts) {\n if (availableNames.contains(pf)) {\n font = new Font(pf, Font.PLAIN, 20);\n break;\n }\n }\n }", "protected double computePrefWidth(double aHeight) { return getWidth(); }", "private void determineCanvasSize() {\n boolean changed = transformManager.determineCanvasSize();\n if ( changed ) {\n changeListenerProxy.canvasSizeChanged( new ApparatusPanel2.ChangeEvent( ApparatusPanel2.this ) );\n paint();\n }\n }", "private void createGraphics() {\n\t\toppStatGrid = new GridPane();\n\t\toppStatGrid.setHgap(5);\n\t\tColumnConstraints columnOpp1 = new ColumnConstraints();\n\t\tcolumnOpp1.setMinWidth(gameScene.getWidth()*0.3);\n\t\t//column1.setPrefWidth(gameScene.getWidth()*0.3);\n\t\tColumnConstraints columnOpp2 = new ColumnConstraints();\n\t\tcolumnOpp2.setMinWidth(gameScene.getWidth()*0.3);\n\t\toppStatGrid.getColumnConstraints().addAll(columnOpp1,columnOpp2);\n\t\tRowConstraints rowOpp = new RowConstraints();\n\t\trowOpp.setMinHeight(gameScene.getHeight()*0.1);\n\t\toppStatGrid.getRowConstraints().add(rowOpp);\n\t\toppStatGrid.getRowConstraints().add(rowOpp);\n\n\t\tlocStatGrid = new GridPane();\n\t\tlocStatGrid.setHgap(5);\n\t\tColumnConstraints columnLoc1 = new ColumnConstraints();\n\t\tcolumnLoc1.setMinWidth(gameScene.getWidth()*0.1);\n\t\t//column1.setPrefWidth(gameScene.getWidth()*0.3);\n\t\tColumnConstraints columnLoc2 = new ColumnConstraints();\n\t\tcolumnLoc2.setMinWidth(gameScene.getWidth()*0.3);\n\t\tlocStatGrid.getColumnConstraints().addAll(columnLoc1,columnLoc2);\n\t\tRowConstraints rowLoc2 = new RowConstraints();\n\t\trowLoc2.setMinHeight(gameScene.getHeight()*0.1);\n\t\tlocStatGrid.getRowConstraints().add(rowLoc2);\n\t\tlocStatGrid.getRowConstraints().add(rowLoc2);\n\n\t\topponentName.setFont(Font.font(defaultFont, FontWeight.BOLD, 16));\n\t\tlocalName.setFont(Font.font(defaultFont, FontWeight.BOLD, 16));\n\t\topponentLevel.setFont(Font.font(defaultFont, 14));\n\t\tlocalLevel.setFont(Font.font(defaultFont, 14));\n\t\topponentHealth.setFont(Font.font(defaultFont, 14));\n\t\tlocalHealth.setFont(Font.font(defaultFont, 14));\n\n\t\topponentName.setAlignment(Pos.CENTER_LEFT);\n\t\tGridPane.setHalignment(localName, HPos.RIGHT);\n\t\topponentLevel.setAlignment(Pos.CENTER_RIGHT);\n\t\tlocalLevel.setAlignment(Pos.CENTER_LEFT);\n\t\tGridPane.setHalignment(localLevel, HPos.RIGHT);\n\t\topponentHealth.setAlignment(Pos.CENTER_RIGHT);\n\t\tlocalHealth.setAlignment(Pos.CENTER_LEFT);\n\t\tGridPane.setHalignment(localHealth, HPos.RIGHT);\n\n\t\topponentHealthBar = new Rectangle();\n\t\tlocalHealthBar = new Rectangle();\n\t\topponentHealthBar.setWidth(gameScene.getWidth()*0.3);\n\t\tlocalHealthBar.setWidth(gameScene.getWidth()*0.3);\n\t\topponentHealthBar.setHeight(gameScene.getHeight()*0.1);\n\t\tlocalHealthBar.setHeight(gameScene.getHeight()*0.1);\n\t\topponentHealthBar.setArcWidth(5);\n\t\topponentHealthBar.setArcHeight(5);\n\t\tlocalHealthBar.setArcWidth(5);\n\t\tlocalHealthBar.setArcHeight(5);\n\t\t/*NumberBinding oppHealthBind = gameScene.property\n\t\topponentHealthBar.prop*/\n\n\t\topponentHealthBar.setEffect(new Lighting());\n\t\tlocalHealthBar.setEffect(new Lighting());\n\n\t\topponentHealthBar.setFill(Color.DARKRED);\n\t\tlocalHealthBar.setFill(Color.DARKRED);\n\n\t\toppStatGrid.add(opponentName, 0, 0);\n\t\toppStatGrid.add(opponentLevel, 1, 0);\n\t\toppStatGrid.add(opponentHealthBar, 0, 1);\n\t\toppStatGrid.add(opponentHealth, 1, 1);\n\n\t\tlocStatGrid.add(localLevel, 0, 0);\n\t\tlocStatGrid.add(localName, 1, 0);\n\t\tlocStatGrid.add(localHealthBar, 1, 1);\n\t\tlocStatGrid.add(localHealth, 0, 1);\n\n\t\tAnchorPane.setTopAnchor(oppStatGrid, 10.0);\n\t\tAnchorPane.setLeftAnchor(oppStatGrid, 10.0);\n\n\t\tAnchorPane.setBottomAnchor(locStatGrid, 10.0);\n\t\tAnchorPane.setRightAnchor(locStatGrid, 10.0);\n\n\t\tthis.getChildren().addAll(oppStatGrid,locStatGrid);\n\t\t\n\t\toppPane = new Pane();\n\t\toppPane.setMinWidth(gameScene.getWidth()*0.5);\n\t\toppPane.setMinHeight(gameScene.getHeight()*0.5);\n\t\t\n\t\tlocPane = new Pane();\n\t\tlocPane.setMinWidth(gameScene.getWidth()*0.5);\n\t\tlocPane.setMinHeight(gameScene.getHeight()*0.5);\n\t\t\n\t\tAnchorPane.setBottomAnchor(locPane, 10.0);\n\t\tAnchorPane.setLeftAnchor(locPane, 10.0);\n\t\t\n\t\tAnchorPane.setTopAnchor(oppPane, 10.0);\n\t\tAnchorPane.setRightAnchor(oppPane, 10.0);\n\t\t\n\t\tthis.getChildren().addAll(locPane,oppPane);\n\t\t\n\n\t}", "@Test\n\tpublic void testGetWidthHeight() {\n\t\tassertTrue(auto.getHeight()==15);\n\t\tassertTrue(auto.getWidth()==15);\n\t}", "public int getWidth();", "public int getWidth();", "public int getWidth();", "public abstract int getWidth();", "@Override\n public int height()\n {\n return textCent.height();\n }", "private void getWidthAndHeight() {\n DisplayMetrics displaymetrics = new DisplayMetrics();\n getActivity().getWindowManager().getDefaultDisplay().getMetrics(displaymetrics);\n screenHeight = displaymetrics.heightPixels;\n screenWidth = displaymetrics.widthPixels;\n }", "long getWidth();", "@Override\n public void settings() {\n setSize(WIDTH, HEIGHT);\n }", "public void calculateWindow()\n {\n Vector2 windowBottomLeftBounds = new Vector2(1000000, 1000000);\n Vector2 windowTopRightBounds = new Vector2(-1000000, -1000000);\n for (Element<?> e : children())\n {\n if (e.id() != null && (e.id().startsWith(id() + \"hBar\") || e.id().startsWith(id() + \"vBar\")))\n {\n continue;\n }\n for (Element<?> child : e)\n {\n Vector2 alignmentVector = child.alignment().alignmentVector();\n Vector2 bottomLeftBounds = new Vector2(child.x() - (alignmentVector.x * child.width()), child.y()\n - (alignmentVector.y * child.height()));\n Vector2 topRightBounds = new Vector2(bottomLeftBounds.x + child.width(), bottomLeftBounds.y + child.height());\n // left\n if (windowBottomLeftBounds.x > bottomLeftBounds.x)\n {\n windowBottomLeftBounds.x = bottomLeftBounds.x;\n }\n // bottom\n if (windowBottomLeftBounds.y > bottomLeftBounds.y)\n {\n windowBottomLeftBounds.y = bottomLeftBounds.y;\n }\n // right\n if (windowTopRightBounds.x < topRightBounds.x)\n {\n windowTopRightBounds.x = topRightBounds.x;\n }\n // top\n if (windowTopRightBounds.y < topRightBounds.y)\n {\n windowTopRightBounds.y = topRightBounds.y;\n }\n }\n }\n \n content = new CRectangle(windowBottomLeftBounds.x, windowBottomLeftBounds.y, windowTopRightBounds.x - windowBottomLeftBounds.x,\n windowTopRightBounds.y - windowBottomLeftBounds.y);\n content.origin = new Vector2(0, 0);\n \n calculateScrollSize();\n }", "private static int m36201b(Rect rect) {\n return rect.width() * rect.height();\n }", "public abstract int getSourceHeight();", "public void preparePaint()\n {\n if(! size.equals(getSize())) { // if the size has changed...\n size = getSize();\n fieldImage = fieldView.createImage(size.width, size.height);\n g = fieldImage.getGraphics();\n\n xScale = size.width / gridWidth;\n if(xScale < 1) {\n xScale = GRID_VIEW_SCALING_FACTOR;\n }\n yScale = size.height / gridHeight;\n if(yScale < 1) {\n yScale = GRID_VIEW_SCALING_FACTOR;\n }\n }\n }", "protected void computeBounds() {\r\n bounds = new Rectangle(layout.location.x - icon.getIconWidth() / 2,\r\n layout.location.y - icon.getIconHeight() / 2, icon.getIconWidth(), icon.getIconHeight()).union(labelBox)\r\n .union(ports[0].getBounds()).union(ports[1].getBounds()).union(ports[2].getBounds())\r\n .union(component.getType() == TemplateComponent.TYPE_CHANNEL\r\n ? ports[3].getBounds().union(supHalo.getBounds())\r\n : ports[3].getBounds());\r\n }", "short getFitHeight();", "@Override\n\tpublic int[] getImageScaleDrawing() {\n\t\treturn new int[] {\n\t\t\t\t80, 80\n\t\t};\n\t}", "public xy getPix(int w, int h)\n{\n int asc = getFontMetrics(getFont()).getAscent();\n int w2 = w;\n w2 += - 1 //line\n - alldefs.region.m * 0\n - 1; //line\n\n int h2 = h;\n h2 += - 1 //space\n - asc\n - 1 //space\n - 1 //line\n - alldefs.region.n * 0\n - 1 //line\n - 1 //space\n - asc\n - 1 //space\n - 1 //line\n - asc\n - 1; //line\n\n //hard code legend\n h2 -= 1 //space\n + asc //font\n + 1 //space\n + 1 //line\n + asc //legend height\n + 1; //line\n\n //case a: w < h\n int xpixa = w2 / alldefs.region.m;\n int ypixa = \n (int)((double)xpixa / (double)alldefs.region.dx * (double)alldefs.region.dy);\n boolean valida = \n xpixa > 0 && ypixa > 0 && ypixa * alldefs.region.n <= h2 ? true : false;\n \n //case a: w > h\n int ypixb = h2 / alldefs.region.n;\n int xpixb = (int)((double)ypixb / (double)alldefs.region.dx * (double)alldefs.region.dy);\n boolean validb = xpixb > 0 && ypixb > 0 && xpixb * alldefs.region.m <= w2 ? true : false;\n\n if (valida && validb)\n //{ valida = xpixa + ypixa >= xpixb + ypixb ? true : false; }\n { return xpixa + ypixa >= xpixb + ypixb ? new xy(xpixa, ypixa) : new xy(xpixb, ypixb); }\n\n if (validb)\n { return new xy(xpixb, ypixb); }\n else if (valida)\n { return new xy(xpixa, ypixa); }\n\n return null;\n}", "private float getFontHeight(Paint paint) {\n Rect rect = new Rect();\n paint.getTextBounds(\"1\", 0, 1, rect);\n return rect.height();\n }", "void previewSized();", "@Override\n\tpublic Rectangle getBounds(String text) {\n\t\tint height = 0;\n\t\tint width = 0;\n\t\t//Initialize y to the maximum int\n\t\tint y = Integer.MAX_VALUE;\n\t\t\n\t\tchar[] chars = text.toCharArray();\n\t\t//First, find the lowest yoffset\n\t\tfor (char c : chars) {\n\t\t\tGlyph g = getGlyph(c);\n\t\t\tif (g != null) y = Math.min(g.getYOff(), y);\n\t\t}\n\t\tfor (char c : chars) {\n\t\t\tGlyph g = getGlyph(c);\n\t\t\tif (g != null) {\n\t\t\t\theight = Math.max(g.getHeight() + (g.getYOff() - y), height);\n\t\t\t\twidth += g.getXAdvance();\n\t\t\t}\n\t\t}\n\t\treturn new Rectangle(0, y, width, height);\n\t}", "private void updateImageScale() {\r\n\t\t//Check which dimension is larger and store it in this variable.\r\n\t\tint numHexLargestDimension = this.numHexRow;\r\n\t\tif (this.totalHexWidth > this.totalHexHeight) {\r\n\t\t\tnumHexLargestDimension = this.numHexCol;\r\n\t\t}\r\n\t\t\r\n\t\tif (numHexLargestDimension < 35) {\r\n\t\t\tif (this.zoomer.getZoomScale() * (this.numHexCol / 2) > 16.5) {\r\n\t\t\t\tthis.currentImageScale = ImageDrawScales.LARGE;\r\n\t\t\t} else if (this.zoomer.getZoomScale() * (this.numHexCol / 2) > 7){\r\n\t\t\t\tthis.currentImageScale = ImageDrawScales.MEDIUM;\r\n\t\t\t} else {\r\n\t\t\t\tthis.currentImageScale = ImageDrawScales.SMALL;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if (numHexLargestDimension < 70) {\r\n\t\t\tif (this.zoomer.getZoomScale() * (this.numHexCol / 2) > 22.2) {\r\n\t\t\t\tthis.currentImageScale = ImageDrawScales.LARGE;\r\n\t\t\t} else if (this.zoomer.getZoomScale() \r\n\t\t\t\t\t* (this.numHexCol / 2) > 14.5){\r\n\t\t\t\tthis.currentImageScale = ImageDrawScales.MEDIUM;\r\n\t\t\t} else {\r\n\t\t\t\tthis.currentImageScale = ImageDrawScales.SMALL;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if (numHexLargestDimension < 105) {\r\n\t\t\tif (this.zoomer.getZoomScale() * (this.numHexCol / 2) > 32.6) {\r\n\t\t\t\tthis.currentImageScale = ImageDrawScales.LARGE;\r\n\t\t\t} else if (this.zoomer.getZoomScale() * (this.numHexCol / 2) > 21){\r\n\t\t\t\tthis.currentImageScale = ImageDrawScales.MEDIUM;\r\n\t\t\t} else {\r\n\t\t\t\tthis.currentImageScale = ImageDrawScales.SMALL;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse {\r\n\t\t\tif (this.zoomer.getZoomScale() * (this.numHexCol / 2) > 44.4) {\r\n\t\t\t\tthis.currentImageScale = ImageDrawScales.LARGE;\r\n\t\t\t} else if (this.zoomer.getZoomScale() * (this.numHexCol / 2) > 28){\r\n\t\t\t\tthis.currentImageScale = ImageDrawScales.MEDIUM;\r\n\t\t\t} else {\r\n\t\t\t\tthis.currentImageScale = ImageDrawScales.SMALL;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "Dimension getCanvasDimension();", "public void onSizeChanged(int w, int h, int oldw, int oldh) {\r\n super.onSizeChanged(w, h, oldw, oldh);\r\n returnDefualt();\r\n this.startWidth = (float)getWidth()/4;\r\n this.endWidth = (float)getWidth()-((float)getWidth()/4);\r\n this.startHeight = (float)getHeight()/12;\r\n this.endHeight = getHeight()-((float)getHeight()/12);\r\n this.oval = new RectF(this.startWidth,this.startHeight , this.endWidth, this.endHeight);\r\n }", "int getVerticalResolution();", "private void scaleRectangles(Rectangle ourBoundingRectangle) {\n coloredRectangles.clear();\n\n // Figure out the maximum vertical space needed to display all the rows...\n double totalHeightOfAllRows = (double) this.rowHeight * (double) this.totalRowCount;\n\n computeScrollButtonOffsets(ourBoundingRectangle);\n\n // If the total needed to display all rows is less than our bounding rectangle, then we need to use that\n // smaller size to figure out the scaling factor per row, so things will be scaled correctly for the\n // case where the text does not fill the entire panel.\n double totalHeightToUse;\n if ((ourBoundingRectangle.getHeight() - scrollButtonTotalHeight) > totalHeightOfAllRows) {\n totalHeightToUse = totalHeightOfAllRows;\n } else {\n totalHeightToUse = ourBoundingRectangle.getHeight() - scrollButtonTotalHeight;\n }\n double scalingFactorPerRow = totalHeightToUse / this.totalRowCount;\n Iterator<ColoredRowBlock> it = coloredRowBlocks.iterator();\n int currentY = 0;\n int anchoredX = 0;\n int adjustRowCount = 0;\n\n // Add a rectangle for the top scroll bar button.\n if (scrollButtonTopHeight > 0) {\n coloredRectangles.add(new ColoredRectangle(QWinFrame.getQWinFrame().getBackground(),\n new Rectangle(anchoredX + 1, currentY, PANEL_WIDTH - 2, (int) scrollButtonTopHeight)));\n currentY += (int) scrollButtonTopHeight;\n }\n while (it.hasNext()) {\n ColoredRowBlock coloredRowBlock = it.next();\n int scaledHeight = (int) ((double) (adjustRowCount + coloredRowBlock.getRowCount()) * scalingFactorPerRow);\n\n // Make each edit at least one pixel high.\n if (scaledHeight <= 0) {\n int increaseRowCount = 0;\n while (scaledHeight <= 0) {\n increaseRowCount++;\n scaledHeight = (int) ((double) (increaseRowCount + coloredRowBlock.getRowCount()) * scalingFactorPerRow);\n }\n\n // So the next block will be smaller by this amount.\n adjustRowCount = -increaseRowCount;\n }\n coloredRectangles.add(new ColoredRectangle(coloredRowBlock.getColor(),\n new Rectangle(anchoredX + 1, currentY, PANEL_WIDTH - 2, scaledHeight)));\n currentY += scaledHeight;\n }\n\n // Add a rectangle for the bottom scroll bar button(s).\n if (scrollButtonBottomHeight > 0) {\n coloredRectangles.add(new ColoredRectangle(QWinFrame.getQWinFrame().getBackground(),\n new Rectangle(anchoredX + 1, currentY, PANEL_WIDTH - 2, (int) scrollButtonBottomHeight)));\n }\n }", "@Override\n public void settings() {\n size(800, 800, P3D);\n }", "private void updateSizeInfo() {\n RelativeLayout drawRegion = (RelativeLayout)findViewById(R.id.drawWindow);\r\n drawW = drawRegion.getWidth();\r\n drawH = drawRegion.getHeight();\r\n getImageFromStorage();\r\n LinearLayout parentWindow = (LinearLayout)findViewById(R.id.parentWindow);\r\n parentWindow.setPadding((drawW - bgImage.getWidth())/2, (drawH - bgImage.getHeight())/2, (drawW - bgImage.getWidth())/2, (drawH - bgImage.getHeight())/2);\r\n parentWindow.invalidate();\r\n }", "@Override\n public int getWidth() {\n return graphicsEnvironmentImpl.getWidth(canvas);\n }", "private void setGrid() {\r\n maxRows = (FORM_HEIGHT - FORM_HEIGHT_ADJUST) / SQUARE_SIZE;\r\n maxColumns = (FORM_WIDTH - FORM_WIDTH_ADJUST) / SQUARE_SIZE; \r\n grid = new JLabel[maxRows][maxColumns];\r\n int y = (FORM_HEIGHT - (maxRows * SQUARE_SIZE)) / 2;\r\n for (int row = 0; row < maxRows; row++) {\r\n int x = (FORM_WIDTH - (maxColumns * SQUARE_SIZE)) / 2;\r\n for (int column = 0; column < maxColumns; column++) {\r\n createSquare(x,y,row,column);\r\n x += SQUARE_SIZE;\r\n }\r\n y += SQUARE_SIZE;\r\n } \r\n }", "String getWidth();", "String getWidth();", "Integer getCurrentWidth();", "public void setSizePlayingFields()\r\n {\n setPreferredSize(new Dimension(109*8,72*8));//powieżchnia o 2 m z każdej strony większa niz boisko 106 i 69 pomnożone o 8\r\n //większe boisko żeby było widać\r\n setMaximumSize(getMaximumSize());\r\n setBackground(Color.green);\r\n }", "public int getCurrentWidth();" ]
[ "0.6503975", "0.58014303", "0.5787452", "0.56783324", "0.56508464", "0.5625654", "0.5617592", "0.5601538", "0.5586069", "0.555671", "0.5540763", "0.55310464", "0.55256027", "0.55153555", "0.55038726", "0.54915893", "0.5469651", "0.54633254", "0.54625654", "0.5457925", "0.5451368", "0.54385", "0.5414454", "0.5413095", "0.54066116", "0.540121", "0.5400505", "0.5395977", "0.5373702", "0.5366336", "0.5362672", "0.53625244", "0.5342746", "0.5333121", "0.53233963", "0.5316954", "0.53106934", "0.53064597", "0.5294826", "0.5288092", "0.5285253", "0.5285253", "0.5285253", "0.5285253", "0.5285253", "0.5285253", "0.5285253", "0.5285253", "0.5285253", "0.5285253", "0.5285253", "0.5285253", "0.5285253", "0.5285253", "0.5285253", "0.5285253", "0.5285253", "0.5280281", "0.52738345", "0.5273096", "0.52553207", "0.52548647", "0.52545583", "0.5247512", "0.52455133", "0.5243561", "0.5241786", "0.5240885", "0.5240885", "0.5240885", "0.52405626", "0.52293134", "0.5217693", "0.52169335", "0.5213993", "0.5209741", "0.52021307", "0.5192086", "0.51907694", "0.5187221", "0.5185571", "0.51844215", "0.5183556", "0.5183166", "0.5182215", "0.5179678", "0.5170386", "0.51701975", "0.5166679", "0.5163048", "0.5162841", "0.51615894", "0.5160862", "0.5159225", "0.5156342", "0.5153837", "0.5153837", "0.51501024", "0.51455504", "0.5143089" ]
0.78845364
0
/ compiled from: Prioritized
public interface lw { int b(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void preorder() {\n\n\t}", "@Override\n public void preprocess() {\n }", "@Override\n public void preprocess() {\n }", "void preProcess();", "public void preprocess() {\n }", "public void preprocess() {\n }", "public void preprocess() {\n }", "public void preprocess() {\n }", "@Override\n public Object preProcess() {\n return null;\n }", "@Override\n\tpublic void pre()\n\t{\n\n\t}", "private CratState preoptimizePackages() {\n\t\tArrayList<EvaluatedClass> optimized = new ArrayList<EvaluatedClass>();\n\t\tTreeMap<Integer, CratClass> packageClasses = new TreeMap<Integer, CratClass>();\n\t\tString currentPackage = \"\";\n\t\tfor (Map.Entry<Integer, ? extends CratClass> entry : craCase.getClasses().entrySet()) {\n\t\t\tint classId = entry.getKey();\n\t\t\tCratClass curClass = entry.getValue();\n\t\t\tString classPackage = craCase.getPackageNameOf(classId);\n\t\t\tif (!currentPackage.equals(classPackage)) {\n\t\t\t\tCratState packageOptimized = preoptimizePackage(currentPackage, packageClasses);\n\t\t\t\toptimized.addAll(packageOptimized.values());\n\t\t\t\tpackageClasses = new TreeMap<Integer, CratClass>();\n\t\t\t\tcurrentPackage = classPackage;\n\t\t\t}\n\t\t\tpackageClasses.put(classId, curClass);\n\t\t}\n\t\t// preoptimize last package\n\t\tCratState packageOptimized = preoptimizePackage(currentPackage, packageClasses);\n\t\toptimized.addAll(packageOptimized.values());\n\t\treturn new CratState(optimized, metric);\n\t}", "PRE createPRE();", "abstract protected void pre(int code);", "protected void onCompileInternal() {\r\n\t}", "@Override\r\n\tprotected void doPre() {\n\t\t\r\n\t}", "private static void preCompileNode(Node n, ArrayList<CommandNode> cmdNode, ArrayList<MemoryNode> memNode, int b) {\n\t\tn.preCompile(cmdNode, memNode, b);\n\t}", "@Override\n\tpublic void compile() {\n\t\t\n\t}", "private CanonizeSource() {}", "CompiledFilter() {\n }", "public static final SubLObject declare_precanonicalizer_file() {\n declareFunction(myName, \"precanonicalizationsP\", \"PRECANONICALIZATIONS?\", 2, 1, false);\n declareFunction(myName, \"safe_precanonicalizations\", \"SAFE-PRECANONICALIZATIONS\", 2, 0, false);\n declareFunction(myName, \"precanonicalizations\", \"PRECANONICALIZATIONS\", 2, 0, false);\n //declareFunction(myName, \"precanonicalizations_int_internal\", \"PRECANONICALIZATIONS-INT-INTERNAL\", 2, 0, false);\n //declareFunction(myName, \"precanonicalizations_int\", \"PRECANONICALIZATIONS-INT\", 2, 0, false);\n //declareFunction(myName, \"el_evaluatable_expressions_out\", \"EL-EVALUATABLE-EXPRESSIONS-OUT\", 1, 0, false);\n //declareFunction(myName, \"transform_evaluation_expression_or_throw\", \"TRANSFORM-EVALUATION-EXPRESSION-OR-THROW\", 1, 0, false);\n //declareFunction(myName, \"transform_evaluation_expression\", \"TRANSFORM-EVALUATION-EXPRESSION\", 1, 0, false);\n declareFunction(myName, \"el_evaluatable_expressionP\", \"EL-EVALUATABLE-EXPRESSION?\", 1, 1, false); new $el_evaluatable_expressionP$UnaryFunction(); new $el_evaluatable_expressionP$BinaryFunction();\n declareFunction(myName, \"el_evaluatable_functorP\", \"EL-EVALUATABLE-FUNCTOR?\", 1, 1, false);\n declareFunction(myName, \"el_evaluatable_functor_somewhereP\", \"EL-EVALUATABLE-FUNCTOR-SOMEWHERE?\", 1, 0, false);\n //declareFunction(myName, \"el_evaluatable_subexpressionsP\", \"EL-EVALUATABLE-SUBEXPRESSIONS?\", 1, 1, false);\n //declareFunction(myName, \"el_unevaluatable_expressionP\", \"EL-UNEVALUATABLE-EXPRESSION?\", 1, 1, false);\n //declareFunction(myName, \"immediately_evaluatable_expressions_out\", \"IMMEDIATELY-EVALUATABLE-EXPRESSIONS-OUT\", 1, 0, false);\n //declareFunction(myName, \"immediately_evaluatable_expressionP\", \"IMMEDIATELY-EVALUATABLE-EXPRESSION?\", 1, 0, false);\n //declareFunction(myName, \"immediately_evaluatable_functorP\", \"IMMEDIATELY-EVALUATABLE-FUNCTOR?\", 1, 0, false);\n //declareFunction(myName, \"immediately_evaluatable_functor_somewhereP\", \"IMMEDIATELY-EVALUATABLE-FUNCTOR-SOMEWHERE?\", 1, 0, false);\n //declareFunction(myName, \"immediately_evaluatable_subexpressionsP\", \"IMMEDIATELY-EVALUATABLE-SUBEXPRESSIONS?\", 1, 0, false);\n //declareFunction(myName, \"immediately_unevaluatable_expressionP\", \"IMMEDIATELY-UNEVALUATABLE-EXPRESSION?\", 1, 0, false);\n //declareFunction(myName, \"implicit_meta_literals_out\", \"IMPLICIT-META-LITERALS-OUT\", 1, 0, false);\n //declareFunction(myName, \"implicit_meta_literals_out_int\", \"IMPLICIT-META-LITERALS-OUT-INT\", 1, 0, false);\n //declareFunction(myName, \"implicit_meta_literals_out_for_implict_meta_literal_sentence\", \"IMPLICIT-META-LITERALS-OUT-FOR-IMPLICT-META-LITERAL-SENTENCE\", 1, 0, false);\n return NIL;\n }", "@Override\n protected void codeGenMain(DecacCompiler compiler, Registres regs, Pile p) {\n }", "public static final SubLObject setup_precanonicalizer_file() {\n memoization_state.note_memoized_function($sym6$PRECANONICALIZATIONS_INT);\n return NIL;\n }", "private void initSharedPre() {\n\t}", "@Override\n\tpublic void inorder() {\n\n\t}", "private static ArrayList<String> preCompile(ArrayList<CommandNode> cmdNode, ArrayList<MemoryNode> memNode) {\n\t\tfor(int b=0;b<cmdNode.size();b++)\n\t\t\tpreCompileNode(cmdNode.get(b), cmdNode, memNode, b);\n\t\tfor(int b=0;b<memNode.size();b++)\n\t\t\tpreCompileNode(memNode.get(b), cmdNode, memNode, b);\t\t\n\t\treturn preCompileAfter(cmdNode, memNode);\n\t}", "@Override\n public void preRun() {\n super.preRun();\n }", "ActionSequenceQueue prioritize(ActionSequenceQueue actionSequences);", "@Override\n\tpublic Map<String, Object> preProccess() {\n\t\treturn null;\n\t}", "protected abstract void preRun();", "@Override\n\tpublic void compile(CodeBlock c, CompilerEnvironment environment) {\n\n\t}", "public abstract void compile();", "default int getPriority() {\n return 0;\n }", "String getInitCond();", "public int getBuildOrderPriority();", "public interface ActionSequencePrioritizer {\n\n /**\n * Given the current action sequence deque, returns a new one that has\n * the \"most interesting\" sequences at the top of the deque.\n * Note that there is no requirement that the resulting action sequence\n * deque contains exactly the same elements as the given one. So you\n * can also use this interface for filtering out (or even adding in new)\n * action sequences.\n * \n * @param actionSequences the action sequences to examine.\n * @return the action sequences you want to run going forward.\n */\n ActionSequenceQueue prioritize(ActionSequenceQueue actionSequences);\n}", "private ProcessorUtils() { }", "@Override\n public <U extends Comparable<? super U>> Comparator<Object> thenComparing(final Function<?, ? extends U> p0) {\n // This method could not be decompiled.\n // \n // Could not show original bytecode, likely due to the same error.\n // \n // The error that occurred was:\n // \n // java.lang.NullPointerException\n // at com.strobel.assembler.metadata.DefaultTypeVisitor.visit(DefaultTypeVisitor.java:25)\n // at com.strobel.assembler.metadata.DefaultTypeVisitor.visit(DefaultTypeVisitor.java:21)\n // at com.strobel.assembler.metadata.MetadataHelper$5.visitWildcard(MetadataHelper.java:1793)\n // at com.strobel.assembler.metadata.MetadataHelper$5.visitWildcard(MetadataHelper.java:1790)\n // at com.strobel.assembler.metadata.WildcardType.accept(WildcardType.java:83)\n // at com.strobel.assembler.metadata.DefaultTypeVisitor.visit(DefaultTypeVisitor.java:25)\n // at com.strobel.assembler.metadata.DefaultTypeVisitor.visit(DefaultTypeVisitor.java:21)\n // at com.strobel.assembler.metadata.MetadataHelper.getLowerBound(MetadataHelper.java:1240)\n // at com.strobel.assembler.metadata.MetadataHelper$Adapter.visitWildcard(MetadataHelper.java:2278)\n // at com.strobel.assembler.metadata.MetadataHelper$Adapter.visitWildcard(MetadataHelper.java:2222)\n // at com.strobel.assembler.metadata.WildcardType.accept(WildcardType.java:83)\n // at com.strobel.assembler.metadata.DefaultTypeVisitor.visit(DefaultTypeVisitor.java:25)\n // at com.strobel.assembler.metadata.MetadataHelper$Adapter.adaptRecursive(MetadataHelper.java:2256)\n // at com.strobel.assembler.metadata.MetadataHelper$Adapter.adaptRecursive(MetadataHelper.java:2233)\n // at com.strobel.assembler.metadata.MetadataHelper$Adapter.visitParameterizedType(MetadataHelper.java:2246)\n // at com.strobel.assembler.metadata.MetadataHelper$Adapter.visitParameterizedType(MetadataHelper.java:2222)\n // at com.strobel.assembler.metadata.CoreMetadataFactory$UnresolvedGenericType.accept(CoreMetadataFactory.java:653)\n // at com.strobel.assembler.metadata.DefaultTypeVisitor.visit(DefaultTypeVisitor.java:25)\n // at com.strobel.assembler.metadata.MetadataHelper.adapt(MetadataHelper.java:1312)\n // at com.strobel.assembler.metadata.MetadataHelper$11.visitClassType(MetadataHelper.java:2708)\n // at com.strobel.assembler.metadata.MetadataHelper$11.visitClassType(MetadataHelper.java:2692)\n // at com.strobel.assembler.metadata.DefaultTypeVisitor.visitParameterizedType(DefaultTypeVisitor.java:65)\n // at com.strobel.assembler.metadata.CoreMetadataFactory$UnresolvedGenericType.accept(CoreMetadataFactory.java:653)\n // at com.strobel.assembler.metadata.DefaultTypeVisitor.visit(DefaultTypeVisitor.java:25)\n // at com.strobel.assembler.metadata.MetadataHelper.asSubType(MetadataHelper.java:720)\n // at com.strobel.decompiler.ast.TypeAnalysis.doInferTypeForExpression(TypeAnalysis.java:926)\n // at com.strobel.decompiler.ast.TypeAnalysis.inferTypeForExpression(TypeAnalysis.java:803)\n // at com.strobel.decompiler.ast.TypeAnalysis.inferTypeForExpression(TypeAnalysis.java:770)\n // at com.strobel.decompiler.ast.TypeAnalysis.inferTypeForExpression(TypeAnalysis.java:766)\n // at com.strobel.decompiler.ast.TypeAnalysis.inferCall(TypeAnalysis.java:2515)\n // at com.strobel.decompiler.ast.TypeAnalysis.doInferTypeForExpression(TypeAnalysis.java:1029)\n // at com.strobel.decompiler.ast.TypeAnalysis.inferTypeForExpression(TypeAnalysis.java:803)\n // at com.strobel.decompiler.ast.TypeAnalysis.inferTypeForExpression(TypeAnalysis.java:778)\n // at com.strobel.decompiler.ast.TypeAnalysis.doInferTypeForExpression(TypeAnalysis.java:1656)\n // at com.strobel.decompiler.ast.TypeAnalysis.inferTypeForExpression(TypeAnalysis.java:803)\n // at com.strobel.decompiler.ast.TypeAnalysis.runInference(TypeAnalysis.java:672)\n // at com.strobel.decompiler.ast.TypeAnalysis.runInference(TypeAnalysis.java:655)\n // at com.strobel.decompiler.ast.TypeAnalysis.runInference(TypeAnalysis.java:365)\n // at com.strobel.decompiler.ast.TypeAnalysis.run(TypeAnalysis.java:96)\n // at com.strobel.decompiler.ast.AstOptimizer.optimize(AstOptimizer.java:109)\n // at com.strobel.decompiler.ast.AstOptimizer.optimize(AstOptimizer.java:42)\n // at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.createMethodBody(AstMethodBodyBuilder.java:214)\n // at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.createMethodBody(AstMethodBodyBuilder.java:99)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createMethodBody(AstBuilder.java:782)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createMethod(AstBuilder.java:675)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.addTypeMembers(AstBuilder.java:552)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createTypeCore(AstBuilder.java:519)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createTypeNoCache(AstBuilder.java:161)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createType(AstBuilder.java:150)\n // at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.transformCall(AstMethodBodyBuilder.java:1162)\n // at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.transformByteCode(AstMethodBodyBuilder.java:1009)\n // at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.transformExpression(AstMethodBodyBuilder.java:540)\n // at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.transformByteCode(AstMethodBodyBuilder.java:554)\n // at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.transformExpression(AstMethodBodyBuilder.java:540)\n // at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.transformNode(AstMethodBodyBuilder.java:392)\n // at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.transformBlock(AstMethodBodyBuilder.java:333)\n // at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.createMethodBody(AstMethodBodyBuilder.java:294)\n // at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.createMethodBody(AstMethodBodyBuilder.java:99)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createMethodBody(AstBuilder.java:782)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createMethod(AstBuilder.java:675)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.addTypeMembers(AstBuilder.java:552)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createTypeCore(AstBuilder.java:519)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createTypeNoCache(AstBuilder.java:161)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createType(AstBuilder.java:150)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.addType(AstBuilder.java:125)\n // at com.strobel.decompiler.languages.java.JavaLanguage.buildAst(JavaLanguage.java:71)\n // at com.strobel.decompiler.languages.java.JavaLanguage.decompileType(JavaLanguage.java:59)\n // at us.deathmarine.luyten.FileSaver.doSaveJarDecompiled(FileSaver.java:192)\n // at us.deathmarine.luyten.FileSaver.access$300(FileSaver.java:45)\n // at us.deathmarine.luyten.FileSaver$4.run(FileSaver.java:112)\n // at java.lang.Thread.run(Unknown Source)\n // \n throw new IllegalStateException(\"An error occurred while decompiling this method.\");\n }", "private UnifiedAst precompile(PrecompilationContext precompilationContext)\n\t\t\tthrows UnableToCompleteException {\n\t\ttry {\n\t\t\t// (0) Assert preconditions\n\t\t\tif (precompilationContext.getEntryPoints().length\n\t\t\t\t\t+ precompilationContext\n\t\t\t\t\t\t\t.getAdditionalRootTypes().length == 0) {\n\t\t\t\tthrow new IllegalArgumentException(\"entry point(s) required\");\n\t\t\t}\n\t\t\tboolean singlePermutation = precompilationContext\n\t\t\t\t\t.getPermutations().length == 1;\n\t\t\tPrecompilationMetricsArtifact precompilationMetrics = precompilationContext\n\t\t\t\t\t.getPrecompilationMetricsArtifact();\n\t\t\t/*\n\t\t\t * Do not introduce any new pass here unless it is logically a part\n\t\t\t * of one of the 6 defined stages and is physically located in that\n\t\t\t * stage.\n\t\t\t */\n\t\t\t// (1) Initialize local state\n\t\t\tjprogram = new JProgram(compilerContext.getMinimalRebuildCache());\n\t\t\t// Synchronize JTypeOracle with compile optimization behavior.\n\t\t\tjprogram.typeOracle.setOptimize(options\n\t\t\t\t\t.getOptimizationLevel() > OptionOptimize.OPTIMIZE_LEVEL_DRAFT);\n\t\t\tjsProgram = new JsProgram();\n\t\t\t// (2) Construct and unify the unresolved Java AST\n\t\t\tCompilationState compilationState = constructJavaAst(\n\t\t\t\t\tprecompilationContext);\n\t\t\t// TODO(stalcup): hide metrics gathering in a callback or subclass\n\t\t\tJsniRestrictionChecker.exec(logger, jprogram);\n\t\t\tJsInteropRestrictionChecker.exec(logger, jprogram,\n\t\t\t\t\tgetMinimalRebuildCache());\n\t\t\tlogTypeOracleMetrics(precompilationMetrics, compilationState);\n\t\t\tMemory.maybeDumpMemory(\"AstOnly\");\n\t\t\tAstDumper.maybeDumpAST(jprogram);\n\t\t\t// TODO(stalcup): is in wrong place, move to optimization stage\n\t\t\tConfigurationProperties configurationProperties = new ConfigurationProperties(\n\t\t\t\t\tmodule);\n\t\t\tEnumNameObfuscator.exec(jprogram, logger, configurationProperties,\n\t\t\t\t\toptions);\n\t\t\t// (3) Normalize the unresolved Java AST\n\t\t\t// Replace default methods by static implementations.\n\t\t\tDevirtualizeDefaultMethodForwarding.exec(jprogram);\n\t\t\t// Replace calls to native overrides of object methods.\n\t\t\tReplaceCallsToNativeJavaLangObjectOverrides.exec(jprogram);\n\t\t\tFixAssignmentsToUnboxOrCast.exec(jprogram);\n\t\t\tif (options.isEnableAssertions()) {\n\t\t\t\tAssertionNormalizer.exec(jprogram);\n\t\t\t} else {\n\t\t\t\tAssertionRemover.exec(jprogram);\n\t\t\t}\n\t\t\tif (module != null && options.isRunAsyncEnabled()) {\n\t\t\t\tReplaceRunAsyncs.exec(logger, jprogram);\n\t\t\t\tConfigurationProperties config = new ConfigurationProperties(\n\t\t\t\t\t\tmodule);\n\t\t\t\tCodeSplitters.pickInitialLoadSequence(logger, jprogram, config);\n\t\t\t}\n\t\t\tImplementClassLiteralsAsFields.exec(jprogram, shouldOptimize());\n\t\t\t// TODO(stalcup): hide metrics gathering in a callback or subclass\n\t\t\tlogAstTypeMetrics(precompilationMetrics);\n\t\t\t// (4) Construct and return a value.\n\t\t\tEvent createUnifiedAstEvent = SpeedTracerLogger\n\t\t\t\t\t.start(CompilerEventType.CREATE_UNIFIED_AST);\n\t\t\tUnifiedAst result = new UnifiedAst(options,\n\t\t\t\t\tnew AST(jprogram, jsProgram), singlePermutation,\n\t\t\t\t\tRecordRebinds.exec(jprogram));\n\t\t\tcreateUnifiedAstEvent.end();\n\t\t\treturn result;\n\t\t} catch (Throwable e) {\n\t\t\tthrow CompilationProblemReporter.logAndTranslateException(logger,\n\t\t\t\t\te);\n\t\t}\n\t}", "void preInit();", "void preInit();", "@Override\n public <U> Comparator<Object> thenComparing(final Function<?, ? extends U> p0, final Comparator<? super U> p1) {\n // This method could not be decompiled.\n // \n // Could not show original bytecode, likely due to the same error.\n // \n // The error that occurred was:\n // \n // java.lang.NullPointerException\n // at com.strobel.assembler.metadata.DefaultTypeVisitor.visit(DefaultTypeVisitor.java:25)\n // at com.strobel.assembler.metadata.DefaultTypeVisitor.visit(DefaultTypeVisitor.java:21)\n // at com.strobel.assembler.metadata.MetadataHelper$5.visitWildcard(MetadataHelper.java:1793)\n // at com.strobel.assembler.metadata.MetadataHelper$5.visitWildcard(MetadataHelper.java:1790)\n // at com.strobel.assembler.metadata.WildcardType.accept(WildcardType.java:83)\n // at com.strobel.assembler.metadata.DefaultTypeVisitor.visit(DefaultTypeVisitor.java:25)\n // at com.strobel.assembler.metadata.DefaultTypeVisitor.visit(DefaultTypeVisitor.java:21)\n // at com.strobel.assembler.metadata.MetadataHelper.getLowerBound(MetadataHelper.java:1240)\n // at com.strobel.assembler.metadata.MetadataHelper$Adapter.visitWildcard(MetadataHelper.java:2278)\n // at com.strobel.assembler.metadata.MetadataHelper$Adapter.visitWildcard(MetadataHelper.java:2222)\n // at com.strobel.assembler.metadata.WildcardType.accept(WildcardType.java:83)\n // at com.strobel.assembler.metadata.DefaultTypeVisitor.visit(DefaultTypeVisitor.java:25)\n // at com.strobel.assembler.metadata.MetadataHelper$Adapter.adaptRecursive(MetadataHelper.java:2256)\n // at com.strobel.assembler.metadata.MetadataHelper$Adapter.adaptRecursive(MetadataHelper.java:2233)\n // at com.strobel.assembler.metadata.MetadataHelper$Adapter.visitParameterizedType(MetadataHelper.java:2246)\n // at com.strobel.assembler.metadata.MetadataHelper$Adapter.visitParameterizedType(MetadataHelper.java:2222)\n // at com.strobel.assembler.metadata.CoreMetadataFactory$UnresolvedGenericType.accept(CoreMetadataFactory.java:653)\n // at com.strobel.assembler.metadata.DefaultTypeVisitor.visit(DefaultTypeVisitor.java:25)\n // at com.strobel.assembler.metadata.MetadataHelper.adapt(MetadataHelper.java:1312)\n // at com.strobel.assembler.metadata.MetadataHelper$11.visitClassType(MetadataHelper.java:2708)\n // at com.strobel.assembler.metadata.MetadataHelper$11.visitClassType(MetadataHelper.java:2692)\n // at com.strobel.assembler.metadata.DefaultTypeVisitor.visitParameterizedType(DefaultTypeVisitor.java:65)\n // at com.strobel.assembler.metadata.CoreMetadataFactory$UnresolvedGenericType.accept(CoreMetadataFactory.java:653)\n // at com.strobel.assembler.metadata.DefaultTypeVisitor.visit(DefaultTypeVisitor.java:25)\n // at com.strobel.assembler.metadata.MetadataHelper.asSubType(MetadataHelper.java:720)\n // at com.strobel.decompiler.ast.TypeAnalysis.doInferTypeForExpression(TypeAnalysis.java:926)\n // at com.strobel.decompiler.ast.TypeAnalysis.inferTypeForExpression(TypeAnalysis.java:803)\n // at com.strobel.decompiler.ast.TypeAnalysis.inferTypeForExpression(TypeAnalysis.java:770)\n // at com.strobel.decompiler.ast.TypeAnalysis.inferTypeForExpression(TypeAnalysis.java:766)\n // at com.strobel.decompiler.ast.TypeAnalysis.inferCall(TypeAnalysis.java:2515)\n // at com.strobel.decompiler.ast.TypeAnalysis.doInferTypeForExpression(TypeAnalysis.java:1029)\n // at com.strobel.decompiler.ast.TypeAnalysis.inferTypeForExpression(TypeAnalysis.java:803)\n // at com.strobel.decompiler.ast.TypeAnalysis.inferTypeForExpression(TypeAnalysis.java:778)\n // at com.strobel.decompiler.ast.TypeAnalysis.doInferTypeForExpression(TypeAnalysis.java:1656)\n // at com.strobel.decompiler.ast.TypeAnalysis.inferTypeForExpression(TypeAnalysis.java:803)\n // at com.strobel.decompiler.ast.TypeAnalysis.runInference(TypeAnalysis.java:672)\n // at com.strobel.decompiler.ast.TypeAnalysis.runInference(TypeAnalysis.java:655)\n // at com.strobel.decompiler.ast.TypeAnalysis.runInference(TypeAnalysis.java:365)\n // at com.strobel.decompiler.ast.TypeAnalysis.run(TypeAnalysis.java:96)\n // at com.strobel.decompiler.ast.AstOptimizer.optimize(AstOptimizer.java:109)\n // at com.strobel.decompiler.ast.AstOptimizer.optimize(AstOptimizer.java:42)\n // at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.createMethodBody(AstMethodBodyBuilder.java:214)\n // at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.createMethodBody(AstMethodBodyBuilder.java:99)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createMethodBody(AstBuilder.java:782)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createMethod(AstBuilder.java:675)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.addTypeMembers(AstBuilder.java:552)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createTypeCore(AstBuilder.java:519)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createTypeNoCache(AstBuilder.java:161)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createType(AstBuilder.java:150)\n // at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.transformCall(AstMethodBodyBuilder.java:1162)\n // at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.transformByteCode(AstMethodBodyBuilder.java:1009)\n // at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.transformExpression(AstMethodBodyBuilder.java:540)\n // at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.transformByteCode(AstMethodBodyBuilder.java:554)\n // at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.transformExpression(AstMethodBodyBuilder.java:540)\n // at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.transformNode(AstMethodBodyBuilder.java:392)\n // at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.transformBlock(AstMethodBodyBuilder.java:333)\n // at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.createMethodBody(AstMethodBodyBuilder.java:294)\n // at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.createMethodBody(AstMethodBodyBuilder.java:99)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createMethodBody(AstBuilder.java:782)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createMethod(AstBuilder.java:675)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.addTypeMembers(AstBuilder.java:552)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createTypeCore(AstBuilder.java:519)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createTypeNoCache(AstBuilder.java:161)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createType(AstBuilder.java:150)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.addType(AstBuilder.java:125)\n // at com.strobel.decompiler.languages.java.JavaLanguage.buildAst(JavaLanguage.java:71)\n // at com.strobel.decompiler.languages.java.JavaLanguage.decompileType(JavaLanguage.java:59)\n // at us.deathmarine.luyten.FileSaver.doSaveJarDecompiled(FileSaver.java:192)\n // at us.deathmarine.luyten.FileSaver.access$300(FileSaver.java:45)\n // at us.deathmarine.luyten.FileSaver$4.run(FileSaver.java:112)\n // at java.lang.Thread.run(Unknown Source)\n // \n throw new IllegalStateException(\"An error occurred while decompiling this method.\");\n }", "private FilterPriorities() {\n // hiding implicit public constructor\n }", "default int getPriority(Program program) {\n\t\treturn 0;\n\t}", "void initWantedByOrder(ResourceClass rc);", "public interface PrioritizableAction<K extends PrioritizableAction<K,T>,T> extends Action<T>, Comparable<K>{\n}", "RecordSet loadAllPendPriorActComp(Record record, RecordLoadProcessor recordLoadProcessor);", "protected FunctionPriority createFunctionPrioritizer() {\n final String functionPriorities = getCommandLine().getOptionValue(FUNCTION_PRIORITY_OPTION);\n if (functionPriorities != null) {\n try {\n final Class<?> functionPrioritiesClass = ClassUtils.loadClass(functionPriorities);\n Object prioritiesObject = functionPrioritiesClass.newInstance();\n if (prioritiesObject instanceof InitializingBean) {\n ((InitializingBean) prioritiesObject).afterPropertiesSet();\n }\n if (prioritiesObject instanceof FactoryBean) {\n prioritiesObject = ((FactoryBean<?>) prioritiesObject).getObject();\n }\n if (prioritiesObject instanceof FunctionPriority) {\n return (FunctionPriority) prioritiesObject;\n }\n } catch (final Exception e) {\n throw new OpenGammaRuntimeException(\"Error loading function priorities\", e);\n }\n }\n return new FunctionPriority() {\n @Override\n public int getPriority(final CompiledFunctionDefinition function) {\n return 0;\n }\n };\n }", "@Override\r\n\tprotected void processInit() {\n\r\n\t}", "public static void main(String[] args) {\n\t\tArrayList<Prefix> prefixList = PrefixUtil.readPrefixList(PrefixUtil.prefixListFile, 1);\n\t\tint numPrior = 6;\n\t\tDenseMatrix prior = new DenseMatrix(prefixList.size(), numPrior);\n\t\tint[] label1 = new int[]{5, 9, 13, 17, 21};\n\t\tint[] label2 = new int[]{21, 17, 13, 9, 5};\n\t\t\n\t\tfor(int i = 0; i < prefixList.size(); i++){\n\t\t\tif(GenerateRatingData.contains(prefixList.get(i), label1[0])){\n\t\t\t\tprior.set(i, 0, 5);\n\t\t\t}\n\t\t\telse if (GenerateRatingData.contains(prefixList.get(i), label1[1])){\n\t\t\t\tprior.set(i, 0, 4);\n\t\t\t}\n\t\t\telse if (GenerateRatingData.contains(prefixList.get(i), label1[2])){\n\t\t\t\tprior.set(i, 0, 3);\t\t\t\n\t\t\t}\n\t\t\telse if (GenerateRatingData.contains(prefixList.get(i), label1[3])){\n\t\t\t\tprior.set(i, 0, 2);\n\t\t\t}\n\t\t\telse if (GenerateRatingData.contains(prefixList.get(i), label1[4])){\n\t\t\t\tprior.set(i, 0, 1);\n\t\t\t}\n\t\t\telse\n\t\t\t\tprior.set(i, 0, 3);\n\t\t}\n\t\t\n\t\t\n\t\tfor(int i = 0; i < prefixList.size(); i++){\n\t\t\tif(GenerateRatingData.contains(prefixList.get(i), label2[0])){\n\t\t\t\tprior.set(i, 1, 5);\n\t\t\t}\n\t\t\telse if (GenerateRatingData.contains(prefixList.get(i), label2[1])){\n\t\t\t\tprior.set(i, 1, 4);\n\t\t\t}\n\t\t\telse if (GenerateRatingData.contains(prefixList.get(i), label2[2])){\n\t\t\t\tprior.set(i, 1, 3);\t\t\t\n\t\t\t}\n\t\t\telse if (GenerateRatingData.contains(prefixList.get(i), label2[3])){\n\t\t\t\tprior.set(i, 1, 2);\n\t\t\t}\n\t\t\telse if (GenerateRatingData.contains(prefixList.get(i), label2[4])){\n\t\t\t\tprior.set(i, 1, 1);\n\t\t\t}\n\t\t\telse\n\t\t\t\tprior.set(i, 1, 3);\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < prefixList.size(); i++){\n\t\t\tif(checkBack(prefixList.get(i))){\n\t\t\t\tprior.set(i, 2, 5);\n\t\t\t\tprior.set(i, 3, 1);\n\t\t\t\t\n\t\t\t}\n\t\t\telse{\n\t\t\t\tprior.set(i, 2, 1);\n\t\t\t\tprior.set(i, 3, 5);\n\t\t\t}\n\t\t\t\n\t\t\tif(checkLoop(prefixList.get(i))){\n\t\t\t\tprior.set(i, 4, 5);\n\t\t\t\tprior.set(i, 5, 1);\n\t\t\t}\n\t\t\telse{\n\t\t\t\tprior.set(i, 4, 1);\n\t\t\t\tprior.set(i, 5, 5);\n\t\t\t}\n\t\t}\n\t\t\n\t\tCommonUtil.printObject(prior, \"prior.txt\");\n\t\t\n\t}", "public void outsource()\n\t{\n\t\tconstructPrefix();\t \n\t}", "public void saveBeforeCompile() { }", "public void saveBeforeCompile() { }", "public void generatePriority() {\n\t\tpriority = .25 * frequency + .25 * age + .25 * links + .25 * money;\n\t}", "public static void main(String[] args) {\n AlmostSorted sol1 = new AlmostSorted();\n sol1.process();\n }", "public abstract int priority();", "default byte getPriority() {\n\t\treturn 0;\n\t}", "@Override\n public int getPriority() {\n return 1;\n }", "@Override\r\n\tprotected void processInit() {\n\t\t\r\n\t}", "@Override\n\tpublic void preBacktrack() {\n\t\t\n\t}", "@Override\n\tprotected void prepare() {\n\t\t\n\t}", "public void minimize()\n {\n }", "private SBomCombiner()\n\t{}", "Consumable() {\n\t}", "@Override\n public int getPriority() {\n return 75;\n }", "int priority();", "int priority();", "private StandardDeCompressors() {}", "public void setPriorityCollect(String compcode)\n\t{\n\t\tsetCollect(_Prefix + HardZone.PRIORITY.toString(), compcode);\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "public T caseCommon_Preprocess(at.jku.weiner.c.common.common.Preprocess object)\n\t{\n\t\treturn null;\n\t}", "void PrepareRun() {\n }", "public void assemble1() {\n\t\t\r\n\t}", "protected void additionalProcessing() {\n\t}", "private RegressionPrior() { \n /* empty constructor */\n }", "@Override\n\tpublic void stablize() {\n\n\t}", "@Override\r\n\tprotected void prepare()\r\n\t{\r\n\r\n\t}", "public T casePreprocess(Preprocess object)\n\t{\n\t\treturn null;\n\t}", "private CratState preoptimizeClasses(Map<Integer, ? extends CratClass> classSet) {\n\t\tArrayList<EvaluatedClass> optimized = new ArrayList<EvaluatedClass>();\n\t\t// preoptimize classes\n\t\tif (classSet.size() > 0)\n\t\t\tfor (Map.Entry<Integer, ? extends CratClass> entry : classSet.entrySet()) {\n\t\t\t\tint classId = entry.getKey();\n\t\t\t\tCratClass curClass = entry.getValue();\n\t\t\t\tString className = craCase.getClassName(classId);\n\t\t\t\tinfo(String.format(\"[%4.1f%%] preoptimizing class %s (%d entities) \",\n\t\t\t\t\t\t(100.0 * progressNom) / progressDenom, className, curClass.size()));\n\t\t\t\t// Don't deconstruct class\n\t\t\t\t// CratState curState = new CratState(curClass, metric);\n\t\t\t\t// Deconstruct class\n\t\t\t\tCratState curState = stateFromClass(curClass);\n\t\t\t\tdouble curEvaluation = curState.getEvaluation();\n\t\t\t\tCratState bestOptimum = curState;\n\t\t\t\tfor (int methodId : scenario.getAlgorithmsForClass()) {\n\t\t\t\t\tSearchAlgorithm heuristic = HeuristicFactory.getHeuristic(methodId, explorer,\n\t\t\t\t\t\t\tcurState, null, null);\n\t\t\t\t\t// info(String.format(\"%s..\", heuristic.getShortName()));\n\t\t\t\t\tCratState optimum = (CratState) heuristic.getOptimum();\n\t\t\t\t\t// info(String.format(\": %+8.6f %s\\n\", optimum.getEvaluation() - curEvaluation,\n\t\t\t\t\t// optimum));\n\t\t\t\t\tif (optimum.isBetterThan(bestOptimum.getEvaluation()))\n\t\t\t\t\t\tbestOptimum = optimum;\n\t\t\t\t}\n\t\t\t\tinfo(String.format(\": %+8.6f\\n\", bestOptimum.getEvaluation() - curEvaluation));\n\t\t\t\toptimized.addAll(bestOptimum.values());\n\t\t\t\tprogressNom++;\n\t\t\t}\n\t\treturn new CratState(optimized, metric);\n\t}", "private static ArrayList<String> preCompileAfter(ArrayList<CommandNode> cmdNode, ArrayList<MemoryNode> memNode) {\n\t\tArrayList<String> stringList = new ArrayList<String>();\n\t\tstringList.add(\"#cmd:\");\n\t\tfor(CommandNode c:cmdNode)\n\t\t\tstringList.add(c.toString());\n\t\tstringList.add(\"#mem:\");\n\t\tfor(MemoryNode m:memNode)\n\t\t\tstringList.add(m.toString());\t\n\t\treturn stringList;\n\t}", "@Override\n \tpublic int priority() {\n \t\treturn 10;\n \t}", "JDKSort() {\n }", "protected void warmupImpl(M newValue) {\n\n }", "public void assemble2() {\n\t\t\r\n\t}", "private CompressionTools() {}", "private void optimiseEVProfile()\n\t{\n\t}", "private synchronized void freshSort(){\n Process[] newQueue = new Process[pros.proSize()];\n for(int i = 0; i <queue.length; i++){\n if(pros.isInList(queue[i])){\n newQueue[i] = queue[i];\n }\n }\n queue = new Process[pros.proSize()];\n queue = newQueue;\n }", "protected void preassemble(ConstantPool pool)\n {\n // register constants used by the class\n pool.registerConstant(m_clzName);\n if (m_clzSuper != null)\n {\n pool.registerConstant(m_clzSuper);\n }\n\n Enumeration enmr = m_tblInterface.elements();\n while (enmr.hasMoreElements())\n {\n pool.registerConstant((ClassConstant) enmr.nextElement());\n }\n\n // the constant pool doesn't have to register itself\n // m_pool.preassemble(pool);\n\n // register constants used by the fields, methods, and attributes\n StringTable[] atbl = CONTAINED_TABLE;\n for (int i = 0; i < atbl.length; ++i)\n {\n StringTable tbl = atbl[i];\n enmr = tbl.elements();\n while (enmr.hasMoreElements())\n {\n ((VMStructure) enmr.nextElement()).preassemble(pool);\n }\n }\n }", "int getPriorityOrder();", "private CompilationObject compile(AbstractSyntaxTree ast, String code,\n com.microsoft.z3.Context z3Context,\n BlockingQueue<Object> messageQueue,\n Supplier< Boolean> symb)\n throws CompilationException, InterruptedException, ExecutionException {\n HashMap<String, ProcessNode> processNodeMap = new HashMap<>();\n // HashMap<String, ProcessNode> dependencyMap = new HashMap<>();\n\n //System.out.println(\"\\nCOMPILER \"+ast.myString()+\" symb \"+symb.get()+\"\\n\");\n for (ProcessNode node : ast.getProcesses()) {\n //messageQueue.add(new LogMessage(\"Compile starting \"+node.getIdentifier()+\" s \"+symb.get()));\n //System.out.println(\"**COMPILER** Compiler Start node = \"+ node.myString());\n processNodeMap.put(node.getIdentifier(), (ProcessNode) node.copy());\n // dependencyMap.put(node.getIdentifier(), node);\n }\n\n AbstractSyntaxTree symbAST = ast.copy(); // to be used to build symbolic models\n //??????\n\n //System.out.println(\"symb \"+symb.get());\n if (!symb.get()) {\n ast = processAtomicAST(ast, z3Context, messageQueue);\n } else {\n //expander.expand(ast, messageQueue, z3Context); // use for error detection\n ast = symbAST;\n //ast = expander.expand(ast, messageQueue, z3Context);\n //System.out.println(\" COMPILER Before ReferenceReplacer \"+ast.processes2String());\n //ast = replacer.replaceReferences(ast, messageQueue);\n // If we replace the references then we lose the assignment information\n //System.out.println(\" COMPILER After ReferenceReplacer \"+ast.processes2String());\n\n }\n //\n //\n // ??????\n //store alphabet\n Set<String> alpha = ast.getAlphabet().stream().map(x -> x.getAction()).collect(Collectors.toSet());\n //System.out.println(\"Compiler alph = \"+alpha);\n\n //Having built the final AST now build the processes\n /*System.out.println(\"**COMPILER** Entering interpreter with ast for processes -> Types \"+\n ast.getProcesses().stream().map(x->\"\\n\"+x.getIdentifier()+\"->\"+x.getType())\n .reduce(\"\",(x,y)->x+\" \"+y)); */\n Interpreter.ProcessMapFull pmf = interpreter.interpret(ast,\n messageQueue, z3Context, alpha, symb.get());\n // Optional<Map<String, ProcessModel>> processMap = interpreter.interpret(ast,\n // messageQueue, z3Context, alpha, symb.get());\n\n //System.out.println(\" **COMPILER** before operation evaluation \"+processMap.keySet());\n List<OperationResult> opResults = new ArrayList<>();\n EquationEvaluator.EquationReturn eqResults = new EquationEvaluator.EquationReturn();\n if (pmf.getIsFull()) {\n\n //System.out.println(\" isPresent \"+pmf.getProcessMap().size()+\" \"+ast.getProcesses().size());\n // if (ast.getProcesses().size() <= processMap.get().size()) {\n //System.out.println(\"equal size\"); // not sure why <= and not ==\n opResults = evaluator.evaluateOperations(\n ast.getOperations(), pmf.getProcessMap(),\n interpreter.getpetrinetInterpreter(), code, z3Context, messageQueue, alpha);\n //System.out.println(\" **COMPILER** before equation evaluation \"+processMap.keySet());\n\n // HEAVY LIFTING need thread pool\n this.eqEvaluator = new EquationEvaluator(); // need to reset equationEvaluator else !!!!\n eqResults = eqEvaluator.evaluateEquations(\n pmf.getProcessMap(),\n interpreter.getpetrinetInterpreter(),\n ast.getEquations(), // one entry per equation\n z3Context, messageQueue, alpha);\n }\n\n\n //System.out.println(\"Compiler built pn \"+ pmf.getProcessMap().size());\n return new CompilationObject(pmf.getProcessMap(), opResults, eqResults.getResults());\n }", "private void poetries() {\n\n\t}", "TACBlock optimise(TACBlock code);", "public boolean isPriority()\r\n/* 49: */ {\r\n/* 50:47 */ return false;\r\n/* 51: */ }", "@SuppressWarnings(\"unchecked\")\n\tpublic void translate(){\n\t\tnodeSigs();\n\t\tedgeSigs();\n\t\tpre_source_valid();\n\t\tList<Object> constraints = new ArrayList<Object>();\n\t\tconstraints.addAll(hash.keySet());\n\t\tfor (int i = 0; i < constraints.size() ; i++) {\n\t\t\tfor (int j = i + 1; j < constraints.size() ; j++) {\n\t\t\t\tObject iter = constraints.get(i), iter1 = constraints.get(j);\n\t\t\t\tObject[] overlap = findOverlap(iter, iter1);\n\t\t\t\tif(overlap == null) continue;\n\t\t\t\talloycommands.add(new Object[]{iter, iter1});\n\t\t\t\tbuffer.append(\"run{(\" + hash.get(iter) + \"[] and not \" + hash.get(iter1) + \"[]) or (not \" + hash.get(iter) + \"[] and \" + hash.get(iter1) + \"[])} for 0 but \");\n\t\t\t\tList<Node> nodes = (List<Node>) overlap[0];\n\t\t\t\tList<Arrow> edges = (List<Arrow>) overlap[1];\n\t\t\t\tList<String> strings = new ArrayList<String>();\n\t\t\t\tfor(Node in : nodes){\n\t\t\t\t\tstrings.add(nodeSig(in));\n\t\t\t\t}\n\t\t\t\tfor(Arrow ie : edges){\n\t\t\t\t\tstrings.add(edgeSig(ie));\n\t\t\t\t}\n\t\t\t\tbuffer.append(\"5 \" + strings.get(0));\n\t\t\t\tfor (int k = 1; k < strings.size(); k++) {\n\t\t\t\t\tbuffer.append(\", 5 \" + strings.get(k));\n\t\t\t\t}\n\t\t\t\tbuffer.append(LINE);\n\t\t\t}\n\t\t}\n//\t\tif(check == null)\n//\t\t\tbuffer.append(\"run {}\");\n//\t\telse\n//\t\t\ttranslate(check, \"check\");\n//\t\tbuffer.append(\" for 5\");\n\t\t\t\n\t}", "public NbaProcReinsurerOrdered() {\n\t\tsuper();\n\t}", "public void setPriorite(java.lang.String priorite) {\r\n\t\tthis.priorite = priorite;\r\n\t}", "private SimplexComparator() {}", "static void compare()\n {\n \tif(a < c)\n\t\t {\n\t\t\t comp_one = 1; //store this value , else zero default \n\t\t }\n\t\t if(c < b)\n\t\t {\n\t\t\t comp_two = 2; //store this value , else zero default\n\t\t }\n\t\t if(b < a)\n\t\t {\n\t\t\t comp_thr = 5; //store this value , else zero default\n\t\t }\n\t\t \n\t\t comp_val = comp_one + comp_two + comp_thr; //create a unique value by addition\n }", "private static void sortingMemo() {\n\t\t\n\t}", "private XIncluder() {}", "public abstract int getPriority();", "public abstract int getPriority();" ]
[ "0.61016333", "0.6099962", "0.6088777", "0.606869", "0.5988295", "0.5988295", "0.5988295", "0.5988295", "0.56509894", "0.56051254", "0.5492577", "0.54578066", "0.5369465", "0.53576756", "0.528283", "0.52666426", "0.52460575", "0.5238233", "0.5237206", "0.52251047", "0.52179164", "0.5192727", "0.5185386", "0.51851475", "0.5172622", "0.5161335", "0.51597047", "0.5131017", "0.5118394", "0.51084226", "0.50911903", "0.50865936", "0.5077843", "0.5075433", "0.5067757", "0.5064687", "0.5046378", "0.5041677", "0.50355715", "0.50355715", "0.50353515", "0.5035348", "0.5024781", "0.5007905", "0.5002978", "0.4996968", "0.4996344", "0.49911326", "0.4983459", "0.49786443", "0.49732062", "0.49732062", "0.4963121", "0.49501854", "0.4947479", "0.4945149", "0.49367723", "0.49250305", "0.4923317", "0.4920459", "0.4916672", "0.49092793", "0.49031508", "0.49007913", "0.48972148", "0.48972148", "0.48941565", "0.48939037", "0.4889811", "0.48894718", "0.48891646", "0.48854545", "0.48568854", "0.48548168", "0.48530456", "0.4848243", "0.48393667", "0.4837435", "0.4828703", "0.4827432", "0.48096162", "0.48003712", "0.47995698", "0.4799087", "0.47975972", "0.47885963", "0.47884685", "0.4787591", "0.47870392", "0.478402", "0.47674373", "0.4763986", "0.47588983", "0.47574395", "0.4752821", "0.47518945", "0.4750497", "0.47398907", "0.47393718", "0.47329387", "0.47329387" ]
0.0
-1
Created by dongt 2019/1/12/012 16:44
public interface WebSocketSessionAware { void setWebSocketSession(WebSocketSession webSocketSession); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "@Override\n public void perish() {\n \n }", "public void mo6081a() {\n }", "public void mo38117a() {\n }", "public Pitonyak_09_02() {\r\n }", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "public void mo4359a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n public Date getCreated()\n {\n return null;\n }", "public final void mo51373a() {\n }", "private static void cajas() {\n\t\t\n\t}", "protected MetadataUGWD() {/* intentionally empty block */}", "@Override\n public void func_104112_b() {\n \n }", "@SuppressWarnings(\"unused\")\n private void generateInfo()\n {\n }", "public void mo55254a() {\n }", "private static String getStamp() {\n\t\t\t return new SimpleDateFormat(\"yyyyMMddHHmmss\").format(new Date());\r\n\t\t}", "public abstract long getCreated();", "public void mo12930a() {\n }", "public void mo21877s() {\n }", "UUID getCreatedUUID()\n {\n return conglomerateUUID;\n }", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "public String getTimestamp() \n{\n Calendar now = Calendar.getInstance();\n return String.format(\"20%1$ty-%1$tm-%1$td_%1$tHh%1$tMm%1$tSs\", now);\n}", "@Override\n default String getTs() {\n return null;\n }", "private long makeTimestamp() {\n return new Date().getTime();\n }", "public void mo1531a() {\n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "protected void mo6255a() {\n }", "CreationData creationData();", "zzang mo29839S() throws RemoteException;", "private void poetries() {\n\n\t}", "Petunia() {\r\n\t\t}", "private void m50366E() {\n }", "private UsineJoueur() {}", "public void mo21878t() {\n }", "private Long createId() {\n return System.currentTimeMillis() % 1000;\n }", "private TMCourse() {\n\t}", "public Tbdcongvan36() {\n super();\n }", "public void mo12628c() {\n }", "private void kk12() {\n\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tpublic long getCreationTime() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic long getCreationTime() {\n\t\treturn 0;\n\t}", "@Override\n public int describeContents() { return 0; }", "@Override\n\tpublic void create() {\n\t\t\n\t}", "private CreateDateUtils()\r\n\t{\r\n\t}", "@Override\n\tpublic void create () {\n\n\t}", "public void mo9848a() {\n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "private long now() {\n\treturn System.currentTimeMillis();\n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "zzafe mo29840Y() throws RemoteException;", "@Test\n public void createdAtTest() {\n // TODO: test createdAt\n }", "public DateTime getCreationTime() {\n return created;\n }", "@Override\n\tpublic int mettreAJour() {\n\t\treturn 0;\n\t}", "private void m14053d() {\n try {\n File file = new File(f18051l);\n File file2 = new File(f18052m);\n if (!file.exists()) {\n file.mkdirs();\n }\n if (!file2.exists()) {\n file2.createNewFile();\n }\n if (file2.exists()) {\n SQLiteDatabase openOrCreateDatabase = SQLiteDatabase.openOrCreateDatabase(file2, null);\n openOrCreateDatabase.execSQL(\"CREATE TABLE IF NOT EXISTS bdcltb09(id CHAR(40) PRIMARY KEY,time DOUBLE,tag DOUBLE, type DOUBLE , ac INT);\");\n openOrCreateDatabase.execSQL(\"CREATE TABLE IF NOT EXISTS wof(id CHAR(15) PRIMARY KEY,mktime DOUBLE,time DOUBLE, ac INT, bc INT, cc INT);\");\n openOrCreateDatabase.setVersion(1);\n openOrCreateDatabase.close();\n }\n this.f18053a = true;\n } catch (Exception e) {\n }\n }", "public void mo23813b() {\n }", "public void mo21795T() {\n }", "@Override\n\tprotected void getExras() {\n\n\t}", "zzana mo29855eb() throws RemoteException;", "public void mo3376r() {\n }", "private Rekenhulp()\n\t{\n\t}", "@Override\n\tpublic void create() {\n\n\t}", "private ReportGenerationUtil() {\n\t\t\n\t}", "public void mo21783H() {\n }", "public abstract void mo56925d();", "public DateTime getCreationTime() { return creationTime; }", "@Test(timeout = 4000)\n public void test112() throws Throwable {\n DefaultDBTable defaultDBTable0 = new DefaultDBTable(\"O\\\"6T\");\n File file0 = MockFile.createTempFile(\"<*kYz\", \"BLOB\");\n MockPrintWriter mockPrintWriter0 = new MockPrintWriter(file0);\n NameSpec nameSpec0 = NameSpec.ALWAYS;\n SQLUtil.renderCreateTable(defaultDBTable0, true, nameSpec0, mockPrintWriter0);\n assertNull(defaultDBTable0.getDoc());\n }", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public Date getDateCreated(){return DATE_CREATED;}", "public void mo56167c() {\n }", "public void create() {\n\t\t\n\t}", "public void mo3749d() {\n }", "public void mo44053a() {\n }", "public final void mo91715d() {\n }", "private final zzgy zzgb() {\n }", "public Date getCreateTime()\n/* */ {\n/* 177 */ return this.createTime;\n/* */ }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "public void mo21794S() {\n }", "public void mo115190b() {\n }", "private TAPosition()\n {\n\n }", "public Tbdtokhaihq3() {\n super();\n }", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n protected void getExras() {\n }", "public void mo21825b() {\n }", "private Zeroes() {\n // This space intentionally left blank.\n }", "@Test(timeout = 4000)\n public void test074() throws Throwable {\n StringBuilder stringBuilder0 = new StringBuilder();\n DefaultDBColumn defaultDBColumn0 = new DefaultDBColumn(\"dKop matrUalized view\", (DBTable) null, 149, \"org.h2.store.LobStorage\");\n SQLUtil.renderColumnTypeWithSize((DBColumn) defaultDBColumn0, stringBuilder0);\n assertEquals(\"ORG.H2.STORE.LOBSTORAGE\", stringBuilder0.toString());\n }", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "static void feladat6() {\n\t}", "public void mo21779D() {\n }", "private OwBootstrapToIdMapping()\r\n {\r\n\r\n }" ]
[ "0.52979004", "0.5260671", "0.5189381", "0.5178612", "0.5175041", "0.5172081", "0.5119111", "0.5107957", "0.5107957", "0.5107957", "0.5107957", "0.5107957", "0.5107957", "0.5107957", "0.51042974", "0.50824195", "0.50823677", "0.5066044", "0.5063856", "0.4991175", "0.49879175", "0.49859563", "0.49411938", "0.49370536", "0.49293318", "0.4923397", "0.49135178", "0.49135178", "0.49117306", "0.49096152", "0.49064887", "0.4896573", "0.48904172", "0.4882338", "0.48804438", "0.48794594", "0.48665026", "0.48659727", "0.48630574", "0.4860692", "0.48546553", "0.48456067", "0.48375666", "0.48369527", "0.48364666", "0.48294166", "0.48193717", "0.48171523", "0.48158553", "0.48093897", "0.48093897", "0.4797203", "0.47917923", "0.47914317", "0.47892177", "0.47827986", "0.47753608", "0.4771038", "0.47700858", "0.47639322", "0.47585592", "0.475812", "0.4757294", "0.47538027", "0.4746409", "0.4743711", "0.47424802", "0.4742369", "0.47412172", "0.47339746", "0.47313148", "0.4728268", "0.4727866", "0.47276828", "0.47242078", "0.4723733", "0.47196373", "0.47087893", "0.47072667", "0.47065103", "0.46996367", "0.46934298", "0.46871802", "0.4683986", "0.46809033", "0.46793213", "0.4675392", "0.4675392", "0.4674918", "0.4673453", "0.4673103", "0.46700066", "0.4668884", "0.466771", "0.46639678", "0.46611822", "0.4655589", "0.46554986", "0.46543753", "0.46526083", "0.46510124" ]
0.0
-1
Creates a new server object.
public Master(GeneticProgram geneticProgram, ISimulator[] simulators, int generations) throws RemoteException { super(54614); this.geneticProgram = geneticProgram; this.simulators = simulators; this.generations = generations; programsRemaining = geneticProgram.getPopulationSize(); resetStatistics(); // setup checkpointing String checkpointDirName = "gp_" + new Date().toString().replace(' ', '_'); checkpointDir = new File(checkpointDirName); if (!checkpointDir.mkdir()) { log.warning("Could not create checkpoint directory: " + checkpointDirName + "\nCheckpointing disabled."); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static RoMServer createServer() throws IOException, Exception {\r\n \t\t// Ip and Port out of config\r\n \t\tIConfig cfg = ConfigurationFactory.getConfig();\r\n \r\n \t\treturn RoMServer.createServer(cfg.getIp(), cfg.getPort());\r\n \t}", "public Server createServer(Server server){\n\t\tlogger.info(\"Creating the Server with the given details\");\n\t\tint id = servers.size()+1+1000;\n\t\tlogger.info(\"The Server id is \"+id);\n\t\tserver.setServerId(id);\n\t\tserver.setServerStatus(ServerStatus.BUILDING);\n\t\tServerBuilder serverBuilder = new ServerBuilder(\"\"+id, server);\n\t\tserverBuilder.start();\n\t\tservers.put(id, server);\n\t\treturn server;\n\t}", "public Server() {}", "static private Server createServer(String args[]) throws Exception {\n if (args.length < 1) {\n usage();\n }\n\n int port = PORT;\n int backlog = BACKLOG;\n boolean secure = SECURE;\n\n for (int i = 1; i < args.length; i++) {\n if (args[i].equals(\"-port\")) {\n checkArgs(i, args.length);\n port = Integer.valueOf(args[++i]);\n } else if (args[i].equals(\"-backlog\")) {\n checkArgs(i, args.length);\n backlog = Integer.valueOf(args[++i]);\n } else if (args[i].equals(\"-secure\")) {\n secure = true;\n } else {\n usage();\n }\n }\n\n Server server = null;\n\n if (args[0].equals(\"B1\")) {\n server = new B1(port, backlog, secure);\n } else if (args[0].equals(\"BN\")) {\n server = new BN(port, backlog, secure);\n } else if (args[0].equals(\"BP\")) {\n server = new BP(port, backlog, secure);\n } else if (args[0].equals(\"N1\")) {\n server = new N1(port, backlog, secure);\n } else if (args[0].equals(\"N2\")) {\n server = new N2(port, backlog, secure);\n }\n\n return server;\n }", "public ServerDef() {}", "public Server() {\n\t\tinit(new Config());\n\t}", "public static ServerSocket createServerSocket() {\n \t\n try {\n listener = new ServerSocket(PORT,1, InetAddress.getByName(hostname));\n } catch (IOException e) {\n e.printStackTrace();\n }\n return listener;\n }", "public Server(){\n\t\ttry {\n\t\t\t// initialize the server socket with the specified port\n\t\t\tsetServerSocket(new ServerSocket(PORT));\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"IO Exception while creating a server\");\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public static RoMServer createServer(int serverPort) throws IOException, Exception {\r\n \t\treturn RoMServer.createServer(InetAddress.getLocalHost(), serverPort);\r\n \t}", "public ServerService(){\n\t\tlogger.info(\"Initilizing the ServerService\");\n\t\tservers.put(1001, new Server(1001, \"Test Server1\", 5, 30, 30, ServerStatus.RUNNING));\n\t\tservers.put(1002, new Server(1002, \"Test Server2\", 5, 30, 30, ServerStatus.RUNNING));\n\t\tservers.put(1003, new Server(1003, \"Test Server3\", 5, 30, 30, ServerStatus.RUNNING));\n\t\tservers.put(1004, new Server(1004, \"Test Server4\", 5, 30, 30, ServerStatus.RUNNING));\n\t\tlogger.info(\"Initilizing the ServerService Done\");\n\t}", "public Server() {\n\t\t\n\t\ttry {\n\t\t\tss= new ServerSocket(PORT);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace(); // Default\n\t\t}\n\t}", "public ServerA(){}", "private ServerSocket createServerSocket() throws IOException {\n ServerSocket serverSocket = new ServerSocket(Constants.SERVER_PORT);\n System.out.printf(\"Server for chatting started at %d\\n\", Constants.SERVER_PORT);\n return serverSocket;\n }", "public Server() throws IOException {\n try {\n this.serverSocket = new ServerSocket(this.port,100, InetAddress.getByName(host));\n } catch (UnknownHostException e) {\n System.out.println(\"Erreur lors de la construction du serveur (Hôte inconnu) - Server Constructor Error\");\n e.printStackTrace();\n } catch(IOException e) {\n e.printStackTrace();\n }\n }", "public Server(final Config config) {\n\t\tValidate.notNull(config);\n\t\tinit(config);\n\t}", "public OOXXServer(){\n\t\ttry\n\t\t{\n\t\t\tserver = new ServerSocket(port);\n\t\t\t\n\t\t}\n\t\tcatch(java.io.IOException e)\n\t\t{\n\t\t}\n\t}", "private void createServerSocket()\r\n {\r\n\t\tDebug.assert(port != 0, \"(Server/105)\");\r\n try {\r\n serverSocket = new ServerSocket(port);\r\n serverSocket.setSoTimeout(TIMEOUT);\r\n\t }\r\n\t catch (IOException e)\r\n\t \t{\r\n log(\"Could not create ServerSocket on port \" + port);\r\n\t \tDebug.printStackTrace(e);\r\n System.exit(-1);\r\n\t }\r\n }", "public static EmbeddedTestServer createAndStartServer(Context context) {\n return createAndStartServerWithPort(context, 0);\n }", "private ServerSocket setUpServer(){\n ServerSocket serverSocket = null;\n try{\n serverSocket = new ServerSocket(SERVER_PORT);\n\n }\n catch (IOException ioe){\n throw new RuntimeException(ioe.getMessage());\n }\n return serverSocket;\n }", "public static RoMServer createServer(InetAddress serverIpAddress, int serverPort) throws IOException, Exception {\r\n \t\tLogger.logMessage(\"Starting Server...\");\r\n \t\tRoMServer server = new RoMServer(serverIpAddress, serverPort);\r\n \r\n \t\tserver.initServer();\r\n \t\tserver.beginAcceptClients();\r\n \r\n \t\treturn server;\r\n \t}", "public Server(){\r\n \r\n this.m_Clients = new TeilnehmerListe();\r\n this.m_Port = 7575;\r\n }", "public Socket createSocket() {\n try {\n // Create socket\n server = new Socket(\"127.0.0.1\", 8520);\n } catch (IOException ioe) {\n System.out.println(\"IOException: \" + ioe.getMessage());\n }\n return server;\n }", "public Server() {\n\t\tsession = new WelcomeSession();\n\t\tmPort = DEFAULT_PORT;\n\t\texecutor = Executors.newCachedThreadPool();\n\t}", "public Server() throws IOException{\n\t\tsuper();\n\t\tthis.serversocket = new java.net.ServerSocket(DEFAULTPORT);\n\t\tif (DEBUG){\n\t\t\tSystem.out.println(\"Server socket created:\" + this.serversocket.getLocalPort());\n\t\t\tclient_list.add(String.valueOf(this.serversocket.getLocalPort()));\n\t\t}\n\t}", "public Server() throws Exception {\r\n\t}", "public Server() {\r\n this(0);\r\n hashtable = new Hashtable<String,String>();\r\n }", "public Server() {\n\t\tthis.currentMode = Mode.TEST; // TODO: implement\n\t}", "public static void main(String[] args) {\n\n Server server = new Server();\n \n\n }", "protected Server() {\n super(\"Ublu Server\");\n }", "@Override\n protected HotRodServer createHotRodServer() {\n HotRodServerConfigurationBuilder serverBuilder = new HotRodServerConfigurationBuilder();\n serverBuilder.adminOperationsHandler(new EmbeddedServerAdminOperationHandler());\n\n return HotRodClientTestingUtil.startHotRodServer(cacheManager, serverBuilder);\n }", "public Server() throws IOException\n {\n socket = new ServerSocket(port);\n }", "public static IdServer getInstance() {\n\t\tif (server == null) {\n\t\t\tserver = new IdServer();\n\t\t}\n\t\treturn server;\n\t}", "public Server(int port, mainViewController viewController, LogViewController consoleViewController){\n isRunningOnCLI = false;\n this.viewController = viewController;\n this.port = port;\n this.consoleViewController = consoleViewController;\n viewController.serverStarting();\n log = new LoggingSystem(this.getClass().getCanonicalName(),consoleViewController);\n log.infoMessage(\"New server instance.\");\n try{\n this.serverSocket = new ServerSocket(port);\n //this.http = new PersonServlet();\n log.infoMessage(\"main.Server successfully initialised.\");\n clients = Collections.synchronizedList(new ArrayList<>());\n ServerOn = true;\n log.infoMessage(\"Connecting to datastore...\");\n //mainStore = new DataStore();\n jettyServer = new org.eclipse.jetty.server.Server(8080);\n jettyContextHandler = new ServletContextHandler(jettyServer, \"/\");\n jettyContextHandler.addServlet(servlets.PersonServlet.class, \"/person/*\");\n jettyContextHandler.addServlet(servlets.LoginServlet.class, \"/login/*\");\n jettyContextHandler.addServlet(servlets.HomeServlet.class, \"/home/*\");\n jettyContextHandler.addServlet(servlets.DashboardServlet.class, \"/dashboard/*\");\n jettyContextHandler.addServlet(servlets.UserServlet.class, \"/user/*\");\n jettyContextHandler.addServlet(servlets.JobServlet.class, \"/job/*\");\n jettyContextHandler.addServlet(servlets.AssetServlet.class, \"/assets/*\");\n jettyContextHandler.addServlet(servlets.UtilityServlet.class, \"/utilities/*\");\n jettyContextHandler.addServlet(servlets.EventServlet.class, \"/events/*\");\n //this.run();\n } catch (IOException e) {\n viewController.showAlert(\"Error initialising server\", e.getMessage());\n viewController.serverStopped();\n log.errorMessage(e.getMessage());\n }\n }", "void startServer(String name, Config.ServerConfig config);", "public RentRPCServer() {\n\t\tsuper(null, null);\n\t\t// mocking purpose\n\t}", "private void initiateServerInstance(Socket newSocket){\n KVCommunicationModule com = createCommunicationModule(newSocket);\n KVServerInstance instance = createServerInstance(com, master);\n aliveInstances.add(instance);\n Thread aliveinstancethread = new Thread(instance);\n aliveinstancethread.start();\n aliveinstancethreads.add(aliveinstancethread);\n }", "public Server()\n\t{\n\t\tusers = new ArrayList<User>();\n\t\tdepartments = new ArrayList<Department>();\n\t\ttokenGenerator = new Random(System.currentTimeMillis());\n\t}", "public ServerGame(int port)\r\n\t{\r\n\t\tsuper(NetworkMode.SERVER);\r\n\t\tserver = new Server(port, getWorld());\r\n\t}", "public static void main(String[] args) {\n Server se = new Server();\n }", "private static void startServer() {\n new Thread() {\n public void run() {\n Server server = new Server();\n server.startUDP();\n }\n }.start();\n }", "private void startServer() {\n\t\ttry {\n//\t\t\tserver = new Server();\n//\t\t\tserver.start();\n\t\t} catch (Exception e) {\n\t\t\t// TODO: add message in UI for user\n\t\t}\n\t}", "private static void createServer(final IChordNode node, int localPort)\n throws Exception {\n LocateRegistry.createRegistry(localPort);\n Naming.rebind(\n String.format(\"//localhost:%d/%s\", localPort, CHORDNODE),\n node\n );\n System.out.printf(\n \"New server started on localhost:%d with ID %d%n\",\n localPort, node.getID()\n );\n\n // Make nodes leave cleanly if the JVM is terminated\n Runtime.getRuntime().addShutdownHook( new Thread() {\n public void run() {\n try {\n node.leave();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n } );\n\n\n // Continuously print network information, keeping server alive\n while (true) {\n System.out.printf(\"### %4d ####%n\", node.getID());\n System.out.println( node.ringToString() );\n System.out.println();\n Thread.sleep(3000);\n }\n }", "public ServerSocket createServerSocket(int arg0, int arg1, InetAddress arg2) throws IOException {\n return null;\n }", "private static void startServer(){\n try{\n MMServer server=new MMServer(50000);\n }catch (IOException ioe){\n System.exit(0);\n }\n \n }", "public ServerSocket createServerSocket(int arg0, int arg1) throws IOException {\n return null;\n }", "private Server()\n\t{\n\t}", "public void addServer(String nameServer) { \n Server server = new Server(nameServer);\n serversList.add(server);\n }", "public void openServer() {\n try {\n this.serverSocket = new ServerSocket(this.portNumber);\n } catch (IOException ex) {\n System.out.println(ex);\n }\n }", "public static HttpsServer createServer(String address, int port) throws Exception {\n KeyManagerFactory kmf = KeyStoreHelper.getKeyManagerFactory();\n\n SSLContext sslcontext = SSLContext.getInstance(\"SSLv3\");\n sslcontext.init(kmf.getKeyManagers(), null, null);\n\n InetSocketAddress addr = new InetSocketAddress(address, port);\n HttpsServer server = HttpsServer.create(addr, CONNECTIONS);\n server.setHttpsConfigurator(new HttpsConfigurator(sslcontext) {\n @Override\n public void configure(HttpsParameters params) {\n try {\n // initialise the SSL context\n SSLContext context = getSSLContext();\n SSLEngine engine = context.createSSLEngine();\n params.setNeedClientAuth(false);\n params.setCipherSuites(engine.getEnabledCipherSuites());\n params.setProtocols(engine.getEnabledProtocols());\n\n // Set the SSL parameters\n SSLParameters sslParameters = context.getSupportedSSLParameters();\n params.setSSLParameters(sslParameters);\n\n } catch (Exception e) {\n LOG.error(\"Failed to create HTTPS configuration!\", e);\n }\n }\n });\n return server;\n }", "public Server(int port) throws IOException{\n\t\tsuper();\n\t\tthis.serversocket= new java.net.ServerSocket(port);\n\t\t\n\t\tif (DEBUG){\n\t\t\tSystem.out.println(\"Server socket created:\" + this.serversocket.getLocalPort());\n\t\t\tclient_list.add(String.valueOf(this.serversocket.getLocalPort()));\n\t\t}\n\t}", "public static LocalServer create(String confFile) {\n LocalServerConfig conf = LocalServerConfig.create()\n .parse(confFile)\n .build();\n return create(conf);\n }", "public MyModel() {\n mazeGeneratingServer = new Server(5400, 1000, new ServerStrategyGenerateMaze());\n solveSearchProblemServer = new Server(5401, 1000, new ServerStrategySolveSearchProblem());\n //Raise the servers\n }", "public static ServerSocket createServerSocket(String hostName, int port) throws IOException {\n\t\tServerSocket serverSocket = new ServerSocket();\n\t\tInetSocketAddress endpoint = new InetSocketAddress(hostName, port);\n\t\tserverSocket.bind(endpoint);\n\t\treturn serverSocket;\n\t}", "public Server() {\n try {\n welcomeSocket = new ServerSocket(PORT);\n System.out.println(\"Server listening on \" + PORT);\n } catch (IOException e) {\n System.out.println(\"Error creating welcome socket. Is this socket available?\");\n }\n }", "private Server() {\r\n\r\n\t\t// Make sure that all exceptions are written to the log\r\n\t\tThread.setDefaultUncaughtExceptionHandler(new UncaughtExceptionHandler());\r\n\r\n\t\tnew Thread() {\r\n\t\t\t@Override\r\n\t\t\tpublic void run() {\r\n\r\n\t\t\t\t/*\r\n\t\t\t\t * Find all controllers and initialize them\r\n\t\t\t\t * \r\n\t\t\t\t */\r\n\t\t\t\tReflections reflections = new Reflections(\"net.yourhome.server\");\r\n\t\t\t\tSet<Class<? extends IController>> controllerClasses = reflections.getSubTypesOf(IController.class);\r\n\r\n\t\t\t\tfor (final Class<? extends IController> controllerClass : controllerClasses) {\r\n\t\t\t\t\tif (!Modifier.isAbstract(controllerClass.getModifiers())) {\r\n\t\t\t\t\t\tnew Thread() {\r\n\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\t\tMethod factoryMethod;\r\n\t\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\t\tfactoryMethod = controllerClass.getDeclaredMethod(\"getInstance\");\r\n\t\t\t\t\t\t\t\t\tIController controllerObject = (IController) factoryMethod.invoke(null, null);\r\n\t\t\t\t\t\t\t\t\tServer.this.controllers.put(controllerObject.getIdentifier(), controllerObject);\r\n\t\t\t\t\t\t\t\t\tSettingsManager.readSettings(controllerObject);\r\n\t\t\t\t\t\t\t\t\tcontrollerObject.init();\r\n\t\t\t\t\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t\t\t\t\tServer.log.error(\"Could not instantiate \" + controllerClass.getName() + \" because getInstance is missing\", e);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}.start();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}.start();\r\n\r\n\t}", "public static void main(String[] args) {\r\n new Server();\r\n }", "public Client() {\n initComponents();\n \n Server server = new Server();\n server.start();\n \n }", "TestNamingServer(Test test) throws IOException\n {\n this.test = test;\n this.registration_skeleton = HttpServer.create(new InetSocketAddress(REGISTRATION_PORT), 0);\n this.registration_skeleton.setExecutor(Executors.newCachedThreadPool());\n\n this.service_skeleton = HttpServer.create(new InetSocketAddress(SERVICE_PORT), 0);\n this.service_skeleton.setExecutor(Executors.newCachedThreadPool());\n\n this.gson = new Gson();\n }", "public KVServerInstance createServerInstance(KVCommunicationModule com, KVServer master){\n KVServerInstance newInstance = new KVServerInstance(com,master);\n newInstance.changeLogLevel(kv_out.getOutputLevel(),kv_out.getLogLevel());\n return newInstance;\n }", "public StorageServer(File root, int client_port, int command_port)\n {\n InetSocketAddress addrStorage, addrCommand;\n if (root == null) {\n throw new NullPointerException(\"Root is null\");\n }\n \n this.root = root;\n if(client_port > 0) {\n addrStorage = new InetSocketAddress(client_port);\n storage = new Skeleton<Storage>(Storage.class, this, addrStorage);\n } else {\n \tstorage = new Skeleton<Storage>(Storage.class, this);\n }\n\n if(command_port > 0) {\n addrCommand = new InetSocketAddress(command_port);\n command = new Skeleton<Command>(Command.class, this, addrCommand);\n } else {\n \tcommand = new Skeleton<Command>(Command.class, this);\n }\n\n }", "public static LocalServer attach(Location serverRoot) {\n return create(serverRoot, DeltaConst.SERVER_CONFIG); \n }", "public void startServer() {\n server.start();\n }", "public ServerMain( int port )\r\n\t{\r\n\t\tthis.port = port;\r\n\t\tserver = new Server( this.port );\r\n\t}", "public OServerConfiguration() {}", "public Server() throws IOException {\n System.out.println(\"\\t Server Started \\n\");\n }", "public ServerSocket createServerSocket(int arg0) throws IOException {\n return null;\n }", "public static void main(String[] args) {\n\t\tnew Server();\n\t}", "@Override\n public void create() {\n setScreen(new ServerScreen(\n new RemoteGame(),\n new SocketIoGameServer(HOST, PORT)\n ));\n }", "public static EpitrelloDataServerice creator() {\n\t\tif(dataServerice == null) {\n\t\t\tdataServerice = new DataService();\n\t\t}\n\t\treturn dataServerice;\n\t}", "public Server(GameManager gameManager) {\n this.gameManager = gameManager;\n this.clientHandlerMap = Collections.synchronizedMap(new HashMap<>());\n this.lock = new Object();\n this.isSizeSet = false;\n }", "public Server() {\n print_addr();\n follow_updates();\n }", "public WebServer ()\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t{\r\n\t\tthis.shost = DEF_HOST; \t\t\t\t\t\t\t\t\r\n\t\tthis.sPort = DEF_PORT; \t\t\t\t\t\t\t\t\r\n\t}", "public static void main(String[] args) {\n\t\tnew sever();\n\t}", "public static HttpServer startServer() {\n // create a resource config that scans for JAX-RS resources and providers\n // in com.example.rest package\n final ResourceConfig rc = new ResourceConfig().packages(\"com.assignment.backend\");\n rc.register(org.glassfish.jersey.moxy.json.MoxyJsonFeature.class);\n rc.register(getAbstractBinder());\n rc.property(ServerProperties.BV_SEND_ERROR_IN_RESPONSE, true);\n rc.property(ServerProperties.BV_DISABLE_VALIDATE_ON_EXECUTABLE_OVERRIDE_CHECK, true);\n\n // create and start a new instance of grizzly http server\n // exposing the Jersey application at BASE_URI\n return GrizzlyHttpServerFactory.createHttpServer(URI.create(BASE_URI), rc);\n }", "public ServerTest() {\n\t\tsuper();\n\t}", "private PSStartServerFactory() {\n if(instance == null)\n instance = new PSStartServerFactory();\n }", "public EnvironmentServerSocket createServerSocket(int port) throws IOException {\n return new EnvironmentServerSocketImpl(new ServerSocket(port), this);\n }", "public void startServer() {\n // configure the server properties\n int maxThreads = 20;\n int minThreads = 2;\n int timeOutMillis = 30000;\n\n // once routes are configured, the server automatically begins\n threadPool(maxThreads, minThreads, timeOutMillis);\n port(Integer.parseInt(this.port));\n this.configureRoutesAndExceptions();\n }", "private Main startJndiServer() throws Exception {\n\t\tNamingServer namingServer = new NamingServer();\n\t\tNamingContext.setLocal(namingServer);\n\t\tMain namingMain = new Main();\n\t\tnamingMain.setInstallGlobalService(true);\n\t\tnamingMain.setPort( -1 );\n\t\tnamingMain.start();\n\t\treturn namingMain;\n\t}", "public SocketServer() {\n \n super();\n start();\n\n }", "public ServerConnecter() {\r\n\r\n\t}", "public Server(int port)\r\n\t\t{\r\n log(\"Initialising port \" + port);\r\n\r\n\t\t// Set the port\r\n\t\tthis.port = port;\r\n\r\n // Create the server socket\r\n createServerSocket();\r\n \t}", "public void startServer() {\n System.out.println(\"Inicie\");\n httpServer = new HttpServer();\n httpServer.registerProessor(\"/App\", this);\n try {\n httpServer.start();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public Server() {\n initComponents();\n }", "public Server() {\n initComponents();\n }", "protected NettyServer getServer(String result)\n {\n String[] str = result.split(\"\\\\|\");\n NettyServer server = new NettyServer();\n if (str.length == 2)\n {\n server.setIp(str[0]);\n server.setPort(Integer.parseInt(str[1]));\n return server;\n }\n else\n {\n return null;\n }\n }", "public Server(int port) {\r\n \r\n this.m_Port = port;\r\n this.m_Clients = new TeilnehmerListe();\r\n }", "private static void setupServerContext(){\n\n serverContext.set(new ServerContext());\n serverContext.get().bgThreadIds = new int[GlobalContext.getNumTotalBgThreads()];\n serverContext.get().numShutdownBgs = 0;\n serverContext.get().serverObj = new Server();\n\n }", "public ServerConnection()\n {\n //Initializing of the variables used in the constructor\n this.hostAddress = \"http://localhost\";\n this.port = 8882;\n }", "public MyServer() {\n try {\n \ttimer = new Timer(1000, timerListener());\n regularSocket = new ServerSocket(7777);\n webServer = new Server(new InetSocketAddress(\"127.0.0.1\", 80));\n WebSocketHandler wsHandler = new WebSocketHandler() {\n\t @Override\n\t public void configure(WebSocketServletFactory factory) {\n\t factory.register(HumanClientHandler.class);\n\t }\n\t };\n\t \n webServer.setHandler(wsHandler);\n\t webServer.start();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public TestServerApi()\r\n\t{\r\n\t\t\r\n\t}", "public static KitchenServer getInstance() {\r\n if (instance == null) {\r\n instance = new KitchenServer();\r\n }\r\n return instance;\r\n }", "private void initServerSocket()\n\t{\n\t\tboundPort = new InetSocketAddress(port);\n\t\ttry\n\t\t{\n\t\t\tserverSocket = new ServerSocket(port);\n\n\t\t\tif (serverSocket.isBound())\n\t\t\t{\n\t\t\t\tSystem.out.println(\"Server bound to data port \" + serverSocket.getLocalPort() + \" and is ready...\");\n\t\t\t}\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tSystem.out.println(\"Unable to initiate socket.\");\n\t\t}\n\n\t}", "public static void main(String[] args) {\n\t\tserverManager = new ServerManager(8031);\n\t\t\n\t}", "public ServerS(int PortC){\r\n\t\ttry{\r\n\t\t\tsServer = new ServerSocket(PortC);\r\n\t\t\tescoltant = false;\r\n\t\t}catch(IOException e){\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public Server(){\n\t\t//-- Crear datos default\n\t\tSport s = new Sport(\"Soccer\",\"soccer.png\");\n\t\tSport b = new Sport(\"Basketball\",\"basketball.png\");\n\t\tTeam t1 = s.addTeam(\"Tigres\");\n\t\tTeam t2 = s.addTeam(\"Rayados\");\n\t\ts.addGame(t1,t2);\n\t\t\n\t\tdeportes.add(s);\n\t\tdeportes.add(b);\n\t}", "private static void createServerSocket() throws SocketTimeoutException, IOException, SocketTimeoutException {\r\n serverSocket.setSoTimeout(10000);\r\n socket = serverSocket.accept();\r\n System.out.println(\"Server: connection to: \" + socket.getInetAddress());\r\n }", "@Override\n\tpublic IChatServer createNewRoomServer(IChatroom chatroom) throws RemoteException {\n\t\tChatServer chatServer = new ChatServer(this, chatroom);\n\t\tusr2MdlAdpt.createMiniMVC(chatServer);\n\t\tfor (IChatServer that : chatroom.getChatServers()) {\n\t\t\tthat.joinChatroom(chatServer);\n\t\t\tchatroom.addChatServer(that);\n\t\t}\n\t\taddRoom(chatroom);\n\t\tchatroom.addChatServer(chatServer);\n\t\treturn chatServer;\n\t}", "public interface Server {\n void register(String serverName, Class impl) throws Exception;\n\n void start() throws IOException;\n\n\n}", "public ServerThread(MyServer server) {\n\t\tthis.server = server;\n\t}", "protected static AuoServer getServer() {\n return server;\n }" ]
[ "0.73401296", "0.7339507", "0.7134376", "0.70553625", "0.6996883", "0.68431467", "0.67824227", "0.67354804", "0.67314464", "0.66473645", "0.65863484", "0.6520659", "0.6514807", "0.6489184", "0.6479771", "0.64677835", "0.64338225", "0.6416669", "0.6404338", "0.6362922", "0.63450646", "0.63158494", "0.6307993", "0.6272828", "0.62623346", "0.62581986", "0.62359744", "0.61858386", "0.6181537", "0.61721087", "0.6165402", "0.6162297", "0.6147181", "0.6108967", "0.6102072", "0.60795635", "0.6066414", "0.60518265", "0.6040499", "0.60370797", "0.60104346", "0.6009633", "0.6005161", "0.59982", "0.5991664", "0.59904945", "0.5925224", "0.5913293", "0.5904831", "0.5894414", "0.588662", "0.58846885", "0.5880279", "0.58774334", "0.5875197", "0.5860004", "0.58482206", "0.5844191", "0.58327055", "0.58223563", "0.5816308", "0.5808292", "0.57978815", "0.5791628", "0.5780517", "0.5778115", "0.5775912", "0.5770615", "0.57675344", "0.5764862", "0.57614785", "0.57531995", "0.5752363", "0.5749355", "0.574693", "0.5744896", "0.5709666", "0.5702215", "0.5699558", "0.56947905", "0.56814784", "0.5674234", "0.5666733", "0.5653146", "0.5653146", "0.56311756", "0.5625898", "0.5623407", "0.56190085", "0.56154376", "0.55779", "0.5577361", "0.55770123", "0.5559558", "0.5545269", "0.55324584", "0.5532061", "0.55310637", "0.55240154", "0.5523438", "0.55224925" ]
0.0
-1
Register with RMI and run the GP.
public synchronized void runGP() throws RemoteException { initRMI(); initGP(); log.info("Starting program dispatcher"); new Thread(this).start(); int targetFitness = 0; for (ISimulator simulator : simulators) targetFitness += simulator.getTerminationFitness(); for (int i = 1; i <= generations; i++) { while (programsRemaining > 0) try { wait(); } catch (InterruptedException ignored) { } if (best >= targetFitness) { log.info("Successful individual found."); break; } resetStatistics(); leader = frontRunner; if (i % 5 == 0) { log.info("Writing checkpoint"); writeCheckpoint(String.format("gen_%08d", checkpointFileIndex)); checkpointFileIndex++; } log.info("Creating generation #" + Integer.toString(i)); programsRemaining = geneticProgram.getPopulationSize(); geneticProgram.createNextGeneration(); log.info("Created generation #" + Integer.toString(i)); } cleanup(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void run() {\n\t try{\n \t\tRegistry registry = LocateRegistry.createRegistry(1099);\n \t\tTestUnitImpl testUnit = new TestUnitImpl();\n \t\tProxyMonitoringUnit proxyUnit= new ProxyMonitoringUnit();\n\t registry.rebind(\"TestingUnit\", testUnit);\n\t registry.rebind(\"ProxyUnit\", proxyUnit);\n\t System.out.println(\"server.RMI Server is ready.\");\n \t}catch(RemoteException e){\n \t\te.printStackTrace();\n \t}\n \t\n }", "@Override\n\tpublic void run() {\n\t\t\t\n\t\t\ttry {\n\t\t\tLocateRegistry.createRegistry(port);\n\t\t\t}catch(RemoteException e){\n\t\t\t\tSystem.out.println(\"Another peer is running in this machine\");\n\t\t\t}\n\t\t\t\n\t\t\tInterfaceUI rmi;\n\t\t\ttry {\n\t\t\t\trmi = (InterfaceUI)UnicastRemoteObject.exportObject(this, 0);\n\t\t\t\tRegistry registry = LocateRegistry.getRegistry();\n\t\t\t\tregistry.rebind(this.id, rmi);\n\t\t\t\n\t\t\t\n\t\t\t} catch (RemoteException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t\n\t\t\n\t}", "@Override\n\tpublic void run() {\n\t\tlogger.info(\" reg execute time {} \",System.nanoTime());\n\t\ttry {\n\t\t\tipsService.reg();\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void initRMI() throws RemoteException {\n log.info(\"Registering with RMI\");\n Registry registry = LocateRegistry.getRegistry();\n registry.rebind(address, this);\n }", "public static void main(String[] args) throws NotBoundException, ClassNotFoundException, SQLException {\n\t\ttry {\n\t\t\tRegistry registry = LocateRegistry.createRegistry(1099);\n\t\t\tregistry.rebind(\"server\", (RMIServerInterface) new RMIServer());\n\t\t\tSystem.out.println(\"Rmi Server Running...\");\n\t\t} catch (AccessException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (RemoteException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void start() {\n _serverRegisterProcessor = new ServerRegisterProcessor();\n _serverRegisterProcessor.start();\n }", "private void register() {\n\t\tInetAddress iNA;\n\t\ttry {\n\t\t\tiNA = InetAddress.getLocalHost();\n\t\t\tmyIPAddress = iNA.getAddress();\n\t\t\tOverlayNodeSendsRegistration register = new OverlayNodeSendsRegistration(\n\t\t\t\t\tmyIPAddress, myServerThreadPortNum);\n\t\t\tthis.registry.getSender().sendData(register.getBytes());\n\t\t} catch (UnknownHostException e1) {\n\t\t\tSystem.out.println(e1.getMessage()\n\t\t\t\t\t+ \" Trouble sending registration event.\");\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e.getMessage()\n\t\t\t\t\t+ \" Trouble sending registration event.\");\n\t\t}\n\t}", "public static void main(String[] args) {\n\n try {\n\n Registry registry = LocateRegistry.createRegistry( 1888);\n registry.rebind(\"YStudentServerImpl\", new YStudentServerImpl());\n\n\n }\n catch (Exception ex){\n System.err.println(\"YStudentServerImpl exeption\");\n ex.printStackTrace();\n }\n\n\n }", "public static void main(String[] args) {\n /* obtenção da localização do serviço de registo RMI */\n \n // nome do sistema onde está localizado o serviço de registos RMI\n String rmiRegHostName;\n \n // port de escuta do serviço\n int rmiRegPortNumb; \n\n RegistryConfig rc = new RegistryConfig(\"config.ini\");\n rmiRegHostName = rc.registryHost();\n rmiRegPortNumb = rc.registryPort();\n \n /* instanciação e instalação do gestor de segurança */\n if (System.getSecurityManager() == null) {\n System.setSecurityManager(new SecurityManager());\n }\n \n /* instanciação do objecto remoto que representa o referee site e geração de um stub para ele */\n RefereeSite referee_site = null;\n RefereeSiteInterface refereeSiteInterface = null;\n referee_site = new RefereeSite();\n \n try {\n refereeSiteInterface = (RefereeSiteInterface) UnicastRemoteObject.exportObject(referee_site, rc.refereeSitePort());\n } catch (RemoteException e) {\n System.out.println(\"Excepção na geração do stub para o referee site: \" + e.getMessage());\n System.exit(1);\n }\n \n System.out.println(\"O stub para o referee site foi gerado!\");\n\n /* seu registo no serviço de registo RMI */\n String nameEntryBase = RegistryConfig.registerHandler;\n String nameEntryObject = RegistryConfig.refereeSiteNameEntry;\n Registry registry = null;\n RegisterInterface reg = null;\n\n try {\n registry = LocateRegistry.getRegistry(rmiRegHostName, rmiRegPortNumb);\n } catch (RemoteException e) {\n System.out.println(\"Excepção na criação do registo RMI: \" + e.getMessage());\n System.exit(1);\n }\n \n System.out.println(\"O registo RMI foi criado!\");\n\n try {\n reg = (RegisterInterface) registry.lookup(nameEntryBase);\n } catch (RemoteException e) {\n System.out.println(\"RegisterRemoteObject lookup exception: \" + e.getMessage());\n System.exit(1);\n } catch (NotBoundException e) {\n System.out.println(\"RegisterRemoteObject not bound exception: \" + e.getMessage());\n System.exit(1);\n }\n\n try {\n reg.bind(nameEntryObject, refereeSiteInterface);\n } catch (RemoteException e) {\n System.out.println(\"Excepção no registo do referee site: \" + e.getMessage());\n System.exit(1);\n } catch (AlreadyBoundException e) {\n System.out.println(\"O referee site já está registado: \" + e.getMessage());\n System.exit(1);\n }\n \n System.out.println(\"O referee site foi registado!\");\n }", "public abstract void register();", "void register();", "public static void main(String args[]) {\n try {\n LocateRegistry.createRegistry(80);\n OperacoesImpl obj = new OperacoesImpl();\n Naming.rebind(\"ServerRMI\", obj);\n System.out.println(\"Server RMI pronto.\");\n } catch (Exception e) {\n System.out.println(\"Server erro\" + e.getMessage());\n }\n }", "public static void main(String args[]) {\n try {\n //Cria HelloImpl\n //Runtime.getRuntime().exec(\"rmiregistry 1010\");\n //Registry registry = LocateRegistry.getRegistry(2001);\n \tSystem.setProperty(\"java.rmi.server.hostname\",\"192.168.0.30\");\n Registry registry = LocateRegistry.createRegistry(2001);\n Implementation obj = new Implementation();\n registry.bind(\"HelloServer\", obj);\n System.out.println(\"Hello Server pronto.\");\n } catch (Exception e) {\n System.out.println(\"HelloServer erro \" + e.getMessage());\n }\n }", "public static void main(String[] args) throws RemoteException{\n \r\n Registry registry= LocateRegistry.createRegistry(5099); //registrar a nuestro cliente \r\n registry.rebind(\"hello\", new ObjectRemote());\r\n }", "public static void main(String[] args) throws Exception{\n /* get location of the generic registry service */\n String rmiRegHostName;\n int rmiRegPortNumber;\n \n Scanner sc = new Scanner(System.in);\n int listeningPort = 22324;\n String nameEntry = RegistryConfig.bettingCenterNameEntry;\n \n System.out.println(\"Node process host name(RMI Service Host Name): \");\n rmiRegHostName = sc.nextLine();\n System.out.println(\"Node process port number(RMI Service Port Number): \");\n rmiRegPortNumber = sc.nextInt();\n \n /* Instanciate and install security manager */\n if(System.getSecurityManager() == null){\n System.setSecurityManager(new SecurityManager());\n }\n \n /* Get Central Registry */\n Registry registry = null;\n try{\n registry = LocateRegistry.getRegistry(rmiRegHostName, rmiRegPortNumber);\n }catch(RemoteException e){\n System.err.println(\"Wrong registry location!!!\");\n System.exit(1);\n }\n System.out.println(\"RMI Registry created!\");\n \n /* Get LogRepository register */\n Log_Interface log_itf = null;\n try{\n log_itf = (Log_Interface) registry.lookup(RegistryConfig.logRepositoryNameEntry);\n } catch (NotBoundException e){\n System.out.println(\"LogRepository lookup exception: \" + e.getMessage());\n e.printStackTrace();\n System.exit(1);\n }\n \n /* Create Betting Center Stub */\n Betting_Center betting_center = new Betting_Center(log_itf, GlobalInfo.numSpec, rmiRegHostName, rmiRegPortNumber);\n BettingCenter_Itf betting_center_itf = null;\n \n try{\n betting_center_itf = (BettingCenter_Itf) UnicastRemoteObject.exportObject(betting_center, listeningPort);\n } catch (RemoteException e) {\n System.out.println(\"Betting stub create exception: \" + e.getMessage());\n e.printStackTrace();\n System.exit(1);\n }\n System.out.print(\"Betting Center Stub created!\\n\");\n \n /* Register RMI register */\n Register register = null;\n String nameEntryBase = RegistryConfig.rmiRegisterName;\n try {\n register = (Register) registry.lookup(nameEntryBase);\n } catch (RemoteException | NotBoundException ex) {\n System.out.println(\"Wrong register location!\");\n System.exit (1);\n }\n \n try {\n register.bind(nameEntry, betting_center_itf);\n } catch (RemoteException e) {\n System.out.println(\"Betting Center register exception \" + e.getMessage());\n e.printStackTrace();\n System.exit(1);\n } catch (Exception e) {\n System.out.println(\"Betting Center is already registered: \" + e.getMessage());\n e.printStackTrace();\n System.exit(1);\n }\n System.out.println(\"Betting Center module has been registered!\");\n }", "public void registerWithServer();", "private void init() {\n System.out.println(\"Binding to RMIRegistry...\");\n String theName = getConfigManager().getString(\"REMOTE_NAME\");\n if (null != theName) {\n bind(theName, this);\n } else {\n LoggingServices.getCurrent().logMsg(getClass().getName(), \"init()\"\n , \"Could not find name to bind to in registry.\"\n , \"Make sure loyalty.cfg contains a RMIREGISTRY entry.\", LoggingServices.MAJOR);\n }\n }", "void register() {\n Thread patientLoaderThread = new Thread(new RegistrationRunnable(true));\n patientLoaderThread.start();\n }", "public static void main(String[] args) {\n\n\t\tString registryHost;\n\t\tint registryPort;\n\t\tString localIP = \"127.0.1.1\";\n\t\ttry {\n\t\t\tlocalIP = Inet4Address.getLocalHost().getHostAddress();\n\t\t} catch (UnknownHostException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tif(args.length == 2) {\n\t\t\tregistryHost = args[0];\n\t\t\tregistryPort = Integer.parseInt(args[1]);\n\t\t} else if (args.length == 3) {\n\t\t\tregistryHost = args[0];\n\t\t\tregistryPort = Integer.parseInt(args[1]);\n\t\t\tlocalIP = args[2];\n\t\t} else {\n\t\t\tSystem.out.print(\"Usage: java RMIserver <Registry host> <Registry port> [ServerIP]\");\n\t\t\treturn;\t\t\t\n\t\t}\n\t\tRMIserver myserver = new RMIserver(localIP);\n\n\t\tRegistry registry;\n\t\tregistry = LocateRegistry.getRegistry(registryHost, registryPort);\n\n\t\twhile (true) {\n\t\t\tSystem.out.print(myserver.getPrompt());\n\t\t\tString cmdl = System.console().readLine();\n\t\t\tString cmdargs[] = cmdl.split(\" \");\n\t\t\tif (cmdargs[0].equals(\"register\")) {\n\t\t\t\tString class_name = cmdargs[1];\n\t\t\t\tString class_stub_name = cmdargs[1] + \"_stub\";\n\t\t\t\t// start a new thread to handle this particular server\n\t\t\t\t// object\n\t\t\t\tRunnable job = new ServerHandler(registry, class_name,\n\t\t\t\t\t\tclass_stub_name, localIP);\n\t\t\t\tThread t = new Thread(job);\n\t\t\t\tt.start();\n\t\t\t} else if (cmdargs[0].equals(\"exit\")) {\n\t\t\t\tSystem.out.println(\"Server Exisiting...\");\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tmyserver.printUsage();\n\t\t\t}\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\ttry {\n\t\t\tRegistryInterface rInterface = new RegistryServer();\n\t\t\tint portnum=Integer.parseInt(args[1]);\n\t\t\tInetAddress iAddress=InetAddress.getByName(args[0]);\n\t\t\tSocketFactory sFactory=new SocketFactory(iAddress);\n\t\t\tRegistry registry = LocateRegistry.createRegistry(portnum,null,sFactory);\n\t\t\tregistry.bind(\"registryServer\", rInterface);\n\t\t} catch (RemoteException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (AlreadyBoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (UnknownHostException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void register(){\n }", "public static void main(String args[])\r\n {\n System.setSecurityManager(new RMISecurityManager());\r\n\r\n try\r\n {\r\n // Create ResultRMIImpl\r\n ResultRMIImpl myResult = new ResultRMIImpl(\"//Binita/myResultRMI\");\r\n System.out.println(\"ResultRMI Server ready.\");\r\n } \r\n catch (Exception e)\r\n { \r\n System.out.println(\"Exception: \" + e.getMessage());\r\n e.printStackTrace();\r\n }\r\n }", "public static void main (String args[]) throws Exception{\n\t\t// 1. Before starting the nodes, manually create the registry with the rmiregistry command.\n\t\t// 2. Connect to the registry. Call getRegistry method of the NodeImplementation class on port registryPort.\n\t\t// 3. Register in the registry, notify the others that you've joined the network.\n\t\t// 4. If there are enough nodes have joined then start the algorithm.\n\t\t\n\t\tString myURL = args[0];\n\t\tint registryPort = Integer.parseInt(args[1]);\n\t\tint nodePort = Integer.parseInt(args[2]);\n\t\tString upstreamURL = args[3];\n\t\tString downstreamURL = args[4];\n//\t\tSystem.out.println(registryPort + \"\" + nodePort);\n\t\t// Create and install a security manager\n\t\tif (System.getSecurityManager() == null){\n\t\t\tSystem.setSecurityManager(new RMISecurityManager());\n\t\t}\n\t\tGSImplementation node = new GSImplementation(registryPort, nodePort, upstreamURL, downstreamURL, expectedNetworkSize, myURL);\n\t\tnode.notifyOthers();\n\t\tSystem.out.println(\"Waiting for the incoming messages...\");\n\t}", "public void initRMI() {\n\t\ttry {\n\t\t\t//creo RMI handler\n\t\t\tGossip_RMI_handler handler = new Gossip_RMI_handler(data);\n\t\t\t//esporto l'interfaccia\n\t\t\tGossip_RMI_server_interface stub = (Gossip_RMI_server_interface)UnicastRemoteObject.exportObject(handler, 0);\n\t\t\tLocateRegistry.createRegistry(Gossip_config.RMI_PORT);\n\t\t\tRegistry r = LocateRegistry.getRegistry(Gossip_config.RMI_PORT);\n\t\t\tr.rebind(Gossip_config.RMI_NAME, stub);\n\t\t\t\n\t\t} catch (RemoteException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void run() {\n sendServerRegistrationMessage();\n if (serviceConnectedListener != null) {\n serviceConnectedListener.onServiceConnected(serviceDevice);\n }\n\n isRegistered = true;\n }", "public static void main(String[] args) throws Exception {\n LocateRegistry.createRegistry(DBRASSchemeInterface.PORT, new SslRMIClientSocketFactory(), new SslRMIServerSocketFactory(null,null, true));\n System.out.println(\"RMI registry running on port \"+DBRASSchemeInterface.PORT);\n // Sleep forever\n Thread.sleep(Long.MAX_VALUE);\n }", "public static void main(String args[]) {\n ContentServer cs = new ContentServer();\n try {\n // Bind the RMI Object\n ContentServerIntf stub =\n (ContentServerIntf) UnicastRemoteObject.exportObject(cs, 0);\n LocateRegistry.createRegistry(40000);\n Registry registry = LocateRegistry.getRegistry(InetAddress.getLocalHost().getHostAddress(), 40000);\n registry.rebind(cs.getCsPublicIp(), stub);\n\n // start the ContentServer\n cs.setUp();\n cs.start();\n\n // register with proxy\n NodeData nodeData = new NodeData();\n nodeData.setIpAddress(cs.getCsPublicIp());\n Registry masterReg = LocateRegistry.getRegistry(\"52.7.96.47\", 50000);\n MasterInter masterInter = (MasterInter) masterReg.lookup(\"master\");\n masterInter.join(nodeData);\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public static void main(String[] args) throws Exception {\n Registry registry = LocateRegistry.createRegistry(8080);\n registry.rebind(\"print\", new PrintServant());\n }", "@Override\n public void run() {\n\n Message registerMessage = new Message(REGISTER_SATELLITE, satelliteInfo);\n try\n {\n\n Socket server = new Socket(serverInfo.getHost(), serverInfo.getPort());\n ObjectOutputStream toServer = new ObjectOutputStream(server.getOutputStream());\n System.out.println(\"[Satellite.run] registering satellite with server\");\n toServer.writeObject(registerMessage);\n }\n catch(IOException e)\n {\n System.err.println(e);\n }\n\n\n // create server socket with port in properties\n // ---------------------------------------------------------------\n try\n {\n ServerSocket serverSocket = new ServerSocket(satelliteInfo.getPort());\n System.out.println(\"[Satellite] successfully set up ServerSocket.\");\n // start taking job requests in a server loop\n // ---------------------------------------------------------------\n while (true)\n {\n Socket socket = serverSocket.accept();\n (new SatelliteThread(socket, this)).start();\n }\n }\n catch(IOException e)\n {\n System.err.println(e);\n }\n }", "public static void main(String[] args) {\n System.out.println(\"Begin Server...\");\n\n\n\n try {\n Remote r = Naming.lookup(\"UniversalRegistry\");\n IUniversalRegistry iur = (IUniversalRegistry)r;\n\n //on ajoute des voitures dans le registre universel\n Voiture v1 = new Voiture(1);\n iur.bind(\"v1\",v1);\n Voiture v2 = new Voiture(2);\n iur.bind(\"v2\",v2);\n\n\n //On ajoute des voitures electrique dans le registre universel\n VoitureElectrique ve = new VoitureElectrique(4,0);\n iur.bind(\"ve\",ve);\n VoitureElectrique ve1 = new VoitureElectrique(4,1);\n iur.bind(\"ve1\",ve1);\n\n VoitureElectrique ve3 = new VoitureElectrique(4,1);\n iur.bind(\"ve3\",ve3);\n\n ClassTest classTest = new ClassTest();\n iur.bind(\"cl\",classTest);\n\n\n }\n\n catch(Exception e){\n e.printStackTrace();\n }\n\n\n\n }", "public void beginRegister() {}", "public void start() {\n\t\trmiUtils.startRMI(IRMI_Defs.CLASS_SERVER_PORT_CLIENT);\n\n\t\ttry {\n\t\t\tview.setRemoteHost(rmiUtils.getLocalAddress()); //TODO Is this stored somewhere?\n\t\t\tuser = new User(\"default\", rmiUtils.getLocalAddress(), this);\n\t\t\tview.append(\"Create User \" + user.getName() + \"\\n\");\n\n\t\t\tregistry = rmiUtils.getLocalRegistry();\n\t\t\tIUser stub = (IUser) UnicastRemoteObject.exportObject(user, IUser.BOUND_PORT);\n\t\t\tview.append(\"Found registry: \" + registry + \"\\n\");\n\n\t\t\tregistry.rebind(IUser.BOUND_NAME, stub);\n\t\t\tview.append(\"IUser bound to \" + IUser.BOUND_NAME + \"\\n\");\n\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(\"Error getting local address: \" + e);\n\t\t}\n\t}", "private void register() {\n Intent registrationIntent = new Intent(REQUEST_REGISTRATION_INTENT);\n registrationIntent.setPackage(GSF_PACKAGE);\n registrationIntent.putExtra(\n EXTRA_APPLICATION_PENDING_INTENT, PendingIntent.getBroadcast(context, 0, new Intent(), 0));\n registrationIntent.putExtra(EXTRA_SENDER, senderId);\n context.startService(registrationIntent);\n }", "public static void main ( String args [] )\n {\n // Variable deceleration\n String hostname = \"localhost\" ; // Default host to use\n \n // Override the default values for hostname if passed through command line.\n if ( args [0].length () != 0 ) { hostname = args [0] ; }\n \n try\n {\n // Set the system property for \"java.rmi.server.hostname\".\n System.setProperty ( \"java.rmi.server.hostname\", hostname ) ;\n \n // Initialize the interface to access all the remote functions.\n HelloServerImplementation registerObject = new HelloServerImplementation () ;\n\n // Declare registry variable\n Registry registry ;\n \n // This try catch is to make sure that the registry is created\n try \n {\n // Try to get the remote object Registry for the local host on the default registry port of 1099.\n registry = LocateRegistry.getRegistry() ;\n registry.list() ; // Fetch the names bounded to the registry\n }\n // Catch the exception where communication with the registry fails and create the registry.\n catch ( RemoteException e ) \n {\n // Create the registry on the default rmi port 1099\n System.out.println ( \"RMI registry cannot be located at port \" + Registry.REGISTRY_PORT ) ;\n registry = LocateRegistry.createRegistry ( Registry.REGISTRY_PORT ) ;\n System.out.println ( \"RMI registry created at port \" + Registry.REGISTRY_PORT ) ;\n }\n \n // Once the registry is successfully created, rebind the HelloServerInterface to the remote reference created above.\n registry.rebind ( \"HelloServerInterface\", registerObject ) ;\n System.out.println ( \"Callback Server ready.\" ) ;\n }\n // Catch the exception and provide the necessary information to the user. \n catch ( Exception e ) { System.out.println ( \"Exception: \" + e.getMessage () ) ; e.printStackTrace () ; }\n }", "static void register() {\n }", "public static void main(String[] args) throws MalformedObjectNameException, InstanceAlreadyExistsException,\n\t\t\tMBeanRegistrationException, NotCompliantMBeanException {\n\t\tMBeanServer server = ManagementFactory.getPlatformMBeanServer();\n\t\tObjectName myJmxName = new ObjectName(\"jmxBean:name=myJmx\");\n\t\tserver.registerMBean(new MyJmx(), myJmxName);\n// TODO Auto-generated method stub\n\t\ttry {\n\t\t\tLocateRegistry.createRegistry(9999);\n\t\t\tJMXServiceURL url = new JMXServiceURL(\"service:jmx:rmi:///jndi/rmi://localhost:9999/jmxrmi\");\n\t\t\tJMXConnectorServer jcs = JMXConnectorServerFactory.newJMXConnectorServer(url, null, server);\n\t\t\tSystem.out.println(\"begin rmi start\");\n\t\t\tjcs.start();\n\t\t\tSystem.out.println(\"rmi start\");\n\t\t} catch (RemoteException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public static void main(String[] args) throws Exception {\n\n if(System.getSecurityManager() == null) {\n System.setSecurityManager(new SecurityManager());\n }\n\n if(args.length < 1) {\n System.exit(-1);\n }\n\n String domain = args[0];\n\n System.setProperty(\"java.rmi.server.hostname\", domain);\n\n SpaceImpl spaceImpl = getInstance();\n\n // Unexport to ensure no exceptions\n UnicastRemoteObject.unexportObject(spaceImpl, true);\n\n Space stub = (Space) UnicastRemoteObject.exportObject(spaceImpl, 0);\n\n Registry registry = LocateRegistry.createRegistry(Space.PORT);\n registry.rebind(Space.SERVICE_NAME, stub);\n\n System.out.println(\"SpaceImpl.main Registered and Ready.\");\n }", "public void registerWithRMC()\n\t{\n\t\t// Register with the RMC\n\t\tif(this.rmc.registerLMS(this.location)) {\n\t\t\tthis.log(\"Registered with RMC\");\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tthis.log(\"Failed to register with RMC. Probable name clash.\");\n\t\tSystem.exit(1);\n\t}", "public static void main(String[] args) {\n Registry registry = null;\n DepAirportInt depAirportInt = null;\n AirplaneInt airplaneInt = null;\n\n try {\n registry = LocateRegistry.getRegistry(\n SimulatorParam.RegistryName,\n SimulatorParam.RegistryPort);\n } catch (RemoteException e) {\n System.out.println(\"RMI registry creation exception: \" +\n e.getMessage());\n e.printStackTrace();\n System.exit(1);\n }\n System.out.println(\"RMI registry was created!\");\n\n try {\n depAirportInt = (DepAirportInt) registry.lookup(\"DepAirport\");\n airplaneInt = (AirplaneInt) registry.lookup(\"Airplane\");\n } catch (RemoteException e) {\n System.out.println(\"Shared Region look up exception: \" +\n e.getMessage());\n e.printStackTrace();\n System.exit(1);\n } catch (NotBoundException e) {\n System.out.println(\"Shared Region not bound exception: \" +\n e.getMessage());\n e.printStackTrace();\n System.exit(1);\n }\n\n // entities initialization\n Passenger[] passengers = new Passenger[SimulatorParam.TOTAL];\n\n\n for (int i = 0; i < SimulatorParam.TOTAL; i++) {\n passengers[i]=new Passenger(depAirportInt, airplaneInt, i);\n }\n\n // start of the simulation\n for (int i = 0; i < SimulatorParam.TOTAL; i++)\n passengers[i].start();\n\n // end of the simulation\n for (int i = 0; i < SimulatorParam.TOTAL; i++) {\n try {\n passengers[i].join();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n\n // end of the simulation\n\n }", "public void run() {\n\t\t\t\tmRegistrationAsyncTask = getRegisterAsyncTask(context, regId);\n\n\t\t\t\tExecutorHelper.executeAsyncTask(mRegistrationAsyncTask);\n\t\t\t}", "public void run() {\n Runtime.getRuntime().addShutdownHook(new MNOSManagerShutdownHook(this));\n\n OFNiciraVendorExtensions.initialize();\n\n this.startDatabase();\n\n try {\n final ServerBootstrap switchServerBootStrap = this\n .createServerBootStrap();\n\n this.setServerBootStrapParams(switchServerBootStrap);\n\n switchServerBootStrap.setPipelineFactory(this.pfact);\n final InetSocketAddress sa = this.ofHost == null ? new InetSocketAddress(\n this.ofPort) : new InetSocketAddress(this.ofHost,\n this.ofPort);\n this.sg.add(switchServerBootStrap.bind(sa));\n }catch (final Exception e){\n throw new RuntimeException(e);\n }\n\n }", "@Override\n public void run() {\n synchronized(_registries) {\n _udpServer.bcast(resp, _registries);\n }\n\n // Update each of the registration lists to remove outdated listeners\n updateRegistrations(_poseListeners);\n updateRegistrations(_imageListeners);\n updateRegistrations(_cameraListeners);\n updateRegistrations(_velocityListeners);\n updateRegistrations(_waypointListeners);\n synchronized(_sensorListeners) {\n for (Map<SocketAddress, Integer> sensorListener : _sensorListeners.values())\n updateRegistrations(sensorListener);\n }\n }", "public static void main(String[] args) {\n Servidor s = new Servidor();\n try{\n VoteSystem channel = (VoteSystem) UnicastRemoteObject.exportObject(s, 0);\n Registry register = LocateRegistry.createRegistry(1099);\n register.bind(\"VoteSystem\", channel);\n ServerGUI sgui= new ServerGUI();\n ServerThread st = new ServerThread(sgui);\n st.setDaemon(true);\n st.start();\n sgui.setVisible(true);\n }\n catch(Exception e){\n e.printStackTrace();\n }\n }", "public static void main(String args[]) throws Exception {\n\t\tLocateRegistry.createRegistry(1099);\n\t\tServer remote = new ServerImpl();\n\t\t//将远程服务对象绑定到指定JNDI。\n\t\tNaming.rebind(\"rmi://localhost:1099/HelloServiceImpl\", remote);\n\t}", "public static void main(String[] args) {\n\n try {\n MyRemote service = new MyRemoteImp1();\n Naming.rebind(\"Remote Hello\", service);\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n }", "public void register(RegistrationData d) {}", "public static void main(String[] args) throws RemoteException, MalformedURLException {\n\t\tAddC add = new AddC(); \r\n\t\tNaming.rebind(\"ADD\", add);\r\n\t\tSystem.out.println(\"Server Up and running\");\r\n\t}", "private void registerGCM()\n {\n Intent intent = new Intent(this, GcmIntentService.class);\n intent.putExtra(\"key\", \"register\");\n startService(intent);\n }", "public void initRMIBindings() {\n\tString name = null;\n\ttry {\n Configuration configuration=proxy.getConfiguration();\n if (configuration.accessLogViaRMI) {\n SipStack sipStack=proxy.getSipStack();\n Iterator it =sipStack.getListeningPoints();\n ListeningPoint lp = (ListeningPoint) it.next();\n String stackIPAddress = sipStack.getIPAddress();\n name = \"//\" + stackIPAddress + \":\" + 0 + \"/\" +\n sipStack.getStackName()\n + \"/\" + \"test.jainproxy.Registrar\";\n if (ProxyDebug.debug) {\n ProxyDebug.println(\"Exporting Registration Table \" + name);\n }\n Naming.rebind(name,this);\n }\n else {\n if (ProxyDebug.debug)\n ProxyDebug.println\n (\"We don't export the registrations because RMI is disabled.\");\n }\n } \n catch (Exception ex) {\n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Problem trying to export the Registration Table: \" + name);\n }\n\t ex.printStackTrace();\n\t}\n }", "@Override\r\n\tpublic void startup() {\n\t\tif(!initialized)\r\n\t\t\tinitOperation();\r\n\t\tregisterMBean();\r\n\t}", "public static void main(String[] args) throws RemoteException {\n\t\tServidorRMI server = new ServidorRMI();\n\t}", "private void startServer() throws RemoteException, AlreadyBoundException{\n\t\ttry{\n\t\t\tInsuranceImplementation impl = new InsuranceImplementation();\n\t\t\timpl.setIPAddress(ipHospital.getText());\n\t\t\timpl.setPortNumebr(Integer.parseInt(portHospital.getText()));\n\t\t\t\n\t\t\tRegistry registry = LocateRegistry.createRegistry(Integer.parseInt(portInsurance.getText()));\n\t\t\tregistry.bind(Constants.RMI_ID, impl); \n\t\t\t\n\t\t\tlogMessage(\"Insurance Server Started\");\n\t\t\t\n\t\t} catch (Exception exp)\n\t\t{\n\t\t\tlogMessage(\"ObjID already in use.\\nPlease kill the process running at port 5002\");\n\t\t\texp.printStackTrace();\n\t\t} \n\t\t\n\t}", "@Override\n public void register(Remote registerObj, String name) throws RemoteException\n {\n synchronized (supervisors)\n {\n Logger.getGlobal().log(Level.INFO, String.format(\"Register Supervisor: %s.\", name));\n addSupervisor(name);\n registry.rebind(name, registerObj);\n }\n }", "private void registToWX() {\n }", "public static void main(String[] args) {\n try {\n //创建一个远程对象\n\n String ip = args[0];\n String port = args[1];\n Integer totalSpace = args[2] == null ? 100 :Integer.valueOf(args[2]);\n ChunkServerProperties properties = new ChunkServerProperties();\n properties.setIp(ip);\n properties.setPort(port);\n\n IChunkServerService chunkServer = new BFSChunkServer(totalSpace,0,\"/\",ip);\n\n LocateRegistry.createRegistry(Integer.parseInt(port));\n\n String rmi = \"rmi://\"+properties.getServerIpPort()+\"/chunk_server\";\n Printer.println(rmi);\n Naming.bind(rmi,chunkServer);\n\n String masterRMI =\"rmi://127.0.0.1:8888/master\";\n\n IMasterService masterService =(IMasterService) Naming.lookup(\"rmi://127.0.0.1:8888/master\");\n\n\n masterService.registerChunkServer(properties);\n\n Printer.println(\"register to master \"+masterRMI + \" succcess\");\n\n } catch (RemoteException e) {\n e.printStackTrace();\n } catch (MalformedURLException e) {\n e.printStackTrace();\n } catch (AlreadyBoundException e) {\n e.printStackTrace();\n } catch (NotBoundException e) {\n e.printStackTrace();\n }\n }", "@Override\n public void register(Computer computer) throws RemoteException {\n final ComputerProxy computerProxy = new ComputerProxy(computer);\n computerProxies.put(computer, computerProxy);\n computerProxy.start();\n System.out.printf(\"Computer %d registered.%n\", computerProxy.computerId);\n }", "public static void main(String[] args) {\n\t\tif (args.length > 0) {\n\t\t\ttry {\n\t\t\t\t//RMI registry creation\n\t\t\t\tLocateRegistry.createRegistry(SettingsManager.getPortDaemon());\n\t\t\t\tSystem.out.println(messageHeader+\"RMI registry created\");\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.out.println(messageHeader+\"RMI registry exists already\");\n\t\t\t}\n\n\t\t\ttry {\n\t\t\t\t//Bind the daemon to the RMI register\n\t\t\t\tDaemonImpl demon = new DaemonImpl(args[0]);\n\t\t\t\tNaming.rebind(\"//\"+demon.getServerAddress()+\":\"+SettingsManager.getPortDaemon()+\"/DaemonImpl\",demon);\n\t\t\t\tSystem.out.println(messageHeader+\"Daemon bound in registry\");\n\t\t\t\t//Notify the JobManager of its availability\n\t\t\t\tJobManager jobManager = (JobManager) Naming.lookup(\"//\"+SettingsManager.getMasterNodeAddress()+\":\"+SettingsManager.getPortJobMaster()+\"/JobManager\");\n\t\t\t\tjobManager.notifyDaemonAvailability(demon.getServerAddress());\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} else printUsage();\n\t}", "@Override\n protected void onRegister() {\n Core.register(this);\n }", "public void register(IObserver obj);", "@Override\n public void run() {\n try {\n logger.info(\"Starting\");\n communicator = Util.initialize();\n\n logger.info(\"Initialized\");\n\n ObjectAdapter adapter =\n communicator.createObjectAdapterWithEndpoints(\"Adapter\",\n String.format(\"tcp -h %s -p %d:udp -h %s -p %d\", hostAddress, hostPort, hostAddress, hostPort));\n\n logger.info(\"Adapter created\");\n\n com.zeroc.Ice.Object accountRegistererServant = new AccountRegistererImplementation(clients);\n com.zeroc.Ice.Object standardClientServant = new StandardManagerImplementation(clients);\n com.zeroc.Ice.Object premiumClientServant = new StandardManagerImplementation(clients);\n\n logger.info(\"Servants created\");\n\n adapter.add(accountRegistererServant, new Identity(\"accountRegistererServant\", null));\n adapter.add(standardClientServant, new Identity(\"standardClientServant\", null));\n adapter.add(premiumClientServant, new Identity(\"premiumClientServant\", null));\n\n logger.info(\"Servants added\");\n\n adapter.activate();\n\n logger.info(\"Adapter active. Waiting for termination.\");\n\n communicator.waitForShutdown();\n\n logger.info(\"Shutting down\");\n } catch (Exception e) {\n System.err.println(this.getClass().getName() + \" - ERROR: \" + e.getMessage());\n } finally {\n if (communicator != null) {\n try {\n logger.info(\"Destroying communicator\");\n communicator.destroy();\n } catch (Exception ignored) {\n // No need to handle this\n }\n }\n }\n }", "@Override\r\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tRegisterVtvAccountService.register(mActivity, usernameFinal);\r\n\t\t\t\t\t}", "public void run(){\n\t\tstartServer();\n\t}", "public void startClient() throws RemoteException {\n\t\t\n\t\t// object to be passed to server\n\t\tString[] details = { name, dob, country, clientServiceName, hostName };\n\n\t\t// creating server stub \n\t\ttry {\n\t\t\tNaming.rebind(\"rmi://\" + hostName + \"/\" + clientServiceName, this);\n\t\t\tIServer = (IChatServer) Naming.lookup(\"rmi://\" + hostName + \"/\" + serviceName);\n\t\t} catch (ConnectException e) {\n\t\t\tJOptionPane.showMessageDialog(chatGUI.frame, \"The server seems to be unavailable\\nPlease try later\",\n\t\t\t\t\t\"Connection problem\", JOptionPane.ERROR_MESSAGE);\n\t\t\tconnectionProblem = true;\n\t\t\te.printStackTrace();\n\t\t} catch (NotBoundException | MalformedURLException me) {\n\t\t\tconnectionProblem = true;\n\t\t\tme.printStackTrace();\n\t\t}\n\t\t// if no problem sends details object to the server to be processed\n\t\tif (!connectionProblem) {\n\t\t\tIServer.initiateRegister(details);\n\n\t\t}\n\t\t// print this if it was able to reach this point\n\t\tSystem.out.println(\"Client Listen RMI Server is running...\\n\");\n\t}", "private void initJMX() throws Exception{\n\t\tMap env = new HashMap<String, Object>();\r\n\t\tenv.put(Context.INITIAL_CONTEXT_FACTORY,\"com.sun.jndi.rmi.registry.RegistryContextFactory\");\r\n\t\tenv.put(RMIConnectorServer.JNDI_REBIND_ATTRIBUTE, \"true\");\r\n\t\tJMXServiceURL url = new JMXServiceURL(\"service:jmx:rmi:///jndi/rmi://127.0.0.1:1099/server\");\r\n\t\tObjectName objectName=ObjectName.getInstance(\"test:name=test\");\r\n\t\tManagementFactory.getPlatformMBeanServer().registerMBean(MBeanHandler.createJMXMBean(new AdminAgent(),objectName), objectName);\r\n\t\t\r\n\t\tRegion region=CacheFactory.getAnyInstance().getRegion(\"/CHECK\");\t\r\n\t\tObjectName regionObjectName=ObjectName.getInstance(\"region:name=region\");\r\n\t\tManagementFactory.getPlatformMBeanServer().registerMBean(MBeanHandler.createJMXMBean(new RegionAgent(region),regionObjectName), regionObjectName);\r\n\t\tJMXConnectorServer connectorServer = JMXConnectorServerFactory\r\n\t\t.newJMXConnectorServer(url, env, ManagementFactory.getPlatformMBeanServer());\r\n connectorServer.start();\r\n\t\t\r\n//\t\tMBeanHandler.createJMXMBean(new AdminAgent(), ObjectNameFactory.resolveFromClass(AdminAgent.class));\r\n//\t\tjmxserver.registerMBean(new AdminAgent(), ObjectNameFactory.resolveFromClass(AdminAgent.class));\r\n\t\tSystem.out.println(\"JMX connection is established on: service:jmx:rmi:///jndi/rmi://127.0.0.1:1099/server\");\r\n\t\t\r\n\t}", "private RMIRegistrator() {\n\t// nothing\n }", "private void registerWithNotificationHubs() {\n Intent intent = new Intent(this, RegistrationIntentService.class);\n startService(intent);\n }", "@Override\n public void run() {\n if (serverR.equals(available)){\n Log.d(TAG, \"run: REGISTERED SUCCESSFULLY\");\n\n } else {\n Log.d(TAG, \"run: REGISTRATION ERROR\");\n Toast.makeText(getApplicationContext(),\n \"Something went wrong.\", Toast.LENGTH_LONG).show();\n }\n }", "public interface RegistrationInterface extends Remote {\n public int registraUtente(String nickname, String password) throws RemoteException;\n}", "void register(RegisterData data) throws Exception;", "private native void nRegister();", "public static void StartRegisterToGCM(Context context) {\n Intent intent = new Intent(context, FooDoNetInstanceIDListenerService.class);\n intent.setAction(ACTION_REGISTER_TO_GCM);\n //parentForCallback = (IFooDoNetServerCallback)context;\n context.startService(intent);\n }", "public void connect() throws RemoteException, NotBoundException {\n\t\t//RMI starten & Binden\n\t\tRegistry registry = null;\n\t\tregistry = LocateRegistry.getRegistry(\"127.0.0.1\", Constant.RMI_PORT);\n\t\tserver = (ServerInterface) registry.lookup(Constant.RMI_ID);\n\t\tserver.login(client);\n\t\tSystem.out.println(\"[DEBUG] Spielernummer: \" + spielerNummer);\n\t\t//Mehr als 2 Spieler sind nicht zulaessig\n\t\tif(spielerNummer==-1) {\n\t\t\tSystem.out.println(\"[DEBUG] ungueltige Spielernummer!\");\n\t\t\tSystem.out.println(\"[DEBUG] Gute Nacht :(\");\n\t\t\tSystem.exit(0);\n\t\t}\n\n\t}", "public static void main(String[] args) throws Exception{\n\t\tDicService dicService = new DicServiceImpl();\n\t\tdicService.loadDic();\n\t\t// Start on port 1099\n\t\tLocateRegistry.createRegistry(1099);\n\t\tNaming.rebind(\"dicService\", dicService);\n\t\t//Print server is ready\n\t\tSystem.out.println(\"Server ready.\");\n\t}", "public Register() {\n\t\tsuper();\n\t}", "private boolean startupProcedure()\n\t{\n\t\t//Start RMI-server\n\t\tnetworkinterface.startRMIServer();\n\t\tboolean RMIRunning = networkinterface.bindRMIServer(nodeManager, \"NodeServer\");\n\t\t\n\t\t//Start multicastservice\n\t\tif(networkinterface.setupMulticastservice())\n\t\t{\n\t\t\tnetworkinterface.runMulticastservice();\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\treturn RMIRunning;\n\t}", "@Test\n @Ignore\n public void testRegistration() {\n ROIAwareWarpDescriptor.register();\n ScaleDescriptor.register();\n AffineDescriptor.register();\n }", "public static void main(String[] args) throws Exception{\n if(args.length != 1){\n\n }\n\n Registry registry = new Registry(Integer.parseInt(args[0]));\n registry.init();\n }", "public void launch(int port) {\n try {\n Registry registry = LocateRegistry.createRegistry( port );\n\n EchoService service = new ReversedEchoServiceImpl();\n EchoService stub = (EchoService) UnicastRemoteObject.exportObject(service, 0);\n\n registry.bind(\"com.anotheria.strel.rmi.EchoService\", stub);\n\n log.info(String.format(\"Service is now accessible on port %d with name com.anotheria.strel.rmi.EchoService\", port));\n }\n catch (RemoteException ex) {\n log.fatal(\"Remote Exception: \" + ex.getMessage());\n }\n catch (AlreadyBoundException ex) {\n log.fatal(\"Echo service is already bound with given name: \" + ex.getMessage());\n }\n }", "public void start() {\r\n vcr().start();\t\r\n }", "public RegistryImpl(int port) throws RemoteException\n {\n Skeleton skeleton = new Skeleton(this, \"127.0.0.1\", port, 0);\n skeleton.start();\n }", "private void register() throws IOException {\n while( true ) {\n try {\n dnRegistration = namenode.register( dnRegistration );\n break;\n } catch( SocketTimeoutException e ) { // namenode is busy\n LOG.info(\"Problem connecting to server: \" + getNameNodeAddr());\n try {\n Thread.sleep(1000);\n } catch (InterruptedException ie) {}\n }\n }\n if( storage.getStorageID().equals(\"\") ) {\n storage.setStorageID( dnRegistration.getStorageID());\n storage.writeAll();\n }\n }", "@Override\n public void run() {\n logger.debug(\"OImaging.execute() handler called.\");\n\n // reset IRModelManager to fire an IRMODEL changed event to all registered listeners:\n IRModelManager.getInstance().start();\n\n // headless mode:\n final JFrame appFrame = App.getExistingFrame();\n if (appFrame != null) {\n appFrame.setVisible(true);\n }\n }", "public void Start(){\n Registry registry = null;\n try{\n for(int i=0;i<nsize;i++){\n registry= LocateRegistry.getRegistry(this.ports[i]);\n PRMI stub = (PRMI) registry.lookup(\"DCMP\");\n System.out.println(\"env calls Init to man \"+i);\n stub.InitHandler(new Request(this.id, -1, 'e'));\n D++;\n }\n\n } catch(Exception e){\n return;\n }\n return;\n }", "public static void mainRegistry() {\n\t\tregisterTileEntity(TileEntityLightningCell.class);\n\t\tregisterTileEntity(TileEntityLightningFurnace.class);\n\t\tregisterTileEntity(TileEntityLightningCrusher.class);\n\t\tregisterTileEntity(TileEntityLightningInfuser.class);\n\t\tregisterTileEntity(TileEntityLightningBreaker.class);\n\t\tregisterTileEntity(TileEntityLightningMiner.class);\n\t\tregisterTileEntity(TileEntityStaticGenerator.class);\n\t\tregisterTileEntity(TileEntityChargingPlate.class);\n\t\tregisterTileEntity(TileEntityEnchReallocator.class);\n\t\tregisterTileEntity(TileEntityLightningCannon.class);\n\t\tregisterTileEntity(TileEntityLightningTransmitter.class);\n\t\tregisterTileEntity(TileEntityLightningReceiver.class);\n\t\tregisterTileEntity(TileEntityEnergyProvider.class);\n\t\tregisterTileEntity(TileEntityEnergyReceiver.class);\n\t}", "public static void register () {\n channel = NetworkRegistry.newSimpleChannel(CHANNEL_NAME, ()->PROTOCOL_VERSION, PROTOCOL_VERSION::equals, PROTOCOL_VERSION::equals);\n\n cprCartSchedule.register();\n cprStationOrders.register();\n }", "public void start(int port) throws RemoteException, AlreadyBoundException\n {\n\n ZserioService zserioService = (ZserioService)UnicastRemoteObject.exportObject(this, 0);\n Registry registry = LocateRegistry.createRegistry(port);\n registry.bind(serviceFullName, this);\n }", "public static void main(String[] args) throws RemoteException {\n\n String registryIp = args[0];\n int registryPort = Integer.parseInt(args[1]);\n\n int numberOfComponents = Integer.parseInt(args[2]);\n\n int startingPort = Integer.parseInt(args[3]);\n\n List<Thread> componentThreads = new ArrayList<>();\n\n /* Gradually create new threads */\n for (int i = 0; i < numberOfComponents; ++i) {\n Registry registryReference = LocateRegistry.getRegistry(registryIp, registryPort);\n\n String registryReferenceName = String.valueOf(i);\n\n /* Create the component and its stub */\n Component component = new Component(registryReferenceName, i, registryReference, numberOfComponents);\n CommunicationChannel stub = (CommunicationChannel) UnicastRemoteObject.exportObject(component, startingPort + i);\n\n /* Add the stub to the registry */\n registryReference.rebind(registryReferenceName, stub);\n\n /* Create the thread and run it */\n Thread componentThread = new Thread(component);\n\n componentThread.start();\n\n /* Add it to the list of threads */\n componentThreads.add(componentThread);\n }\n\n\n\n /* Once all of the references have been created join them */\n for (Thread componentThread : componentThreads)\n try {\n componentThread.join();\n\n System.out.println(\"A thread ended \" + componentThread.getName());\n } catch (InterruptedException e) {\n System.err.println(\"Was interrupted whilst awaiting for a thread to terminate\");\n\n e.printStackTrace();\n }\n\n\n }", "public static void main (String[] args) {\n try {\n //System.setSecurityManager (new RMISecurityManager());\n NERegistry reg = new NERegistry (\"localhost\", 5010);\n HelloInterface_Stub hello = (HelloInterface_Stub) reg.lookup(\"hello\");\n System.out.println (hello);\n System.out.println (\"Reference: \" + hello.getRemoteObjectReference ());\n \n String a;\n if (args.length == 0) a = null;\n else a = args[0];\n \n String theGreeting = hello.sayHello (a);\n\n System.out.println (theGreeting);\n }\n catch (Exception e)\n {\n // Bad things can happen to good people\n e.printStackTrace();\n }\n }", "public void start() throws RemoteException, AlreadyBoundException\n {\n start(DEFAULT_PORT);\n }", "public void start(){\n log.debug(\"Starting Host Router\");\n lobbyThread = pool.submit(new Runnable() {\n public void run() {\n waitForClients();\n }\n });\n }", "@Test\n\tpublic void registerUserTest() throws RemoteException, NoSuchAlgorithmException, InvalidKeySpecException, IOException, InvalidKeyException, SignatureException, NoSuchPaddingException, IllegalBlockSizeException, BadPaddingException, UnrecoverableKeyException, KeyStoreException, CertificateException {\n\t\t\n\t\t// Creation of the server\n\t\tPasswordManager pm = new PasswordManager(8080);\n\n\t\t// Normal register\n\t\tString response = pm.registerUser(DatatypeConverter.printBase64Binary(cliPubKey.getEncoded()), \n\t\t\t\tDigitalSignature.getSignature(cliPubKey.getEncoded(),cliPrivKey));\n\n\t\t// Analyse the correctness of the answer\n\t\tAssert.assertNotSame(response, \"Error: Could not validate signature.\");\n\t}", "public synchronized void start(String hostname, Registration naming_server)\n throws RMIException, UnknownHostException, FileNotFoundException\n {\n if( !root.isDirectory() || !root.exists() ) {\n throw new FileNotFoundException(\"Server root not found or is not a directory\");\n }\n storage.start();\n command.start();\n \n // Wait for it to start?\n\n Path[] serverFiles = naming_server.register(\n Stub.create(Storage.class, storage, hostname),\n Stub.create(Command.class, command, hostname),\n Path.list(root));\n\n // Storage Server startup deletes all duplicate files on server.\n for(Path p : serverFiles) {\n p.toFile(root).delete();\n File parent = new File(p.toFile(root).getParent());\n \n while(!parent.equals(root)) {\n if(parent.list().length == 0) {\n parent.delete();\n } else {\n break;\n }\n parent = new File(parent.getParent());\n }\n } \n }", "protected void __register()\n {\n }", "protected void __register()\n {\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tnew Niveau1();\n\t\t\t}", "public synchronized void start() throws IOException {\n \t\tif (launchAtStart && acceptorThread == null) {\n \t\t\ttry {\n \t\t\t\tManagementFactory.getPlatformMBeanServer().registerMBean(this, getJMXObjectName());\n \t\t\t} catch (JMException e) {\n \t\t\t\tlog.warn(\"Failed to register GroovyShellService MBean\", e);\n \t\t\t}\n \n \t\t\tgroovyShellAcceptor = new GroovyShellAcceptor(port, createBinding(bindings), defaultScripts);\n \t\t\tacceptorThread = new Thread(groovyShellAcceptor, \"GroovyShAcceptor-\" + port);\n \t\t\tacceptorThread.start();\n \t\t}\n \t}", "@Override\n public void run() {\n startup();\n }", "public RegistryImpl(String host, int port) throws RemoteException\n {\n Skeleton skeleton = new Skeleton(this, host, port, 0);\n skeleton.start();\n }", "public static void main(String[] args) {\n\t\ttry {\r\n\t\t\tMyRemote service = (MyRemote) Naming.lookup(\"rmi://127.0.0.1:6600/remoteTest\");\r\n\t\t\tString s = service.sayHello();\r\n\t\t\tSystem.out.println(s);\r\n\t\t} catch (MalformedURLException | RemoteException | NotBoundException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t}", "public static void register() {\n // Registers the GUI Handler\n NetworkRegistry.instance().registerGuiHandler(Dendritis.instance, GUIHandler.instance());\n \n OreDictionaryRegistry.oreDictionary();\n BlockRegistry.registerBlocks();\n WorldRegistry.registerWorld();\n RecipeHandler.init();\n }" ]
[ "0.7056626", "0.70042676", "0.6912309", "0.6595052", "0.6478649", "0.64688224", "0.63777936", "0.63375074", "0.6317434", "0.6310491", "0.627901", "0.6271997", "0.624589", "0.6230196", "0.622492", "0.6128836", "0.61285603", "0.60939807", "0.60881144", "0.6087551", "0.6067514", "0.6034451", "0.6011322", "0.6006384", "0.59624255", "0.59351605", "0.5923425", "0.58790714", "0.5875598", "0.5855763", "0.5833923", "0.581602", "0.581371", "0.5811123", "0.58109665", "0.5810934", "0.57863426", "0.57718426", "0.57590973", "0.5732201", "0.5731256", "0.572762", "0.57173514", "0.56612545", "0.5658932", "0.56559813", "0.56383795", "0.5635084", "0.5621445", "0.5608935", "0.55934227", "0.5575729", "0.55594885", "0.5552757", "0.5552283", "0.5548546", "0.5548091", "0.55460876", "0.5523208", "0.5512158", "0.55097777", "0.55044913", "0.5502405", "0.54992074", "0.54922456", "0.5489103", "0.5481984", "0.5469481", "0.54687905", "0.54508996", "0.54067636", "0.53925914", "0.5386067", "0.53853554", "0.53517914", "0.534095", "0.5338602", "0.53308064", "0.5328232", "0.5326888", "0.5326011", "0.5325349", "0.5315769", "0.53126425", "0.5309499", "0.5305133", "0.53014946", "0.5292966", "0.52743286", "0.52700555", "0.5266795", "0.5264195", "0.5261997", "0.5261997", "0.5257504", "0.52521884", "0.524997", "0.5246124", "0.5238531", "0.52279013" ]
0.6096018
17
Registers this server with RMI.
private void initRMI() throws RemoteException { log.info("Registering with RMI"); Registry registry = LocateRegistry.getRegistry(); registry.rebind(address, this); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void registerWithServer();", "public void register(IObserver obj);", "public void registerServer() {\n log.info(\"Registering service {}\", serviceName);\n cancelDiscovery = discoveryService.register(\n ResolvingDiscoverable.of(new Discoverable(serviceName, httpService.getBindAddress())));\n }", "@Override\n public boolean serverRegister(String ip, int port, int id) throws RemoteException {\n try {\n if(this.ip.equals(ip) && this.port == port){\n return false;\n }else if(this.id == id){\n return false;\n }\n \n String url = \"rmi://\"+ip+\":\"+port+\"/mytube\";\n ServerInterface server = (ServerInterface) Naming.lookup(url);\n \n if(server.acceptRegister(this.ip, this.port, this.id)){\n servers.add(server);\n //Check if servers are really bidirectionally connected.\n if(server.serverPing(this) == this.id){\n System.out.println(\"CONNECT: Bidirectionally connected to the server \"+url);\n return true;\n }\n }\n return false;\n } catch (NotBoundException | MalformedURLException | RemoteException e){\n return false;\n }\n }", "@Override\n public void register(Remote registerObj, String name) throws RemoteException\n {\n synchronized (supervisors)\n {\n Logger.getGlobal().log(Level.INFO, String.format(\"Register Supervisor: %s.\", name));\n addSupervisor(name);\n registry.rebind(name, registerObj);\n }\n }", "private void register() {\n\t\tInetAddress iNA;\n\t\ttry {\n\t\t\tiNA = InetAddress.getLocalHost();\n\t\t\tmyIPAddress = iNA.getAddress();\n\t\t\tOverlayNodeSendsRegistration register = new OverlayNodeSendsRegistration(\n\t\t\t\t\tmyIPAddress, myServerThreadPortNum);\n\t\t\tthis.registry.getSender().sendData(register.getBytes());\n\t\t} catch (UnknownHostException e1) {\n\t\t\tSystem.out.println(e1.getMessage()\n\t\t\t\t\t+ \" Trouble sending registration event.\");\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e.getMessage()\n\t\t\t\t\t+ \" Trouble sending registration event.\");\n\t\t}\n\t}", "public interface Server {\n void register(String serverName, Class impl) throws Exception;\n\n void start() throws IOException;\n\n\n}", "public void startClient() throws RemoteException {\n\t\t\n\t\t// object to be passed to server\n\t\tString[] details = { name, dob, country, clientServiceName, hostName };\n\n\t\t// creating server stub \n\t\ttry {\n\t\t\tNaming.rebind(\"rmi://\" + hostName + \"/\" + clientServiceName, this);\n\t\t\tIServer = (IChatServer) Naming.lookup(\"rmi://\" + hostName + \"/\" + serviceName);\n\t\t} catch (ConnectException e) {\n\t\t\tJOptionPane.showMessageDialog(chatGUI.frame, \"The server seems to be unavailable\\nPlease try later\",\n\t\t\t\t\t\"Connection problem\", JOptionPane.ERROR_MESSAGE);\n\t\t\tconnectionProblem = true;\n\t\t\te.printStackTrace();\n\t\t} catch (NotBoundException | MalformedURLException me) {\n\t\t\tconnectionProblem = true;\n\t\t\tme.printStackTrace();\n\t\t}\n\t\t// if no problem sends details object to the server to be processed\n\t\tif (!connectionProblem) {\n\t\t\tIServer.initiateRegister(details);\n\n\t\t}\n\t\t// print this if it was able to reach this point\n\t\tSystem.out.println(\"Client Listen RMI Server is running...\\n\");\n\t}", "public void registerAtServer(String clientId, String serverIP) throws ConnectionException {\n\n\t\tSystem.setProperty(\"java.security.policy\", \"file:./java.policy\");\n\n\t\tthis.clientId = clientId;\n\n\t\tif (System.getSecurityManager() == null) {\n\t\t\tSystem.setSecurityManager(new SecurityManager());\n\t\t}\n\n\t\ttry {\n\t\t\t\n\t\t\t// Check serverIP\n\t\t\tString rmiConncetionString = \"\";\n\t\t\tif(IPAddressUtil.isIPv6LiteralAddress(serverIP))\n\t\t {\n\t\t\t\trmiConncetionString = \"rmi://[\" + serverIP + \"]:\" + Constants.SERVER_PORT + \"/\" + Constants.SERVER_RMI_OBJECT_NAME;\n\t\t }\n\t\t else\n\t\t {\n\t\t \trmiConncetionString = \"rmi://\" + serverIP + \":\" + Constants.SERVER_PORT + \"/\" + Constants.SERVER_RMI_OBJECT_NAME;\n\t\t }\n\n\t\t\t// Find server\n\t\t\tserverRemoteObject = (IServer) Naming.lookup(rmiConncetionString);\n\n\t\t\t// Create remote control object of this client for server\n\t\t\tclientRemoteObject = ClientImpl.getInstance();\n\n\t\t\t// Register at server and send remote handler of client\n\t\t\tUnicastRemoteObject.exportObject(clientRemoteObject, 0);\n\t\t\tserverRemoteObject.registerClient(clientRemoteObject, clientId);\n\t\t\t\n\t\t} catch (Exception e) {\n\n\t\t\tConnectionException ex = new ConnectionException(e.getMessage());\n\t\t\tthrow ex;\n\t\t}\n\n\t\t//Start ClientStatus Thread\n\t\tClientStatusManager.getInstance().start();\n\t}", "public void initRMI() {\n\t\ttry {\n\t\t\t//creo RMI handler\n\t\t\tGossip_RMI_handler handler = new Gossip_RMI_handler(data);\n\t\t\t//esporto l'interfaccia\n\t\t\tGossip_RMI_server_interface stub = (Gossip_RMI_server_interface)UnicastRemoteObject.exportObject(handler, 0);\n\t\t\tLocateRegistry.createRegistry(Gossip_config.RMI_PORT);\n\t\t\tRegistry r = LocateRegistry.getRegistry(Gossip_config.RMI_PORT);\n\t\t\tr.rebind(Gossip_config.RMI_NAME, stub);\n\t\t\t\n\t\t} catch (RemoteException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public abstract void register();", "@Override\n\tpublic void run() {\n\t\t\t\n\t\t\ttry {\n\t\t\tLocateRegistry.createRegistry(port);\n\t\t\t}catch(RemoteException e){\n\t\t\t\tSystem.out.println(\"Another peer is running in this machine\");\n\t\t\t}\n\t\t\t\n\t\t\tInterfaceUI rmi;\n\t\t\ttry {\n\t\t\t\trmi = (InterfaceUI)UnicastRemoteObject.exportObject(this, 0);\n\t\t\t\tRegistry registry = LocateRegistry.getRegistry();\n\t\t\t\tregistry.rebind(this.id, rmi);\n\t\t\t\n\t\t\t\n\t\t\t} catch (RemoteException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t\n\t\t\n\t}", "public void start() {\n _serverRegisterProcessor = new ServerRegisterProcessor();\n _serverRegisterProcessor.start();\n }", "public static void register(String dbLocation, int port) throws IOException {\n\tRegistry r = LocateRegistry.getRegistry(port);\n\ttry {\n\t r.rebind(REGISTRY_NAME, new RMIDatabaseAccess(dbLocation));\n\t} catch (ConnectException e) {\n\t LOGGER.info(\"Creating a new registry on port \" + port);\n\t r = LocateRegistry.createRegistry(port);\n\t r.rebind(REGISTRY_NAME, new RMIDatabaseAccess(dbLocation));\n\t}\n\tLOGGER.info(\"Server started on port \" + port);\n }", "@Override\n public void register(Computer computer) throws RemoteException {\n final ComputerProxy computerProxy = new ComputerProxy(computer);\n computerProxies.put(computer, computerProxy);\n computerProxy.start();\n System.out.printf(\"Computer %d registered.%n\", computerProxy.computerId);\n }", "private void startServer() throws RemoteException, AlreadyBoundException{\n\t\ttry{\n\t\t\tInsuranceImplementation impl = new InsuranceImplementation();\n\t\t\timpl.setIPAddress(ipHospital.getText());\n\t\t\timpl.setPortNumebr(Integer.parseInt(portHospital.getText()));\n\t\t\t\n\t\t\tRegistry registry = LocateRegistry.createRegistry(Integer.parseInt(portInsurance.getText()));\n\t\t\tregistry.bind(Constants.RMI_ID, impl); \n\t\t\t\n\t\t\tlogMessage(\"Insurance Server Started\");\n\t\t\t\n\t\t} catch (Exception exp)\n\t\t{\n\t\t\tlogMessage(\"ObjID already in use.\\nPlease kill the process running at port 5002\");\n\t\t\texp.printStackTrace();\n\t\t} \n\t\t\n\t}", "public String registerClient(String clientSocket) throws RemoteException;", "public static void main(String[] args) throws RemoteException{\n \r\n Registry registry= LocateRegistry.createRegistry(5099); //registrar a nuestro cliente \r\n registry.rebind(\"hello\", new ObjectRemote());\r\n }", "public boolean connect() throws RemoteException {\n\t\ttry {\n\t\t\t// Get remote object reference\n\t\t\tthis.registry = LocateRegistry.getRegistry(host, port);\n\t\t\tthis.server = (ServerInterface) registry.lookup(\"Server\");\n\t\t\tid = this.server.getNewClientId();\n\t\t\tClientInterface c_strub = (ClientInterface) UnicastRemoteObject.exportObject(this, 0);\n\t\t\tregistry.bind(id, c_strub);\n\t\t\treturn this.server.addClient(username, password, id);\n\t\t}\n\t\tcatch (AlreadyBoundException | NotBoundException e) {\n\t\t\tSystem.err.println(\"Error on client :\" + e);\n\t\t\te.printStackTrace();\n\t\t\tSystem.exit(-1);\n\t\t}\n\t\t\n\t\treturn false;\n\t}", "private void register() throws IOException {\n while( true ) {\n try {\n dnRegistration = namenode.register( dnRegistration );\n break;\n } catch( SocketTimeoutException e ) { // namenode is busy\n LOG.info(\"Problem connecting to server: \" + getNameNodeAddr());\n try {\n Thread.sleep(1000);\n } catch (InterruptedException ie) {}\n }\n }\n if( storage.getStorageID().equals(\"\") ) {\n storage.setStorageID( dnRegistration.getStorageID());\n storage.writeAll();\n }\n }", "public static void main(String[] args) {\n\n try {\n\n Registry registry = LocateRegistry.createRegistry( 1888);\n registry.rebind(\"YStudentServerImpl\", new YStudentServerImpl());\n\n\n }\n catch (Exception ex){\n System.err.println(\"YStudentServerImpl exeption\");\n ex.printStackTrace();\n }\n\n\n }", "public void registerService(Registrant r) {\n namingService.registerService(r);\n }", "public static void main ( String args [] )\n {\n // Variable deceleration\n String hostname = \"localhost\" ; // Default host to use\n \n // Override the default values for hostname if passed through command line.\n if ( args [0].length () != 0 ) { hostname = args [0] ; }\n \n try\n {\n // Set the system property for \"java.rmi.server.hostname\".\n System.setProperty ( \"java.rmi.server.hostname\", hostname ) ;\n \n // Initialize the interface to access all the remote functions.\n HelloServerImplementation registerObject = new HelloServerImplementation () ;\n\n // Declare registry variable\n Registry registry ;\n \n // This try catch is to make sure that the registry is created\n try \n {\n // Try to get the remote object Registry for the local host on the default registry port of 1099.\n registry = LocateRegistry.getRegistry() ;\n registry.list() ; // Fetch the names bounded to the registry\n }\n // Catch the exception where communication with the registry fails and create the registry.\n catch ( RemoteException e ) \n {\n // Create the registry on the default rmi port 1099\n System.out.println ( \"RMI registry cannot be located at port \" + Registry.REGISTRY_PORT ) ;\n registry = LocateRegistry.createRegistry ( Registry.REGISTRY_PORT ) ;\n System.out.println ( \"RMI registry created at port \" + Registry.REGISTRY_PORT ) ;\n }\n \n // Once the registry is successfully created, rebind the HelloServerInterface to the remote reference created above.\n registry.rebind ( \"HelloServerInterface\", registerObject ) ;\n System.out.println ( \"Callback Server ready.\" ) ;\n }\n // Catch the exception and provide the necessary information to the user. \n catch ( Exception e ) { System.out.println ( \"Exception: \" + e.getMessage () ) ; e.printStackTrace () ; }\n }", "public void register(){\n }", "public RMIServer() {\n System.setProperty(\"java.security.policy\", \"AllPermission.policy\");\n this.config = RMIConfiguration.getInstance();\n }", "public static void main(String args[]) {\n try {\n LocateRegistry.createRegistry(80);\n OperacoesImpl obj = new OperacoesImpl();\n Naming.rebind(\"ServerRMI\", obj);\n System.out.println(\"Server RMI pronto.\");\n } catch (Exception e) {\n System.out.println(\"Server erro\" + e.getMessage());\n }\n }", "public interface NetworkRegistryMBean extends NotificationBroadcaster, MBeanRegistration\n{\n /**\n * return the servers on the network\n *\n * @return\n */\n public NetworkInstance[] getServers();\n\n /**\n * add a server for a given identity that is available on the network\n *\n * @param identity\n * @param invokers\n */\n public void addServer(Identity identity, ServerInvokerMetadata invokers[]);\n\n /**\n * remove a server no longer available on the network\n *\n * @param identity\n */\n public void removeServer(Identity identity);\n\n /**\n * update the invokers for a given server\n *\n * @param identity\n * @param invokers\n */\n public void updateServer(Identity identity, ServerInvokerMetadata invokers[]);\n\n /**\n * returns true if the server with the identity is available\n *\n * @param identity\n * @return\n */\n public boolean hasServer(Identity identity);\n\n /**\n * query the network registry for <tt>0..*</tt> of servers based on a\n * filter\n *\n * @param filter\n * @return\n */\n public NetworkInstance[] queryServers(NetworkFilter filter);\n\n /**\n * change the main domain of the local server\n *\n * @param newDomain\n */\n public void changeDomain(String newDomain);\n}", "public boolean registerClient(ISortClient client) throws RemoteException;", "public static void main(String args[]) {\n try {\n //Cria HelloImpl\n //Runtime.getRuntime().exec(\"rmiregistry 1010\");\n //Registry registry = LocateRegistry.getRegistry(2001);\n \tSystem.setProperty(\"java.rmi.server.hostname\",\"192.168.0.30\");\n Registry registry = LocateRegistry.createRegistry(2001);\n Implementation obj = new Implementation();\n registry.bind(\"HelloServer\", obj);\n System.out.println(\"Hello Server pronto.\");\n } catch (Exception e) {\n System.out.println(\"HelloServer erro \" + e.getMessage());\n }\n }", "public interface IServer extends Remote {\n /**\n * @param auction\n * @throws RemoteException\n */\n void placeAuction(AuctionBean auction) throws RemoteException;\n\n /**\n * @param client\n * @throws RemoteException\n * @throws InterruptedException\n */\n void register(IClient client) throws RemoteException, InterruptedException;\n\n void disconnect(IClient client) throws RemoteException;\n\n /**\n * @param client\n * @param newBid\n * @throws RemoteException\n */\n void raiseBid(IClient client, int newBid) throws RemoteException;\n\n /**\n * @param client\n * @throws RemoteException\n * @throws InterruptedException\n */\n void timeElapsed(IClient client) throws RemoteException, InterruptedException;\n\n\tvoid registerCredentials(String username, String password) throws RemoteException, InterruptedException;\n\n\tboolean verifyCredentials(String username, String password) throws RemoteException, InterruptedException;\n\t\n}", "public static void register(TurtleServer server) {\n\t\tserver.addListener(instance);\n\t}", "@Override\n @POST\n @Path(\"/servers\")\n @Consumes(\"application/json\")\n public Response registerServer(String requestBody) throws Exception {\n if (log.isTraceEnabled()) {\n log.trace(\"registerServer() started. Data: \" + requestBody);\n }\n\n Server server;\n try {\n JSONObject json = new JSONObject(requestBody);\n String serverURI = json.getString(\"serverURI\");\n Pattern uriPattern = Pattern.compile(\n String.format(\"^/providers/%d/servers/(\\\\d+)$\", provider.getProviderId()));\n Matcher m = uriPattern.matcher(serverURI);\n if (!m.find()) {\n throw new Exception(\"Invalid server URI: \" + serverURI);\n }\n int serverId = Integer.parseInt(m.group(1));\n server = ServerDAO.findById(provider, serverId);\n if (server == null) {\n throw new Exception(String.format(\"Server '%s' not found.\", serverURI));\n }\n }\n catch (Exception e) {\n throw new WebApplicationException(\n Response.status(Response.Status.BAD_REQUEST).entity(e.getMessage()).build());\n }\n\n EntityManager em = PersistenceUtils.getInstance().getEntityManager();\n\n try {\n if (!cluster.getServerList().contains(server)) {\n em.getTransaction().begin();\n server.getClusterList().add(cluster);\n cluster.getServerList().add(server);\n server = em.merge(server);\n cluster = em.merge(cluster);\n em.getTransaction().commit();\n }\n // no problem if server is already registered\n\n URI resourceUri = new URI(String.format(\"/%d\", server.getServerId()));\n log.trace(\"registerServer() finished successfully.\");\n return Response.created(resourceUri).build();\n }\n finally {\n PersistenceUtils.getInstance().closeEntityManager(em);\n }\n }", "public void registerObject(NetObject object);", "public static void main(String[] args) throws NotBoundException, ClassNotFoundException, SQLException {\n\t\ttry {\n\t\t\tRegistry registry = LocateRegistry.createRegistry(1099);\n\t\t\tregistry.rebind(\"server\", (RMIServerInterface) new RMIServer());\n\t\t\tSystem.out.println(\"Rmi Server Running...\");\n\t\t} catch (AccessException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (RemoteException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void run() {\n\t try{\n \t\tRegistry registry = LocateRegistry.createRegistry(1099);\n \t\tTestUnitImpl testUnit = new TestUnitImpl();\n \t\tProxyMonitoringUnit proxyUnit= new ProxyMonitoringUnit();\n\t registry.rebind(\"TestingUnit\", testUnit);\n\t registry.rebind(\"ProxyUnit\", proxyUnit);\n\t System.out.println(\"server.RMI Server is ready.\");\n \t}catch(RemoteException e){\n \t\te.printStackTrace();\n \t}\n \t\n }", "public static void main(String[] args) throws MalformedObjectNameException, InstanceAlreadyExistsException,\n\t\t\tMBeanRegistrationException, NotCompliantMBeanException {\n\t\tMBeanServer server = ManagementFactory.getPlatformMBeanServer();\n\t\tObjectName myJmxName = new ObjectName(\"jmxBean:name=myJmx\");\n\t\tserver.registerMBean(new MyJmx(), myJmxName);\n// TODO Auto-generated method stub\n\t\ttry {\n\t\t\tLocateRegistry.createRegistry(9999);\n\t\t\tJMXServiceURL url = new JMXServiceURL(\"service:jmx:rmi:///jndi/rmi://localhost:9999/jmxrmi\");\n\t\t\tJMXConnectorServer jcs = JMXConnectorServerFactory.newJMXConnectorServer(url, null, server);\n\t\t\tSystem.out.println(\"begin rmi start\");\n\t\t\tjcs.start();\n\t\t\tSystem.out.println(\"rmi start\");\n\t\t} catch (RemoteException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void registerUserOnServer() throws IOException {\r\n\t\tdataSending.sendMessage(Server.REGISTER+\" \"+userName, Long.toString(userModel.ID));\r\n\t}", "public interface RegistrationInterface extends Remote {\n public int registraUtente(String nickname, String password) throws RemoteException;\n}", "@Override\n\tpublic void addServer(String arg0) throws IOException {\n\n\t}", "public void registerService(String serviceName){\n jmc.registerService(serviceName);\n }", "public void initRMIBindings() {\n\tString name = null;\n\ttry {\n Configuration configuration=proxy.getConfiguration();\n if (configuration.accessLogViaRMI) {\n SipStack sipStack=proxy.getSipStack();\n Iterator it =sipStack.getListeningPoints();\n ListeningPoint lp = (ListeningPoint) it.next();\n String stackIPAddress = sipStack.getIPAddress();\n name = \"//\" + stackIPAddress + \":\" + 0 + \"/\" +\n sipStack.getStackName()\n + \"/\" + \"test.jainproxy.Registrar\";\n if (ProxyDebug.debug) {\n ProxyDebug.println(\"Exporting Registration Table \" + name);\n }\n Naming.rebind(name,this);\n }\n else {\n if (ProxyDebug.debug)\n ProxyDebug.println\n (\"We don't export the registrations because RMI is disabled.\");\n }\n } \n catch (Exception ex) {\n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Problem trying to export the Registration Table: \" + name);\n }\n\t ex.printStackTrace();\n\t}\n }", "public static void bind(String name, myRemoteInterface obj) throws AlreadyBoundException, RemoteException, IOException {\n\t\tString className = obj.getClass().getCanonicalName();\n\t\tString ip = null;\n\t\ttry {\n\t\t\tip = InetAddress.getLocalHost().getHostAddress();\n \n\t\t} catch (UnknownHostException e1) {\n\t\t\te1.printStackTrace();\n\t\t}\n\t\t\n\t\tString nameWithSpace = Naming.parseHostPort(name);\n\t\tString args[] = nameWithSpace.split(\" \");\n\t\t\n\t\tRemoteObjectRef newRef = new RemoteObjectRef(ip, 9999,args[2] , className,\"bind\");\n\t\t\n\t\tObjectMap.insertIntoServerMap(args[2], obj);\n\t\t\n\t\tRegistryInterface stub = null;\n\t\t try{\n\t\t\t \n\t\t\t Class<?> stub_class = Class.forName(\"registry.Registry_stub\");\n\t\t\t stub = (RegistryInterface)Class.forName(\"registry.Registry_stub\").newInstance();\n\t\t\t if(stub_class != null){\n\t\t\t\t byte[] temp = downloadToServer(stub_class, newRef);\n\t\t\t }\n\t\t} catch (InstantiationException | IllegalAccessException\n\t\t\t\t| ClassNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tstub.bind(name, newRef);\n\t\t\n\t}", "@Override\n public boolean register(ClientInterface client) throws RemoteException {\n if(!clients.contains(client)){\n client.setId(client.getUsername().hashCode());\n if(!global_userExists(client.getId())){\n clients.add(client);\n registered(client);\n return true;\n }else{\n usernameAlreadyExists(client);\n }\n }else{\n alreadyRegistered(client);\n }\n return false;\n }", "private void registerClient() throws IOException {\n\t\tString instanceID = UUID.randomUUID().toString();\r\n\t\tString registerName = fromClient.readLine();\r\n\t\tString passwordInput = fromClient.readLine();\r\n\t\t\r\n\t\tif (!clientTable.has(registerName)) {\r\n\t\t\tReport.behaviour(registerName + \" has registered and connected\");\r\n\t\t\t\r\n\t\t\t//Adds the new user to the client table and adds a running queue\r\n\t\t\tclientTable.add(registerName, new Password(passwordInput, false));\r\n\t\t\tclientTable.addQueue(registerName, instanceID);\r\n\t\t\t\r\n\t\t\t//tell the client that the connection was a success\r\n\t\t\ttoClient.println(Commands.CONNECTION_SUCCESS);\r\n\t\t\t\r\n\t\t\t//create threads\r\n\t\t\tmakeThreads(registerName, instanceID);\r\n\t\t} else toClient.println(Commands.USER_ALREADY_EXISTS);\r\n\t}", "void register();", "public void register(String host, int port, String ip) \n throws RegistrationException{\n String reply = \"\";\n String message = ComsFormat.registration + ComsFormat.separator + host \n + ComsFormat.separator + port + ComsFormat.separator + ip;\n\n try {\n reply = nameServer.send_message(message, ComsFormat.retry,\n ComsFormat.sendTimeout,ComsFormat.receiveTimeout);\n } catch (Exception e) {\n throw new RegistrationException();\n } \n \n if (!reply.equals(ComsFormat.regSucesss)) {\n throw new RegistrationException();\n } else {\n System.out.println(reply);\n }\n }", "public void start(int port) throws RemoteException, AlreadyBoundException\n {\n\n ZserioService zserioService = (ZserioService)UnicastRemoteObject.exportObject(this, 0);\n Registry registry = LocateRegistry.createRegistry(port);\n registry.bind(serviceFullName, this);\n }", "public void start() {\n\t\trmiUtils.startRMI(IRMI_Defs.CLASS_SERVER_PORT_CLIENT);\n\n\t\ttry {\n\t\t\tview.setRemoteHost(rmiUtils.getLocalAddress()); //TODO Is this stored somewhere?\n\t\t\tuser = new User(\"default\", rmiUtils.getLocalAddress(), this);\n\t\t\tview.append(\"Create User \" + user.getName() + \"\\n\");\n\n\t\t\tregistry = rmiUtils.getLocalRegistry();\n\t\t\tIUser stub = (IUser) UnicastRemoteObject.exportObject(user, IUser.BOUND_PORT);\n\t\t\tview.append(\"Found registry: \" + registry + \"\\n\");\n\n\t\t\tregistry.rebind(IUser.BOUND_NAME, stub);\n\t\t\tview.append(\"IUser bound to \" + IUser.BOUND_NAME + \"\\n\");\n\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(\"Error getting local address: \" + e);\n\t\t}\n\t}", "public void registerWithRMC()\n\t{\n\t\t// Register with the RMC\n\t\tif(this.rmc.registerLMS(this.location)) {\n\t\t\tthis.log(\"Registered with RMC\");\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tthis.log(\"Failed to register with RMC. Probable name clash.\");\n\t\tSystem.exit(1);\n\t}", "@Override\r\n\tpublic void register() {\n\t\t\r\n\t}", "public RegistryImpl(String host, int port) throws RemoteException\n {\n Skeleton skeleton = new Skeleton(this, host, port, 0);\n skeleton.start();\n }", "@Override\n\tpublic void addServer(String arg0, int arg1) throws IOException {\n\n\t}", "public void init(ServletConfig conf) throws ServletException {\n super.init(conf);\n \n MBeanServer mBeanServer = null;\n\n Registry reg=null;\n \n // TODO: use config to get the registry port, url, pass, user\n\n \n try {\n if( reg==null )\n reg=LocateRegistry.createRegistry(1099);\n } catch( Throwable t ) {\n log(\"Can't start registry - it may be already started: \" + t);\n }\n \n try {\n mBeanServer = null;\n if (MBeanServerFactory.findMBeanServer(null).size() > 0) {\n mBeanServer =\n (MBeanServer) MBeanServerFactory.findMBeanServer(null).get(0);\n } else {\n mBeanServer = MBeanServerFactory.createMBeanServer();\n }\n } catch( Throwable t ) {\n log(\"Can't get the mbean server \" + t);\n return;\n }\n \n try {\n JMXServiceURL address = new JMXServiceURL(\"service:jmx:rmi://rmiHost/jndi/rmi://localhost:1099/jndiPath\");\n cntorServer = \n JMXConnectorServerFactory.newJMXConnectorServer(address, null, mBeanServer);\n cntorServer.start();\n } catch (Throwable e) {\n log(\"Can't register jmx connector \", e);\n }\n }", "private void initJMX() throws Exception{\n\t\tMap env = new HashMap<String, Object>();\r\n\t\tenv.put(Context.INITIAL_CONTEXT_FACTORY,\"com.sun.jndi.rmi.registry.RegistryContextFactory\");\r\n\t\tenv.put(RMIConnectorServer.JNDI_REBIND_ATTRIBUTE, \"true\");\r\n\t\tJMXServiceURL url = new JMXServiceURL(\"service:jmx:rmi:///jndi/rmi://127.0.0.1:1099/server\");\r\n\t\tObjectName objectName=ObjectName.getInstance(\"test:name=test\");\r\n\t\tManagementFactory.getPlatformMBeanServer().registerMBean(MBeanHandler.createJMXMBean(new AdminAgent(),objectName), objectName);\r\n\t\t\r\n\t\tRegion region=CacheFactory.getAnyInstance().getRegion(\"/CHECK\");\t\r\n\t\tObjectName regionObjectName=ObjectName.getInstance(\"region:name=region\");\r\n\t\tManagementFactory.getPlatformMBeanServer().registerMBean(MBeanHandler.createJMXMBean(new RegionAgent(region),regionObjectName), regionObjectName);\r\n\t\tJMXConnectorServer connectorServer = JMXConnectorServerFactory\r\n\t\t.newJMXConnectorServer(url, env, ManagementFactory.getPlatformMBeanServer());\r\n connectorServer.start();\r\n\t\t\r\n//\t\tMBeanHandler.createJMXMBean(new AdminAgent(), ObjectNameFactory.resolveFromClass(AdminAgent.class));\r\n//\t\tjmxserver.registerMBean(new AdminAgent(), ObjectNameFactory.resolveFromClass(AdminAgent.class));\r\n\t\tSystem.out.println(\"JMX connection is established on: service:jmx:rmi:///jndi/rmi://127.0.0.1:1099/server\");\r\n\t\t\r\n\t}", "@Override\n\tpublic void registerManager(ManagerAppInterface ma) throws RemoteException {\n\t\t\n\t\tthis.ma = ma;\n\t}", "public MorpionServerImpl() throws RemoteException {\r\n\t\tmorpionClients = new HashMap<String, MorpionClientInterface>();\r\n\t}", "private void init() {\n System.out.println(\"Binding to RMIRegistry...\");\n String theName = getConfigManager().getString(\"REMOTE_NAME\");\n if (null != theName) {\n bind(theName, this);\n } else {\n LoggingServices.getCurrent().logMsg(getClass().getName(), \"init()\"\n , \"Could not find name to bind to in registry.\"\n , \"Make sure loyalty.cfg contains a RMIREGISTRY entry.\", LoggingServices.MAJOR);\n }\n }", "public interface ClientServerRMIInterface extends Remote {\n Metadata getMeta(String id) throws IOException;\n\n Metadata putMeta(String id, long length) throws IOException, NotBoundException, URISyntaxException;\n\n byte[] get(String id, long part) throws IOException;\n\n void put(String id, long part, byte[] data) throws IOException, NotBoundException, URISyntaxException;\n}", "void registerReceiver(IReceiver receiver);", "public static void main(String[] args) {\n\n\t\tString registryHost;\n\t\tint registryPort;\n\t\tString localIP = \"127.0.1.1\";\n\t\ttry {\n\t\t\tlocalIP = Inet4Address.getLocalHost().getHostAddress();\n\t\t} catch (UnknownHostException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tif(args.length == 2) {\n\t\t\tregistryHost = args[0];\n\t\t\tregistryPort = Integer.parseInt(args[1]);\n\t\t} else if (args.length == 3) {\n\t\t\tregistryHost = args[0];\n\t\t\tregistryPort = Integer.parseInt(args[1]);\n\t\t\tlocalIP = args[2];\n\t\t} else {\n\t\t\tSystem.out.print(\"Usage: java RMIserver <Registry host> <Registry port> [ServerIP]\");\n\t\t\treturn;\t\t\t\n\t\t}\n\t\tRMIserver myserver = new RMIserver(localIP);\n\n\t\tRegistry registry;\n\t\tregistry = LocateRegistry.getRegistry(registryHost, registryPort);\n\n\t\twhile (true) {\n\t\t\tSystem.out.print(myserver.getPrompt());\n\t\t\tString cmdl = System.console().readLine();\n\t\t\tString cmdargs[] = cmdl.split(\" \");\n\t\t\tif (cmdargs[0].equals(\"register\")) {\n\t\t\t\tString class_name = cmdargs[1];\n\t\t\t\tString class_stub_name = cmdargs[1] + \"_stub\";\n\t\t\t\t// start a new thread to handle this particular server\n\t\t\t\t// object\n\t\t\t\tRunnable job = new ServerHandler(registry, class_name,\n\t\t\t\t\t\tclass_stub_name, localIP);\n\t\t\t\tThread t = new Thread(job);\n\t\t\t\tt.start();\n\t\t\t} else if (cmdargs[0].equals(\"exit\")) {\n\t\t\t\tSystem.out.println(\"Server Exisiting...\");\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tmyserver.printUsage();\n\t\t\t}\n\t\t}\n\t}", "public void connect() throws RemoteException, NotBoundException {\n\t\t//RMI starten & Binden\n\t\tRegistry registry = null;\n\t\tregistry = LocateRegistry.getRegistry(\"127.0.0.1\", Constant.RMI_PORT);\n\t\tserver = (ServerInterface) registry.lookup(Constant.RMI_ID);\n\t\tserver.login(client);\n\t\tSystem.out.println(\"[DEBUG] Spielernummer: \" + spielerNummer);\n\t\t//Mehr als 2 Spieler sind nicht zulaessig\n\t\tif(spielerNummer==-1) {\n\t\t\tSystem.out.println(\"[DEBUG] ungueltige Spielernummer!\");\n\t\t\tSystem.out.println(\"[DEBUG] Gute Nacht :(\");\n\t\t\tSystem.exit(0);\n\t\t}\n\n\t}", "@CallSuper\n public void registerOrganizer() {\n try {\n getController().registerOrganizer(mInterface);\n } catch (RemoteException e) {\n throw e.rethrowFromSystemServer();\n }\n }", "public synchronized void start(String hostname, Registration naming_server)\n throws RMIException, UnknownHostException, FileNotFoundException\n {\n if( !root.isDirectory() || !root.exists() ) {\n throw new FileNotFoundException(\"Server root not found or is not a directory\");\n }\n storage.start();\n command.start();\n \n // Wait for it to start?\n\n Path[] serverFiles = naming_server.register(\n Stub.create(Storage.class, storage, hostname),\n Stub.create(Command.class, command, hostname),\n Path.list(root));\n\n // Storage Server startup deletes all duplicate files on server.\n for(Path p : serverFiles) {\n p.toFile(root).delete();\n File parent = new File(p.toFile(root).getParent());\n \n while(!parent.equals(root)) {\n if(parent.list().length == 0) {\n parent.delete();\n } else {\n break;\n }\n parent = new File(parent.getParent());\n }\n } \n }", "public void addServer(String nameServer) { \n Server server = new Server(nameServer);\n serversList.add(server);\n }", "public RegistryImpl(int port) throws RemoteException\n {\n Skeleton skeleton = new Skeleton(this, \"127.0.0.1\", port, 0);\n skeleton.start();\n }", "@Override\n public void register() {\n }", "static void register() {\n }", "public void add_server(String host) throws LookupException, \n NameServerContactException{\n \n String ip = lookup_ip(host);\n int port = lookup_port(host);\n System.out.println(\"Lookup of host \" + host + \": Success\");\n \n Server server = new Server(host, ip, port);\n \n servers.put(host, server);\n }", "@Override\n public void run() {\n\n Message registerMessage = new Message(REGISTER_SATELLITE, satelliteInfo);\n try\n {\n\n Socket server = new Socket(serverInfo.getHost(), serverInfo.getPort());\n ObjectOutputStream toServer = new ObjectOutputStream(server.getOutputStream());\n System.out.println(\"[Satellite.run] registering satellite with server\");\n toServer.writeObject(registerMessage);\n }\n catch(IOException e)\n {\n System.err.println(e);\n }\n\n\n // create server socket with port in properties\n // ---------------------------------------------------------------\n try\n {\n ServerSocket serverSocket = new ServerSocket(satelliteInfo.getPort());\n System.out.println(\"[Satellite] successfully set up ServerSocket.\");\n // start taking job requests in a server loop\n // ---------------------------------------------------------------\n while (true)\n {\n Socket socket = serverSocket.accept();\n (new SatelliteThread(socket, this)).start();\n }\n }\n catch(IOException e)\n {\n System.err.println(e);\n }\n }", "public static void rebind(String name, myRemoteInterface obj) throws RemoteException, AlreadyBoundException {\n\t\n\t\tString className = obj.getClass().getCanonicalName();\n\t\tString ip = null;\n\t\ttry {\n\t\t\tip = InetAddress.getLocalHost().getHostAddress();\n \n\t\t} catch (UnknownHostException e1) {\n\t\t\te1.printStackTrace();\n\t\t}\n\t\t\n\t\tString nameWithSpace = Naming.parseHostPort(name);\n\t\tString args[] = nameWithSpace.split(\" \");\n\t\t\n\t\tRemoteObjectRef newRef = new RemoteObjectRef(ip, 9999,args[2] , className,\"rebind\");\n\t\t\n\t\tObjectMap.insertIntoServerMap(args[2], obj);\n\t\t\n\t\tRegistryInterface stub = null;\n\t\t try{\n\t\t\t \n\t\t\t Class<?> stub_class = Class.forName(\"registry.Registry_stub\");\n\t\t\t stub = (RegistryInterface)Class.forName(\"registry.Registry_stub\").newInstance();\n\t\t\t if(stub_class != null){\n\t\t\t\t byte[] temp = downloadToServer(stub_class, newRef);\n\t\t\t }\n\t\t} catch (InstantiationException | IllegalAccessException\n\t\t\t\t| ClassNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tstub.rebind(name, newRef);\n\t\t\n\t\t\n\t}", "public void registerService(String serviceName, Object service);", "public interface RMIInterface extends Remote {\n\n public String helloTo(String name) throws RemoteException;\n\n}", "public static void main(String[] args) {\n /* obtenção da localização do serviço de registo RMI */\n \n // nome do sistema onde está localizado o serviço de registos RMI\n String rmiRegHostName;\n \n // port de escuta do serviço\n int rmiRegPortNumb; \n\n RegistryConfig rc = new RegistryConfig(\"config.ini\");\n rmiRegHostName = rc.registryHost();\n rmiRegPortNumb = rc.registryPort();\n \n /* instanciação e instalação do gestor de segurança */\n if (System.getSecurityManager() == null) {\n System.setSecurityManager(new SecurityManager());\n }\n \n /* instanciação do objecto remoto que representa o referee site e geração de um stub para ele */\n RefereeSite referee_site = null;\n RefereeSiteInterface refereeSiteInterface = null;\n referee_site = new RefereeSite();\n \n try {\n refereeSiteInterface = (RefereeSiteInterface) UnicastRemoteObject.exportObject(referee_site, rc.refereeSitePort());\n } catch (RemoteException e) {\n System.out.println(\"Excepção na geração do stub para o referee site: \" + e.getMessage());\n System.exit(1);\n }\n \n System.out.println(\"O stub para o referee site foi gerado!\");\n\n /* seu registo no serviço de registo RMI */\n String nameEntryBase = RegistryConfig.registerHandler;\n String nameEntryObject = RegistryConfig.refereeSiteNameEntry;\n Registry registry = null;\n RegisterInterface reg = null;\n\n try {\n registry = LocateRegistry.getRegistry(rmiRegHostName, rmiRegPortNumb);\n } catch (RemoteException e) {\n System.out.println(\"Excepção na criação do registo RMI: \" + e.getMessage());\n System.exit(1);\n }\n \n System.out.println(\"O registo RMI foi criado!\");\n\n try {\n reg = (RegisterInterface) registry.lookup(nameEntryBase);\n } catch (RemoteException e) {\n System.out.println(\"RegisterRemoteObject lookup exception: \" + e.getMessage());\n System.exit(1);\n } catch (NotBoundException e) {\n System.out.println(\"RegisterRemoteObject not bound exception: \" + e.getMessage());\n System.exit(1);\n }\n\n try {\n reg.bind(nameEntryObject, refereeSiteInterface);\n } catch (RemoteException e) {\n System.out.println(\"Excepção no registo do referee site: \" + e.getMessage());\n System.exit(1);\n } catch (AlreadyBoundException e) {\n System.out.println(\"O referee site já está registado: \" + e.getMessage());\n System.exit(1);\n }\n \n System.out.println(\"O referee site foi registado!\");\n }", "private void register()\n {\n ScControlRegistry r = getRegistry();\n\n _key = r.getNextKey();\n r.register(this);\n }", "public SyncServer() throws RemoteException\r\n\t{\r\n\t\ttry {\r\n\t\t\tinit(SYNC);\r\n\t\t} catch (Exception e) {\r\n\t\t\tDebug.ErrorMessage(\"SyncServer initialization error\",\"Exception\" + e);\r\n\t\t}\r\n\t}", "public interface ServerRegisterListener {\r\n \r\n /**\r\n * Register server listener.\r\n *\r\n * @param server the server\r\n */\r\n public void registerServerListener(Server server);\r\n \r\n}", "@Override\n\tpublic void addServer(String arg0, int arg1, int arg2) throws IOException {\n\n\t}", "public void register() {\r\n\t\tHandlerSet hs = HandlerSet.getHandlerSet();\r\n\t\ths.addHandler(this);\r\n\t}", "public RegisterRemoteException() {\n super();\n }", "public void beginRegister() {}", "public void registerObject(NetObject object, String channel);", "protected RMIclientHandler(String s, Registry r) throws RemoteException {\r\n\t\tFile serverStorage = new File (s);\r\n\t\tserverStorage.mkdir();\r\n\t\tthis.registry=r;\r\n\t}", "public void register(T t);", "public void conectServer() {\n\n\t}", "public void register() throws Exception {\n/* 217 */ ChannelFuture future = this.loop.register((Channel)this);\n/* 218 */ assert future.isDone();\n/* 219 */ Throwable cause = future.cause();\n/* 220 */ if (cause != null) {\n/* 221 */ PlatformDependent.throwException(cause);\n/* */ }\n/* */ }", "@Override\n @GET\n @Path(\"/servers/{id}\")\n @Produces(\"application/json\")\n public Response getServerRegistration(@PathParam(\"id\") int id) throws JSONException {\n if (log.isTraceEnabled()) {\n log.trace(String.format(\"getServerRegistration(%d) started.\", id));\n }\n for (Server server : cluster.getServerList()) {\n if (server.getServerId() == id) {\n JSONObject o = new JSONObject();\n String uri = String.format(\"%s/servers/%d\", rootUri, server.getServerId());\n String serverUri = String.format(\"/providers/%d/servers/%d\", provider.getProviderId(), server.getServerId());\n o.put(\"uri\", uri);\n o.put(\"baseUri\", serverUri);\n log.trace(\"getServerRegistration() finished successfully. Server registration found.\");\n return Response.ok(o.toString()).build();\n }\n }\n\n log.trace(\"Server is not registered at given cluster.\");\n throw new WebApplicationException(Response.Status.NOT_FOUND);\n }", "public static void register () {\n channel = NetworkRegistry.newSimpleChannel(CHANNEL_NAME, ()->PROTOCOL_VERSION, PROTOCOL_VERSION::equals, PROTOCOL_VERSION::equals);\n\n cprCartSchedule.register();\n cprStationOrders.register();\n }", "@Override\n\tpublic void registListener(IListener listener) throws RemoteException {\n\t\tremoteCallbackList.register(listener);\n\t}", "public static void registerISTERs() {\n\n\t}", "public void setupServer(EventInterface server) throws RemoteException {\r\n this.server = server;\r\n this.agentID = server.connect(this);\r\n }", "public void register() throws ClosedChannelException {\n\t\tint clientOps = 0;\n\t\tif (serverBuffer.isReadyToWrite()) {\n\t\t\tclientOps |= SelectionKey.OP_READ;\n\t\t}\n\t\tif (clientBuffer.isReadyToRead()) {\n\t\t\tclientOps |= SelectionKey.OP_WRITE;\n\t\t}\n\t\tclientChannel.register(selector, clientOps, this);\n\n\t\tint serverOps = 0;\n\t\tif (clientBuffer.isReadyToWrite()) {\n\t\t\tserverOps |= SelectionKey.OP_READ;\n\t\t}\n\t\tif (serverBuffer.isReadyToRead()) {\n\t\t\tserverOps |= SelectionKey.OP_WRITE;\n\t\t}\n\t\tserverChannel.register(selector, serverOps, this);\n\t}", "@Test\n\tpublic void registerUserTest() throws RemoteException, NoSuchAlgorithmException, InvalidKeySpecException, IOException, InvalidKeyException, SignatureException, NoSuchPaddingException, IllegalBlockSizeException, BadPaddingException, UnrecoverableKeyException, KeyStoreException, CertificateException {\n\t\t\n\t\t// Creation of the server\n\t\tPasswordManager pm = new PasswordManager(8080);\n\n\t\t// Normal register\n\t\tString response = pm.registerUser(DatatypeConverter.printBase64Binary(cliPubKey.getEncoded()), \n\t\t\t\tDigitalSignature.getSignature(cliPubKey.getEncoded(),cliPrivKey));\n\n\t\t// Analyse the correctness of the answer\n\t\tAssert.assertNotSame(response, \"Error: Could not validate signature.\");\n\t}", "public static void main(String[] args) {\n\t\ttry {\n\t\t\tRegistryInterface rInterface = new RegistryServer();\n\t\t\tint portnum=Integer.parseInt(args[1]);\n\t\t\tInetAddress iAddress=InetAddress.getByName(args[0]);\n\t\t\tSocketFactory sFactory=new SocketFactory(iAddress);\n\t\t\tRegistry registry = LocateRegistry.createRegistry(portnum,null,sFactory);\n\t\t\tregistry.bind(\"registryServer\", rInterface);\n\t\t} catch (RemoteException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (AlreadyBoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (UnknownHostException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@NotNull\n public AsynchResult<Server> addServer(AddServerRequestV1 request) {\n // TODO \n // We need first to probe the server to find out some server properties to decide what kind of client to use.\n var client = new HuaweiServerHardwareClient(request.address, request.username, request.password);\n var basicInfo = client.getServerBasicInfo();\n var currentServer = serverRepository.findFirstByAssetInfoSerialNumber(basicInfo.assetInfo.serialNumber);\n if (currentServer != null) {\n throw new ResourceAlreadyExistException();\n }\n var initializedServer = Server.initialize(basicInfo);\n initializedServer = serverRepository.save(initializedServer);\n var context = new AddServerContext();\n return context.run();\n }", "public void addServer(Identity identity, ServerInvokerMetadata invokers[]);", "public interface ServerIF extends RemoteIF{\n void RegisterClient(ClientIF client) throws RemoteException;\n void WelcomeScreen() throws RemoteException;\n ArrayList<ClientIF> getClients() throws RemoteException;\n}", "public void start() throws RemoteException, AlreadyBoundException\n {\n start(DEFAULT_PORT);\n }", "public boolean registerNode(Node node, String remoteHost, String remoteAddress, OutputStream out, boolean isRequestedRegistration) throws IOException;", "public static void main(String[] args) throws RemoteException {\n\t\tServidorRMI server = new ServidorRMI();\n\t}", "public static boolean register() {\n try {\n buildSocket();\n ClientService.sendMessageToServer(connectionToServer, ClientService.requestRegistration());\n ClientService.receiveMessageFromServer(connectionToServer);\n closeSocket();\n } catch (Exception e) {\n e.printStackTrace();\n }\n return !ClientService.getLastMessageFromServer().contains(XML_Manager.XML_NODES.Error.toString());\n }" ]
[ "0.77748054", "0.67850983", "0.6749538", "0.6698743", "0.6489723", "0.6458656", "0.63450074", "0.63382864", "0.6286794", "0.62738395", "0.62708086", "0.6116553", "0.60693246", "0.606557", "0.6055274", "0.60541165", "0.6020603", "0.5973826", "0.5967302", "0.5944858", "0.5933513", "0.5905686", "0.5890087", "0.58870614", "0.588273", "0.58228475", "0.5813156", "0.5811616", "0.5808782", "0.5799734", "0.5793327", "0.5776826", "0.5762178", "0.5754186", "0.5749291", "0.5713224", "0.5706029", "0.5702786", "0.57025456", "0.5689179", "0.56847185", "0.56624115", "0.5661178", "0.56607324", "0.5654676", "0.5653588", "0.56350297", "0.56283116", "0.56192034", "0.5609169", "0.5600454", "0.55831426", "0.55830586", "0.5582284", "0.5581234", "0.5580463", "0.5577871", "0.5571672", "0.5555032", "0.5550469", "0.5528137", "0.5521343", "0.5494917", "0.54939735", "0.5486583", "0.5480889", "0.54721147", "0.54706115", "0.5470412", "0.54702204", "0.5466996", "0.54504", "0.54499006", "0.5442676", "0.5442418", "0.54297256", "0.5422492", "0.5419161", "0.5390923", "0.53833276", "0.53787917", "0.53666824", "0.53653586", "0.53491044", "0.5337662", "0.5337601", "0.5332556", "0.5331393", "0.53254265", "0.5320478", "0.53203547", "0.5318823", "0.5317529", "0.5316703", "0.53150445", "0.53131795", "0.53114593", "0.5301415", "0.52984613", "0.52900213" ]
0.72119343
1
Setup GP related state.
private void initGP() { log.info("Initializing GP"); geneticProgram.addPopulationObserver(this); geneticProgram.initialize(); frontRunner = geneticProgram.getProgram(0); // A safe default }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void gameSetup(){\n\t\tboard.boardSetup();\n\t\tdirectionArray = setUpDirectionArray();\n\t\tcurrentPlayer = SharedConstants.PlayableItem.BLACK;\n\t\tcurrentState = SharedConstants.GameStatus.PLAYING;\n\t\tgameStateModel = new GameSateModel();\n\t\tloadGame = new GameStateRetriever();\n\t\tsaveGame = new GameStateWrter(connectFourModel.getGameStateModel());\n\t}", "public void setUp() {\r\n state1 = new DateState(new State(20200818, \"VM\", 110, 50, 123, 11, 19,\r\n 65, \"A+\", 15)); // root\r\n test1 = state1;\r\n state2 = new DateState(new State(20200818, \"VA\", 72, 43, 79, 12, 17, 33,\r\n \"B\", 9));\r\n state3 = new DateState(new State(20200817, \"VA\", 72, 43, 79, 12, 17, 33,\r\n \"B\", 9));\r\n state4 = new DateState(new State(20200817, \"VM\", 110, 50, 123, 11, 19,\r\n 65, \"A+\", 15));\r\n nullState = null;\r\n }", "protected void initGSM() {\n gsm = new GameStateManager();}", "@BeforeClass\n public static void setup() {\n // initialize the singleton of parking state\n ParkingState.getInstance();\n }", "@Before\n public void setUp()\n {\n //ping for CSSE UWA\n csse = new GPSping(-31.977484,115.816228,1565063614);\n //ping for Perth train station 1 hour later\n perth = new GPSping(-31.951078,115.859945,1565063614+3600);\n //ping for Musee d'Orsay Paris on 20 Aug 2019\n paris = new GPSping(48.859741,2.326609,1566270756);\n //erroneous pings\n err1 = new GPSping(115.816228,-31.977484,1565063614);\n err2 = new GPSping(200,100,20);\n }", "@Override\n\tprotected void setUp() throws Exception\n\t{\n\t\tTestEnvironment te = TestEnvironment.getTestEnvironment();\n\n\t\tif (EquationCommonContext.getContext().checkIfGPIsInstalled(te.getSessionId()))\n\t\t{\n\t\t\tEquationCommonContext.getContext().loadEquationConfigurationPropertiesBean();\n\t\t\tEquationCommonContext.getContext().runSystemStatusManagerMonitor();\n\t\t}\n\t\tif (session == null)\n\t\t{\n\t\t\tunit = te.getEquationUnit();\n\t\t\tuser = te.getEquationUser();\n\t\t\tsession = user.getSession();\n\t\t}\n\n\t\tsuper.setUp();\n\t}", "@Before\n public void setUp()\n {\n m1 = new GumballMachine(5);\n hasQuart1 = new HasQuarterState(m1);\n }", "protected void initialize() {\n \tstartTime = System.currentTimeMillis();\n \tintake.setLeftPower(power);\n \tintake.setRightPower(power);\n }", "private void importState() {\n SpeakerManager s = new SpeakerManager();\n this.speakerManager = s.importState();\n\n RoomManager r = new RoomManager();\n this.roomManager = r.importState();\n\n OrganizerManager o = new OrganizerManager();\n this.organizerManager = o.importState();\n\n EventManager e = new EventManager();\n this.eventManager = e.importState();\n\n ChatManager c = new ChatManager();\n this.chatManager = c.importState();\n\n AttendeeManager a = new AttendeeManager();\n this.attendeeManager = a.importState();\n\n\n }", "private void setUpGame() {\n\t\tsetUpBlocks();\n\t\tsetUpBall();\n\t\tsetUpPaddle();\n\t\taddMouseListeners();\n\t}", "@Override\n\tpublic void setUp() {\n\t\tsuper.setUp();\n\t\taddOperator(\n\t\t\t\tOPERATOR_NAME,\n\t\t\t\tOPERATOR_PREFIX,\n\t\t\t\tSMS_COST,\n\t\t\t\tVOICE_COST,\n\t\t\t\tVIDEO_COST,\n\t\t\t\tTAX,\n\t\t\t\tBONUS);\n\t\taddPhone3G(EXISTING_NUMBER);\n\t\taddPhone3G(EXISTING_NUMBER2);\n\t\tincreasePhoneBalance(EXISTING_NUMBER, CASH);\n\t\tchangePhoneState(EXISTING_NUMBER, stateRepresention.getOnState());\n\t\tchangePhoneState(EXISTING_NUMBER2, stateRepresention.getOnState());\n\t}", "public GlobalState() {\r\n\t\t//initialize ITANet location vector\r\n\t\tint ITACount = Model.getITACount();\r\n\t\tthis.locVec = new int[ITACount];\r\n\t\tfor (int i = 0; i < ITACount; i++){\r\n\t\t\tthis.locVec[i] = Model.getITAAt(i).getInitLoc();\r\n\t\t}\r\n\r\n\t\t//initialize interruption vector\r\n\t\tint interCount = Model.getInterCount();\r\n\t\tthis.interVec = new boolean[interCount];\r\n\t\tfor(int i = 0; i < interCount; i++){\r\n\t\t\tthis.interVec[i] = false;\r\n\t\t}\r\n\t\t\r\n\t\tthis.cvMap = Model.getCVMap(); //share 'cvMap' with Model\r\n\t\tthis.srArray = Model.getSRArray();\t//share 'srArray' with Model \r\n\t\tthis.stack = new CPUStack();\r\n\t\tthis.switches = new IRQSwitch();\r\n\t}", "protected abstract void setup();", "public void setup(final EvolutionState state, final Parameter base) \r\n {\n }", "protected void initialize() {\n \tRobot.io.bottomGyro.reset();\n \tRobot.io.topGyro.reset();\n \tpid.reset();\n \tpid.setSetpoint(rotAngle);\n \tpid.enable();\n }", "protected void initialize() {\n \tif (state == PistonPositions.Extended) moving = Robot.armPiston.smartExtend();\n \telse Robot.armPiston.smartRetract();\n }", "protected void setUp() {\n multiplicity = new MultiplicityImpl();\n owner = new StereotypeImpl();\n typedValue = new TaggedValueImpl();\n instance = new TagDefinitionImpl();\n }", "@Override\r\n\tprotected final void setup() {\r\n \tsuper.setup();\r\n\r\n \tdoSetup();\r\n }", "public void gameSetUp() {\n if (!running.get()) return;\n if (!setup.compareAndSet(true, false)) return;\n ArrayList<GodController> controllers = new ArrayList<GodController>();\n controllers.add(new ApolloController(this));\n controllers.add(new ArtemisController(this));\n controllers.add(new AthenaController(this));\n controllers.add(new AtlasController(this));\n controllers.add(new DemeterController(this));\n controllers.add(new HephaestusController(this));\n controllers.add(new HestiaController(this));\n controllers.add(new LimusController(this));\n controllers.add(new MedusaController(this));\n controllers.add(new MinotaurController(this));\n controllers.add(new PanController(this));\n controllers.add(new PrometheusController(this));\n controllers.add(new TritonController(this));\n controllers.add(new ZeusController(this));\n\n Deck deck = game.getDeck();\n\n for (GodController godController : controllers) {\n deck.addCard(godController.generateCard());\n }\n\n players = game.getPlayers();\n\n try {\n broadcastGameInfo(\"gameSetup\");\n broadcastMessage(\"Game started!\");\n broadcastMessage(\"Picking cards...\");\n pickCards();\n broadcastGameInfo(\"boardSetup\");\n chooseStartPlayer();\n placeWorkers();\n\n broadcastGameInfo(\"gameStart\");\n playGame();\n } catch (IOExceptionFromController e) {\n handleDisconnection(e.getController());\n }\n }", "private GameStatePresets()\n {\n\n }", "protected void initCurrentGP() {\n\t\t// centers the falling pieces at the top row\n\t\tcurrentPieceGridPosition = new int[]{0, 3};\n\t}", "protected void setup() {\r\n }", "protected void setup() {\n\t\t\n\n\n\t\tif(PropertiesLoaderImpl.IS_MAIN_SIMULATION_NODE)addBehaviour(new HandleClockBehaviour(this, TimeRateControl));\n\t\telse addBehaviour(new SlaveNodeClockBehaviour(this, TimeRateControl));\n\t\t\n\t\tif(PropertiesLoaderImpl.DEBUG) System.out.println(this.getName() +\" alive!!!!!!!!!!\\nStarting the simulation time\");\n\t\t\n\t\n\t\t\tSimulationClock.getInstance().setSimulationStarted(true);\n\t\n\t}", "protected void init() {\n currentState.bgColor = appliedState.bgColor = gc.getBackground();\n currentState.fgColor = appliedState.fgColor = gc.getForeground();\n currentState.font = appliedState.font = gc.getFont();\n currentState.lineAttributes = gc.getLineAttributes();\n appliedState.lineAttributes = clone(currentState.lineAttributes);\n currentState.graphicHints |= gc.getLineStyle();\n currentState.graphicHints |= gc.getAdvanced() ? ADVANCED_GRAPHICS_MASK\n : 0;\n currentState.graphicHints |= gc.getXORMode() ? XOR_MASK : 0;\n\n appliedState.graphicHints = currentState.graphicHints;\n\n currentState.relativeClip = new RectangleClipping(gc.getClipping());\n currentState.alpha = gc.getAlpha();\n }", "private void setup() {\n\t\t map.setMyLocationEnabled(true);\n\t \n\t CameraPosition cameraPosition = new CameraPosition.Builder()\n\t .target(USMP_LOCATION) // Sets the center of the map to\n\t // Golden Gate Bridge\n\t .zoom(16) // Sets the zoom\n\t .bearing(90) // Sets the orientation of the camera to east\n\t .tilt(60) // Sets the tilt of the camera to 30 degrees\n\t .build(); // Creates a CameraPosition from the builder\n\t \n\t CameraUpdate cameraUpdate=CameraUpdateFactory.newCameraPosition(\n\t \t cameraPosition);\n\t\t map.animateCamera(cameraUpdate);\n\t\t \n\t map.addMarker(new MarkerOptions()\n\t .position(USMP_LOCATION)\n\t .title(\"DevFest 2013 Season 2\"));\n\t}", "public void setup() {\n space = null;\n rabbitList = new ArrayList<>();\n schedule = new Schedule(1);\n\n //recreate main window\n if (displaySurf != null) {\n displaySurf.dispose();\n }\n displaySurf = null;\n displaySurf = new DisplaySurface(this, \"Rabbits Grass Simulation 1\");\n registerDisplaySurface(\"Rabbits Grass Simulation 1\", displaySurf);\n\n //recreate population plot\n if (populationPlot != null) {\n populationPlot.dispose();\n }\n populationPlot = null;\n populationPlot = new OpenSequenceGraph(\"Population Plot\", this);\n populationPlot.setYAutoExpand(false);\n populationPlot.setYRange(0, 200);\n this.registerMediaProducer(\"Plot\", populationPlot);\n }", "abstract void setup();", "public void setup() {\n }", "protected void initialize() {\n\t\tRobot.chassis.setVelocityPIDSlot();\n\n\t\t// Set Talon to MP mode\n\t\tSystem.out.println(\"DriveByMotion: Change Talon to MP Mode\");\n\n\t\t// Disable MP\n\t\tstate = SetValueMotionProfile.Disable;\n\t\tleftTalon.set(ControlMode.MotionProfile, state.value);\n\t\trightTalon.set(ControlMode.MotionProfile, state.value);\n\t\tSystem.out.println(\"DriveByMotion: Disable MP Mode\");\n\n\t\t// Push Trajectory\n\t\tpushTrajectory(leftTalon, leftPoints);\n\t\tpushTrajectory(rightTalon, rightPoints);\n\t\tSystem.out.println(\"DriveByMotion: Push Trajectory\");\n\n\t\t// Start Periodic Notifier\n\t\tleftTalon.changeMotionControlFramePeriod(5);\n\t\trightTalon.changeMotionControlFramePeriod(5);\n\t\tnotifier.startPeriodic(0.005);\n\t\tSystem.out.println(\"DriveByMotion: Start Periodic\");\n\n\t}", "protected void initialize() {\r\n x = 0;\r\n y = 0;\r\n driveTrain.reInit();\r\n }", "protected void initialize() {\n \tif ((deploy && Robot.intake.getHopperTracker() == Status.deployed) || \n \t\t\t(!deploy && Robot.intake.getHopperTracker() == Status.stowed)) {\n \t\t// Hopper is already in desired position, so do nothing\n \t\twaitForMovement = false;\n \t} else if (deploy && (Robot.intake.getIntakeTracker() != Status.deployed)) {\n \t\t// Can't deploy hopper if intake is not deployed (ie., if stowed or unknown or moving)\n \t\twaitForMovement = false;\n \t} else {\n \t\t// OK, we can move the hopper\n \t\twaitForMovement = true;\n \t\tRobot.intake.setHopperTracker(Status.unknown);\t// put in unknown state while hopper is moving\n \tif (deploy) Robot.intake.deployHopper();\n \telse { Robot.intake.stowHopper(); }\n \t}\n }", "protected void setupImpl()\n {\n hint(DISABLE_DEPTH_TEST);\n font = loadFont(\"Futura-CondensedExtraBold-200.vlw\");\n textFont(font, 200);\n mode = 0;\n\n // Mode 3\n w = width * 2;\n dx = (TWO_PI / period) * xspacing;\n yvalues = new float[w/xspacing];\n\n // Mode 5\n mod = loadImage(\"mod.png\");\n modSizes = new int[scaledBandLevels.length];\n }", "protected void initialize() {\n \tsetSetpoint(0.0);\n }", "protected void setup() {\n DFAgentDescription dfd = new DFAgentDescription();\n dfd.setName(getAID());\n ServiceDescription sd = new ServiceDescription();\n sd.setName(\"Storage Agent\");\n sd.setType(\"Storage\");\n dfd.addServices(sd);\n try {\n DFService.register(this, dfd);\n } catch (FIPAException fe) {\n fe.printStackTrace();\n }\n waitForAgents = new waitAgents();\n receiveAgents = new receiveFromAgents();\n operate = new opMicrogrid();\n decision = new takeDecision();\n\n addBehaviour(waitForAgents);\n\n //add a ticker behavior to monitor PV production, disable PLay button in the meanwhile\n addBehaviour(new TickerBehaviour(this, 5000) {\n protected void onTick() {\n if (AgentsUp == 0) {\n appletVal.playButton.setEnabled(false);\n ACLMessage msg = new ACLMessage(ACLMessage.INFORM);\n msg.addReceiver(new AID(AgentAIDs[2].getLocalName(), AID.ISLOCALNAME));\n msg.setContent(\"Inform!!!\");\n send(msg);\n String stripedValue = \"\";\n msg = receive();\n if (msg != null) {\n // Message received. Process it\n String val = msg.getContent().toString();\n stripedValue = (val.replaceAll(\"[\\\\s+a-zA-Z :]\", \"\"));\n //PV\n if (val.contains(\"PV\")) {\n System.out.println(val);\n PV = Double.parseDouble(stripedValue);\n appletVal.playButton.setEnabled(true);\n appletVal.SetAgentData(PV, 0, 2);\n }\n\n } else {\n block();\n }\n\n }\n }\n });\n\n }", "public CurrentRobotState() {\r\n currentPos = new RobotCoordinates();\r\n motorState = new Motor();\r\n reInitialize();\r\n }", "protected void initialize() {\n done = false;\n\n\n prevAutoShiftState = driveTrain.getAutoShift();\n driveTrain.setAutoShift(false);\n driveTrain.setCurrentGear(DriveTrain.DriveGear.High);\n// double p = SmartDashboard.getNumber(\"drive p\", TTA_P);\n// double i = SmartDashboard.getNumber(\"drive i\", TTA_I);\n// double d = SmartDashboard.getNumber(\"drive d\", TTA_D);\n// double rate = SmartDashboard.getNumber(\"rate\", TTA_RATE);\n// double tolerance = TTA_TOLERANCE; // SmartDashboard.getNumber(\"tolerance\", 2);\n// double min = SmartDashboard.getNumber(\"min\", TTA_MIN);\n// double max = SmartDashboard.getNumber(\"max\", TTA_MAX);\n// double iCap = SmartDashboard.getNumber(\"iCap\", TTA_I_CAP);\n// pid = new PID(p, i, d, min, max, rate, tolerance, iCap);\n pid = new PID(TTA_P, TTA_I, TTA_D, TTA_MIN, TTA_MAX, TTA_RATE, TTA_TOLERANCE, TTA_I_CAP);\n\n driveTrain.setSpeedsPercent(0, 0);\n driveTrain.setCurrentControlMode(ControlMode.Velocity);\n }", "protected void initialize() {\n \t_finalTickTargetLeft = _ticksToTravel + Robot.driveTrain.getEncoderLeft();\n \t_finalTickTargetRight = _ticksToTravel + Robot.driveTrain.getEncoderRight();\n \t\n }", "void initialise() {\n this.sleep = false;\n this.owner = this;\n renewNeighbourClusters();\n recalLocalModularity();\n }", "protected void initialize() { \tthePrintSystem.printWithTimestamp(getClass().getName()); \n\tthis.isDone = false;\n\t\n\ttheLoader.setSetpoint(1.5);\n\t\n }", "@Before\n\tpublic void setup() {\n\t\tthis.driver = new FirefoxDriver();\n\t\tthis.homePage = new HomePage(driver);\n\t\tthis.searchResult = new SearchResult(driver);\n\t\tthis.checkout = new CheckOut(driver);\n\n\t\t// Define an implicit wait of 10 seconds for page load\n\t\tdriver.manage().timeouts().pageLoadTimeout(10, TimeUnit.SECONDS);\n\t}", "protected void initialize() {\n\t\t\n\t\tif (trajectoryToFollow.highGear) {\n\t\t\tRobot.pneumatics.drivetrainShiftUp();\n\t\t}else {\n\t\t\t//Robot.pneumatics.drivetrainShiftDown();\n\t\t\tRobot.pneumatics.drivetrainShiftUp();\n\t\t}\n\n\t\tsetUpTalon(leftTalon);\n\t\tsetUpTalon(rightTalon);\n\n\t\tsetValue = SetValueMotionProfile.Disable;\n\n\t\trightTalon.set(ControlMode.MotionProfileArc, setValue.value);\n\t\tleftTalon.follow(rightTalon, FollowerType.AuxOutput1);\n\n\t\tloadLeftBuffer = new Notifier(\n\t\t\t\tnew BufferLoader(rightTalon, trajectoryToFollow.centerProfile, trajectoryToFollow.flipped,\n\t\t\t\t\t\tRobot.drivetrain.getDistance()));\n\n\t\tloadLeftBuffer.startPeriodic(.005);\n\t}", "private StateUtils() {}", "private void setupEnvironment() {\n // Create mocks for configurations\n bgpConfig = createMock(BgpConfig.class);\n participantsConfig = createMock(SdxParticipantsConfig.class);\n\n // Create mocks for services\n coreService = new TestCoreService();\n configService = new TestNetworkConfigService();\n registry = new NetworkConfigRegistryAdapter();\n interfaceService = createMock(InterfaceService.class);\n interfaceService.addListener(anyObject(InterfaceListener.class));\n expectLastCall().anyTimes();\n intentSynchronizer = createMock(IntentSynchronizationService.class);\n }", "protected void initialize() {\n\t\tif (type == switchType.True) {\n\t\t\tVariables.platformStatus = true;\n\t\t}\n\t\telse if (type == switchType.False) {\n\t\t\tVariables.platformStatus = false;\n\t\t}\n\t\telse {\n\t\t\tVariables.platformStatus = !Variables.platformStatus;\n\t\t}\n\t\tgo.start();\n\t}", "private void setDGState(int dgCode, boolean state){\r\n source.setDGState(dgCode, state);\r\n }", "private void setupSharedPreferences() {\n SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(this);\n\n //set the driver name and track variables using methods below, which are also called from onSharedPreferencesChanged\n setDriver(sharedPreferences);\n setTrack(sharedPreferences);\n }", "protected void setup(){\n\n\t\tsuper.setup();\n\n\t\tfinal Object[] args = getArguments();\n\t\tif(args!=null && args[0]!=null && args[1]!=null){\n\t\t\tdeployAgent((Environment) args[0],(EntityType)args[1]);\n\t\t}else{\n\t\t\tSystem.err.println(\"Malfunction during parameter's loading of agent\"+ this.getClass().getName());\n System.exit(-1);\n }\n\t\t\n\t\t//############ PARAMS ##########\n\n\t\tthis.nbmodifsmin \t\t= 30;\t\t\t//nb modifs minimum pour renvoyer la carte\n\t\tthis.timeOut \t\t\t= 1000 * 4;\t\t//secondes pour timeout des messages (*1000 car il faut en ms)\n\t\tthis.sleepbetweenmove \t= 200;\t\t\t//in MS\n\t\tthis.nbmoverandom\t\t= 4;\t\t\t// nb random moves by default\n\t\t\n\t\t//#############################\n\t\t//setup graph\n\t\t//setupgraph();\n\t\tthis.graph = new SingleGraph(\"graphAgent\");\n\t\tinitMyGraph();\n\t\tthis.step = 0;\n\t\tthis.stepMap = new HashMap<String, Integer>();\n\t\tthis.path = new ArrayList<String>();\n\t\tthis.mailbox = new Messages(this);\n\t\tthis.lastMsg = null;\n\t\tthis.switchPath = true;\n\t\tthis.lastsender = null;\n\t\tthis.lastSentMap = new HashMap<String, Integer>(); //nbmodifs\n\t\tthis.remakepath = false; // changes to true if the map changed in a way that requires a new path\n\t\tthis.nbmoverandomoriginal = this.nbmoverandom;\n\t\t\n\t\tthis.toSendMap = new HashMap<String, Graph>(); //actual hashmap graph\n\t\t\n\t\tSystem.out.println(\"the agent \"+this.getLocalName()+ \" is started\");\n\t}", "@Override\r\n\tpublic void setup(Topology topology, TaskDistribution td, Agent agent) {\r\n\t\tSystem.out.println(\"Seting up...\");\r\n\t\t// Reads the discount factor from the agents.xml file.\r\n\t\t// If the property is not present it defaults to 0.95\r\n\t\tthis.discount = agent.readProperty(\"discount-factor\", \r\n\t\t\t\t\t\t\t\t\t\t\tDouble.class,\r\n\t\t\t\t\t\t\t\t\t\t\t0.95);\r\n\t\tthis.epsilon = 0.001;\r\n\t\tthis.numActions = 0;\r\n\t\tthis.myAgent = agent;\r\n\t\tthis.topology = topology;\r\n\t\tthis.td = td;\r\n\t\t\r\n\t\tRouteState.initializeStates(this.topology.cities());\r\n\t\tRouteAction.initializeActions(this.topology.cities());\r\n\t\t\r\n\t\tthis.Q = Tables.initializeQ();\r\n\t\tthis.V = Tables.initializeV();\r\n\t\tthis.R = Tables.initializeR(this.myAgent, this.td);\r\n\r\n\t\tSystem.out.println(\"Start RLA...\");\r\n\t\trla();\r\n\t}", "public void setup() {\n statsTable();\n spawnsTable();\n }", "public void simulationSetup(SimulationEnvironment env) {\n synchronized (this) {\n netSnsMap = null;\n }\n }", "private void setup() {\n\t\tpopulateEntitiesLists();\n\t\t// rayHandler.setCombinedMatrix(batch.getProjectionMatrix());\n\t\tambientColor = Color.CLEAR;\n\t\tsetAmbientAlpha(.3f);\n\t\tfpsLogger = new FPSLogger();\n\t\tdynamicEntities = new ArrayList<DynamicEntity>();\n\t\tfont.getData().setScale(DEBUG_FONT_SCALE);\n\t}", "public void setUp() {\n System.setProperty(\"dexmaker.dexcache\", getContext().getCacheDir().toString());\n MockitoAnnotations.initMocks(this);\n\n when(mContext.getSystemService(DEVICE_POLICY_SERVICE)).thenReturn(mDevicePolicyManager);\n\n mHelper = new UserProvisioningStateHelper(\n mContext,\n mUtils,\n mSettingsFacade,\n PRIMARY_USER_ID);\n }", "public void setGameState(GameState gs){\n this.gameState = gs;\n }", "protected void initialize() {\n\t\t// set the target for the PID subsystem\n\t\tRobot.minipidSubsystem.setSetpoint(90);\n\n\t\t// set the minimum and maximum output limits for the PID subsystem\n\t\tRobot.minipidSubsystem.setOutputLimits(-80, 80);\n\n\t\t// Disable safety checks on drive subsystem\n\t\tRobot.driveSubsystem.robotDrive.setSafetyEnabled(false);\n\t\t\n\t\tRobot.camera.setBrightness(0);\n\n\t}", "protected void initialize() {\n \tRobot.gearIntake.setIsDown(true);\n }", "protected void initialize()\n {\n // Set the pid up for driving straight\n Robot.drivetrain.getAngleGyroController().setPID(Constants.DrivetrainAngleGyroControllerP, Constants.DrivetrainAngleGyroControllerI, Constants.DrivetrainAngleGyroControllerD);\n //Robot.drivetrain.resetGyro();\n if (setpointSpecified == true)\n {\n Robot.drivetrain.getAngleGyroController().setSetpoint(Robot.initialGyroAngle); \n }\n else\n {\n Robot.drivetrain.getAngleGyroController().setSetpoint(Robot.drivetrain.getGyroValue());\n }\n Robot.drivetrain.setDirection(driveDirection);\n Robot.drivetrain.setMagnitude(drivePower);\n Robot.drivetrain.getAngleGyroController().enable();\n timer.reset();\n timer.start();\n }", "public void resetgamestate() {\n \tthis.gold = STARTING_GOLD;\n \tthis.crew = STARTING_FOOD;\n \tthis.points = 0;\n \tthis.masterVolume = 0.1f;\n this.soundVolume = 0.5f;\n this.musicVolume = 0.5f;\n \n this.ComputerScience = new Department(COMP_SCI_WEPS.getWeaponList(), COMP_SCI_UPGRADES.getRoomUpgradeList(), this);\n this.LawAndManagement = new Department(LMB_WEPS.getWeaponList(), LMB_UPGRADES.getRoomUpgradeList(), this);\n this.Physics = new Department(PHYS_WEPS.getWeaponList(), PHYS_UPGRADES.getRoomUpgradeList(), this);\n \n this.playerShip = STARTER_SHIP.getShip();\n this.playerShip.setBaseHullHP(700);\n this.playerShip.repairHull(700);\n this.combatPlayer = new CombatPlayer(playerShip);\n }", "public void initialize() {\n\n\t\tthis.subNetGenes = getSubNetGenes(species, xmlFile);\n\t\tthis.subNetwork = getSubNetwork(subNetGenes, oriGraphFile);\n\t\tHPNUlilities.dumpLocalGraph(subNetwork, subNetFile);\n\t\t/* Create level file for the original graph */\n\t\tHPNUlilities.createLevelFile(codePath, oriGraphFile, oriLevel,\n\t\t\t\tglobalLevelFile, penaltyType, partitionSize);\n\n\t}", "public static void startStateGC() {\n synchronized (stateGC) {\n if(!stateGC.isAlive()) {\n stateGC.setDaemon(true);\n stateGC.start();\n }\n }\n }", "protected void initialize() {\n \t//instantiate PIDs with motor groups\n \t\n \tPIDOutputGroup leftSide = new PIDOutputGroup(new PIDOutput[] {Robot.drive.frontLeftMotor, Robot.drive.backLeftMotor}, new Boolean[] {false, false}, 1.0);\n \t\n \tPIDOutputGroup rightSide = new PIDOutputGroup(new PIDOutput[] {Robot.drive.frontRightMotor, Robot.drive.backRightMotor}, new Boolean[] {true, true}, 1.0);\n\n \t//reset PIDs\n \tRobot.drive.leftEncoder.reset();\n \tRobot.drive.rightEncoder.reset();\n \t\n \t//set PID type\n \tRobot.drive.leftEncoder.setPIDSourceType(PIDSourceType.kRate);\n \tRobot.drive.rightEncoder.setPIDSourceType(PIDSourceType.kRate);\n \t\n \tleftEncoderPID = new PIDController(lEncoderP, lEncoderI, lEncoderD, Robot.drive.leftEncoder, leftSide);\n \t\n \trightEncoderPID = new PIDController(rEncoderP, rEncoderI, rEncoderD, Robot.drive.rightEncoder, rightSide);\n \t\n \tleftEncoderPID.setContinuous();\n \trightEncoderPID.setContinuous();\n \t\n \t\n \tleftEncoderPID.enable();\n \trightEncoderPID.enable();\n \t\n \t\n \t//timer things\n \ttimer = new Timer();\n \ttimer.start();\n \t\n \t//set timer times\n \ttAccelerating = maxVelocity / acceleration;\n \ttCruising = (distance - (Math.pow(maxVelocity, 2) / acceleration)) / maxVelocity;\n \ttTotal = 2 * tAccelerating + tCruising;\n \t\n \t//reset gyro\n \tRobot.gyroscope.reset();\n \t\n \t//set starting state\n \tcurrentState = DriveState.accelerating;\n }", "private void initialize() {\n\t\troot = new Group();\n\t\tgetProperties();\n\t\tsetScene();\n\t\tsetStage();\n\t\tsetGUIComponents();\n\t}", "@Override\n protected void initialize() {\n ramper.reset();\n Robot.toteLifterSubsystem.setGateState(GateState.OPEN);\n }", "@BeforeClass(groups = { \"WorkflowNG\" })\n\tpublic void setUp() {\n\n\t\ttry {\n\t\t\t\n\t\t\tlog.warn(\"Starting: \" + this.getClass().getSimpleName());\n\n\t\t\tIEUtil.openNewBrowser();\n\t\t\tGeneralUtil.navigateToPO();\n\t\t\tGeneralUtil.logInSuper();\n\t\t\t// -----------------------------------\n\n\t\t} catch (Exception e) {\n\t\t\tAssert.fail(\"Unexpected error or exception\", e);\n\t\t}\n\t}", "void state_INIT(){\r\n eccState = INDEX_INIT;\r\n alg_INIT();\r\n INITO.serviceEvent(this);\r\n state_START();\r\n}", "public static void setup() {\n/* 78 */ s_envCurrentJRE = getProperty(\"jnlpx.jpda.env\");\n/* 79 */ o_envCurrentJRE = decodeJpdaEnv(s_envCurrentJRE);\n/* */ \n/* */ \n/* */ \n/* 83 */ if (getProperty(\"jpda.notification\") != null) {\n/* 84 */ showJpdaNotificationWindow(o_envCurrentJRE);\n/* 85 */ Main.systemExit(0);\n/* */ } \n/* */ }", "public PigLocalGame() {\n pgs = new PigGameState();\n }", "public void setup() {\r\n\r\n\t}", "@Before\n\tpublic void testEachSetup() {\n\t\ttestGrid = new Grid(50,50);\n\t\tundoRedo_TestStack = new UndoRedo();\n\t\tSystem.out.println(\"Setting up test...\");\n\t}", "@Override\n\tpublic void initializeState(){\n\t\tSystem.out.println(\"Entered instructionState\");\n\t}", "protected void initialize() {\n\t\tpid.setSetpoint((goalRotation + Robot.imu.getHeading() + 360) % 360);\n\t\tpid.enable();\n\t}", "protected void setupLocal() {}", "private void setupGame() {\n \tdrawBricks();\n \tdrawPaddle();\n \tdrawBall(); \t\n \tsetInitialBallVelocity();\n }", "@Override\n protected void initialize(){\n drivetrain.clearOldMotionProfiles();\n drivetrain.zeroEncoders();\n try{\n drivetrain.loadMotionProfile(name, isInverted);\n } catch (IOException e) {\n done = true;\n }\n drivetrain.startMotionProfile(name);\n }", "protected void initialize ()\n\t{\n\t\tSubsystems.goalVision.processNewImage();\n\t\t\n \t//Send positive values to go forwards.\n \tSubsystems.transmission.setLeftJoystickReversed(true);\n \tSubsystems.transmission.setRightJoystickReversed(true);\n\t}", "@Setup(Level.Trial)\n public void setupGraph() {\n initializeMethod();\n prepareRequest();\n emitFrontEnd();\n }", "@Setup(Level.Trial)\n public void setupGraph() {\n initializeMethod();\n prepareRequest();\n emitFrontEnd();\n }", "@Setup(Level.Trial)\n public void setupGraph() {\n initializeMethod();\n prepareRequest();\n emitFrontEnd();\n }", "private void initSetUp()\n\t{\n\t\tthis.setActionName(NAME);\n\t\tthis.setDescription(DESCRIPTION);\n\t\tthis.setMagic(IS_MAGIC);\n\t\tthis.setAttack(IS_ATTACK);\n\t\tthis.setTargetSelf(IS_TARGET_SELF);\n\t\tthis.setInternalName(INTERNAL_NAME);\n\t}", "private void initGATracker() {\n\t\t/* get analytics singleton */\n\t\ttracker = GoogleAnalyticsTracker.getInstance();\n\n\t\t/* start tracker. Dispatch every 30 seconds. */\n\t\ttracker.startNewSession(\"UA-20341887-1\", 30, getApplicationContext());\n\t\t\n /* debug GA */\n tracker.setDebug(false);\n tracker.setDryRun(false);\n \n // Determine the screen orientation and set it in a custom variable.\n String orientation = \"unknown\";\n switch (this.getResources().getConfiguration().orientation) {\n case Configuration.ORIENTATION_LANDSCAPE:\n orientation = \"landscape\";\n break;\n case Configuration.ORIENTATION_PORTRAIT:\n orientation = \"portrait\";\n break;\n }\n tracker.setCustomVar(3, \"Screen Orientation\", orientation, 2);\n\t}", "private void init() {\n\n /*image = new BufferedImage(\n WIDTH, HEIGHT,\n BufferedImage.TYPE_INT_RGB//OR BufferedImage.TYPE_INT_ARGB\n );*/\n initImage();\n \n g = (Graphics2D) image.getGraphics();\n\n running = true;\n\n initGSM();\n \n gsm.setAttribute(\"WIDTH\", WIDTH);\n gsm.setAttribute(\"HEIGHT\", HEIGHT);\n gsm.setAttribute(\"CAMERA_X1\", 0);\n gsm.setAttribute(\"CAMERA_Y1\", 0);\n gsm.setAttribute(\"WORLD_X1\", 0);\n gsm.setAttribute(\"WORLD_Y1\", 0);\n\n }", "@BeforeClass(groups = { \"EtlNG\" })\n\tpublic void setUp() {\n\t\t\n\t\ttry {\n\t\t\t\n\t\t\tlog.warn(\"Starting: \" + this.getClass().getSimpleName());\n\n\t\t\tIEUtil.openNewBrowser();\n\t\t\tGeneralUtil.navigateToPO();\n\t\t\tGeneralUtil.logInSuper();\n\t\t\t// -----------------------------------\n\n\t\t} catch (Exception e) {\n\t\t\tAssert.fail(\"Unexpected Exception: \", e);\n\t\t}\n\t}", "private void setUp() {\r\n\tvariables = new Vector();\r\n\tstatements = new Vector();\r\n\tconstraints = new Vector();\r\n\tvariableGenerator = new SimpleVariableGenerator(\"v_\");\r\n }", "protected void initialize() {\n\t\tthis.position = Point3D.ZERO;\n\t\t// reset subclasses properties if any\n\t\treset();\n\t}", "private void initGate() {\n \n if (!Gate.isInitialised() && Gate.getGateHome() == null){\n Print.prln(\"Initialising GATE...\");\n Gate.setGateHome(new File(Settings.GATE_HOME));\n try {\n Gate.init();\n } catch (GateException ex) {\n ex.printStackTrace();\n }\n }\n }", "private void setup(){\n buildTree(2);\n }", "@Before\n\tpublic void setup() {\n\t\tMockitoAnnotations.initMocks(this);\n\t\ttn = new TreeNode(null);\n\t\tcs = new ColorMap();\n\t\tcsSpy = Mockito.spy(cs);\n\t\tln = new LeafNode(tn, csSpy);\n\t}", "protected void initialize() {\n \tRobot.intake.setHard(isHard);\n }", "protected void initialize() {\n \tRobot.m_elevator.setSetpoint(setpoint);\n \tRobot.m_elevator.setAbsoluteTolerance(tolerance);\n \tRobot.m_elevator.setPID(.3, 0, 0);\n \tRobot.m_elevator.enable();\n }", "public void setup(){\r\n\r\n\t\t\tlogger.info(\"begin setting up the patches\");\r\n\r\n\t\t\t//Initialize the patches in the world.\r\n\t\t\tpatches = new Patch[numOfPathes][numOfPathes];\r\n\t\t\tfor(int i = 0; i < patches.length; i ++){\r\n\t\t\t\tfor(int j = 0; j < patches[i].length; j ++){\r\n\t\t\t\t\tpatches[i][j] = new Patch(i,j);\r\n\t\t\t\t\t//logger.info(\"generated x = \" + i + \"y = \" + j);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tlogger.info(\"begin setting up the agents\");\r\n\r\n\t\t\t//Generate agents and cops.\r\n\t\t\tagents = new Agent[numOfAgents];\r\n\t\t\tfor(int k = 0; k < numOfAgents; k ++){\r\n\t\t\t\tagents[k] = generateAgent();\r\n\t\t\t}\r\n\r\n\t\t\tlogger.info(\"finished setting up the agents\");\r\n\r\n\t\t\tlogger.info(\"begin setting up the cops\");\r\n\t\t\tcops = new Cop[numOfCops];\r\n\t\t\tfor(int k = 0; k < numOfCops; k ++){\r\n\t\t\t\tcops[k] = generateCop();\r\n\t\t\t}\r\n\r\n\t\t\tlogger.info(\"finished setting up the cops\");\r\n\r\n\t\t}", "@Override\r\n\tpublic void init() { \r\n\t\t\r\n\t\tsession = -1;\r\n\t\t\r\n\t\tProgressDif = 0;\r\n\t\tnoisFact = 0;\r\n\t\tcompromiseFact = 0;\r\n\t\t\r\n\t\tcompromiseLearn = 20;\r\n\t\tprogressLearn = 10;\r\n\t\tnoisLearn = 0.2;\r\n\t\t\r\n\t\treservationPanic = 0.2;\r\n\t\tmyBids = new ArrayList<Pair<Bid,Double>>();\r\n\t\topponentBidsA = new Vector<ArrayList<Pair<Bid,Double>>>();\r\n\t\topponentBidsB = new Vector<ArrayList<Pair<Bid,Double>>>();\r\n\r\n\t\tdf = utilitySpace.getDiscountFactor();\r\n\t\tif (df==0) df = 1; \r\n\r\n\t\ttry {\r\n\t\t\tinitStates();\r\n\t\t} catch (Exception e) {\r\n \t\t\te.printStackTrace();\r\n\t\t}\t\t\r\n\t}", "protected void initialize() {\n\t\tPreferences prefs = Preferences.getInstance();\n\t\tangleKp = prefs.getDouble(\"GetPeg Kp\", 0.01);\n\t\tangleKi = prefs.getDouble(\"GetPeg Ki\", 0.001);\n\t\tangleKd = prefs.getDouble(\"GetPeg Kd\", 0.0);\n\t\tdriveOutput = prefs.getDouble(\"GetPeg Speed\", 0.5);\n\t\t\n\t\tRobot.drivetrain.reset();\n\t\tRobot.drivetrain.stop();\n\t\tpidAngle.reset();\n\t\tpidAngle.enable();\n\n\t\tRobot.gearIntake.lightOn();\n\n\t\tdouble filterSlopeTime = prefs.getDouble(\"FilterSlopeTime\", 0.2);\n\n\t\tfilter = new LinearAccelerationFilter(filterSlopeTime);\n\t\t\n\t\tSystem.out.println(\"\\n GetPegWithVision Initialized\");\n\t}", "public void setup()\n {\n this.imageStore = new ImageStore(\n createImageColored(TILE_WIDTH, TILE_HEIGHT, DEFAULT_IMAGE_COLOR));\n this.world = new WorldModel(WORLD_ROWS, WORLD_COLS,\n createDefaultBackground(imageStore));\n this.view = new WorldView(VIEW_ROWS, VIEW_COLS, this, world,\n TILE_WIDTH, TILE_HEIGHT);\n this.scheduler = new EventScheduler(timeScale);\n\n loadImages(IMAGE_LIST_FILE_NAME, imageStore, this);\n loadWorld(world, LOAD_FILE_NAME, imageStore);\n\n scheduleActions(world, scheduler, imageStore);\n\n next_time = System.currentTimeMillis() + TIMER_ACTION_PERIOD;\n click = false;\n }", "public void initialSetup(GameObserver gameObs) {\n nPlayers = gameObs.getNumPlayers();\n nActs = gameObs.getNumActions().clone();\n eGame = new EmpiricalMatrixGame(nPlayers, nActs);\n eGame.setDefaultPayoff(gameObs.getDefaultPayoff());\n currentPlayer = 0;\n lastPlayerWithBR = nPlayers - 1;\n samplesToConfirmEquilibrium = -1;\n mostStableConfirmed = null;\n confirmedStability = Double.POSITIVE_INFINITY;\n currentOutcome = new int[nPlayers];\n predictedOutcome = new OutcomeDistribution(nActs);\n tabu = new GenericTensor<Boolean>(nActs);\n for (int i = 0; i < tabu.size(); i++) {\n tabu.setValue(false, i);\n }\n deviationTestOrder.initialize(nPlayers, nActs);\n\n // this must be last\n selectRandomUnexploredProfile(gameObs);\n }", "public GPFrame(String title, PaintTool gp) {\r\n super(title); // call the constructor of the super class\r\n initGUI(width, height); // initialize the GUI\r\n gra = getGraphics(); // get the Graphics object\r\n ge = gp; // set the reference to the tool\r\n System.out.println(\"calling method init() of the tool.\");\r\n ge.init(gra); // initialize the paint tool\r\n System.out.println(\"method init() of the tool executed.\");\r\n }", "public void setup() {\n\t\tthis.image = new BufferedImage(maxXPos, maxYPos, BufferedImage.TYPE_4BYTE_ABGR);\n\t\tthis.graphics = getImage().createGraphics();\n\t}", "protected void initialize() {\n \tRobot.debug.Start(\"AutoSetLiftPosition\", Arrays.asList(\"Sensor_Position\", \"Sensor_Velocity\",\n \t\t\t\"Trajectory_Position\", \"Trajectory_Velocity\", \"Motor_Output\", \"Error\")); \n \ttotalTimer.reset();\n \ttotalTimer.start();\n\n \tRobot.lift.configGains(\n \t\t\tSmartDashboard.getNumber(\"kF_lift_up\", 0.0), \n \t\t\tSmartDashboard.getNumber(\"kP_lift\", 0.0), \n \t\t\tSmartDashboard.getNumber(\"kI_lift\", 0.0), \n \t\t\tSmartDashboard.getNumber(\"kD_lift\", 0.0),\n \t\t\t(int)SmartDashboard.getNumber(\"kiZone_lift\", 0.0),\n \t\t\t(int)SmartDashboard.getNumber(\"kCruise_lift\", 0.0),\n \t\t\t(int)SmartDashboard.getNumber(\"kAccel_lift\", 0.0));\n \t\n \tRobot.lift.setMotionMagicSetpoint(SmartDashboard.getNumber(\"setpoint_lift\", 0.0));\n }", "public void init() {\n // These data structures are initialized here because other\n // module's startUp() might be called before ours\n this.systemStartTime = System.currentTimeMillis();\n }", "protected void initialize() {\n initialPos = Math.abs(Robot.arm.getArmEncoderValue());\n double direction = Math.signum(setpoint - Math.abs(Robot.arm.getArmEncoderValue()));\n Robot.arm.moveArm(direction * RobotMap.ArmConstants.ARM_AUTONOMOUS_MOVEMENT_POWER, 1);\n }", "public void setState(State state) {\n\t\tenvironmentStatus = state.name();\n\t\tsetupResult = state.name();\n\t}", "protected void initialize() {\n\t\tRobot.motor.getPIDController().setPID(SmartDashboard.getDouble(\"MotorP\"), SmartDashboard.getDouble(\"MotorI\"), SmartDashboard.getDouble(\"MotorD\"));\n\t\tRobot.motor.setOutputRange(0, 1);\n\t\tRobot.motor.setSetpoint(SmartDashboard.getDouble(\"MotorSpeed\"));\n \tRobot.motor.enable();\n }" ]
[ "0.6562643", "0.621393", "0.6195032", "0.6184521", "0.5855249", "0.5851209", "0.5803497", "0.5793893", "0.5757662", "0.57545954", "0.568872", "0.5688314", "0.56804675", "0.5665662", "0.5643272", "0.5642732", "0.56210625", "0.55855393", "0.5571088", "0.55695784", "0.5547543", "0.55376977", "0.55354834", "0.5512291", "0.5500791", "0.5482304", "0.54709876", "0.54499966", "0.54493654", "0.5444756", "0.543389", "0.5428562", "0.5427713", "0.5422192", "0.54206413", "0.5419888", "0.54170454", "0.5414601", "0.540355", "0.53963643", "0.5388828", "0.53854406", "0.53851", "0.53845346", "0.53646904", "0.53612524", "0.53558725", "0.535371", "0.5350684", "0.5349649", "0.53494954", "0.5348207", "0.534754", "0.5346106", "0.534304", "0.53356254", "0.5335074", "0.53331214", "0.53314203", "0.5329571", "0.5315901", "0.5310457", "0.5309101", "0.5307306", "0.5305759", "0.530391", "0.53000826", "0.52987874", "0.5298701", "0.52961993", "0.52929604", "0.5287546", "0.52804047", "0.52799636", "0.52797997", "0.52797997", "0.52797997", "0.5273895", "0.5259712", "0.52559763", "0.5255971", "0.52556854", "0.52537537", "0.52513117", "0.5250609", "0.5238396", "0.52378714", "0.5229191", "0.5228634", "0.5224365", "0.5220902", "0.5220172", "0.5217509", "0.5217262", "0.52157795", "0.52111244", "0.5208095", "0.5207794", "0.5207443", "0.52018166" ]
0.68770707
0
Releases clients, stops the program dispatch thread and writes a final checkpoint.
private void cleanup() throws RemoteException { log.info("GP run complete."); running = false; log.info("Releasing clients."); for (IClient client : clients) client.release(); clients.clear(); writeCheckpoint("final_generation"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void dispose() throws ClientException {\n try {\n scheduler.pauseTaskGraph();\n scheduler.flushTaskGraph();\n taskgraph = null;\n processWaiting.setSize(0);\n } catch (SchedulerException except) {\n throw (new ClientException(except));\n }\n }", "private static void shutdown() {\n\t\tSystem.out.println(\"Shutting down ...\");\n\t\tpool.shutdown();\n\t\tfor (Client client : clientMap.values()) {\n\t\t\tclient.cleanup();\n\t\t}\n\n\t\t// wait until all threads complete\n\t\ttry {\n\t\t\tif (!pool.awaitTermination(30, TimeUnit.SECONDS)) {\n\t\t\t\tSystem.out.println(\"Force shutdown after 30 seconds ...\");\n\t\t\t\tpool.shutdownNow();\n\t\t\t\tif (!pool.awaitTermination(30, TimeUnit.SECONDS)) {\n\t\t\t\t\tSystem.out.println(\"Terminate the process.\");\n\t\t\t\t\tThread.currentThread().interrupt();\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (InterruptedException e) {\n\t\t\tThread.currentThread().interrupt();\n\t\t}\n\t}", "public void close() {\n\t\tshutdownClient(clientRef.get());\n\t}", "public void exit() {\n\t\tJWebSocketTokenClient lClient;\n\t\tfor (int lIdx = 0; lIdx < mFinished; lIdx++) {\n\t\t\tlClient = mClients[lIdx];\n\t\t\tlClient.removeTokenClientListener(this);\n\t\t\ttry {\n\t\t\t\tmLog(\"Closing client #\" + lIdx + \" on thread: \" + Thread.currentThread().hashCode() + \"...\");\n\t\t\t\tlClient.close();\n\t\t\t\tThread.sleep(20);\n\t\t\t} catch (Exception lEx) {\n\t\t\t\tmLog(\"Exception: \" + lEx.getMessage() + \". Closing client #\" + lIdx + \"...\");\n\t\t\t}\n\t\t}\n\t}", "public void release() { \r\n\t remoteControlClient = null;\r\n\t }", "public void processShutdown(){\n destroyWorkerQueue();\n \n if( messageClient != null ){\n messageClient.destroy();\n }\n }", "private static void shutdownGracefully() {\n //record out file time for the last access to the stream.\n try {\n disruptor.shutdown();\n setLastReadTime();\n closeCouchbaseClient();\n } catch (Exception ex) {\n //not much we can do, what if our logging is already shutdown or not up\n // when this happens?\n ex.printStackTrace();\n }\n\n }", "private void handleInterruption() {\n Runtime.getRuntime().addShutdownHook(new Thread() {\n @Override\n public void run() {\n Publishers.this.output.shutdown();\n\n// final CountDownLatch clientClosed = new CountDownLatch(clients.size());\n// for (ClientPublishTask client : clients) {\n// client.interrupt(new Callback<Void>() {\n// @Override\n// public void onSuccess(Void value) {\n// clientClosed.countDown();\n// CommandLindInterface.debug(Publishers.this.configuration, \"Connection to broker successfully closed\");\n// }\n//\n// @Override\n// public void onFailure(Throwable value) {\n// clientClosed.countDown();\n// CommandLindInterface.stderr(\"Connection close to broker failure!\");\n// }\n// });\n// }\n//\n// try {\n// clientClosed.await(5000, TimeUnit.MILLISECONDS);\n// } catch (Exception e) {\n// e.printStackTrace();\n// }\n\n result.endTimeNanosec = System.nanoTime();\n output.display(configuration, result);\n }\n });\n }", "private void shutdown(){\n\t\ttry{\n\t\t\tMainController gainCtr=loader.getController();\n\t\t\tgainCtr.isOnline=false;\n\t\t\tif(!gainCtr.sc.equals(null)) {\n\t\t\t\tgainCtr.sc.close();\n\t\t\t}\n\t\t\t}catch (Exception e) {\n\t\t\t\t\t\n\t\t\t\t}\n\t}", "private void stopClient() {\n\n run = false;\n\n if (bufferOut != null) {\n bufferOut.flush();\n bufferOut.close();\n }\n\n messageListener = null;\n bufferIn = null;\n bufferOut = null;\n serverMessage = null;\n }", "protected void onDispose() {\n\t\t/* Shutdown procedure */\n\t\tshutDown();\n\t}", "private void shutdown() {\n log.info(\"Shutting down\");\n kafka.shutdown();\n zookeeper.shutdown();\n }", "@AfterClass\n public static void cleanup() throws Exception {\n try {\n if (client != null) client.close();\n if (runners != null) {\n int i = 0;\n for (final NodeRunner runner: runners) {\n print(false, false, \"<<< stoping the JPPF node \" + (++i));\n runner.shutdown();\n }\n }\n if (driver != null) {\n print(false, false, \"<<< shutting down driver\");\n driver.shutdown();;\n }\n } finally {\n BaseTestHelper.generateClientThreadDump();\n }\n }", "public void cleanup() {\n endtracking();\n\n //sends data to UI\n MainActivity.trackingservicerunning = false;\n MainActivity.servicestopped();\n\n //stops\n stopSelf();\n }", "@Override\r\n public void close() {\r\n\tsaveZip();\r\n\tsetChanged();\r\n\tnotifyObservers(\"shutting down\");\r\n\tthreadpool.shutdown();\r\n\t// wait 10 seconds over and over again until all running jobs have\r\n\t// finished\r\n\ttry {\r\n\t boolean allTasksCompleted = false;\r\n\t while (!(allTasksCompleted = threadpool.awaitTermination(10, TimeUnit.SECONDS)))\r\n\t\t;\r\n\t setChanged();\r\n\t notifyObservers(\"Server is safely closed\");\r\n\t} catch (InterruptedException e) {\r\n\t e.printStackTrace();\r\n\t}\r\n }", "private void closeMainStage(){\r\n serialConnection.closeSerialConnection();//zamkniecie polaczenai serialowego i wyczyszczenie zasobow\r\n controlThreadRunFlag = false;//zastopowanie wątku kontrolnego\r\n closeAllAutomaticSendThreads(automaticSendThreadArraylist);//zamkniecie wszystkich watkow automatycznej wiadomości\r\n System.gc();//poinformowanie maszyny wirtualnej o usunieciu referencji na nieuzywane obiekty\r\n Platform.exit();//zamkniecie apliakcji - DO ZMIANY !!!!!!!!!!!!!!!!\r\n }", "public void notifyExit()\r\n {\r\n if (isClientConnected)\r\n sendDisconnectTag();\r\n bs.close(); // Announce termination to client\r\n bs.cancel(); // Shut down waiting server\r\n System.exit(0);\r\n }", "private void terminateAllClientConnections() {\n log.info(\"Terminate command received; Closing sockets..\");\n log.info(\"Attempting closing client sockets..\");\n this.socketList.forEach(socket -> {\n try {\n socket.close();\n } catch (Exception e) {\n log.error(\"Error closing client socket address\", socket.getRemoteSocketAddress().toString());\n }\n });\n log.info(\"Attempting closing server listening socket\");\n try {\n this.serverSocket.close();\n this.running.set(false);\n } catch (Exception e) {\n log.error(\"Error closing server socket port\", port);\n }\n }", "protected void finalize() {\n this.asClient.close();\n this.asClient = null;\n }", "public void exitClient()\n\t{\n\t\ttry{\n\t\t\tif(sock.isConnected()){\n\t\t\tsock.close();\n\t\t\t//listenerSock.close();\n\t\t\tSystem.out.println(\"restart your client.....\");\n\t\t\tSystem.exit(-1);\n\t\t\t}\n\t\t}\n\t\tcatch(Exception e){\n\t\t}\n\t}", "protected static void shutdownClient() {\n\t\tif (restClient != null) {\n\t\t\ttry {\n\t\t\t\trestClient._transport().close();\n\t\t\t\trestClientAsync._transport().close();\n\t\t\t} catch (IOException ex) {\n\t\t\t\tlogger.error(null, ex);\n\t\t\t}\n\t\t}\n\t}", "public void decrementClients() {\n\t\tconnectedClients.decrementAndGet();\n\t}", "private void shutdown() {\n clientTUI.showMessage(\"Closing the connection...\");\n try {\n in.close();\n out.close();\n serverSock.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void shutDown() {\n if(client != null) {\n client.shutdownClient();\n }\n }", "public void cleanShutDown () {\n shutdown = true;\n }", "public void shutdownNow() {\n\t\tupdater.shutdownNow();\n\t}", "public void cleanup() {\n sendBuffer(baos);\n shutdown();\n }", "public synchronized void decrementClients()\r\n\t{\r\n\t\tnumberOfClients--;\r\n\t}", "private static void shutdownBatchDisruptor() {\n disruptor.shutdown();\n }", "public void shutdown()\r\n {\r\n debug(\"shutdown() the application module\");\r\n\r\n // Shutdown all the Timers\r\n shutdownWatchListTimers();\r\n // Save Our WatchLists\r\n saveAllVectorData();\r\n // Our Container vectors need to be emptied and clear. \r\n modelVector.removeAllElements();\r\n modelVector = null;\r\n\r\n tableVector.removeAllElements();\r\n tableVector = null;\r\n\r\n // Delete any additional Historic Data that is Serialized to disk\r\n expungeAllHistoricFiles();\r\n\r\n // Shutdown the task that monitors the update tasks\r\n if ( this.monitorTask != null )\r\n {\r\n this.monitorTask.cancel();\r\n this.monitorTask = null;\r\n }\r\n // Null out any reference to this data that may be present\r\n stockData = null;\r\n debug(\"shutdown() the application module - complete\");\r\n\r\n }", "public void close() throws Exception { close from the ClientImpl\n // set a close marker state internally, disallow new operations\n // https://stackoverflow.com/questions/63250570/how-to-cancel-a-grpc-streaming-call\n //\n // TODO cleanup consumers too?\n // completableFuture for tqClient\n\n // TODO set a state marker here\n // and disallow new operations\n //\n this.stateMachine.setState(ClientPossibleStates.Stopping);\n\n if(pingPongFut != null) {\n pingPongFut.cancel(true);\n }\n\n pingLoopService.shutdownNow();\n\n if(stateChangeFut != null) {\n stateChangeFut.cancel(true);\n }\n\n stateChangeWatcher.shutdownNow();\n\n Iterator<Map.Entry<Long, ConsumerImpl>> it = consumerRegistry.entrySet().iterator();\n while (it.hasNext()) {\n Map.Entry<Long, ConsumerImpl> pair = it.next();\n // System.out.println(pair.getKey() + \" = \" + pair.getValue());\n ConsumerImpl c = pair.getValue();\n c.closeAsync(false);\n it.remove(); // avoids a ConcurrentModificationException\n }\n\n // close the stream (half-close)?\n // this is a callback\n // this.clientToBroker.onCompleted();\n // https://github.com/grpc/grpc-java/issues/3095#issuecomment-338724284\n // https://stackoverflow.com/questions/43414695/closing-all-open-streams-in-grpc-java-from-client-end-cleanly\n //\n synchronized (this.clientToBroker) {\n ((ClientCallStreamObserver) this.clientToBroker).cancel(\"close() called: client is closing\", null);\n }\n\n // close the connection with the broker\n this.tqClient.close();\n\n this.stateMachine.setState(ClientPossibleStates.Idle);\n }", "void freeAll(@Nonnull Client client);", "private static void closeCouchbaseClient() {\n try {\n if (null != tapClient) {\n LOGGER.debug(\"Shutting down Couchbase Client\");\n tapClient.shutdown();\n }\n } catch (Exception ex) {\n LOGGER.error(\"Caught exception trying to shutdown Couchbase client\",\n ex);\n }\n }", "@Override\n public void releaseResources() {\n if (cluster != null) {\n cluster.close();\n }\n if (cpds != null) {\n cpds.close();\n }\n }", "@Override\n public void onDestroy() {\n mClient.terminate();\n mClient = null;\n \n super.onDestroy();\n }", "public void shutdownNow() {\n }", "public void cancelAllClients(){\n clientsPool.shutdownNow();\n }", "public void postRun() {\n if (manageFileSystem && fs != null) {\n try {\n fs.close();\n }\n catch (IOException e) {\n System.out.println(String.format(\"Failed to close AlluxioFileSystem: %s\", e.getMessage()));\n }\n }\n // only to close the FileOutputStream when manageRecordFile=true\n if (manageRecordFile && recordOutput != null) {\n try {\n recordOutput.close();\n }\n catch (IOException e) {\n System.out.println(String.format(\"Failed to close File %s: %s\", recordFileName, e.getMessage()));\n }\n }\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tSystem.err.println(\"*** shutting down gRPC server since JVM is shutting down\");\n\t\t\t\tNoteServer.this.stop();\n\t\t\t\tSystem.err.println(\"*** server shut down\");\n\t\t\t}", "@Override\n public void shutdownNow() {\n }", "public void shutdown() {\n\tif (publisher != null)\n\t publisher.shutdown();\n\n\tif (handle != null) {\n\t handle.shutdown();\n\t}\n }", "private void finalise(int regency, CertifiedDecision lastHighestCID,\n HashSet<SignedObject> signedCollects, byte[] propose, int batchSize, boolean iAmLeader) {\n\n int currentCID = lastHighestCID.getCID() + 1;\n logger.debug(\"Final stage of LC protocol\");\n int me = this.controller.getStaticConf().getProcessId();\n Consensus cons = null;\n Epoch e = null;\n\n if (tom.getLastExec() + 1 < lastHighestCID.getCID()) { // is this a delayed replica?\n\n logger.info(\"NEEDING TO USE STATE TRANSFER!! (\" + lastHighestCID.getCID() + \")\");\n\n tempRegency = regency;\n tempLastHighestCID = lastHighestCID;\n tempSignedCollects = signedCollects;\n tempPropose = propose;\n tempBatchSize = batchSize;\n tempIAmLeader = iAmLeader;\n\n execManager.getStoppedMsgs().add(acceptor.getFactory().createPropose(currentCID, 0, propose));\n stateManager.requestAppState(lastHighestCID.getCID());\n\n return;\n\n } /*else if (tom.getLastExec() + 1 == lastHighestCID.getCID()) { // Is this replica still executing the last decided consensus?\n\n System.out.println(\"(Synchronizer.finalise) I'm still at the CID before the most recent one!!! (\" + lastHighestCID.getCID() + \")\");\n\n cons = execManager.getConsensus(lastHighestCID.getCID());\n e = cons.getLastEpoch();\n \n int ets = cons.getEts();\n \n if (e == null || e.getTimestamp() != ets) {\n e = cons.createEpoch(ets, controller);\n } else {\n e.clear();\n }\n \n byte[] hash = tom.computeHash(lastHighestCID.getCIDDecision());\n e.propValueHash = hash;\n e.propValue = lastHighestCID.getCIDDecision();\n\n e.deserializedPropValue = tom.checkProposedValue(lastHighestCID.getCIDDecision(), false);\n cons.decided(e, true); // pass the decision to the delivery thread\n }*/\n \n // install proof of the last decided consensus\n cons = execManager.getConsensus(lastHighestCID.getCID());\n e = null;\n \n Set<ConsensusMessage> consMsgs = lastHighestCID.getConsMessages();\n if (consMsgs == null) consMsgs = new HashSet();\n \n for (ConsensusMessage cm : consMsgs) {\n \n if (e == null) e = cons.getEpoch(cm.getEpoch(), true, controller);\n if (e.getTimestamp() != cm.getEpoch()) {\n logger.warn(\"Strange... proof of last decided consensus contains messages from more than just one epoch\");\n e = cons.getEpoch(cm.getEpoch(), true, controller);\n }\n e.addToProof(cm);\n \n if (cm.getType() == MessageFactory.ACCEPT) {\n e.setAccept(cm.getSender(), cm.getValue());\n }\n \n else if (cm.getType() == MessageFactory.WRITE) {\n e.setWrite(cm.getSender(), cm.getValue());\n }\n \n \n }\n if (e != null) {\n\n logger.info(\"Installed proof of last decided consensus \" + lastHighestCID.getCID());\n \n byte[] hash = tom.computeHash(lastHighestCID.getDecision());\n e.propValueHash = hash;\n e.propValue = lastHighestCID.getDecision();\n e.deserializedPropValue = tom.checkProposedValue(lastHighestCID.getDecision(), false);\n\n // Is this replica still executing the last decided consensus?\n if (tom.getLastExec() + 1 == lastHighestCID.getCID()) {\n \n logger.info(\"I'm still at the CID before the most recent one!!! (\" + lastHighestCID.getCID() + \")\");\n cons.decided(e, true);\n }\n else {\n cons.decided(e, false);\n }\n\n } else {\n logger.info(\"I did not install any proof of last decided consensus \" + lastHighestCID.getCID());\n }\n \n cons = null;\n e = null;\n \n // get a value that satisfies the predicate \"bind\"\n byte[] tmpval = null;\n HashSet<CollectData> selectedColls = lcManager.selectCollects(signedCollects, currentCID, regency);\n\n tmpval = lcManager.getBindValue(selectedColls);\n logger.debug(\"Trying to find a binded value\");\n\n // If such value does not exist, obtain the value written by the new leader\n if (tmpval == null && lcManager.unbound(selectedColls)) {\n logger.debug(\"Did not found a value that might have already been decided\");\n tmpval = propose;\n } else {\n logger.debug(\"Found a value that might have been decided\");\n }\n\n if (tmpval != null) { // did I manage to get some value?\n\n logger.debug(\"Resuming normal phase\");\n lcManager.removeCollects(regency); // avoid memory leaks\n\n // stop the re-transmission of the STOP message for all regencies up to this one\n removeSTOPretransmissions(regency);\n \n cons = execManager.getConsensus(currentCID);\n\n e = cons.getLastEpoch();\n\n int ets = cons.getEts();\n\n //Update current consensus with latest ETS. This may be necessary\n //if I 'jumped' to a consensus instance ahead of the one I was executing\n \n //int currentETS = lcManager.getETS(currentCID, selectedColls);\n //if (currentETS > ets) {\n if (regency > ets) {\n \n //System.out.println(\"(Synchronizer.finalise) Updating consensus' ETS after SYNC (from \" + ets + \" to \" + currentETS +\")\");\n logger.debug(\"Updating consensus' ETS after SYNC (from \" + ets + \" to \" + regency +\")\");\n\n /*do {\n cons.incEts();\n } while (cons.getEts() != currentETS);*/\n \n cons.setETS(regency);\n \n //cons.createEpoch(currentETS, controller);\n cons.createEpoch(regency, controller);\n \n e = cons.getLastEpoch();\n }\n\n // Make sure the epoch is created\n /*if (e == null || e.getTimestamp() != ets) {\n e = cons.createEpoch(ets, controller);\n } else {\n e.clear();\n }*/\n if (e == null || e.getTimestamp() != regency) {\n e = cons.createEpoch(regency, controller);\n } else {\n e.clear();\n }\n \n /********* LEADER CHANGE CODE ********/\n cons.removeWritten(tmpval);\n cons.addWritten(tmpval);\n /*************************************/\n \n byte[] hash = tom.computeHash(tmpval);\n e.propValueHash = hash;\n e.propValue = tmpval;\n\n e.deserializedPropValue = tom.checkProposedValue(tmpval, false);\n\n if (cons.getDecision().firstMessageProposed == null) {\n if (e.deserializedPropValue != null\n && e.deserializedPropValue.length > 0) {\n cons.getDecision().firstMessageProposed = e.deserializedPropValue[0];\n } else {\n cons.getDecision().firstMessageProposed = new TOMMessage(); // to avoid null pointer\n }\n }\n if (this.controller.getStaticConf().isBFT()) {\n e.setWrite(me, hash);\n } else {\n e.setAccept(me, hash);\n\n /********* LEADER CHANGE CODE ********/\n logger.debug(\"[CFT Mode] Setting consensus \" + currentCID + \" QuorumWrite tiemstamp to \" + e.getConsensus().getEts() + \" and value \" + Arrays.toString(hash));\n \t e.getConsensus().setQuorumWrites(hash);\n /*************************************/\n\n }\n\n // resume normal operation\n execManager.restart();\n //leaderChanged = true;\n tom.setInExec(currentCID);\n if (iAmLeader) {\n logger.debug(\"Waking up proposer thread\");\n tom.imAmTheLeader();\n } // waik up the thread that propose values in normal operation\n\n // send a WRITE/ACCEPT message to the other replicas\n if (this.controller.getStaticConf().isBFT()) {\n logger.info(\"Sending WRITE message for CID \" + currentCID + \", timestamp \" + e.getTimestamp() + \", value \" + Arrays.toString(e.propValueHash));\n communication.send(this.controller.getCurrentViewOtherAcceptors(),\n acceptor.getFactory().createWrite(currentCID, e.getTimestamp(), e.propValueHash));\n e.writeSent();\n } else {\n logger.info(\"Sending ACCEPT message for CID \" + currentCID + \", timestamp \" + e.getTimestamp() + \", value \" + Arrays.toString(e.propValueHash));\n communication.send(this.controller.getCurrentViewOtherAcceptors(),\n acceptor.getFactory().createAccept(currentCID, e.getTimestamp(), e.propValueHash));\n e.acceptSent();\n }\n } else {\n logger.warn(\"Sync phase failed for regency\" + regency);\n }\n }", "public void dispose() {\r\n\r\n if (LOG.isLoggable(Level.FINEST)) {\r\n LOG.finest(\"dispose ( ) called \");\r\n }\r\n\r\n status = Status.STATUS_SHUTDOWN;\r\n\r\n if (replicateAsync) {\r\n flushReplicationQueue();\r\n }\r\n\r\n }", "public void shutdown() {\n\t\t//We call peers.values() and put into Array to create an unchanging copy, one that\n\t\t//does not shrink even as the sockets remove themselves from the peers list\n\t\t//this prevents a ConcurrentModificationException\n\t\tonline = false;\n\t\tArrayList<DecentSocket> connections = new ArrayList<DecentSocket>(peers.values());\n\t\tfor(DecentSocket socket: connections) {\n\t\t\tsocket.stop();\n\t\t}\n\t\tlistener.stop();\n\t\tchecker.stop();\n\t}", "private void closeStreams() {\n try {\n System.out.println(\"Closing streams and terminating thread.\");\n running = false;\n outputStream.close();\n inputStream.close();\n clientSocket.close();\n } catch (IOException e) {\n System.err.println(e.getMessage());\n }\n }", "public void destroy(){\n\t\tIterator toolIterator = tools.iterator();\n\t\twhile(toolIterator.hasNext()){\n\t\t\tToolBridge tb = (ToolBridge) toolIterator.next();\n\t\t\ttb.terminate();\n\t\t}\n\n\t\tmultiplexingClientServer.stopRunning();\n\t}", "public void shutdown() {\n logger.debug(\"Shutting down.\");\n try {\n // stop the cleaner first\n if (cleaner != null)\n Utils.swallow(new Runnable() {\n @Override\n public void run() {\n cleaner.shutdown();\n }\n });\n // flush the logs to ensure latest possible recovery point\n Utils.foreach(allLogs(), new Callable1<Log>() {\n @Override\n public void apply(Log _) {\n _.flush();\n }\n });\n // close the logs\n Utils.foreach(allLogs(), new Callable1<Log>() {\n @Override\n public void apply(Log _) {\n _.close();\n }\n });\n // update the last flush point\n checkpointRecoveryPointOffsets();\n // mark that the shutdown was clean by creating the clean shutdown marker file\n Utils.foreach(logDirs, new Callable1<File>() {\n @Override\n public void apply(final File dir) {\n Utils.swallow(new Runnable() {\n @Override\n public void run() {\n try {\n new File(dir, Logs.CleanShutdownFile).createNewFile();\n } catch (IOException e) {\n throw new KafkaException(e);\n }\n }\n });\n }\n });\n } finally {\n // regardless of whether the close succeeded, we need to unlock the data directories\n Utils.foreach(dirLocks, new Callable1<FileLock>() {\n @Override\n public void apply(FileLock _) {\n _.destroy();\n }\n });\n }\n\n logger.debug(\"Shutdown complete.\");\n }", "void startShutdown() {\n closed.set(true);\n regionManager.stopScanners();\n synchronized(toDoQueue) {\n toDoQueue.clear(); // Empty the queue\n delayedToDoQueue.clear(); // Empty shut down queue\n toDoQueue.notifyAll(); // Wake main thread\n }\n serverManager.notifyServers();\n }", "private void shutDownClient(int exitStatus) {\n\t\tthis.close();\n\t\tSystem.exit(exitStatus);\n\t}", "private void exit() {\n\n // Farewell message\n pOutput.println(\"Good Bye!\");\n pOutput.close();\n\n try {\n pClient.close();\n\n } catch (final IOException ex) {\n pShellService.error(\"Shell::exit()\", ex);\n }\n\n // Clean up\n pShellService = null;\n }", "@Override\n public void close() {\n if (lifecycle != null) {\n WorkerLifecycle lifecycle = this.lifecycle;\n this.lifecycle = null;\n lifecycle.makeAvailable();\n }\n }", "public void shutdown() {\n/* 188 */ this.shutdown = true;\n/* */ }", "public void shutdown() {\n this.shallRun = false;\n this.interrupt();\n Log.getLog().info(\"catched caretaker termination signal\");\n }", "public void close() {\n\t\tif (null!=client) {\n\t\t\tclient.close();\n\t\t\tclient = null;\n\t\t\tlog.trace(\"closed\");\n\t\t}\n\t}", "public void finalize()\n\t{\n\t\ttry {\n\t\t\tlogout();\n\t\t\tWebiceLogger.info(\"in Client::finalize\");\n\t\t} catch (Exception e) {\n\t\t\tWebiceLogger.error(\"Client::finalize : \" + this.toString()\n\t\t\t\t\t\t\t+ \" \" + new Date().toString()\n\t\t\t\t\t\t\t+ \": \" + e.getMessage(), e);\n\t\t}\n\t}", "public synchronized void deallocateSpecs(String clientName) {\r\n\t\t\r\n\t\tRequiredSpecs proposalSpecs = myRunningPrograms.get(clientName);\r\n\t\tsetMemoryTaken(getMemoryTaken() - proposalSpecs.getMemory() );\r\n\t\tsetCpuTaken(getCpuTaken() - proposalSpecs.getCpu());\r\n\t\tmyRunningPrograms.remove(clientName);\r\n\t}", "@After\n public void tearDown(){\n client.generateReport(false);\n // Releases the client so that other clients can approach the agent in the near future.\n client.releaseClient();\n }", "public void shutdown();", "public void shutdown();", "public void shutdown();", "public void shutdown();", "public void releaseOutput() {\n output.releaseStation();\n }", "public void shutdown() {\n this.isShutdown = true;\n }", "public void shutdown() {\n try {\n infoServer.stop();\n } catch (Exception e) {\n }\n this.shouldRun = false;\n ((DataXceiveServer) this.dataXceiveServer.getRunnable()).kill();\n try {\n this.storage.closeAll();\n } catch (IOException ie) {\n }\n }", "protected void end() {\n \t//claw.close();\n }", "public void notifyShutdown();", "private static void closeAll() {\n try {\n outputFileBuffer.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n Encog.getInstance().shutdown();\n }", "@Override\n public void run() {\n System.err.println(\"*** shutting down gRPC server since JVM is shutting down\");\n Count.this.stop();\n System.err.println(\"*** server shut down\");\n\n }", "private void tearDownCPE() {\n nonThreadedProcessingUnit.stopCasProcessors(false);\n nonThreadedCasConsumerProcessingUnit.stopCasProcessors(false);\n nonThreadedProcessingUnit.cleanup();\n nonThreadedCasConsumerProcessingUnit.cleanup();\n }", "public void saveShutdown() {\n running = false;\n synchronized (unchecked) {\n unchecked.notify();\n }\n }", "public boolean closeClientConnections(IngresVectorwiseLoaderData data){ Close the output streams if still needed.\n //\n try {\n if (data.fifoStream!=null) {\n data.fifoStream.close();\n }\n \n // Stop the SQL execution thread\n //\n if (data.sqlRunner!= null) {\n data.sqlRunner.join();\n data.sqlRunner = null;\n }\n \n if(data.sqlProcess != null){\n data.sqlProcess.waitFor();\n }\n \n // remove the fifo file...\n //\n try {\n if (data.fifoFilename!=null) {\n new File(data.fifoFilename).delete();\n }\n } catch(Exception e) {\n logError(\"Unable to delete FIFO file : \"+data.fifoFilename, e);\n }\n }\n catch(Exception e) {\n setErrors(1L);\n logError(\"Unexpected error encountered while closing the client connection\", e);\n return false;\n }\n return true;\n }", "public void exitProgram() {\n\t\tgoOffline();\n\t\tmainWindow.dispose();\n\t\tif (config_ok)\n\t\t\tsaveConnectionConfiguration();\n\t\tSystem.exit(0);\n\t\t\n\t}", "public void shutDown() {\n collector.removePool(this);\n factory.poolClosing(this);\n\n // close all objects\n synchronized (objects) {\n for (Iterator it = objects.values().iterator(); it.hasNext();) {\n ObjectRecord rec = (ObjectRecord) it.next();\n if (null != rec) {\n if (rec.isInUse())\n factory.returnObject(rec.getClientObject());\n factory.deleteObject(rec.getObject());\n rec.close();\n }\n }\n objects.clear();\n deadObjects.clear();\n }//end of synch\n\n factory = null;\n poolName = null;\n initialized = false;\n }", "@Override\n public void onEndRetrieval() {\n try {\n logger.debug(\"MetricsReceiver onEndRetrieval.\");\n if(!isResetConn){\n logger.info(\"onEndRetrieval PerformanceMetricsCountForEachRun: \" + metricsCount);\n }\n this.out.close();\n this.client.close();\n\n } catch (IOException ex) {\n logger.error(\"Can't close resources.\", ex);\n }\n }", "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "protected void unacknowledge() {\n\n ClientConsumer old = consumer;\n ClientSession oldSession = session;\n\n try {\n createSession();\n } catch (Exception e) {\n shutdown();\n throw new RuntimeException(e);\n\n } finally {\n try {\n old.close();\n } catch (ActiveMQException e) {\n }\n try {\n oldSession.close();\n } catch (ActiveMQException e) {\n }\n }\n }", "public void close() {\n this.consoleListenerAndSender.shutdownNow();\n this.serverListenerAndConsoleWriter.shutdownNow();\n try {\n this.getter.close();\n this.sender.close();\n this.socket.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void run() {\n // Create a socket to wait for clients.\n try {\n //Set up all the security needed to run an SSLServerSocket for clients to connect to.\n SSLContext context = SSLContext.getInstance(\"TLS\");\n KeyManagerFactory keyManagerFactory = KeyManagerFactory.getInstance(\"SunX509\");\n KeyStore keyStore = KeyStore.getInstance(\"JKS\");\n\n keyStore.load(new FileInputStream(\"./keystore.txt\"), \"storepass\".toCharArray());\n keyManagerFactory.init(keyStore, \"keypass\".toCharArray());\n context.init(keyManagerFactory.getKeyManagers(), null, null);\n\n SSLServerSocketFactory factory = context.getServerSocketFactory();\n SSLServerSocket sslServerSocket = (SSLServerSocket) factory.createServerSocket(conf.SERVER_PORT);\n threads = new HashSet<>();\n\n while (true) {\n //Just keep running until the end of times (or until you're stopped.)\n // Wait for an incoming client-connection request (blocking).\n SSLSocket socket = (SSLSocket) sslServerSocket.accept();\n\n // When a new connection has been established, start a new thread.\n ClientThreadPC ct = new ClientThreadPC(this, socket);\n threads.add(ct);\n new Thread(ct).start();\n System.out.println(\"Num clients: \" + threads.size());\n\n // Simulate lost connections if configured.\n if (conf.doSimulateConnectionLost()) {\n DropClientThread dct = new DropClientThread(ct);\n new Thread(dct).start();\n }\n }\n } catch (IOException | KeyManagementException | KeyStoreException | UnrecoverableKeyException |\n NoSuchAlgorithmException | CertificateException e) {\n e.printStackTrace();\n }\n }", "public void close() {\n try {\n socket.close();\n } catch (IOException e) {\n renderablePublisher.submit(new ServerOfflineUpdate());\n }\n }", "private void stop() {\n if (client != null) {\n this.client.close();\n }\n }", "protected void stopAndReleaseGrpcServer() {\n final Server localServer = this.server;\n if (localServer != null) {\n localServer.shutdown();\n this.server = null;\n log.info(\"gRPC server shutdown.\");\n }\n }", "public void shutdown() {\n for (Entry<String,Session> entry : _sessions.entrySet())\n entry.getValue().disconnect();\n \n writeLine(\"\\nDebugServer shutting down.\");\n close();\n }", "public void shutdown() {\n\t\tfinal List<Runnable> tasks = updater.shutdownNow();\n\t\tif (null == tasks) return;\n\t\tfor (final Runnable t : tasks)\n\t\t\tt.run();\n\t}", "public void abnormalShutDown() {\n\t}" ]
[ "0.611802", "0.584072", "0.56925976", "0.5523363", "0.5521267", "0.55104095", "0.5501946", "0.5482332", "0.5453929", "0.5414963", "0.54118264", "0.54113305", "0.5406572", "0.53962827", "0.5386279", "0.5379797", "0.53720766", "0.53424174", "0.5315768", "0.5305459", "0.5305248", "0.5300482", "0.5295648", "0.52947927", "0.5292943", "0.5280685", "0.52457225", "0.523008", "0.5225317", "0.5214097", "0.5206443", "0.52001095", "0.51912355", "0.5170052", "0.5159176", "0.51583886", "0.5142132", "0.51280165", "0.51224786", "0.51202905", "0.5119605", "0.509562", "0.5095357", "0.5085855", "0.5081006", "0.50641125", "0.50600266", "0.50437856", "0.50247115", "0.5024451", "0.5022979", "0.5017845", "0.501007", "0.5009101", "0.500862", "0.5004413", "0.50017893", "0.4999747", "0.4999747", "0.4999747", "0.4999747", "0.49958527", "0.4992556", "0.49883005", "0.4976413", "0.4968277", "0.49665803", "0.49662676", "0.49647316", "0.4962894", "0.4953798", "0.49532297", "0.4944511", "0.49443296", "0.4944163", "0.4944163", "0.4944163", "0.4944163", "0.4944163", "0.4944163", "0.4944163", "0.4944163", "0.4944163", "0.4944163", "0.4944163", "0.4944163", "0.4944163", "0.4944163", "0.4944163", "0.4944163", "0.4944163", "0.49394152", "0.49383998", "0.492862", "0.49277514", "0.49264333", "0.49254572", "0.49247098", "0.49195346", "0.4916076" ]
0.6961306
0
Dispatches programs for evaluation.
@Override public void run() { while (running) { synchronized (this) { while (pendingPrograms.isEmpty()) try { wait(); } catch (InterruptedException ignored) { } } IndexedProgram entry = getNextProgram(); sendForEvaluation(entry.index, entry.program); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void run() {\r\n // Execute the program\r\n int index = 0;\r\n\r\n while (index < operations.size()) {\r\n Operation o = operations.get(index);\r\n index = o.execute(index, stack, symbolTable);\r\n }\r\n }", "void evaluate()\n\t{\n\t\toperation.evaluate();\n\t}", "public abstract void interpret(EvaluationContext context);", "public interface ProgramExecutor {\n\n /**\n * Execute the Action also called {@code program} with the given input parameters {@code runtimeVariables}.\n *\n * @param program The program to execute\n * @param runtimeVariables A map of input values, passed to the program\n * @return The program result\n */\n Optional<ProgramResult> execute(Action program, Map<String, Object> runtimeVariables);\n}", "Result evaluate();", "public abstract Object eval();", "public void interpreter(Context context){\n System.out.println(\"abstract interpr of context \" +\n \"and call teminal or not terminal context\");\n context.arrayOfActions.get(0).interpreter(context);\n context.arrayOfNumbers.get(0).interpreter(context);\n\n }", "public static void main(String[] args) {\n\t\tContext context = new Context(new OperationAdd());\n\t\tSystem.out.println(\"10 + 5 = \" + context.executeStrategy(10, 5));\n\n\t\tcontext = new Context(new OperationSubtract());\n\t\tSystem.out.println(\"10 - 5 = \" + context.executeStrategy(10, 5));\n\n\t\tcontext = new Context(new OperationMultiply());\n\t\tSystem.out.println(\"10 * 5 = \" + context.executeStrategy(10, 5));\n\t}", "public interface Program {\n\n static EvalResult newEvalResult(Val val, EvalDetails evalDetails) {\n return new EvalResult(val, evalDetails);\n }\n\n /**\n * Eval returns the result of an evaluation of the Ast and environment against the input vars.\n *\n * <p>The vars value may either be an `interpreter.Activation` or a `map[string]interface{}`.\n *\n * <p>If the `OptTrackState` or `OptExhaustiveEval` flags are used, the `details` response will be\n * non-nil. Given this caveat on `details`, the return state from evaluation will be:\n *\n * <ul>\n * <li>`val`, `details`, `nil` - Successful evaluation of a non-error result.\n * <li>`val`, `details`, `err` - Successful evaluation to an error result.\n * <li>`nil`, `details`, `err` - Unsuccessful evaluation.\n * </ul>\n *\n * <p>An unsuccessful evaluation is typically the result of a series of incompatible `EnvOption`\n * or `ProgramOption` values used in the creation of the evaluation environment or executable\n * program.\n */\n EvalResult eval(Object vars);\n\n final class EvalResult {\n private final Val val;\n private final EvalDetails evalDetails;\n\n private EvalResult(Val val, EvalDetails evalDetails) {\n this.val = val;\n this.evalDetails = evalDetails;\n }\n\n public Val getVal() {\n return val;\n }\n\n public EvalDetails getEvalDetails() {\n return evalDetails;\n }\n }\n}", "private CompilationObject compile(AbstractSyntaxTree ast, String code,\n com.microsoft.z3.Context z3Context,\n BlockingQueue<Object> messageQueue,\n Supplier< Boolean> symb)\n throws CompilationException, InterruptedException, ExecutionException {\n HashMap<String, ProcessNode> processNodeMap = new HashMap<>();\n // HashMap<String, ProcessNode> dependencyMap = new HashMap<>();\n\n //System.out.println(\"\\nCOMPILER \"+ast.myString()+\" symb \"+symb.get()+\"\\n\");\n for (ProcessNode node : ast.getProcesses()) {\n //messageQueue.add(new LogMessage(\"Compile starting \"+node.getIdentifier()+\" s \"+symb.get()));\n //System.out.println(\"**COMPILER** Compiler Start node = \"+ node.myString());\n processNodeMap.put(node.getIdentifier(), (ProcessNode) node.copy());\n // dependencyMap.put(node.getIdentifier(), node);\n }\n\n AbstractSyntaxTree symbAST = ast.copy(); // to be used to build symbolic models\n //??????\n\n //System.out.println(\"symb \"+symb.get());\n if (!symb.get()) {\n ast = processAtomicAST(ast, z3Context, messageQueue);\n } else {\n //expander.expand(ast, messageQueue, z3Context); // use for error detection\n ast = symbAST;\n //ast = expander.expand(ast, messageQueue, z3Context);\n //System.out.println(\" COMPILER Before ReferenceReplacer \"+ast.processes2String());\n //ast = replacer.replaceReferences(ast, messageQueue);\n // If we replace the references then we lose the assignment information\n //System.out.println(\" COMPILER After ReferenceReplacer \"+ast.processes2String());\n\n }\n //\n //\n // ??????\n //store alphabet\n Set<String> alpha = ast.getAlphabet().stream().map(x -> x.getAction()).collect(Collectors.toSet());\n //System.out.println(\"Compiler alph = \"+alpha);\n\n //Having built the final AST now build the processes\n /*System.out.println(\"**COMPILER** Entering interpreter with ast for processes -> Types \"+\n ast.getProcesses().stream().map(x->\"\\n\"+x.getIdentifier()+\"->\"+x.getType())\n .reduce(\"\",(x,y)->x+\" \"+y)); */\n Interpreter.ProcessMapFull pmf = interpreter.interpret(ast,\n messageQueue, z3Context, alpha, symb.get());\n // Optional<Map<String, ProcessModel>> processMap = interpreter.interpret(ast,\n // messageQueue, z3Context, alpha, symb.get());\n\n //System.out.println(\" **COMPILER** before operation evaluation \"+processMap.keySet());\n List<OperationResult> opResults = new ArrayList<>();\n EquationEvaluator.EquationReturn eqResults = new EquationEvaluator.EquationReturn();\n if (pmf.getIsFull()) {\n\n //System.out.println(\" isPresent \"+pmf.getProcessMap().size()+\" \"+ast.getProcesses().size());\n // if (ast.getProcesses().size() <= processMap.get().size()) {\n //System.out.println(\"equal size\"); // not sure why <= and not ==\n opResults = evaluator.evaluateOperations(\n ast.getOperations(), pmf.getProcessMap(),\n interpreter.getpetrinetInterpreter(), code, z3Context, messageQueue, alpha);\n //System.out.println(\" **COMPILER** before equation evaluation \"+processMap.keySet());\n\n // HEAVY LIFTING need thread pool\n this.eqEvaluator = new EquationEvaluator(); // need to reset equationEvaluator else !!!!\n eqResults = eqEvaluator.evaluateEquations(\n pmf.getProcessMap(),\n interpreter.getpetrinetInterpreter(),\n ast.getEquations(), // one entry per equation\n z3Context, messageQueue, alpha);\n }\n\n\n //System.out.println(\"Compiler built pn \"+ pmf.getProcessMap().size());\n return new CompilationObject(pmf.getProcessMap(), opResults, eqResults.getResults());\n }", "void run() {\n\t\trunC();\n\t\trunPLMISL();\n\t\trunTolerance();\n\t\trunMatrix();\n\t}", "public void prog() {\r\n \t\r\n // First parse declarations\r\n decls();\r\n // Next parse expression\r\n ArrayList<Integer> values = new ArrayList<Integer>(); \r\n values = exprs(values);\r\n for(int i = 0; i < values.size(); i++) {\r\n \tSystem.out.print(values.get(i) + \" \");\r\n }\r\n System.out.println();\r\n \r\n \r\n //int value = expr();\r\n // Finally parse the end of file character\r\n match(TokenType.END_OF_FILE);\r\n //System.out.println(\"Value of expression is: \" + value);\r\n }", "abstract void exec();", "ProgramState execute(ProgramState state) ;", "public void assemblePrograms(CRun run)\r\n {\r\n CEventGroup evgPtr;\r\n CEvent evtPtr;\r\n CParam evpPtr;\r\n\r\n short o, oo;\r\n short oi, oi1, oi2;\r\n short type;\r\n int nOi, i, n, num;\r\n short d, evgF, evgM, q, d1, d2;\r\n int code;\r\n short fWrap;\r\n short evtAlways, evtAlwaysPos;\r\n int aTimers, ss;\r\n boolean bOrBefore;\r\n int cndOR;\r\n CObjInfo oilPtr;\r\n CObject hoPtr;\r\n\r\n rhPtr = run;\r\n\r\n rh2ActionCount = 0; \t\t\t\t// Force le compte des actions a 0\r\n\r\n // Nettoie la curFrame.m_oiList : enleve les blancs, compte les objets\r\n int oiMax = 0;\r\n for (nOi = 0 , n=0; n < rhPtr.rhMaxOI; n++)\r\n {\r\n if (rhPtr.rhOiList[n].oilOi != -1)\r\n {\r\n rhPtr.rhOiList[n].oilActionCount = -1;\r\n rhPtr.rhOiList[n].oilLimitFlags = 0;\r\n rhPtr.rhOiList[n].oilLimitList = -1;\r\n nOi++;\r\n if (rhPtr.rhOiList[n].oilOi + 1 > oiMax)\r\n {\r\n oiMax = rhPtr.rhOiList[n].oilOi + 1;\r\n }\r\n }\r\n }\r\n\r\n // Fabrique la liste des oi pour chaque qualifier\r\n qualToOiList = null;\r\n int oil;\r\n if (nQualifiers > 0)\r\n {\r\n short count[] = new short[nQualifiers];\r\n for (q = 0; q < nQualifiers; q++)\r\n {\r\n oi = (short) ((qualifiers[q].qOi) & 0x7FFF);\r\n count[q] = 0;\r\n for (oil = 0; oil < rhPtr.rhMaxOI; oil++)\r\n {\r\n if (rhPtr.rhOiList[oil].oilType == qualifiers[q].qType)\r\n {\r\n for (n = 0; n < 8 && rhPtr.rhOiList[oil].oilQualifiers[n] != -1; n++) // MAX_QUALIFIERS\r\n {\r\n if (oi == rhPtr.rhOiList[oil].oilQualifiers[n])\r\n {\r\n count[q]++;\r\n }\r\n }\r\n }\r\n }\r\n }\r\n\r\n qualToOiList = new CQualToOiList[nQualifiers];\r\n for (q = 0; q < nQualifiers; q++)\r\n {\r\n qualToOiList[q] = new CQualToOiList();\r\n\r\n if (count[q] != 0)\r\n {\r\n qualToOiList[q].qoiList = new short[count[q] * 2];\r\n }\r\n\r\n i = 0;\r\n oi = (short) ((qualifiers[q].qOi) & 0x7FFF);\r\n for (oil = 0; oil < rhPtr.rhMaxOI; oil++)\r\n {\r\n if (rhPtr.rhOiList[oil].oilType == qualifiers[q].qType)\r\n {\r\n for (n = 0; n < 8 && rhPtr.rhOiList[oil].oilQualifiers[n] != -1; n++)\r\n {\r\n if (oi == rhPtr.rhOiList[oil].oilQualifiers[n])\r\n {\r\n qualToOiList[q].qoiList[i * 2] = rhPtr.rhOiList[oil].oilOi;\r\n qualToOiList[q].qoiList[i * 2 + 1] = (short) oil;\r\n i++;\r\n }\r\n }\r\n }\r\n }\r\n qualToOiList[q].qoiActionCount = -1;\r\n }\r\n }\r\n\r\n // Poke les offsets des oi dans le programme, prepare les parametres / cree les tables de limitations\r\n // Marque les evenements a traiter dans la boucle\r\n // --------------------------------------------------------------------------------------------------\r\n\r\n // 100 actions STOP par objet... \t// YVES: nOi -> nOi+1 pour eviter erreurs si pas d'objet actif\r\n colBuffer = new short[oiMax * 100 * 2 + 1];\r\n int colList = 0;\r\n\r\n // Boucle d'exploration du programme\r\n int evg, evt, evp;\r\n for (evg = 0; evg < events.length; evg++)\r\n {\r\n evgPtr = events[evg];\r\n\r\n // Initialisation des parametres / pointeurs sur oilists/qoioilist\r\n // -------------------------------------------------------------\r\n for (evt = 0; evt < evgPtr.evgNAct + evgPtr.evgNCond; evt++)\r\n {\r\n evtPtr = evgPtr.evgEvents[evt];\r\n\r\n // Pas de flag BAD\r\n evtPtr.evtFlags &= ~CEvent.EVFLAGS_BADOBJECT;\r\n\r\n // Si evenement pour un objet reel, met l'adresse de l'curFrame.m_oiList\r\n // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n if (EVTTYPE(evtPtr.evtCode) >= 0)\r\n {\r\n evtPtr.evtOiList = get_OiListOffset(evtPtr.evtOi, EVTTYPE(evtPtr.evtCode));\r\n }\r\n\r\n // Exploration des parametres\r\n // ~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n if (evtPtr.evtNParams > 0)\r\n {\r\n for (evp = 0; evp < evtPtr.evtNParams; evp++)\r\n {\r\n evpPtr = evtPtr.evtParams[evp];\r\n switch (evpPtr.code)\r\n {\r\n // Met un parametre buffer 4 a zero\r\n case 25: // PARAM_BUFFER4:\r\n ((PARAM_INT) evpPtr).value = 0;\r\n break;\r\n\r\n // Trouve le levobj de creation\r\n case 21: // PARAM_SYSCREATE:\r\n if ((evtPtr.evtOi & COI.OIFLAG_QUALIFIER) == 0)\r\n {\r\n CLO loPtr;\r\n for (loPtr = rhPtr.rhFrame.LOList.first_LevObj(); loPtr != null; loPtr = rhPtr.rhFrame.LOList.next_LevObj())\r\n {\r\n if (evtPtr.evtOi == loPtr.loOiHandle)\r\n {\r\n ((CCreate) evpPtr).cdpHFII = loPtr.loHandle;\r\n break;\r\n }\r\n }\r\n }\r\n else\r\n {\r\n ((CCreate) evpPtr).cdpHFII = -1;\r\n }\r\n // Met l'adresse du levObj pour create object\r\n case 9: // PARAM_CREATE:\r\n case 18: // PARAM_SHOOT:\r\n case 16: // PARAM_POSITION:\r\n oi = ((CPosition) evpPtr).posOINUMParent;\r\n if (oi != -1)\r\n {\r\n ((CPosition) evpPtr).posOiList = get_OiListOffset(oi, ((CPosition) evpPtr).posTypeParent);\r\n }\r\n break;\r\n\r\n // Poke l'adresse de l'objet dans l'curFrame.m_oiList\r\n case 1: // PARAM_OBJECT:\r\n ((PARAM_OBJECT) evpPtr).oiList = get_OiListOffset(((PARAM_OBJECT) evpPtr).oi, ((PARAM_OBJECT) evpPtr).type);\r\n break;\r\n\r\n // Expression : poke l'adresse de l'curFrame.m_oiList dans les parametres objets\r\n case 15: // PARAM_SPEED:\r\n case 27: // PARAM_SAMLOOP:\r\n case 28: // PARAM_MUSLOOP:\r\n case 45: // PARAM_EXPSTRING:\r\n case 46: // PARAM_CMPSTRING:\r\n case 22: // PARAM_EXPRESSION:\r\n case 23: // PARAM_COMPARAISON:\r\n case 52: // PARAM_VARGLOBAL_EXP:\r\n case 59: // PARAM_STRINGGLOBAL_EXP:\r\n case 53: // PARAM_ALTVALUE_EXP:\r\n case 54: // PARAM_FLAG_EXP:\r\n CParamExpression expPtr = (CParamExpression) evpPtr;\r\n for (n = 0; n < expPtr.tokens.length; n++)\r\n {\r\n // Un objet avec OI?\r\n if (EVTTYPE(expPtr.tokens[n].code) > 0)\r\n {\r\n CExpOi expOi = (CExpOi) expPtr.tokens[n];\r\n expOi.oiList = get_OiListOffset(expOi.oi, EVTTYPE(expOi.code));\r\n }\r\n }\r\n ;\r\n break;\r\n }\r\n }\r\n }\r\n }\r\n\r\n // Flags par defaut / Listes de limitation\r\n // ---------------------------------------\r\n evgF = 0;\r\n evgM = CEventGroup.EVGFLAGS_ONCE | CEventGroup.EVGFLAGS_LIMITED | CEventGroup.EVGFLAGS_STOPINGROUP;\r\n for (evt = 0; evt < evgPtr.evgNCond + evgPtr.evgNAct; evt++)\r\n {\r\n evtPtr = evgPtr.evgEvents[evt];\r\n\r\n type = EVTTYPE(evtPtr.evtCode);\r\n code = evtPtr.evtCode;\r\n n = 0;\r\n d1 = 0;\r\n d2 = 0;\r\n evpPtr = null;\r\n if (type >= COI.OBJ_SPR)\r\n {\r\n switch (getEventCode(code))\r\n {\r\n case (4 << 16): // ACTL_EXTSTOP:\r\n case (9 << 16): // ACTL_EXTBOUNCE:\r\n\r\n evgF |= CEventGroup.EVGFLAGS_STOPINGROUP;\r\n\r\n // Recherche dans le groupe, la cause du STOP-> limitList\r\n // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n oi = evtPtr.evtOi;\r\n if ((oi & COI.OIFLAG_QUALIFIER) != 0)\r\n {\r\n for (o = qual_GetFirstOiList2(evtPtr.evtOiList); o != -1; o = qual_GetNextOiList2())\r\n {\r\n colList = make_ColList1(evgPtr, colList, rhPtr.rhOiList[o].oilOi);\r\n }\r\n }\r\n else\r\n {\r\n colList = make_ColList1(evgPtr, colList, oi);\r\n }\r\n break;\r\n case (25 << 16): // ACTL_EXTSHUFFLE:\r\n evgF |= CEventGroup.EVGFLAGS_SHUFFLE;\r\n break;\r\n case (-14 << 16): // CNDL_EXTCOLLISION:\r\n case (-4 << 16): // CNDL_EXTISCOLLIDING:\r\n // L'objet 1 est-il un sprite?\r\n short type1 = EVTTYPE(evtPtr.evtCode);\r\n if (isTypeRealSprite(type1))\r\n {\r\n d2 = CObjInfo.OILIMITFLAGS_QUICKCOL;\r\n }\r\n else\r\n {\r\n d2 = CObjInfo.OILIMITFLAGS_QUICKCOL | CObjInfo.OILIMITFLAGS_QUICKEXT;\r\n }\r\n\r\n // L'objet 2 est-il un sprite?\r\n evpPtr = evtPtr.evtParams[0];\r\n short type2 = ((PARAM_OBJECT) evtPtr.evtParams[0]).type;\r\n if (isTypeRealSprite(type2))\r\n {\r\n d1 = CObjInfo.OILIMITFLAGS_QUICKCOL;\r\n }\r\n else\r\n {\r\n d1 = CObjInfo.OILIMITFLAGS_QUICKCOL | CObjInfo.OILIMITFLAGS_QUICKEXT;\r\n }\r\n n = 3;\r\n break;\r\n case (-11 << 16): // CNDL_EXTINPLAYFIELD:\r\n case (-12 << 16): // CNDL_EXTOUTPLAYFIELD:\r\n d1 = CObjInfo.OILIMITFLAGS_QUICKBORDER;\r\n n = 1;\r\n break;\r\n case (-13 << 16): // CNDL_EXTCOLBACK:\r\n d1 = CObjInfo.OILIMITFLAGS_QUICKBACK;\r\n n = 1;\r\n break;\r\n }\r\n }\r\n else\r\n {\r\n switch (code)\r\n {\r\n case ((-6 << 16) | 65535): // CNDL_ONCE\r\n evgM &= ~CEventGroup.EVGFLAGS_ONCE;\r\n break;\r\n case ((-7 << 16) | 65535): // CNDL_NOTALWAYS:\r\n evgM |= CEventGroup.EVGFLAGS_NOMORE;\r\n break;\r\n case ((-5 << 16) | 65535): // CNDL_REPEAT:\r\n evgM |= CEventGroup.EVGFLAGS_NOMORE;\r\n break;\r\n case ((-4 << 16) | 65535): // CNDL_NOMORE:\r\n evgM |= CEventGroup.EVGFLAGS_NOTALWAYS + CEventGroup.EVGFLAGS_REPEAT;\r\n break;\r\n case ((-4 << 16) | 0xFFFA): // CNDL_MONOBJECT:\r\n d2 = CObjInfo.OILIMITFLAGS_QUICKCOL;\r\n evpPtr = evtPtr.evtParams[0];\r\n n = 2;\r\n break;\r\n case ((-7 << 16) | 0xFFFA): // CNDL_MCLICKONOBJECT:\r\n d2 = CObjInfo.OILIMITFLAGS_QUICKCOL;\r\n evpPtr = evtPtr.evtParams[1];\r\n n = 2;\r\n break;\r\n }\r\n }\r\n // Poke les flags collision\r\n if ((n & 1) != 0)\r\n {\r\n for (o = qual_GetFirstOiList(evtPtr.evtOiList); o != -1; o = qual_GetNextOiList())\r\n {\r\n rhPtr.rhOiList[o].oilLimitFlags |= d1;\r\n }\r\n }\r\n if ((n & 2) != 0)\r\n {\r\n for (o = qual_GetFirstOiList(((PARAM_OBJECT) evpPtr).oiList); o != -1; o = qual_GetNextOiList())\r\n {\r\n rhPtr.rhOiList[o].oilLimitFlags |= d2;\r\n }\r\n }\r\n }\r\n // Inhibe les anciens flags\r\n evgPtr.evgFlags &= ~evgM;\r\n evgPtr.evgFlags |= evgF;\r\n }\r\n colBuffer[colList] = -1;\r\n\r\n // Reserve le buffer des pointeurs sur listes d'events\r\n // ---------------------------------------------------\r\n int aListPointers[] = new int[COI.NUMBEROF_SYSTEMTYPES + oiMax + 1];\r\n\r\n // Rempli cette table avec les offsets en fonction des types\r\n ss = 0;\r\n int alp;\r\n for (alp = 0 , type = -COI.NUMBEROF_SYSTEMTYPES; type<0; type++, alp++)\r\n {\r\n aListPointers[alp] = ss;\r\n ss += nConditions[COI.NUMBEROF_SYSTEMTYPES + type];\r\n }\r\n // Continue avec les OI, la taille juste pour le type de l'oi\r\n for (oil = 0; oil < rhPtr.rhMaxOI; oil++, alp++)\r\n {\r\n aListPointers[alp] = ss;\r\n if (rhPtr.rhOiList[oil].oilType < COI.KPX_BASE)\r\n {\r\n ss += nConditions[COI.NUMBEROF_SYSTEMTYPES + rhPtr.rhOiList[oil].oilType] + EVENTS_EXTBASE + 1;\r\n }\r\n else\r\n {\r\n ss += rhPtr.rhApp.extLoader.getNumberOfConditions(rhPtr.rhOiList[oil].oilType) + EVENTS_EXTBASE + 1;\r\n }\r\n }\r\n\r\n // Reserve le buffer des pointeurs\r\n int sListPointers = ss;\r\n listPointers = new int[sListPointers];\r\n for (n = 0; n < sListPointers; n++)\r\n {\r\n listPointers[n] = 0;\r\n }\r\n evtAlways = 0;\r\n\r\n // Explore le programme et repere les evenements\r\n short wBufNear[] = new short[rhPtr.rhFrame.maxObjects];\r\n int wPtrNear;\r\n for (evg = 0; evg < nEvents; evg++)\r\n {\r\n evgPtr = events[evg];\r\n evgPtr.evgFlags &= ~CEventGroup.EVGFLAGS_ORINGROUP;\r\n bOrBefore = true;\r\n cndOR = 0;\r\n for (evt = 0; evt < evgPtr.evgNCond; evt++)\r\n {\r\n evtPtr = evgPtr.evgEvents[evt];\r\n type = EVTTYPE(evtPtr.evtCode);\r\n code = evtPtr.evtCode;\r\n num = -EVTNUM(code);\r\n\r\n if (bOrBefore)\r\n {\r\n // Dans la liste des evenements ALWAYS\r\n if ((evtPtr.evtFlags & CEvent.EVFLAGS_ALWAYS) != 0)\r\n {\r\n evtAlways++;\r\n }\r\n\r\n // Dans la liste des evenements generaux si objet systeme\r\n if (type < 0)\r\n {\r\n listPointers[aListPointers[7 + type] + num]++;\r\n }\r\n else\r\n // Un objet normal / qualifier : relie aux objets\r\n {\r\n wPtrNear = 0;\r\n for (o = qual_GetFirstOiList(evtPtr.evtOiList); o != -1; o = qual_GetNextOiList())\r\n {\r\n listPointers[aListPointers[COI.NUMBEROF_SYSTEMTYPES + o] + num]++;\r\n wBufNear[wPtrNear++] = o;\r\n }\r\n wBufNear[wPtrNear] = -1;\r\n // Cas special pour les collisions de sprites : branche aux deux sprites (sauf si meme!)\r\n if (getEventCode(code) == (-14 << 16)) // CNDL_EXTCOLLISION\r\n {\r\n evpPtr = evtPtr.evtParams[0];\r\n for (oo = qual_GetFirstOiList(((PARAM_OBJECT) evpPtr).oiList); oo != -1; oo = qual_GetNextOiList())\r\n {\r\n for (wPtrNear = 0; wBufNear[wPtrNear] != oo && wBufNear[wPtrNear] != -1; wPtrNear++);\r\n if (wBufNear[wPtrNear] == -1)\r\n {\r\n listPointers[aListPointers[COI.NUMBEROF_SYSTEMTYPES + oo] + num]++;\r\n }\r\n }\r\n }\r\n }\r\n }\r\n bOrBefore = false;\r\n if (evtPtr.evtCode == ((-24 << 16) | 65535) || evtPtr.evtCode == ((-25 << 16) | 65535)) // CNDL_OR - CNDL_ORLOGICAL\r\n {\r\n bOrBefore = true;\r\n evgPtr.evgFlags |= CEventGroup.EVGFLAGS_ORINGROUP;\r\n // Un seul type de OR dans un groupe\r\n if (cndOR == 0)\r\n {\r\n cndOR = evtPtr.evtCode;\r\n }\r\n else\r\n {\r\n evtPtr.evtCode = cndOR;\r\n }\r\n // Marque les OR Logical\r\n if (cndOR == ((-25 << 16) | 65535)) // CNDL_ORLOGICAL)\r\n {\r\n evgPtr.evgFlags |= CEventGroup.EVGFLAGS_ORLOGICAL;\r\n }\r\n }\r\n }\r\n }\r\n\r\n // Calcule les tailles necessaires, poke les pointeurs dans les listes\r\n // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n int sEventPointers = evtAlways + 1;\r\n int uil;\r\n for (uil = 0; uil < sListPointers; uil++)\r\n {\r\n if (listPointers[uil] != 0)\r\n {\r\n ss = listPointers[uil];\r\n listPointers[uil] = sEventPointers;\r\n sEventPointers += ss + 1;\r\n }\r\n }\r\n eventPointersGroup = new CEventGroup[sEventPointers];\r\n eventPointersCnd = new byte[sEventPointers];\r\n for (n = 0; n < sEventPointers; n++)\r\n {\r\n eventPointersGroup[n] = null;\r\n eventPointersCnd[n] = 0;\r\n }\r\n\r\n int lposBuffer[] = new int[sListPointers];\r\n for (n = 0; n < sListPointers; n++)\r\n {\r\n lposBuffer[n] = listPointers[n];\r\n }\r\n\r\n evtAlwaysPos = 0;\r\n evtAlways = 0;\r\n int lposPtr;\r\n for (evg = 0; evg < nEvents; evg++)\r\n {\r\n evgPtr = events[evg];\r\n bOrBefore = true;\r\n for (evt = 0; evt < evgPtr.evgNCond; evt++)\r\n {\r\n evtPtr = evgPtr.evgEvents[evt];\r\n type = EVTTYPE(evtPtr.evtCode);\r\n code = evtPtr.evtCode;\r\n num = -EVTNUM(code);\r\n\r\n if (bOrBefore)\r\n {\r\n // Dans la liste des evenements ALWAYS\r\n if ((evtPtr.evtFlags & CEvent.EVFLAGS_ALWAYS) != 0)\r\n {\r\n evtAlways++;\r\n eventPointersGroup[evtAlwaysPos] = evgPtr;\r\n eventPointersCnd[evtAlwaysPos] = (byte) evt;\r\n evtAlwaysPos++;\r\n }\r\n\r\n // Dans la liste des evenements generaux si objet systeme\r\n if (type < 0)\r\n {\r\n lposPtr = aListPointers[COI.NUMBEROF_SYSTEMTYPES + type] + num;\r\n eventPointersGroup[lposBuffer[lposPtr]] = evgPtr;\r\n eventPointersCnd[lposBuffer[lposPtr]] = (byte) evt;\r\n lposBuffer[lposPtr]++;\r\n }\r\n else\r\n // Un objet normal : relie a l'objet\r\n {\r\n wPtrNear = 0;\r\n for (o = qual_GetFirstOiList(evtPtr.evtOiList); o != -1; o = qual_GetNextOiList())\r\n {\r\n lposPtr = aListPointers[COI.NUMBEROF_SYSTEMTYPES + o] + num;\r\n eventPointersGroup[lposBuffer[lposPtr]] = evgPtr;\r\n eventPointersCnd[lposBuffer[lposPtr]] = (byte) evt;\r\n lposBuffer[lposPtr]++;\r\n wBufNear[wPtrNear++] = o;\r\n }\r\n wBufNear[wPtrNear] = -1;\r\n // Cas special pour les collisions de sprites : branche aux deux sprites (sauf si meme!)\r\n if (getEventCode(code) == (-14 << 16)) // CNDL_EXTCOLLISION\r\n {\r\n evpPtr = evtPtr.evtParams[0];\r\n for (oo = qual_GetFirstOiList(((PARAM_OBJECT) evpPtr).oiList); oo != -1; oo = qual_GetNextOiList())\r\n {\r\n for (wPtrNear = 0; wBufNear[wPtrNear] != oo && wBufNear[wPtrNear] != -1; wPtrNear++);\r\n if (wBufNear[wPtrNear] == -1)\r\n {\r\n lposPtr = aListPointers[COI.NUMBEROF_SYSTEMTYPES + oo] + num;\r\n eventPointersGroup[lposBuffer[lposPtr]] = evgPtr;\r\n eventPointersCnd[lposBuffer[lposPtr]] = (byte) evt;\r\n lposBuffer[lposPtr]++;\r\n }\r\n }\r\n }\r\n }\r\n }\r\n bOrBefore = false;\r\n if (evtPtr.evtCode == ((-24 << 16) | 65535) || evtPtr.evtCode == ((-25 << 16) | 65535)) // CNDL_OR - CNDL_ORLOGICAL\r\n {\r\n bOrBefore = true;\r\n }\r\n }\r\n }\r\n ;\r\n\r\n // Adresse des conditions timer\r\n // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n uil = aListPointers[COI.NUMBEROF_SYSTEMTYPES + COI.OBJ_TIMER];\r\n aTimers = listPointers[uil - EVTNUM(((-3 << 16) | 0xFFFC))]; // CNDL_TIMER\r\n\r\n // Poke les adresses et les autres flags des pointeurs dans tous OI\r\n // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n limitBuffer = new short[oiMax + 1 + colList / 2];\r\n int limitListStart = 0;\r\n int limitPos, limitCur;\r\n for (oil = 0; oil < rhPtr.rhMaxOI; oil++)\r\n {\r\n oilPtr = rhPtr.rhOiList[oil];\r\n\r\n // Poke l'offset dans les events\r\n // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n uil = aListPointers[COI.NUMBEROF_SYSTEMTYPES + oil];\r\n oilPtr.oilEvents = uil;\r\n\r\n // Traitement des flags particuliers\r\n // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n int act;\r\n if ((oilPtr.oilOEFlags & CObjectCommon.OEFLAG_MOVEMENTS) != 0)\r\n {\r\n // Recherche les flags WRAP dans les messages OUT OF PLAYFIELD\r\n fWrap = 0;\r\n ss = listPointers[uil - EVTNUM(-12 << 16)]; // CNDL_EXTOUTPLAYFIELD\r\n if (ss != 0)\r\n {\r\n while (eventPointersGroup[ss] != null)\r\n {\r\n evgPtr = eventPointersGroup[ss];\r\n evtPtr = evgPtr.evgEvents[eventPointersCnd[ss]];\r\n d = ((PARAM_SHORT) evtPtr.evtParams[0]).value;\t// Prend la direction\r\n for (act = evg_FindAction(evgPtr, 0) , n=evgPtr.evgNAct; n>0; n--, act++)\r\n {\r\n evtPtr = evgPtr.evgEvents[act];\r\n if (evtPtr.evtCode == ((8 << 16) | (((int) oilPtr.oilType) & 0xFFFF))) // ACT_EXTWRAP\r\n {\r\n fWrap |= d;\r\n }\r\n }\r\n ss++;\r\n }\r\n }\r\n oilPtr.oilWrap = (byte) fWrap;\r\n\r\n // Fabrique la table de limitations des mouvements\r\n // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n oi1 = oilPtr.oilOi;\r\n for (colList = 0 , limitPos=0; colBuffer[colList] != -1; colList += 2)\r\n {\r\n if (colBuffer[colList] == oi1)\r\n {\r\n oi2 = colBuffer[colList + 1];\r\n if ((oi2 & 0x8000) != 0)\r\n {\r\n oilPtr.oilLimitFlags |= oi2;\r\n continue;\r\n }\r\n for (limitCur = 0; limitCur < limitPos && limitBuffer[limitListStart + limitCur] != oi2; limitCur++);\r\n if (limitCur == limitPos)\r\n {\r\n limitBuffer[limitListStart + limitPos++] = oi2;\r\n }\r\n }\r\n }\r\n // Marque la fin...\r\n if (limitPos > 0)\r\n {\r\n oilPtr.oilLimitList = limitListStart;\r\n limitBuffer[limitListStart + limitPos++] = -1;\r\n limitListStart += limitPos;\r\n }\r\n }\r\n }\r\n\r\n // Met les adresses des tables de pointeur systeme\r\n // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n rhEvents[0] = 0;\r\n for (n = 1; n <= COI.NUMBEROF_SYSTEMTYPES; n++)\r\n {\r\n rhEvents[n] = aListPointers[COI.NUMBEROF_SYSTEMTYPES - n];\r\n }\r\n\r\n // Poke les adresses et les autres flags des pointeurs dans tous les objets definis\r\n // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n for (oil = 0; oil < rhPtr.rhMaxOI; oil++)\r\n {\r\n oilPtr = rhPtr.rhOiList[oil];\r\n\r\n // Explore tous les objets de meme OI dans le programme\r\n o = oilPtr.oilObject;\r\n if ((o & 0x8000) == 0)\r\n {\r\n do\r\n {\r\n // Met les oi dans les ro\r\n hoPtr = rhPtr.rhObjectList[o];\r\n hoPtr.hoEvents = oilPtr.oilEvents;\r\n hoPtr.hoOiList = oilPtr;\r\n hoPtr.hoLimitFlags = oilPtr.oilLimitFlags;\r\n // Flags Wrap pour les objets avec movement\r\n if ((hoPtr.hoOEFlags & CObjectCommon.OEFLAG_MOVEMENTS) != 0)\r\n {\r\n hoPtr.rom.rmWrapping = oilPtr.oilWrap;\r\n }\r\n // Si le sprite n'est pas implique dans les collisions -> le passe en neutre\r\n if ((hoPtr.hoOEFlags & CObjectCommon.OEFLAG_SPRITES) != 0 && (hoPtr.hoLimitFlags & CObjInfo.OILIMITFLAGS_QUICKCOL) == 0)\r\n {\r\n if (hoPtr.roc.rcSprite != null)\r\n {\r\n hoPtr.roc.rcSprite.setSpriteColFlag(0);\r\n }\r\n }\r\n // Sprite en mode inbitate?\r\n if ((hoPtr.hoOEFlags & CObjectCommon.OEFLAG_MANUALSLEEP) == 0)\r\n {\r\n // On detruit... sauf si...\r\n hoPtr.hoOEFlags &= ~CObjectCommon.OEFLAG_NEVERSLEEP;\r\n\r\n // On teste des collisions avec le decor?\r\n if ((hoPtr.hoLimitFlags & CObjInfo.OILIMITFLAGS_QUICKBACK) != 0)\r\n {\r\n // Si masque des collisions general\r\n if ((rhPtr.rhFrame.leFlags & CRunFrame.LEF_TOTALCOLMASK) != 0)\r\n {\r\n hoPtr.hoOEFlags |= CObjectCommon.OEFLAG_NEVERSLEEP;\r\n }\r\n }\r\n // Ou test des collisions normal\r\n if ((hoPtr.hoLimitFlags & (CObjInfo.OILIMITFLAGS_QUICKCOL | CObjInfo.OILIMITFLAGS_QUICKBORDER)) != 0)\r\n {\r\n hoPtr.hoOEFlags |= CObjectCommon.OEFLAG_NEVERSLEEP;\r\n }\r\n }\r\n o = hoPtr.hoNumNext;\r\n } while ((o & 0x8000) == 0);\r\n }\r\n }\r\n // Les messages speciaux\r\n // ~~~~~~~~~~~~~~~~~~~~~\r\n if (evtAlways != 0)\r\n {\r\n rhEventAlways = true;\r\n }\r\n else\r\n {\r\n rhEventAlways = false;\r\n }\r\n // Messages Timer (a bulle!)\r\n if (aTimers != 0)\r\n {\r\n rh4TimerEventsBase = aTimers;\r\n }\r\n else\r\n {\r\n rh4TimerEventsBase = 0;\r\n }\r\n\r\n // Liberation\r\n colBuffer = null;\r\n bReady = true;\r\n }", "public abstract void execute(InputCalc input, Calculator calculator);", "public void performEvaluation(){\n if(validateExp(currentExp)){\n try {\n Double result = symbols.eval(currentExp);\n currentExp = Double.toString(result);\n calculationResult.onExpressionChange(currentExp,true);\n count=0;\n }catch (SyntaxException e) {\n calculationResult.onExpressionChange(\"Invalid Input\",false);\n e.printStackTrace();\n }\n }\n\n }", "public void execute() {\n switch (this.opCode) {\n case 'a':\n this.result = this.leftVal + this.rightVal;\n break;\n case 's':\n this.result = this.leftVal - this.rightVal;\n break;\n case 'm':\n this.result = this.leftVal * this.rightVal;\n break;\n case 'd':\n this.result = this.rightVal != 0 ? this.leftVal / this.rightVal : 0.0d;\n break;\n default:\n System.out.println(\"Invalid opCode: \" + this.opCode);\n this.result = 0.0d;\n break;\n }\n numOfCalculations++;\n sumOfResults += result;\n }", "public void exec(OxProgram pgm) {\n }", "public static void main(String[] args) {\n\t\tcalculator c=new calculator();\n\t\tc.calculate(2, 3);\n\t\tscientific_calculator sc=new scientific_calculator();\n\t\tsc.calculate(2, 3);\n\t\thybrid_calculator hc=new hybrid_calculator();\n\t\thc.calculate(2, 3);\n\n\t}", "public static void main(String[] args) {\n System.out.println(dynamicProgramming(100));\n }", "public static void main(String[] args) {\n\t\n\t\t\n\t\tcalc();\n\t}", "protected final boolean exec()\n/* */ {\n/* 731 */ compute();\n/* 732 */ return false;\n/* */ }", "public void runProgram() {\n\t\tJTextPane code = ((MinLFile) tabbedPane.getSelectedComponent()).CodeArea;\n\t\tminc.consolearea.setText(\"\");\n\t\tinterpretorMainMethod(code.getText(), 0);\n\t\tdouble_variables.clear();\n\t\tstring_variables.clear();\n\t\tfunctions.clear();\n\t}", "public static void main(String[] args) {\n NumberFact a, b;\n a = new NumberFact(1_000);\n b = new NumberFact(999);\n\n ArithmeticOperator x, y;\n x = new ArithmeticOperator('*', a, b);\n y = new ArithmeticOperator('+', x, b);\n\n System.out.println(y);\n System.out.println(y.eval());\n }", "public void submit(final EvaluatorRequest req);", "protected final boolean exec() {\n/* 94 */ this.result = compute();\n/* 95 */ return true;\n/* */ }", "public void dispatch();", "public abstract void compute(String execID, boolean recompute);", "private void run() {\n log.log(Level.INFO, \"Starting multiple evaluation of {0} tasks\", tasks.size());\n boolean done = tasks.isEmpty();\n while (!done) {\n boolean hasFreeTasks = true;\n while (hasCapacity() && hasFreeTasks) {\n File task = getFreeTask();\n if (task == null) {\n hasFreeTasks = false;\n } else {\n EvaluatorHandle handle = new EvaluatorHandle();\n if (handle.createEvaluator(task, log, isResume)) {\n log.fine(\"Created new evaluation handler\");\n evaluations.add(handle);\n }\n }\n }\n\n log.log(Level.INFO, \"Tasks in progress: {0}, Unfinished tasks: {1}\", new Object[]{evaluations.size(), tasks.size()});\n try {\n Thread.sleep(5000);\n } catch (InterruptedException ex) {\n //Bla bla\n }\n checkRunningEvaluations();\n done = tasks.isEmpty();\n }\n\n }", "public static void run_op(int formact) {\n switch (formact) {\n case 2:\n switch (op.toInt()) {\n case 144: //case ADDR\n addr(select_reg(r1), select_reg(r2));\n break;\n case 4: //case CLEAR\n clear(select_reg(r1));\n break;\n case 160: //case COMPR\n compr(select_reg(r1), select_reg(r2));\n break;\n case 156: //case DIVR\n divr(select_reg(r1), select_reg(r2));\n break;\n case 152: //case MULR\n mulr(select_reg(r1), select_reg(r2));\n break;\n case 172: //case RMO\n rmo(select_reg(r1), select_reg(r2));\n break;\n case 164: //case SHIFTL\n shiftl(select_reg(r1), r2.toInt());\n break;\n case 168: //case SHIFTR\n shiftr(select_reg(r1), r2.toInt());\n break;\n case 148: //case SUBR\n subr(select_reg(r1), select_reg(r2));\n break;\n case 184: //case TIXR\n tixr(select_reg(r1));\n break;\n }\n break;\n case 3:\n case 4:\n switch (op.toInt()) {\n case 24: //case ADD\n add(address.toInt());\n break;\n case 64: //case AND\n and(address.toInt());\n break;\n case 40: //case COMP\n comp(address.toInt());\n break;\n case 36: //case DIV\n div(address.toInt());\n break;\n case 60: //case J\n j(address.toInt());\n break;\n case 48: //case JEQ\n jeq(address.toInt());\n break;\n case 52: //case JGT\n jgt(address.toInt());\n break;\n case 56: //case JLT\n jlt(address.toInt());\n break;\n case 72: //case JSUB\n jsub(address.toInt());\n break;\n case 0: //case LDA\n lda(address.toInt());\n break;\n case 104: //case LDB\n ldb(address.toInt());\n break;\n case 80: //case LDCH\n ldch(address.toInt());\n break;\n case 8: //case LDL\n ldl(address.toInt());\n break;\n case 108: //case LDS\n lds(address.toInt());\n break;\n case 116: //case LDT\n ldt(address.toInt());\n break;\n case 4: //case LDX\n ldx(address.toInt());\n break;\n case 32: //case MUL\n mul(address.toInt());\n break;\n case 68: //case OR\n or(address.toInt());\n break;\n case 76: //case RSUB\n rsub();\n break;\n case 12: //case STA\n sta(address.toInt(), formact);\n break;\n case 120: //case STB\n stb(address.toInt(), formact);\n break;\n case 84: //case STCH\n stch(address.toInt(), formact);\n break;\n case 20: //case STL\n stl(address.toInt(), formact);\n break;\n case 124: //case STS\n sts(address.toInt(), formact);\n break;\n case 132: //case STT\n stt(address.toInt(), formact);\n break;\n case 16: //case STX\n stx(address.toInt(), formact);\n break;\n case 28: //case SUB\n sub(address.toInt());\n break;\n case 44: //case TIX\n tix(address.toInt());\n break;\n }\n }\n }", "public static void main(String[] args) throws Exception\n {\n Machine machine = new Machine();\n OperatingSystem os = new OperatingSystem(machine);\n machine.powerUp(os);\n // create a program\n\n //grab a program from collection, add to list, schedule list of programs\n List<Program> programs = new LinkedList<>();\n\n////////Testing virtua/physical\n// programs.add(ProgramCollection.A2P1(0));\n// programs.add(ProgramCollection.A2P1(1));\n// programs.add(ProgramCollection.A2P1(2));\n// programs.add(ProgramCollection.A2P1(3));\n// programs.add(ProgramCollection.A2P1(4));\n///////////Testing expand\n// programs.add(ProgramCollection.miniProg(2));\n// programs.add(ProgramCollection.miniProg(3));\n// programs.add(ProgramCollection.moreMem2());\n/////////Testing Shift\n// programs.add(ProgramCollection.moreMem2());\n// programs.add(ProgramCollection.longProg());\n /*\tTesting Compaction\n this test will have two mini programs that finish before our more memory program\n asks for more memory. It will also have two additional wait processes that never finish\n (one that needs to shift left and one too shift right). Our moreMem3 prog will ask for \n more memory and then try storing into these memory locations.\n */\n// programs.add(ProgramCollection.mini(6));\n// programs.add(ProgramCollection.mini(6));\n// programs.add(ProgramCollection.waitProcess(6));\n// programs.add(ProgramCollection.moreMem3(240));\n// programs.add(ProgramCollection.waitProcess(6));\n// programs.add(ProgramCollection.testIt(1));\n// programs.add(ProgramCollection.testIt(2));\n// programs.add(ProgramCollection.testIt(3));\n// programs.add(ProgramCollection.writeConsole(1));\n// programs.add(ProgramCollection.writeConsole(2));\n// programs.add(ProgramCollection.writeConsole(3));\n// programs.add(ProgramCollection.pWriteDisk2(340));\n//TEST READ AND WRITE DISK\n //programs.add(ProgramCollection.WriteReadDisk());\n//TEST SSTF\n// programs.add(ProgramCollection.testSSTF(10, 46, 5));\n// programs.add(ProgramCollection.testSSTF(20, 71, 5));\n// programs.add(ProgramCollection.testSSTF(30, 51, 10));\n// programs.add(ProgramCollection.testSSTF(40, 26, 5));\n\n//TEST STARVATION\n programs.add(ProgramCollection.testSSTF(10, 31, 3));\n programs.add(ProgramCollection.testSSTF(340, 90, 3));\n programs.add(ProgramCollection.testSSTF(20, 51, 3));\n programs.add(ProgramCollection.testSSTF(30, 41, 3));\n programs.add(ProgramCollection.testSSTF(40, 51, 3));\n programs.add(ProgramCollection.testSSTF(50, 41, 3));\n programs.add(ProgramCollection.testSSTF(60, 51, 3));\n programs.add(ProgramCollection.testSSTF(70, 41, 3));\n programs.add(ProgramCollection.testSSTF(80, 51, 3));\n programs.add(ProgramCollection.testSSTF(90, 41, 3));\n\n os.schedule(programs);\n\n }", "public static void main(String args[]) {\n ServerRunner runner = new ServerRunner();\n\n ServerRunner.initRunner(args);\n\n runner.initTasks(args);\n\n //Check if there are enough cores available for multiple concurrent evaluations.\n if (hasCapacityForMultiEvaluation() && runner.getTasks().size() > 1) {\n log.fine(\"Multi evaluation\");\n runner.run();\n } else {\n //Run the evaluation directly\n log.fine(\"Direct evaluation\");\n DirectRunner directRunner = new DirectRunner(runner);\n directRunner.run(runner.isResume);\n }\n\n System.exit(0);\n }", "double eval();", "public static void main(String[] args) {\n\t\t\n\t\tboolean verbose = false;\n\t\tString[] mainArgs = new String[1];\n\t\t\n\t\tif (args[0].equals(\"--verbose\"))\n\t\t\tverbose = true;\n\t\t\n\t\tif (verbose)\n\t\t\tmainArgs[0] = args[1];\n\t\telse\n\t\t\tmainArgs[0] = args[0];\n\t\t\n\t\tMain main = new Main();\n\t\tArrayList<Process> processes = main.processInput(mainArgs);\n\t\tArrayList<Process> processes2 = new ArrayList<Process>();\n\t\tArrayList<Process> processes3 = new ArrayList<Process>();\n\t\tArrayList<Process> processes4 = new ArrayList<Process>();\n\t\t\n\t\tint i = 0;\n\t\twhile (i < 3) {\n\t\t\tfor (int j = 0; j < processes.size(); j++) {\n\t\t\t\tProcess p = processes.get(j);\n\t\t\t\tProcess pCopy = new Process(p);\n\t\t\t\tpCopy.setCpuTime(pCopy.getC());\n\t\t\t\tif (i == 0)\n\t\t\t\t\tprocesses2.add(pCopy);\n\t\t\t\telse if (i == 1)\n\t\t\t\t\tprocesses3.add(pCopy);\n\t\t\t\telse\n\t\t\t\t\tprocesses4.add(pCopy);\n\t\t\t}\n\t\t\ti++;\n\t\t}\n\t\t\n\n\t\tScheduler s = new Scheduler();\n\t\ts.FCFS(processes, verbose);\n\t\tSystem.out.println(\"\");\n//\t\ts.RR(processes2, verbose);\n//\t\tSystem.out.println(\"\");\n//\t\ts.uniProgramming(processes3, verbose);\n//\t\tSystem.out.println(\"\");\n//\t\ts.SJF(processes4, verbose);\n\t}", "public final java_cup.runtime.Symbol CUP$Parser$do_action_part00000000(\n int CUP$Parser$act_num,\n java_cup.runtime.lr_parser CUP$Parser$parser,\n java.util.Stack CUP$Parser$stack,\n int CUP$Parser$top)\n throws java.lang.Exception\n {\n /* Symbol object for return from actions */\n java_cup.runtime.Symbol CUP$Parser$result;\n\n /* select the action based on the action number */\n switch (CUP$Parser$act_num)\n {\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 0: // program ::= defs calls \n {\n Object RESULT =null;\n\t\tint dsleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left;\n\t\tint dsright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).right;\n\t\tString ds = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-1)).value;\n\t\tint csleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).left;\n\t\tint csright = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).right;\n\t\tString cs = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.peek()).value;\n\t\t PrintWriter out = new PrintWriter(\"Main.java\", \"UTF-8\");\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t out.println(\"import java.io.*;\\n\\n\\n\" + \"public class Main {\\n\\n\" + ds + \"\\tpublic static void main(String[] args) {\\n\" + cs + \"\\n\\t}\\n}\");\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t out.close(); \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"program\",0, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)), ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()), RESULT);\n }\n return CUP$Parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 1: // $START ::= program EOF \n {\n Object RESULT =null;\n\t\tint start_valleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left;\n\t\tint start_valright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).right;\n\t\tObject start_val = (Object)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-1)).value;\n\t\tRESULT = start_val;\n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"$START\",0, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)), ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()), RESULT);\n }\n /* ACCEPT */\n CUP$Parser$parser.done_parsing();\n return CUP$Parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 2: // program ::= defs \n {\n Object RESULT =null;\n\t\tint dsleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).left;\n\t\tint dsright = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).right;\n\t\tString ds = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.peek()).value;\n\t\t PrintWriter out = new PrintWriter(\"Main.java\", \"UTF-8\");\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t out.println(\"import java.io.*;\\n\\n\\n\" + \"public class Main {\\n\\n\" + ds + \"\\tpublic static void main(String[] args) {\\n\\n\\t} \\n\\n}\");\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t out.close(); \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"program\",0, ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()), RESULT);\n }\n return CUP$Parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 3: // program ::= calls \n {\n Object RESULT =null;\n\t\tint csleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).left;\n\t\tint csright = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).right;\n\t\tString cs = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.peek()).value;\n\t\t PrintWriter out = new PrintWriter(\"Main.java\", \"UTF-8\");\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t out.println(\"import java.io.*;\\n\\n\\n\" + \"public class Main {\\n\\n\" + \"\\tpublic static void main(String[] args) {\\n\" + cs + \"\\n\\t}\\n}\");\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t out.close(); \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"program\",0, ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()), RESULT);\n }\n return CUP$Parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 4: // defs ::= defs def \n {\n String RESULT =null;\n\t\tint dsleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left;\n\t\tint dsright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).right;\n\t\tString ds = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-1)).value;\n\t\tint dleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).left;\n\t\tint dright = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).right;\n\t\tString d = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.peek()).value;\n\t\t RESULT = ds + d; \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"defs\",1, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)), ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()), RESULT);\n }\n return CUP$Parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 5: // defs ::= def \n {\n String RESULT =null;\n\t\tint dleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).left;\n\t\tint dright = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).right;\n\t\tString d = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.peek()).value;\n\t\t RESULT= d; \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"defs\",1, ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()), RESULT);\n }\n return CUP$Parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 6: // calls ::= calls call \n {\n String RESULT =null;\n\t\tint csleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left;\n\t\tint csright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).right;\n\t\tString cs = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-1)).value;\n\t\tint cleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).left;\n\t\tint cright = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).right;\n\t\tString c = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.peek()).value;\n\t\t RESULT = cs + \"\\t\\tSystem.out.println(\" + c + \");\\n\"; \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"calls\",2, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)), ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()), RESULT);\n }\n return CUP$Parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 7: // calls ::= call \n {\n String RESULT =null;\n\t\tint cleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).left;\n\t\tint cright = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).right;\n\t\tString c = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.peek()).value;\n\t\t RESULT = \"\\t\\tSystem.out.println(\" + c + \");\\n\" ; \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"calls\",2, ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()), RESULT);\n }\n return CUP$Parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 8: // def ::= IDENTIFIER LPAREN defarglist block \n {\n String RESULT =null;\n\t\tint idleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-3)).left;\n\t\tint idright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-3)).right;\n\t\tString id = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-3)).value;\n\t\tint dleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left;\n\t\tint dright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).right;\n\t\tString d = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-1)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).right;\n\t\tString b = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.peek()).value;\n\t\t RESULT = \"\\tpublic static String \" + id + \"(\" + d + \")\" + b; \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"def\",3, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-3)), ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()), RESULT);\n }\n return CUP$Parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 9: // def ::= IDENTIFIER LPAREN RPAREN block \n {\n String RESULT =null;\n\t\tint idleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-3)).left;\n\t\tint idright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-3)).right;\n\t\tString id = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-3)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).right;\n\t\tString b = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.peek()).value;\n\t\t RESULT = \"\\tpublic static String \" + id + \"()\" + b; \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"def\",3, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-3)), ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()), RESULT);\n }\n return CUP$Parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 10: // call ::= IDENTIFIER LPAREN callarglist RPAREN \n {\n String RESULT =null;\n\t\tint idleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-3)).left;\n\t\tint idright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-3)).right;\n\t\tString id = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-3)).value;\n\t\tint cleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left;\n\t\tint cright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).right;\n\t\tString c = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-1)).value;\n\t\t RESULT = id + \"(\" + c + \")\"; \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"call\",4, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-3)), ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()), RESULT);\n }\n return CUP$Parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 11: // call ::= IDENTIFIER LPAREN RPAREN \n {\n String RESULT =null;\n\t\tint idleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).left;\n\t\tint idright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).right;\n\t\tString id = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-2)).value;\n\t\t RESULT = id + \"()\"; \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"call\",4, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)), ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()), RESULT);\n }\n return CUP$Parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 12: // defarglist ::= IDENTIFIER COMMA defarglist \n {\n String RESULT =null;\n\t\tint idleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).left;\n\t\tint idright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).right;\n\t\tString id = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-2)).value;\n\t\tint dleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).left;\n\t\tint dright = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).right;\n\t\tString d = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.peek()).value;\n\t\t RESULT = \"String \" + id + \", \" + d; \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"defarglist\",6, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)), ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()), RESULT);\n }\n return CUP$Parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 13: // defarglist ::= IDENTIFIER RPAREN \n {\n String RESULT =null;\n\t\tint idleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left;\n\t\tint idright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).right;\n\t\tString id = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-1)).value;\n\t\t RESULT = \"String \" + id; \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"defarglist\",6, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)), ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()), RESULT);\n }\n return CUP$Parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 14: // callarglist ::= expr COMMA callarglist \n {\n String RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).right;\n\t\tString e = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-2)).value;\n\t\tint aleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).left;\n\t\tint aright = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).right;\n\t\tString a = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.peek()).value;\n\t\t RESULT = e + \", \" + a; \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"callarglist\",7, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)), ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()), RESULT);\n }\n return CUP$Parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 15: // callarglist ::= expr \n {\n String RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).right;\n\t\tString e = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.peek()).value;\n\t\t RESULT = e; \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"callarglist\",7, ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()), RESULT);\n }\n return CUP$Parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 16: // block ::= LBRAC expr RBRAC \n {\n String RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).right;\n\t\tString e = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-1)).value;\n\t\t RESULT = \"{\\n\\t\\t\" + \"return \" + e + \";\" + \"\\n\\t}\\n\\n\"; \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"block\",8, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)), ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()), RESULT);\n }\n return CUP$Parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 17: // expr ::= STRING_LITERAL \n {\n String RESULT =null;\n\t\tint sleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).left;\n\t\tint sright = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).right;\n\t\tString s = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.peek()).value;\n\t\t RESULT = \"\\\"\" + s + \"\\\"\"; \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"expr\",9, ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()), RESULT);\n }\n return CUP$Parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 18: // expr ::= statement \n {\n String RESULT =null;\n\t\tint stleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).left;\n\t\tint stright = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).right;\n\t\tString st = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.peek()).value;\n\t\t RESULT = st; \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"expr\",9, ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()), RESULT);\n }\n return CUP$Parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 19: // expr ::= call \n {\n String RESULT =null;\n\t\tint cleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).left;\n\t\tint cright = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).right;\n\t\tString c = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.peek()).value;\n\t\t RESULT = c; \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"expr\",9, ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()), RESULT);\n }\n return CUP$Parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 20: // expr ::= expr PLUS expr \n {\n String RESULT =null;\n\t\tint e1left = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).left;\n\t\tint e1right = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).right;\n\t\tString e1 = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-2)).value;\n\t\tint e2left = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).left;\n\t\tint e2right = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).right;\n\t\tString e2 = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.peek()).value;\n\t\t RESULT = e1 + \" + \" + e2; \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"expr\",9, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)), ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()), RESULT);\n }\n return CUP$Parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 21: // expr ::= LPAREN expr RPAREN \n {\n String RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).right;\n\t\tString e = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-1)).value;\n\t\t RESULT = \"(\" + e + \")\"; \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"expr\",9, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)), ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()), RESULT);\n }\n return CUP$Parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 22: // statement ::= IF cond expr ELSE expr \n {\n String RESULT =null;\n\t\tint cleft = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-3)).left;\n\t\tint cright = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-3)).right;\n\t\tString c = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-3)).value;\n\t\tint e1left = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).left;\n\t\tint e1right = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-2)).right;\n\t\tString e1 = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-2)).value;\n\t\tint e2left = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).left;\n\t\tint e2right = ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()).right;\n\t\tString e2 = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.peek()).value;\n\t\t RESULT = \"(\" + c + \"?\" + e1 + \" : \" + e2 + \")\"; \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"statement\",10, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-4)), ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()), RESULT);\n }\n return CUP$Parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 23: // cond ::= LPAREN expr EQ expr RPAREN \n {\n String RESULT =null;\n\t\tint e1left = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-3)).left;\n\t\tint e1right = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-3)).right;\n\t\tString e1 = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-3)).value;\n\t\tint e2left = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left;\n\t\tint e2right = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).right;\n\t\tString e2 = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-1)).value;\n\t\t RESULT = \"(\" + e1 + \")\" + \".equals(\" + e2 + \")\"; \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"cond\",5, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-4)), ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()), RESULT);\n }\n return CUP$Parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 24: // cond ::= LPAREN expr IN expr RPAREN \n {\n String RESULT =null;\n\t\tint e1left = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-3)).left;\n\t\tint e1right = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-3)).right;\n\t\tString e1 = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-3)).value;\n\t\tint e2left = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).left;\n\t\tint e2right = ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-1)).right;\n\t\tString e2 = (String)((java_cup.runtime.Symbol) CUP$Parser$stack.elementAt(CUP$Parser$top-1)).value;\n\t\t RESULT = \"(\" + e2 + \")\" + \".contains(\" + e1 + \")\"; \n CUP$Parser$result = parser.getSymbolFactory().newSymbol(\"cond\",5, ((java_cup.runtime.Symbol)CUP$Parser$stack.elementAt(CUP$Parser$top-4)), ((java_cup.runtime.Symbol)CUP$Parser$stack.peek()), RESULT);\n }\n return CUP$Parser$result;\n\n /* . . . . . .*/\n default:\n throw new Exception(\n \"Invalid action number \"+CUP$Parser$act_num+\"found in internal parse table\");\n\n }\n }", "public static void main(String[] agrs) {\n\t\tconditionalOperEx();\r\n\t}", "public static void main(String args[]) {\n\tSystem.out.println(\"1 2 + 4 * 4 2 - + = \" + execute(\"1 2 + 4 * 4 2 - +\"));\r\n\t\r\n\t// (1 + 4) * (3 + 7) / 5 == 10\r\n\t/*System.out.println(\"1 4 + 3 7 + * 5 / = \" \r\n\t\t\t + execute(\"1 4 + 3 7 + * 5 /\"));\r\n\t\r\n\t// 10 + 2 == 12\r\n\tSystem.out.println(\"10 2 + = \" \r\n\t\t\t + execute(\"10 2 +\"));\r\n\t\r\n\t// 10 / 2 == 5\r\n\tSystem.out.println(\"10 2 / = \"\r\n\t\t\t + execute(\"10 2 /\"));*/\r\n }", "@Override\n public void run(Map<String, LogicalInput> inputs,\n Map<String, LogicalOutput> outputs) throws Exception {\n try {\n Class<?> clazz = Class.forName(\"org.apache.tez.common.ProgressHelper\");\n Constructor<?> ctor = clazz.getConstructor(Map.class, ProcessorContext.class, String.class);\n progressHelper = ctor.newInstance(inputs, getContext(), this.getClass().getSimpleName());\n Method scheduleProgressTaskService = clazz.getMethod(\"scheduleProgressTaskService\", long.class, long.class);\n scheduleProgressTaskService.invoke(progressHelper, 100,\n Math.max(1000, conf.getInt(TezConfiguration.TEZ_TASK_AM_HEARTBEAT_INTERVAL_MS,\n TezConfiguration.TEZ_TASK_AM_HEARTBEAT_INTERVAL_MS_DEFAULT) - 50));\n }\n catch (IllegalAccessException | IllegalArgumentException | InstantiationException | InvocationTargetException\n | ClassNotFoundException | NoSuchMethodException | SecurityException e) {\n // ignore\n }\n\n try {\n initializeInputs(inputs);\n\n initializeOutputs(outputs);\n\n\n List<PhysicalOperator> leaves = null;\n\n if (!execPlan.isEmpty()) {\n leaves = execPlan.getLeaves();\n // TODO: Pull from all leaves when there are multiple leaves/outputs\n leaf = leaves.get(0);\n }\n\n LOG.info(\"Aliases being processed per job phase (AliasName[line,offset]): \" + conf.get(\"pig.alias.location\"));\n\n runPipeline(leaf);\n\n if (Boolean.valueOf(conf.get(JobControlCompiler.END_OF_INP_IN_MAP, \"false\"))\n && !execPlan.endOfAllInput) {\n // If there is a stream in the pipeline or if this map job belongs to merge-join we could\n // potentially have more to process - so lets\n // set the flag stating that all map input has been sent\n // already and then lets run the pipeline one more time\n // This will result in nothing happening in the case\n // where there is no stream or it is not a merge-join in the pipeline\n execPlan.endOfAllInput = true;\n runPipeline(leaf);\n }\n\n // Calling EvalFunc.finish()\n UDFFinishVisitor finisher = new UDFFinishVisitor(execPlan,\n new DependencyOrderWalker<PhysicalOperator, PhysicalPlan>(\n execPlan));\n try {\n finisher.visit();\n } catch (VisitorException e) {\n int errCode = 2121;\n String msg = \"Error while calling finish method on UDFs.\";\n throw new VisitorException(msg, errCode, PigException.BUG, e);\n }\n\n if (!fileOutputs.isEmpty()) {\n while (!getContext().canCommit() && !isAborted) {\n Thread.sleep(100);\n }\n if (isAborted) {\n return;\n }\n for (MROutput fileOutput : fileOutputs){\n fileOutput.flush();\n if (fileOutput.isCommitRequired()) {\n fileOutput.commit();\n }\n }\n }\n\n // send event containing parallelism to sorting job of order by / skewed join\n if (conf.getBoolean(ESTIMATE_PARALLELISM, false)) {\n int parallelism = 1;\n if (sampleMap!=null && sampleMap.containsKey(ESTIMATED_NUM_PARALLELISM)) {\n parallelism = (Integer)sampleMap.get(ESTIMATED_NUM_PARALLELISM);\n }\n String sortingVertex = conf.get(SORT_VERTEX);\n // Should contain only 1 output for sampleAggregation job\n LOG.info(\"Sending numParallelism \" + parallelism + \" to \" + sortingVertex);\n VertexManagerEvent vmEvent = VertexManagerEvent.create(\n sortingVertex, ByteBuffer.wrap(Ints.toByteArray(parallelism)));\n List<Event> events = Lists.newArrayListWithCapacity(1);\n events.add(vmEvent);\n getContext().sendEvents(events);\n }\n } catch (Exception e) {\n LOG.error(\"Encountered exception while processing: \", e);\n abortOutput();\n throw e;\n }\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tmCpuinfo = ShellHelper.getProc(CPU_INFO_PROC);\n\t\t\t\tupdateCpuStats();\n\t\t\t\tfor (LogicalCpu c : mLogicalCpus) {\n\t\t\t\t\tc.updateFrequency();\n\t\t\t\t\tc.updateGovernor();\n\t\t\t\t\tc.updateTimeInFrequency();\n\t\t\t\t\tc.updateTotalTransitions();\n\t\t\t\t}\n\t\t\t}", "public void exec();", "public static void main(String[] args) {\n\t\tint num1 = 7;\r\n\t\tint num2 = 6;\r\n\t\t\r\n\t\tmathOps ops1 = new mathOps();\r\n\t\tSystem.out.println(\"sum = \" +ops1.addition(num1, num2));\r\n\t\tSystem.out.println(\"sub = \" +ops1.substraction(num1, num2));\r\n\t\tSystem.out.println(\"mul = \" +ops1.multiply(num1, num2));\r\n\t\tSystem.out.println(\"div = \" +ops1.divide(num1, num2));\r\n\t}", "public void execute() {\n\t\t// XOR GATE OP\n\t\txor.a.set(a.get());\n\t\txor.b.set(b.get());\n\t\txor.execute();\n\t\tsum.set(xor.out.get());\n\n\t\t// AND GATE OP\n\t\tand.a.set(a.get());\n\t\tand.b.set(b.get());\n\t\tand.execute();\n\t\tcarry.set(and.out.get());\n\n\t}", "public static void main(String [] args)\n {\n runCalculations();\n }", "public static void main(String[] args) {\n MathOp add=new MathOp() {\n \t \n public int operation(int x, int y)\n {\n \t return x+y;\n }\n\t };\n\t System.out.println(add.operation(1, 2));\n \n\t MathOp sub=new MathOp() {\n \t \n\t public int operation(int x, int y)\n\t {\n\t \t return x-y;\n\t }\n\t\t };\n\t\t System.out.println(sub.operation(1, 2));\n\t \n\t\t MathOp mul=new MathOp() {\n\t \t \n\t\t public int operation(int x, int y)\n\t\t {\n\t\t \t return x*y;\n\t\t }\n\t\t\t };\n\t\t\t System.out.println(mul.operation(1, 2));\n\t\t \n\t\t\t MathOp div=new MathOp() {\n\t\t \t \n\t\t\t public int operation(int x, int y)\n\t\t\t { \n\t\t\t \t return x/y;\n\t\t\t }\n\t\t\t\t };\n\t\t\t\t System.out.println(div.operation(1, 2));\n\t\t\t \n}", "Hojas eval();", "public static void main(String[] args)\n {\n /*\n * Create a new loader with default factory.\n * \n * A factory will create all rule components when loader requires them\n * Default engine is used that creates all the default constructs in:\n * org.achacha.rules.compare\n * org.achacha.rules.condition\n * org.achacha.rules.action\n * \n * RulesEngineFactoryExtension can be used to extend a default factory while keeping existing constructs\n * for basic rules the default factory provides a wide variety of comparators and action elements\n * \n * The loader uses the factory to resolve where the rule parts are loaded from\n * There are several load types (file system, in-memory string, in-memory XML)\n * Here we will configure a simple in-memory string based loader and add the\n * conditions and actions from constants\n */\n RulesEngineLoaderImplMappedString loader = new RulesEngineLoaderImplMappedString(new RulesEngineFactory());\n \n // Add a simple rule and call it 'alwaysTrue', we will execute this rule using this name\n loader.addRule(\"alwaysTrue\", SIMPLE_RULE);\n \n /*\n * Create a rules engine that uses the loader and factory we just created\n * Normally these 3 objects would be someone retained so we don't have to re-parse the rules every execution\n * However this is a tutorial example\n */\n RulesEngine engine = new RulesEngine(loader);\n \n /////////////////////////// Everything above is initialization ///////////////////////////////////////\n \n /////////////////////////// Everything below is rule execution ///////////////////////////////////////\n /*\n * Now we need to have some input for the rule to process but since were are using constants in comparison we can just pass\n * an empty input model\n * \n * We use dom4j XML Element for input\n * \n * <request>\n * <input />\n * </request>\n */\n Element request = DocumentHelper.createElement(\"request\");\n request.addElement(\"input\");\n \n /*\n * RuleContext is an object that holds the input, output, event log, etc for a given rule execution\n * The engine can create a new context for us if we specify the input for the rule\n */\n RuleContext ruleContext = engine.createContext(request);\n \n /*\n * Now that we have set up our context we can execute the rule\n * Since we used addRule above and called this rule 'alwaysTrue', this is how we invoke this rule\n * \n * NOTE:\n * you can run multiple rules sequentially against the same context\n * some actions can modify input context and some conditions can check output context\n * so rules can depend on other rules\n */\n engine.execute(ruleContext, \"alwaysTrue\");\n \n /*\n * Display the output model\n * \n * Since the action we used is:\n * \n * <Action Operator='OutputValueSet'>\"\n * <Path>/result</Path>\"\n * <Value Source='Constant'><Data>yes</Data></Value>\"\n * </Action>\"\n * \n * We get the following output model:\n * <output><result>yes</result></output>\n * \n * NOTE: The path on the output action is always relative to the output element\n */\n System.out.println(\"Output Model\\n------------\");\n System.out.println(ruleContext.getOutputModel().asXML());\n }", "public void execute(){\n\t\tfor(Instruction currentInstn:this.instns){\n\t\t\tcurrentInstn.execute();\n\t\t}\n\t}", "public static void main(String[] args) {\r\n\t\tScanner scanner = new Scanner(System.in);\r\n\t\tint instructionsLength = Integer.parseInt(scanner.nextLine());\r\n\t\tList<List<String>> instructions = new ArrayList<>();\r\n\t\t\r\n\t\tfor (int i = 0; i < instructionsLength; i++) {\r\n\t\t\tinstructions.add(splitWords(scanner.nextLine()));\r\n\t\t}\r\n\t\t\r\n\t\tscanner.close();\r\n\t\tList<String> res = simulateCallCenter(instructions);\r\n\t\t\r\n\t\tfor (String line : res) {\r\n\t\t\tSystem.out.println(line);\r\n\t\t}\r\n\t}", "private void run() {\n int code = memory[pc];\n while (code != 0) {\n nextCode(code);\n code = memory[++pc];\n }\n }", "public void execute() {\n\t\tBitString opCodeStr;\n\t\tint opCode;\n\n\t\twhile (true) {\n\t\t\t// Fetch the instruction\n\t\t\tmIR = mMemory[mPC.getValue()];\n\t\t\tmPC.addOne();\n\n\t\t\t// Decode the instruction's first 4 bits \n\t\t\t// to figure out the opcode\n\t\t\topCodeStr = mIR.substring(0, 4);\n\t\t\topCode = opCodeStr.getValue();\n\n\t\t\t// What instruction is this?\n\t\t\tif (opCode == 9) { // NOT\n\t\t\t\texecuteNot();\n\t\t\t} else if (opCode == 0) { //BR\n\t\t\t\texecuteBR();\n\t\t\t} else if (opCode == 1) { //ADD\n\t\t\t\texecuteAdd();\n\t\t\t} else if (opCode == 2) { //LD\n\t\t\t\texecuteLoad();\n\t\t\t} else if (opCode == 5) { //AND\n\t\t\t\texecuteAnd();\n\t\t\t} else if (opCode == 6) { //LDR\n\t\t\t\texecuteLDR();\n\t\t\t} else if (opCode == 7) { //STR\n\t\t\t\texecuteSTR();\n\t\t\t} else if (opCode == 10) { //LDI\n\t\t\t\texecuteLDI();\n\t\t\t} else if (opCode == 11) { //STI\n\t\t\t\texecuteSTI();\n\t\t\t} else if (opCode == 14) { //LEA\n\t\t\t\texecuteLEA();\n\t\t\t} else if (opCode == 15) { //TRAP\n\t\t\t\tBitString trapStr = mIR.substring(8, 8);\n\t\t\t\tint trapVal = trapStr.getValue();\n\t\t\t\tif (trapVal == 33){ //x21 = binary 18 means OUT\n\t\t\t\t\texecuteOUT();\n\t\t\t\t}else if(trapVal == 37) { //x25 = binary 37 means HALT\n\t\t\t\t\treturn; //halt instruction means to stop executing.\n\t\t\t\t} else{ System.out.println(\"Not valid Trap Command.\");}\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"INVALID INSTRUCTION ENTERED.\");\n\t\t\t}\n\t\t\t// TODO - Others\n\t\t}\n\t}", "long execute() throws EvaluationException\n\t\t{\n\t\t\tList<IQuery> queries = mParser.getQueries();\n\t\t\t\n\t\t\tif( queries.size() != 1 )\n\t\t\t\tthrow new RuntimeException( \"The input program must contain exactly one query.\" );\n\t\t\t\n\t\t\tIQuery query = queries.get( 0 );\n\t\t\tlong elapsedTime = -System.currentTimeMillis();\n\t\t\tfinal IKnowledgeBase mKB = KnowledgeBaseFactory.createKnowledgeBase( mParser.getFacts(), mParser.getRules() );\n\t\t\tmKB.execute( query );\n\t\t\telapsedTime += System.currentTimeMillis();\n\n\t\t\treturn elapsedTime;\n\t\t}", "EntryPointResult evaluate(Object data, String entryPointName, EvaluationConfig evaluationConfig);", "public void compute() {}", "String evaluate();", "public int eval(Environment env)\n {\n Environment hangingenvironment = new Environment();\n hangingenvironment.setParent(env);\n Environment temp = env;\n while (temp.getParent() != null)\n {\n temp = temp.getParent();\n }\n ProcedureDeclaration dec = temp.getProcedure(name);\n hangingenvironment.setVariable(name, 0);\n ArrayList<String> params = (ArrayList <String>) dec.getParams();\n for (int i = 0; i < params.size(); i++)\n {\n hangingenvironment.setVariable(params.get(i),\n express.get(i).eval(env));\n }\n hangingenvironment.getProcedure(name).getStatement()\n .exec(hangingenvironment);\n return hangingenvironment.getVariable(name);\n }", "public static final void main(String... strings) {\n\t\tMathematics sum = (x, y) -> x + y;\n\t\t// Uso de interface funcional para resta\n\t\tMathematics subtraction = (x, y) -> x - y;\n\t\t// Uso de interface funcional para multiplicacion\n\t\tMathematics mult = (x, y) -> x * y;\n\t\t// Uso de interface funcional para division\n\t\tMathematics div = (x, y) -> x / y;\n\n\t\tSystem.out.println(\"El resultado de la suma es: \" + sum.operation(15, 10));\n\t\tSystem.out.println(\"El resultado de la suma es: \" + subtraction.operation(15, 10));\n\t\tSystem.out.println(\"El resultado de la suma es: \" + mult.operation(15, 10));\n\t\tSystem.out.println(\"El resultado de la suma es: \" + div.operation(15, 10));\n\n\t}", "public final java_cup.runtime.Symbol CUP$CoolParser$do_action_part00000000(\n int CUP$CoolParser$act_num,\n java_cup.runtime.lr_parser CUP$CoolParser$parser,\n java.util.Stack CUP$CoolParser$stack,\n int CUP$CoolParser$top)\n throws java.lang.Exception\n {\n /* Symbol object for return from actions */\n java_cup.runtime.Symbol CUP$CoolParser$result;\n\n /* select the action based on the action number */\n switch (CUP$CoolParser$act_num)\n {\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 0: // program ::= class_list \n {\n programc RESULT =null;\n\t\tClasses cl = (Classes)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new programc(curr_lineno(), cl); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"program\",0, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 1: // $START ::= program EOF \n {\n Object RESULT =null;\n\t\tprogramc start_val = (programc)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tRESULT = start_val;\n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"$START\",0, RESULT);\n }\n /* ACCEPT */\n CUP$CoolParser$parser.done_parsing();\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 2: // program ::= error \n {\n programc RESULT =null;\n\t\t RESULT = new programc(curr_lineno(),\n new Classes(curr_lineno())); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"program\",0, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 3: // class_list ::= class_cc \n {\n Classes RESULT =null;\n\t\tclass_c c = (class_c)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = (new Classes(curr_lineno())).appendElement(c); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"class_list\",1, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 4: // class_list ::= class_list class_cc \n {\n Classes RESULT =null;\n\t\tClasses cl = (Classes)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tclass_c c = (class_c)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = cl.appendElement(c); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"class_list\",1, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 5: // class_cc ::= CLASS TYPEID LBRACE optional_feature_list RBRACE SEMI \n {\n class_c RESULT =null;\n\t\tAbstractSymbol n = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tFeatures f = (Features)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\t RESULT = new class_c(curr_lineno(), n, \n\t\t AbstractTable.idtable.addString(\"Object\"), \n\t\t\t\t f, curr_filename()); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"class_cc\",2, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 6: // class_cc ::= CLASS TYPEID INHERITS TYPEID LBRACE optional_feature_list RBRACE SEMI \n {\n class_c RESULT =null;\n\t\tAbstractSymbol n = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-6)).value;\n\t\tAbstractSymbol p = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tFeatures f = (Features)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\t RESULT = new class_c(curr_lineno(), n, p, f, curr_filename()); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"class_cc\",2, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 7: // class_cc ::= error SEMI \n {\n class_c RESULT =null;\n\n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"class_cc\",2, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 8: // optional_feature_list ::= \n {\n Features RESULT =null;\n\t\t RESULT = new Features(curr_lineno()); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"optional_feature_list\",3, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 9: // optional_feature_list ::= f2 \n {\n Features RESULT =null;\n\t\tFeature feature2 = (Feature)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new Features(curr_lineno()).appendElement(feature2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"optional_feature_list\",3, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 10: // optional_feature_list ::= optional_feature_list f2 \n {\n Features RESULT =null;\n\t\tFeatures flist = (Features)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tFeature feature2 = (Feature)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = flist.appendElement(feature2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"optional_feature_list\",3, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 11: // f2 ::= OBJECTID COLON TYPEID SEMI \n {\n Feature RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t \n\t\tRESULT = new attr(curr_lineno(), o, t, new no_expr(curr_lineno())); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"f2\",10, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 12: // f2 ::= OBJECTID COLON TYPEID ASSIGN expr SEMI \n {\n Feature RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-5)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tExpression ex1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new attr(curr_lineno(), o, t, ex1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"f2\",10, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 13: // f2 ::= OBJECTID LPAREN formal_list RPAREN COLON TYPEID LBRACE expr RBRACE SEMI \n {\n Feature RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-9)).value;\n\t\tFormals f1 = (Formals)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-7)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\t RESULT = new method(curr_lineno(), o, f1, t, e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"f2\",10, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 14: // f2 ::= error SEMI \n {\n Feature RESULT =null;\n\n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"f2\",10, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 15: // formal_list ::= \n {\n Formals RESULT =null;\n\t\t RESULT = new Formals(curr_lineno()); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"formal_list\",9, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 16: // formal_list ::= formal_1 \n {\n Formals RESULT =null;\n\t\tFormal formal1 = (Formal)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new Formals(curr_lineno()).appendElement(formal1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"formal_list\",9, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 17: // formal_list ::= formal_list formal_1 \n {\n Formals RESULT =null;\n\t\tFormals f2 = (Formals)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tFormal formal1 = (Formal)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = f2.appendElement(formal1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"formal_list\",9, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 18: // formal_1 ::= OBJECTID COLON TYPEID \n {\n Formal RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new formalc(curr_lineno(), o, t); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"formal_1\",8, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 19: // formal_1 ::= OBJECTID COLON TYPEID COMMA \n {\n Formal RESULT =null;\n\t\tAbstractSymbol obj = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tAbstractSymbol typ = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new formalc(curr_lineno(), obj, typ); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"formal_1\",8, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 20: // expr ::= expr PLUS expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new plus(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 21: // expr ::= expr MINUS expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new sub(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 22: // expr ::= expr MULT expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new mul(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 23: // expr ::= expr DIV expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new divide(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 24: // expr ::= NEG expr \n {\n Expression RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new neg(curr_lineno(), e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 25: // expr ::= expr LT expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new lt(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 26: // expr ::= expr EQ expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new eq(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 27: // expr ::= expr LE expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new leq(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 28: // expr ::= NOT expr \n {\n Expression RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new comp(curr_lineno(), e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 29: // expr ::= LPAREN expr RPAREN \n {\n Expression RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = e; \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 30: // expr ::= INT_CONST \n {\n Expression RESULT =null;\n\t\tAbstractSymbol i = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new int_const(curr_lineno(), i); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 31: // expr ::= STR_CONST \n {\n Expression RESULT =null;\n\t\tAbstractSymbol s = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new string_const(curr_lineno(), s); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 32: // expr ::= BOOL_CONST \n {\n Expression RESULT =null;\n\t\tBoolean b = (Boolean)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new bool_const(curr_lineno(), b); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 33: // expr ::= OBJECTID \n {\n Expression RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new object(curr_lineno(), o); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 34: // expr ::= OBJECTID actuals \n {\n Expression RESULT =null;\n\t\tAbstractSymbol n = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tExpressions a = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new dispatch(curr_lineno(),\n\t new object(curr_lineno(), \n\t AbstractTable.idtable.addString(\"self\")),\n\t\t\t\t n, a); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 35: // expr ::= expr DOT OBJECTID actuals \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tAbstractSymbol n = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tExpressions b = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new dispatch(curr_lineno(), e1, n, b); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 36: // expr ::= expr AT TYPEID DOT OBJECTID actuals \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-5)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tAbstractSymbol n = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tExpressions b = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new static_dispatch(curr_lineno(), e1, t, n, b); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 37: // expr ::= ISVOID expr \n {\n Expression RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new isvoid(curr_lineno(), e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 38: // expr ::= OBJECTID ASSIGN expr \n {\n Expression RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new assign(curr_lineno(), o, e1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 39: // expr ::= IF expr THEN expr ELSE expr FI \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-5)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tExpression e3 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new cond(curr_lineno(), e1, e2, e3); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 40: // expr ::= NEW TYPEID \n {\n Expression RESULT =null;\n\t\tAbstractSymbol n = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\tRESULT = new new_(curr_lineno(), n); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 41: // expr ::= LBRACE block_exp_list RBRACE \n {\n Expression RESULT =null;\n\t\tExpressions exprslist = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new block(curr_lineno(), exprslist); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 42: // expr ::= CASE expr OF case_list ESAC \n {\n Expression RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tCases cl = (Cases)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new typcase(curr_lineno(), e, cl); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 43: // expr ::= WHILE expr LOOP expr POOL \n {\n Expression RESULT =null;\n\t\tExpression eone = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tExpression etwo = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tRESULT = new loop(curr_lineno(), eone, etwo); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 44: // expr ::= LET lettail \n {\n Expression RESULT =null;\n\t\tlet tail = (let)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\tRESULT = tail; \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 45: // lettail ::= OBJECTID COLON TYPEID ASSIGN expr IN expr \n {\n let RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-6)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\tRESULT = new let(curr_lineno(), o, t, e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"lettail\",14, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 46: // lettail ::= OBJECTID COLON TYPEID IN expr \n {\n let RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\tRESULT = new let(curr_lineno(), o, t, new no_expr(curr_lineno()), e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"lettail\",14, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 47: // lettail ::= OBJECTID COLON TYPEID ASSIGN expr COMMA lettail \n {\n let RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-6)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tlet tail = (let)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\tRESULT = new let(curr_lineno(), o, t, e1, tail); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"lettail\",14, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 48: // lettail ::= OBJECTID COLON TYPEID COMMA lettail \n {\n let RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tlet tail = (let)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\tRESULT = new let(curr_lineno(), o, t, new no_expr(curr_lineno()), tail); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"lettail\",14, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 49: // lettail ::= error SEMI \n {\n let RESULT =null;\n\n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"lettail\",14, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 50: // lettail ::= error IN expr \n {\n let RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"lettail\",14, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 51: // actuals ::= LPAREN RPAREN \n {\n Expressions RESULT =null;\n\t\t RESULT = new Expressions(curr_lineno()); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"actuals\",5, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 52: // actuals ::= LPAREN exp_list RPAREN \n {\n Expressions RESULT =null;\n\t\tExpressions el = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = el; \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"actuals\",5, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 53: // case_list ::= case_1 \n {\n Cases RESULT =null;\n\t\tCase c1 = (Case)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new Cases(curr_lineno()).appendElement(c1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"case_list\",12, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 54: // case_list ::= case_1 SEMI \n {\n Cases RESULT =null;\n\t\tCase c1 = (Case)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new Cases(curr_lineno()).appendElement(c1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"case_list\",12, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 55: // case_list ::= case_list case_1 SEMI \n {\n Cases RESULT =null;\n\t\tCases cl = (Cases)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tCase c1 = (Case)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = cl.appendElement(c1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"case_list\",12, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 56: // case_1 ::= OBJECTID COLON TYPEID DARROW expr \n {\n Case RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new branch(curr_lineno(), o, t, e1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"case_1\",13, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 57: // exp_list ::= expr \n {\n Expressions RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = (new Expressions(curr_lineno())).appendElement(e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"exp_list\",6, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 58: // exp_list ::= exp_list COMMA expr \n {\n Expressions RESULT =null;\n\t\tExpressions el = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = el.appendElement(e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"exp_list\",6, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 59: // block_exp_list ::= expr SEMI \n {\n Expressions RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new Expressions(curr_lineno()).appendElement(e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"block_exp_list\",7, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 60: // block_exp_list ::= block_exp_list expr SEMI \n {\n Expressions RESULT =null;\n\t\tExpressions el = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = el.appendElement(e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"block_exp_list\",7, RESULT);\n }\n return CUP$CoolParser$result;\n\n /* . . . . . .*/\n default:\n throw new Exception(\n \"Invalid action number \"+CUP$CoolParser$act_num+\"found in internal parse table\");\n\n }\n }", "public static void main(String[] args) {\n\t\t// System.out.println(ExpressionEvaluation.evaluate(\"10 + 2 * 6\"));\n\t\t// System.out.println(ExpressionEvaluation.evaluate(\"100 * 2 + 12\"));\n\t\t// System.out.println(ExpressionEvaluation.evaluate(\"100 * ( 2 + 12 )\"));\n\t\tSystem.out.println(\"(100 * ( 2 + 12 ) / 14) = \"+ExpressionEvaluation.evaluate(\"(100 * ( 2 + 12 ) / 14)\"));\n\n\t\t// System.out.println(ExpressionEvaluation.evaluate(\"100*(2+12)/14\"));\n\t}", "public final MRpRes evaluate(MRpCommandList comList) {\r\n\t\tscalerStore.reset();\r\n\t\tv2Store.reset();\r\n\t\tv3Store.reset();\r\n\t\tv4Store.reset();\r\n\t\tvnStore.reset();\r\n\t\tm22Store.reset();\r\n\t\tm23Store.reset();\r\n\t\tm24Store.reset();\r\n\t\tm32Store.reset();\r\n\t\tm33Store.reset();\r\n\t\tm34Store.reset();\r\n\t\tm42Store.reset();\r\n\t\tm43Store.reset();\r\n\t\tm44Store.reset();\r\n\t\tmnnStore.reset();\r\n\r\n\t\t// Now actually process the commands\r\n\t\tint num = comList.getNumCommands();\r\n\t\tfor (short commandNum = 0; commandNum < num; ++commandNum) {\r\n\t\t\tMRpCommandList.MRpCommand command = comList.commands[commandNum];\r\n\t\t\tshort aux1 = command.aux1;\r\n\t\t\tshort aux2 = command.aux2;\r\n\t\t\tswitch (command.command) {\r\n\t\t\tcase CONST:\r\n\t\t\t\tscalerStore.stack[scalerStore.sp++] = constVals[aux1];\r\n\t\t\t\tbreak;\r\n\t\t\tcase VAR:\r\n\t\t\t\tswitch (aux1) {\r\n\t\t\t\tcase SCALER:\r\n\t\t\t\t\tscalerStore.stack[scalerStore.sp++] = scalerStore.vars[aux2];\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase V2:\r\n\t\t\t\t\tv2Store.stack[v2Store.sp++] = v2Store.vars[aux2];\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase V3:\r\n\t\t\t\t\tv3Store.stack[v3Store.sp++] = v3Store.vars[aux2];\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase V4:\r\n\t\t\t\t\tv4Store.stack[v4Store.sp++] = v4Store.vars[aux2];\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase Vn:\r\n\t\t\t\t\tvnStore.stack[vnStore.sp++] = vnStore.vars[aux2];\r\n\t\t\t\t\tbreak;\r\n\r\n\t\t\t\tcase M22:\r\n\t\t\t\t\tm22Store.stack[m22Store.sp++] = m22Store.vars[aux2];\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase M23:\r\n\t\t\t\t\tm23Store.stack[m23Store.sp++] = m23Store.vars[aux2];\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase M24:\r\n\t\t\t\t\tm24Store.stack[m24Store.sp++] = m24Store.vars[aux2];\r\n\t\t\t\t\tbreak;\r\n\r\n\t\t\t\tcase M32:\r\n\t\t\t\t\tm32Store.stack[m32Store.sp++] = m32Store.vars[aux2];\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase M33:\r\n\t\t\t\t\tm33Store.stack[m33Store.sp++] = m33Store.vars[aux2];\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase M34:\r\n\t\t\t\t\tm34Store.stack[m34Store.sp++] = m34Store.vars[aux2];\r\n\t\t\t\t\tbreak;\r\n\r\n\t\t\t\tcase M42:\r\n\t\t\t\t\tm42Store.stack[m42Store.sp++] = m42Store.vars[aux2];\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase M43:\r\n\t\t\t\t\tm43Store.stack[m43Store.sp++] = m43Store.vars[aux2];\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase M44:\r\n\t\t\t\t\tm44Store.stack[m44Store.sp++] = m44Store.vars[aux2];\r\n\t\t\t\t\tbreak;\r\n\r\n\t\t\t\tcase Mnn:\r\n\t\t\t\t\tmnnStore.stack[mnnStore.sp++] = mnnStore.vars[aux2];\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase ADD:\r\n\t\t\t\tswitch (aux1) {\r\n\t\t\t\tcase SCALER:\r\n\t\t\t\t\tscalerStore.add();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase V2:\r\n\t\t\t\t\tv2Store.add();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase V3:\r\n\t\t\t\t\tv3Store.add();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase V4:\r\n\t\t\t\t\tv4Store.add();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase Vn:\r\n\t\t\t\t\tvnStore.add();\r\n\t\t\t\t\tbreak;\r\n\r\n\t\t\t\tcase M22:\r\n\t\t\t\t\tm22Store.add();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase M23:\r\n\t\t\t\t\tm23Store.add();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase M24:\r\n\t\t\t\t\tm24Store.add();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase M32:\r\n\t\t\t\t\tm32Store.add();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase M33:\r\n\t\t\t\t\tm33Store.add();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase M34:\r\n\t\t\t\t\tm34Store.add();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase M42:\r\n\t\t\t\t\tm42Store.add();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase M43:\r\n\t\t\t\t\tm43Store.add();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase M44:\r\n\t\t\t\t\tm44Store.add();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase Mnn:\r\n\t\t\t\t\tmnnStore.add();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\tcase SUB:\r\n\t\t\t\tswitch (aux1) {\r\n\t\t\t\tcase SCALER:\r\n\t\t\t\t\tscalerStore.sub();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase V2:\r\n\t\t\t\t\tv2Store.sub();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase V3:\r\n\t\t\t\t\tv3Store.sub();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase V4:\r\n\t\t\t\t\tv4Store.sub();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase Vn:\r\n\t\t\t\t\tvnStore.sub();\r\n\t\t\t\t\tbreak;\r\n\r\n\t\t\t\tcase M22:\r\n\t\t\t\t\tm22Store.sub();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase M23:\r\n\t\t\t\t\tm23Store.sub();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase M24:\r\n\t\t\t\t\tm24Store.sub();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase M32:\r\n\t\t\t\t\tm32Store.sub();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase M33:\r\n\t\t\t\t\tm33Store.sub();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase M34:\r\n\t\t\t\t\tm34Store.sub();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase M42:\r\n\t\t\t\t\tm42Store.sub();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase M43:\r\n\t\t\t\t\tm43Store.sub();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase M44:\r\n\t\t\t\t\tm44Store.sub();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase Mnn:\r\n\t\t\t\t\tmnnStore.sub();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase MUL:\r\n\t\t\t\tswitch (aux1) {\r\n\t\t\t\tcase SCALER:\r\n\t\t\t\t\tswitch (aux2) {\r\n\t\t\t\t\tcase SCALER:\r\n\t\t\t\t\t\tscalerStore.mulS();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase V2:\r\n\t\t\t\t\t\tv2Store.mulS();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase V3:\r\n\t\t\t\t\t\tv3Store.mulS();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase V4:\r\n\t\t\t\t\t\tv4Store.mulS();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase Vn:\r\n\t\t\t\t\t\tvnStore.mulS();\r\n\t\t\t\t\t\tbreak;\r\n\r\n\t\t\t\t\tcase M22:\r\n\t\t\t\t\t\tm22Store.mulS();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase M23:\r\n\t\t\t\t\t\tm23Store.mulS();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase M24:\r\n\t\t\t\t\t\tm24Store.mulS();\r\n\t\t\t\t\t\tbreak;\r\n\r\n\t\t\t\t\tcase M32:\r\n\t\t\t\t\t\tm32Store.mulS();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase M33:\r\n\t\t\t\t\t\tm33Store.mulS();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase M34:\r\n\t\t\t\t\t\tm34Store.mulS();\r\n\t\t\t\t\t\tbreak;\r\n\r\n\t\t\t\t\tcase M42:\r\n\t\t\t\t\t\tm42Store.mulS();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase M43:\r\n\t\t\t\t\t\tm43Store.mulS();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase M44:\r\n\t\t\t\t\t\tm44Store.mulS();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase Mnn:\r\n\t\t\t\t\t\tmnnStore.mulS();\r\n\t\t\t\t\t\tbreak;\r\n\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\r\n\t\t\t\tcase V2:\r\n\t\t\t\t\tswitch (aux2) {\r\n\t\t\t\t\tcase SCALER:\r\n\t\t\t\t\t\tv2Store.mulS();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase V2:\r\n\t\t\t\t\t\tv2Store.mulV2();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase M22:\r\n\t\t\t\t\t\tmulV2M22();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase M23:\r\n\t\t\t\t\t\tmulV2M23();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase M24:\r\n\t\t\t\t\t\tmulV2M24();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase Mnn:\r\n\t\t\t\t\t\tmulVnMnn(v2Store.stack[--v2Store.sp], mnnStore.stack[--mnnStore.sp]);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\r\n\t\t\t\tcase V3:\r\n\t\t\t\t\tswitch (aux2) {\r\n\t\t\t\t\tcase SCALER:\r\n\t\t\t\t\t\tv3Store.mulS();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase M32:\r\n\t\t\t\t\t\tmulV3M32();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase M33:\r\n\t\t\t\t\t\tmulV3M33();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase M34:\r\n\t\t\t\t\t\tmulV3M34();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase Mnn:\r\n\t\t\t\t\t\tmulVnMnn(v3Store.stack[--v3Store.sp], mnnStore.stack[--mnnStore.sp]);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\r\n\t\t\t\tcase V4:\r\n\t\t\t\t\tswitch (aux2) {\r\n\t\t\t\t\tcase SCALER:\r\n\t\t\t\t\t\tv4Store.mulS();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase M42:\r\n\t\t\t\t\t\tmulV4M42();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase M43:\r\n\t\t\t\t\t\tmulV4M43();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase M44:\r\n\t\t\t\t\t\tmulV4M44();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase Mnn:\r\n\t\t\t\t\t\tmulVnMnn(v4Store.stack[--v4Store.sp], mnnStore.stack[--mnnStore.sp]);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\r\n\t\t\t\tcase Vn:\r\n\t\t\t\t\tswitch (aux2) {\r\n\t\t\t\t\tcase SCALER:\r\n\t\t\t\t\t\tmnnStore.mulS();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase Mnn:\r\n\t\t\t\t\t\tmulVnMnn(vnStore.stack[--vnStore.sp], mnnStore.stack[--mnnStore.sp]);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase M22:\r\n\t\t\t\t\tswitch (aux2) {\r\n\t\t\t\t\tcase SCALER:\r\n\t\t\t\t\t\tm22Store.mulS();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase V2:\r\n\t\t\t\t\t\tmulM22V2();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase M22:\r\n\t\t\t\t\t\tmulM22M22();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase M23:\r\n\t\t\t\t\t\tmulM22M23();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase M24:\r\n\t\t\t\t\t\tmulM22M24();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase Mnn:\r\n\t\t\t\t\t\tmulMnnMnn(m22Store.stack[--m22Store.sp], mnnStore.stack[--mnnStore.sp]);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\r\n\t\t\t\tcase M23:\r\n\t\t\t\t\tswitch (aux2) {\r\n\t\t\t\t\tcase SCALER:\r\n\t\t\t\t\t\tm23Store.mulS();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase V3:\r\n\t\t\t\t\t\tmulM23V3();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase M32:\r\n\t\t\t\t\t\tmulM23M32();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase M33:\r\n\t\t\t\t\t\tmulM23M33();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase M34:\r\n\t\t\t\t\t\tmulM23M34();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase Mnn:\r\n\t\t\t\t\t\tmulMnnMnn(m23Store.stack[--m23Store.sp], mnnStore.stack[--mnnStore.sp]);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\r\n\t\t\t\tcase M24:\r\n\t\t\t\t\tswitch (aux2) {\r\n\t\t\t\t\tcase SCALER:\r\n\t\t\t\t\t\tm24Store.mulS();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase V4:\r\n\t\t\t\t\t\tmulM24V4();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase M42:\r\n\t\t\t\t\t\tmulM24M42();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase M43:\r\n\t\t\t\t\t\tmulM24M43();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase M44:\r\n\t\t\t\t\t\tmulM24M44();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase Mnn:\r\n\t\t\t\t\t\tmulMnnMnn(m24Store.stack[--m24Store.sp], mnnStore.stack[--mnnStore.sp]);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\r\n\t\t\t\tcase M32:\r\n\t\t\t\t\tswitch (aux2) {\r\n\t\t\t\t\tcase SCALER:\r\n\t\t\t\t\t\tm32Store.mulS();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase V2:\r\n\t\t\t\t\t\tmulM32V2();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase M22:\r\n\t\t\t\t\t\tmulM32M22();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase M23:\r\n\t\t\t\t\t\tmulM32M23();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase M24:\r\n\t\t\t\t\t\tmulM32M24();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase Mnn:\r\n\t\t\t\t\t\tmulMnnMnn(m32Store.stack[--m32Store.sp], mnnStore.stack[--mnnStore.sp]);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\r\n\t\t\t\tcase M33:\r\n\t\t\t\t\tswitch (aux2) {\r\n\t\t\t\t\tcase SCALER:\r\n\t\t\t\t\t\tm33Store.mulS();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase V3:\r\n\t\t\t\t\t\tmulM33V3();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase M32:\r\n\t\t\t\t\t\tmulM33M32();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase M33:\r\n\t\t\t\t\t\tmulM33M33();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase M34:\r\n\t\t\t\t\t\tmulM33M34();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase Mnn:\r\n\t\t\t\t\t\tmulMnnMnn(m33Store.stack[--m33Store.sp], mnnStore.stack[--mnnStore.sp]);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\r\n\t\t\t\tcase M34:\r\n\t\t\t\t\tswitch (aux2) {\r\n\t\t\t\t\tcase SCALER:\r\n\t\t\t\t\t\tm34Store.mulS();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase V4:\r\n\t\t\t\t\t\tmulM34V4();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase M42:\r\n\t\t\t\t\t\tmulM34M42();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase M43:\r\n\t\t\t\t\t\tmulM34M43();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase M44:\r\n\t\t\t\t\t\tmulM34M44();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase Mnn:\r\n\t\t\t\t\t\tmulMnnMnn(m34Store.stack[--m34Store.sp], mnnStore.stack[--mnnStore.sp]);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\r\n\t\t\t\tcase M42:\r\n\t\t\t\t\tswitch (aux2) {\r\n\t\t\t\t\tcase SCALER:\r\n\t\t\t\t\t\tm42Store.mulS();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase V2:\r\n\t\t\t\t\t\tmulM42V2();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase M22:\r\n\t\t\t\t\t\tmulM42M22();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase M23:\r\n\t\t\t\t\t\tmulM42M23();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase M24:\r\n\t\t\t\t\t\tmulM42M24();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase Mnn:\r\n\t\t\t\t\t\tmulMnnMnn(m42Store.stack[--m42Store.sp], mnnStore.stack[--mnnStore.sp]);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\r\n\t\t\t\tcase M43:\r\n\t\t\t\t\tswitch (aux2) {\r\n\t\t\t\t\tcase SCALER:\r\n\t\t\t\t\t\tm43Store.mulS();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase V3:\r\n\t\t\t\t\t\tmulM43V3();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase M32:\r\n\t\t\t\t\t\tmulM43M32();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase M33:\r\n\t\t\t\t\t\tmulM43M33();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase M34:\r\n\t\t\t\t\t\tmulM43M34();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase Mnn:\r\n\t\t\t\t\t\tmulMnnMnn(m43Store.stack[--m43Store.sp], mnnStore.stack[--mnnStore.sp]);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\r\n\t\t\t\tcase M44:\r\n\t\t\t\t\tswitch (aux2) {\r\n\t\t\t\t\tcase SCALER:\r\n\t\t\t\t\t\tm44Store.mulS();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase V4:\r\n\t\t\t\t\t\tmulM44V4();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase M42:\r\n\t\t\t\t\t\tmulM44M42();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase M43:\r\n\t\t\t\t\t\tmulM44M43();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase M44:\r\n\t\t\t\t\t\tmulM44M44();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase Mnn:\r\n\t\t\t\t\t\tmulMnnMnn(m44Store.stack[--m44Store.sp], mnnStore.stack[--mnnStore.sp]);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\r\n\t\t\t\tcase Mnn:\r\n\t\t\t\t\tswitch (aux2) {\r\n\t\t\t\t\tcase SCALER:\r\n\t\t\t\t\t\tmnnStore.mulS();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase V2:\r\n\t\t\t\t\t\tmulMnnVn(mnnStore.stack[--mnnStore.sp], v2Store.stack[--v2Store.sp]);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase V3:\r\n\t\t\t\t\t\tmulMnnVn(mnnStore.stack[--mnnStore.sp], v3Store.stack[--v3Store.sp]);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase V4:\r\n\t\t\t\t\t\tmulMnnVn(mnnStore.stack[--mnnStore.sp], v4Store.stack[--v4Store.sp]);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase Vn:\r\n\t\t\t\t\t\tmulMnnVn(mnnStore.stack[--mnnStore.sp], vnStore.stack[--vnStore.sp]);\r\n\t\t\t\t\t\tbreak;\r\n\r\n\t\t\t\t\tcase M22:\r\n\t\t\t\t\t\tmulMnnMnn(mnnStore.stack[--mnnStore.sp], m22Store.stack[--m22Store.sp]);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase M23:\r\n\t\t\t\t\t\tmulMnnMnn(mnnStore.stack[--mnnStore.sp], m23Store.stack[--m23Store.sp]);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase M24:\r\n\t\t\t\t\t\tmulMnnMnn(mnnStore.stack[--mnnStore.sp], m24Store.stack[--m24Store.sp]);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase M32:\r\n\t\t\t\t\t\tmulMnnMnn(mnnStore.stack[--mnnStore.sp], m32Store.stack[--m32Store.sp]);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase M33:\r\n\t\t\t\t\t\tmulMnnMnn(mnnStore.stack[--mnnStore.sp], m33Store.stack[--m33Store.sp]);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase M34:\r\n\t\t\t\t\t\tmulMnnMnn(mnnStore.stack[--mnnStore.sp], m34Store.stack[--m34Store.sp]);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase M42:\r\n\t\t\t\t\t\tmulMnnMnn(mnnStore.stack[--mnnStore.sp], m42Store.stack[--m42Store.sp]);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase M43:\r\n\t\t\t\t\t\tmulMnnMnn(mnnStore.stack[--mnnStore.sp], m43Store.stack[--m43Store.sp]);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase M44:\r\n\t\t\t\t\t\tmulMnnMnn(mnnStore.stack[--mnnStore.sp], m44Store.stack[--m44Store.sp]);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase Mnn:\r\n\t\t\t\t\t\tMnnObj r = mnnStore.stack[--mnnStore.sp];\r\n\t\t\t\t\t\tMnnObj l = mnnStore.stack[--mnnStore.sp];\r\n\t\t\t\t\t\tmulMnnMnn(l, r);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\t/*\r\n\t\t\t * TODO_YEP DIV MOD POW case DIV = 29; case MOD = 30; case POW = 31;\r\n\t\t\t */\r\n\t\t\tcase DIV:\r\n\t\t\t\tswitch (aux1) {\r\n\t\t\t\tcase SCALER:\r\n\t\t\t\t\tscalerStore.divS();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase V2:\r\n\t\t\t\t\tv2Store.divS();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase V3:\r\n\t\t\t\t\tv3Store.divS();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase V4:\r\n\t\t\t\t\tv4Store.divS();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase Vn:\r\n\t\t\t\t\tvnStore.divS();\r\n\t\t\t\t\tbreak;\r\n\r\n\t\t\t\tcase M22:\r\n\t\t\t\t\tm22Store.divS();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase M23:\r\n\t\t\t\t\tm23Store.divS();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase M24:\r\n\t\t\t\t\tm24Store.divS();\r\n\t\t\t\t\tbreak;\r\n\r\n\t\t\t\tcase M32:\r\n\t\t\t\t\tm32Store.divS();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase M33:\r\n\t\t\t\t\tm33Store.divS();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase M34:\r\n\t\t\t\t\tm34Store.divS();\r\n\t\t\t\t\tbreak;\r\n\r\n\t\t\t\tcase M42:\r\n\t\t\t\t\tm42Store.divS();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase M43:\r\n\t\t\t\t\tm43Store.divS();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase M44:\r\n\t\t\t\t\tm44Store.divS();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase Mnn:\r\n\t\t\t\t\tmnnStore.divS();\r\n\t\t\t\t\tbreak;\r\n\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\tcase MOD:\r\n\t\t\t\tscalerStore.mod();\r\n\t\t\t\tbreak;\r\n\t\t\tcase POW:\r\n\t\t\t\tscalerStore.pow();\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase AND:\r\n\t\t\t\tscalerStore.and();\r\n\t\t\t\tbreak;\r\n\t\t\tcase OR:\r\n\t\t\t\tscalerStore.or();\r\n\t\t\t\tbreak;\r\n\t\t\tcase NOT:\r\n\t\t\t\tscalerStore.not();\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase LT:\r\n\t\t\t\tscalerStore.lt();\r\n\t\t\t\tbreak;\r\n\t\t\tcase LE:\r\n\t\t\t\tscalerStore.le();\r\n\t\t\t\tbreak;\r\n\t\t\tcase GT:\r\n\t\t\t\tscalerStore.gt();\r\n\t\t\t\tbreak;\r\n\t\t\tcase GE:\r\n\t\t\t\tscalerStore.ge();\r\n\t\t\t\tbreak;\r\n\t\t\tcase NE:\r\n\t\t\t\tswitch (aux1) {\r\n\t\t\t\tcase SCALER:\r\n\t\t\t\t\tscalerStore.neq();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase V2:\r\n\t\t\t\t\tv2Store.eq();\r\n\t\t\t\t\tscalerStore.not();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase V3:\r\n\t\t\t\t\tv3Store.eq();\r\n\t\t\t\t\tscalerStore.not();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase V4:\r\n\t\t\t\t\tv4Store.eq();\r\n\t\t\t\t\tscalerStore.not();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase M22:\r\n\t\t\t\t\tm22Store.eq();\r\n\t\t\t\t\tscalerStore.not();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase M23:\r\n\t\t\t\t\tm23Store.eq();\r\n\t\t\t\t\tscalerStore.not();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase M24:\r\n\t\t\t\t\tm24Store.eq();\r\n\t\t\t\t\tscalerStore.not();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase M32:\r\n\t\t\t\t\tm32Store.eq();\r\n\t\t\t\t\tscalerStore.not();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase M33:\r\n\t\t\t\t\tm33Store.eq();\r\n\t\t\t\t\tscalerStore.not();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase M34:\r\n\t\t\t\t\tm34Store.eq();\r\n\t\t\t\t\tscalerStore.not();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase M42:\r\n\t\t\t\t\tm42Store.eq();\r\n\t\t\t\t\tscalerStore.not();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase M43:\r\n\t\t\t\t\tm43Store.eq();\r\n\t\t\t\t\tscalerStore.not();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase M44:\r\n\t\t\t\t\tm44Store.eq();\r\n\t\t\t\t\tscalerStore.not();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\tcase EQ:\r\n\t\t\t\tswitch (aux1) {\r\n\t\t\t\tcase SCALER:\r\n\t\t\t\t\tscalerStore.eq();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase V2:\r\n\t\t\t\t\tv2Store.eq();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase V3:\r\n\t\t\t\t\tv3Store.eq();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase V4:\r\n\t\t\t\t\tv4Store.eq();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase M22:\r\n\t\t\t\t\tm22Store.eq();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase M23:\r\n\t\t\t\t\tm23Store.eq();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase M24:\r\n\t\t\t\t\tm24Store.eq();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase M32:\r\n\t\t\t\t\tm32Store.eq();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase M33:\r\n\t\t\t\t\tm33Store.eq();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase M34:\r\n\t\t\t\t\tm34Store.eq();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase M42:\r\n\t\t\t\t\tm42Store.eq();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase M43:\r\n\t\t\t\t\tm43Store.eq();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase M44:\r\n\t\t\t\t\tm44Store.eq();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase ASSIGN:\r\n\t\t\t\tswitch (aux1) {\r\n\t\t\t\tcase SCALER:\r\n\t\t\t\t\tscalerStore.assign(aux2);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase V2:\r\n\t\t\t\t\tv2Store.assign(aux2);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase V3:\r\n\t\t\t\t\tv3Store.assign(aux2);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase V4:\r\n\t\t\t\t\tv4Store.assign(aux2);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase Vn:\r\n\t\t\t\t\tvnStore.assign(aux2);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase M22:\r\n\t\t\t\t\tm22Store.assign(aux2);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase M23:\r\n\t\t\t\t\tm23Store.assign(aux2);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase M24:\r\n\t\t\t\t\tm24Store.assign(aux2);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase M32:\r\n\t\t\t\t\tm32Store.assign(aux2);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase M33:\r\n\t\t\t\t\tm33Store.assign(aux2);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase M34:\r\n\t\t\t\t\tm34Store.assign(aux2);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase M42:\r\n\t\t\t\t\tm42Store.assign(aux2);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase M43:\r\n\t\t\t\t\tm43Store.assign(aux2);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase M44:\r\n\t\t\t\t\tm44Store.assign(aux2);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase Mnn:\r\n\t\t\t\t\tmnnStore.assign(aux2);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase LIST: {\r\n\t\t\t\tswitch (aux1) {\r\n\t\t\t\tcase SCALER: {\r\n\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase V2:\r\n\t\t\t\t\tv2Store.makeList();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase V3:\r\n\t\t\t\t\tv3Store.makeList();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase V4:\r\n\t\t\t\t\tv4Store.makeList();\r\n\t\t\t\t\tbreak;\r\n\r\n\t\t\t\tcase M22:\r\n\t\t\t\t\tm22Store.makeList();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase M23:\r\n\t\t\t\t\tm23Store.makeList();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase M24:\r\n\t\t\t\t\tm24Store.makeList();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase M32:\r\n\t\t\t\t\tm32Store.makeList();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase M33:\r\n\t\t\t\t\tm33Store.makeList();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase M34:\r\n\t\t\t\t\tm34Store.makeList();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase M42:\r\n\t\t\t\t\tm42Store.makeList();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase M43:\r\n\t\t\t\t\tm43Store.makeList();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase M44:\r\n\t\t\t\t\tm44Store.makeList();\r\n\t\t\t\t\tbreak;\r\n\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\r\n\t\t\t}\r\n\t\t\tcase VLIST:\r\n\t\t\t\tvnStore.makeList(aux1);\r\n\t\t\t\tbreak;\r\n\t\t\tcase MLIST:\r\n\t\t\t\tmnnStore.makeList(aux1, aux2);\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase DOT:\r\n\t\t\t\tswitch (aux1) {\r\n\t\t\t\tcase V2:\r\n\t\t\t\t\tdotV2();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase V3:\r\n\t\t\t\t\tdotV3();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase V4:\r\n\t\t\t\t\tdotV4();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase Vn:\r\n\t\t\t\t\tdotVn();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\tcase CROSS:\r\n\t\t\t\tswitch (aux1) {\r\n\t\t\t\tcase V2:\r\n\t\t\t\t\tcrossV2();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase V3:\r\n\t\t\t\t\tcrossV3();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\tcase FUN:\r\n\t\t\t\tunitaryFunction(aux1);\r\n\t\t\t\tbreak;\r\n\t\t\tcase UMINUS:\r\n\t\t\t\tswitch (aux1) {\r\n\t\t\t\tcase SCALER:\r\n\t\t\t\t\tscalerStore.uminus();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase V2:\r\n\t\t\t\t\tv2Store.uminus();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase V3:\r\n\t\t\t\t\tv3Store.uminus();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase V4:\r\n\t\t\t\t\tv4Store.uminus();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase Vn:\r\n\t\t\t\t\tvnStore.uminus();\r\n\t\t\t\t\tbreak;\r\n\r\n\t\t\t\tcase M22:\r\n\t\t\t\t\tm22Store.uminus();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase M23:\r\n\t\t\t\t\tm23Store.uminus();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase M24:\r\n\t\t\t\t\tm24Store.uminus();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase M32:\r\n\t\t\t\t\tm32Store.uminus();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase M33:\r\n\t\t\t\t\tm33Store.uminus();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase M34:\r\n\t\t\t\t\tm34Store.uminus();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase M42:\r\n\t\t\t\t\tm42Store.uminus();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase M43:\r\n\t\t\t\t\tm43Store.uminus();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase M44:\r\n\t\t\t\t\tm44Store.uminus();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase Mnn:\r\n\t\t\t\t\tmnnStore.uminus();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tswitch (comList.getFinalType()) {\r\n\t\tcase SCALER:\r\n\t\t\t// return new ScalerObj(scalerStore.stack[--scalerStore.sp]);\r\n\t\t\t// return new double[]{popScaler()};\r\n\t\t\tscalerRes.a = scalerStore.stack[--scalerStore.sp];\r\n\t\t\treturn scalerRes;\r\n\t\tcase V2:\r\n\t\t\treturn v2Store.stack[--v2Store.sp];\r\n\t\tcase V3:\r\n\t\t\treturn v3Store.stack[--v3Store.sp];\r\n\t\tcase V4:\r\n\t\t\treturn v4Store.stack[--v4Store.sp];\r\n\t\tcase Vn:\r\n\t\t\treturn vnStore.stack[--vnStore.sp];\r\n\t\tcase M22:\r\n\t\t\treturn m22Store.stack[--m22Store.sp];\r\n\t\tcase M23:\r\n\t\t\treturn m23Store.stack[--m23Store.sp];\r\n\t\tcase M24:\r\n\t\t\treturn m24Store.stack[--m24Store.sp];\r\n\t\tcase M32:\r\n\t\t\treturn m32Store.stack[--m32Store.sp];\r\n\t\tcase M33:\r\n\t\t\treturn m33Store.stack[--m33Store.sp];\r\n\t\tcase M34:\r\n\t\t\treturn m34Store.stack[--m34Store.sp];\r\n\t\tcase M42:\r\n\t\t\treturn m42Store.stack[--m42Store.sp];\r\n\t\tcase M43:\r\n\t\t\treturn m43Store.stack[--m43Store.sp];\r\n\t\tcase M44:\r\n\t\t\treturn m44Store.stack[--m44Store.sp];\r\n\t\tcase Mnn:\r\n\t\t\treturn mnnStore.stack[--mnnStore.sp];\r\n\t\tdefault:\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public void dispatch(){\n if (size() == 0){\n return;\n }\n int nb = 0, ns = 0;\n for (Exp exp : this){\n if (exp.isStatement()){\n ns++;\n }\n else {\n nb++;\n }\n }\n if (ns == 0 || (ns == 1 && nb == 0)){\n return;\n }\n doDispatch();\n }", "public void compile(Emitter e)\n {\n for (Expression exp: args)\n {\n exp.compile(e);\n e.emitPush(\"$v0\");\n }\n\n e.emit(\"jal proc\" + name);\n\n for (int i = 0; i < args.size(); i++)\n {\n e.emitPop(\"$t0\");\n }\n }", "public void executeTask10 () {\n double a = UserInput.input(\"Input a:\");\n double b = UserInput.input(\"Input b:\");\n\n //Methods which take TWO parameters - sides of rectangle and returns perimeter and area:\n double s = RectangleCalculator.calculateArea(a, b);\n double p = RectangleCalculator.calculatePerimeter(a, b);\n\n //Print to the console finaly results:\n Printer.print(\"Square with a = \" + a + \" and b = \" + b + \": \");\n Printer.print(\"S = \" + s);\n Printer.print(\"P = \" + p);\n }", "@Override\n\tpublic void accept(ASTVisitor v) {\n\t\tv.visitProgram(this);\n\t}", "public abstract void compute();", "public static void main (String args[]) {\r\n\t\t\r\n\t\tCalculator calc = new Calculator();\r\n\t\tcalc.add();\r\n\t\tcalc.div();\r\n\t\tcalc.mul();\r\n\t\tcalc.sub();\r\n\t\t\t\t\r\n\t}", "public static void main(String[] args) {\n\t\tProcessingUnit.initializeProcessors();\n\t\t\n\t\tProcessor p0, p1, p2;\n\t\tp0 = ProcessingUnit.getProcessorP0();\n\t\tp1 = ProcessingUnit.getProcessorP1();\n\t\tp2 = ProcessingUnit.getProcessorP2();\n\t\t\n\t\tp0.setEventArray(new String[] { \"NO\", \"P1\", \"NO\", \"P2\", \"NO\", \"CO\", \"NO\", \"NO\" });\n\t\tp1.setEventArray(new String[] { \"P0\", \"NO\", \"P2\", \"P0\", \"NO\", \"P0\", \"NO\", \"CO\" });\n\t\tp2.setEventArray(new String[] { \"NO\", \"CO\", \"P0\", \"NO\", \"NO\", \"P1\", \"NO\", \"NO\" });\n\t\t\n\t\tp0.start();\n\t\tp1.start();\n\t\tp2.start();\n\n\t}", "protected abstract Value evaluate();", "protected abstract Object doCalculations();", "public String program();", "public static void main(String[] args) {\n\t\tnew Calc();\n\t}", "public static void main(String[] args) {\n process();\n }", "public static void main(String[] args) {\n\n\t\t\n\t\tProces p1= new Proces(20, 0, 10);\n\t\tProces p2= new Proces(10, 1, 10);\n\t\tProces p3= new Proces(30, 6, 10);\n\t\tProces p4= new Proces(9, 7, 10);\n\t\tArrayList<Proces> procesy1= new ArrayList<Proces>();\n\t\tprocesy1.add(p1);\n\t\tprocesy1.add(p2);\n\t\tprocesy1.add(p3);\n\t\tprocesy1.add(p4);\n\t\tProcesor proc1= new Procesor(1, procesy1);\n\t\n\t\t\n\t\t\n\t\tArrayList<Proces> procesy2= new ArrayList<Proces>();\n\t\tprocesy2.add(new Proces(40, 2, 14));\n\t\tprocesy2.add(new Proces(20, 8, 9));\n\t\tprocesy2.add(new Proces(30, 2, 3));\n\t\tprocesy2.add(new Proces(10, 4, 5));\n\t\tprocesy2.add(new Proces(4, 7, 14));\n\t\tProcesor proc2= new Procesor(2, procesy2);\n\t\n\t\t\n\t\t\n\t\tArrayList<Procesor> procesory= new ArrayList<Procesor>();\n\t\tprocesory.add(proc1);\n\t\tprocesory.add(proc2);\n\t\t\n\t\tint ileProcesorow=2;\n\t\tint progR=20;\n\t\tint progP=20;\n\t\tint iloscZapytanZ=10;\n\t\tint okresPomiaruObciazen=1;\n\t\t\n\t\tAlgorithms al= new Algorithms(procesory, progP, iloscZapytanZ, progR);\n\t\tal.wyswietlProcesory();\n\t\tal.symulacjaPierwsza(okresPomiaruObciazen);\n\t\tal.symulacjaDruga(okresPomiaruObciazen);\n\t\tal.symulacjaTrzecia(okresPomiaruObciazen);\n\t\t\n\t\t\n\t\t\n\t}", "public void run() {\r\n\t\t\r\n\t\t// While the PC is less than allocated memory and less than SP\r\n\t\twhile (getPC() < getLIM() && getPC() < getSP()) {\r\n\t\t\tm_instr = m_MMU.fetch(getPC());\r\n\t\t\t// Increment PC counter by Instruction Size now\r\n\t\t\t// since nowhere lower does it get called again\r\n\t\t\tsetPC(getPC() + INSTRSIZE);\r\n\t\t\t\r\n\t //increment clock\r\n addTicks(1);\r\n\t\t\t\r\n\t\t\tif (m_verbose) {\r\n\t\t\t\tregDump();\r\n\t\t\t\tprintInstr(m_instr);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// Parse and execute instruction\r\n\t\t\texecuteInstr(m_instr);\r\n\t\t\t\r\n\t\t\t// check interrupts\r\n\t\t\tcheckForIOInterrupt();\r\n\t\t}\r\n\t\t\r\n\t}", "public void process();", "abstract void runRoutine();", "public static void compute() {\n\n }", "public void process() {\n\t}", "@Override\n\tprotected void compute() {\n\t\tSystem.out.println(\"This is an action\");\n\t}", "public void principal() {\r\n int opciones = 0;\r\n do {\r\n opciones = op.capInt(\"CLINICA LA EVALUACIÓN\\n\\n\"\r\n + \"1. Gestionar Pacientes.\\n\"\r\n + \"2. Gestionar Médicos.\\n\"\r\n + \"3. Gestionar Historial Clínico.\\n\"\r\n + \"4. Salir\");\r\n switch (opciones) {\r\n case 1:\r\n gesPaciente();\r\n break;\r\n case 2:\r\n gesMedico();\r\n break;\r\n case 3:\r\n gesHistoria();\r\n break;\r\n case 4:\r\n op.mensaje(\"Hasta la proxima\");\r\n break;\r\n default:\r\n op.mensajeError(\"La opcione Ingresada no es valida\");\r\n break;\r\n }\r\n } while (opciones != 4);\r\n }", "public static void main(String[] args) {\r\n if (args.length == 0) Stacker.main(args);\r\n Evaluator evaluator = new Evaluator();\r\n evaluator.switchTest = true;\r\n for (Op op : Op.values()) {\r\n Node node = new Node(op, null, null);\r\n evaluator.parse(node);\r\n }\r\n evaluator.switchTest = false;\r\n Test.run(evaluator, args);\r\n }", "public void cpu() {\n\n\t\tint bytecode;\n\t\tint v1, v2;\n\t\tint address;\n\t\twhile (true) {\n\t\t\tbytecode = code[ip++]; // fetch\n\t\t\t\n\t\t\t//Decode\n\t\t\tswitch (bytecode) {\n\t\t\t\n\t\t\tcase VMParser.PUSH:\n\t\t\t\t//System.out.println(\"PUSH\");\n\t\t\t\tpush(code[ip++]);\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase VMParser.POP:\n\t\t\t\t//System.out.println(\"POP\");\n\t\t\t\tpop();\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase VMParser.ADD:\n\t\t\t\t//System.out.println(\"ADD\");\n\t\t\t\tv2 = pop();\n\t\t\t\tv1 = pop();\n\t\t\t\tpush(v1 + v2);\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase VMParser.SUB:\n\t\t\t\t//System.out.println(\"SUB\");\n\t\t\t\tv2 = pop();\n\t\t\t\tv1 = pop();\n\t\t\t\tpush(v1 - v2);\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase VMParser.MULT:\n\t\t\t\t//System.out.println(\"MULT\");\n\t\t\t\tv2 = pop();\n\t\t\t\tv1 = pop();\n\t\t\t\tpush(v1 * v2);\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase VMParser.DIV:\n\t\t\t\t//System.out.println(\"DIV\");\n\t\t\t\tv2 = pop();\n\t\t\t\tv1 = pop();\n\t\t\t\tpush(v1 / v2);\n\t\t\t\tbreak;\n\n\t\t\tcase VMParser.SW:\n\t\t\t\t//System.out.println(\"SW\");\n\t\t\t\taddress = pop();\n\t\t\t\tv2 = pop();\n\t\t\t\tmemory[address] = v2;\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase VMParser.LW:\n\t\t\t\t//System.out.println(\"LW\");\n\t\t\t\taddress = pop();\n\t\t\t\tpush(memory[address]);\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase VMParser.BRANCHEQUAL:\n\t\t\t\t//System.out.println(\"BRANCHEQUAL\");\n\t\t\t\taddress = code[ip++];\n\t\t\t\tv2 = pop();\n\t\t\t\tv1 = pop();\n\t\t\t\tif (v1 == v2)\n\t\t\t\t\tip = address;\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase VMParser.JS:\n\t\t\t\t//System.out.println(\"JS\");\n\t\t\t\tra = ip;\n\t\t\t\taddress = pop();\n\t\t\t\tip = address;\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase VMParser.LRA:\n\t\t\t\t//System.out.println(\"LRA\");\n\t\t\t\tpush(ra);\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase VMParser.SRA:\n\t\t\t\t//System.out.println(\"SRA\");\n\t\t\t\tra = pop();\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase VMParser.LRV:\n\t\t\t\t//System.out.println(\"LRV\");\n\t\t\t\tpush(rv);\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase VMParser.SRV:\n\t\t\t\t//System.out.println(\"SRV\");\n\t\t\t\trv = pop();\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase VMParser.LHP:\n\t\t\t\t//System.out.println(\"LHP\");\n\t\t\t\tpush(hp);\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase VMParser.SHP:\n\t\t\t\t//System.out.println(\"SHP\");\n\t\t\t\thp = pop();\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase VMParser.LFP:\n\t\t\t\t//System.out.println(\"LFP\");\n\t\t\t\tpush(fp);\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase VMParser.SFP:\n\t\t\t\t//System.out.println(\"SFP\");\n\t\t\t\tfp = pop();\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase VMParser.CFP:\n\t\t\t\t//System.out.println(\"CFP\");\n\t\t\t\tfp = sp;\n\t\t\t\tbreak;\n\n\n\t\t\tcase VMParser.BRANCH:\n\t\t\t\t//System.out.println(\"BRANCH\");\n\t\t\t\taddress = code[ip++];\n\t\t\t\tip = address;\n\t\t\t\tbreak;\n\n\t\t\tcase VMParser.BRANCHLESS:\n\t\t\t\t//System.out.println(\"BRANCHLESS\");\n\t\t\t\taddress = code[ip++];\n\t\t\t\tv2 = pop();\n\t\t\t\tv1 = pop();\n\t\t\t\tif (v1 <= v2)\n\t\t\t\t\tip = address;\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase VMParser.BRANCHGREAT:\n\t\t\t\t//System.out.println(\"BRANCHGREAT\");\n\t\t\t\taddress = code[ip++];\n\t\t\t\tv2 = pop();\n\t\t\t\tv1 = pop();\n\t\t\t\tif (v1 >= v2)\n\t\t\t\t\tip = address;\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase VMParser.PRINT:\n\t\t\t\t//System.out.println(\"PRINT\");\n\t\t\t\tSystem.out.println(memory[sp]);\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\t\n\t\t\tcase VMParser.HALT:\n\t\t\t\t//System.out.println(\"HALT\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t}", "public static void main(final String[] args) {\n \tString enginePath = engines[8];\n\t\tEngineParameter eparams = new EngineParameter(enginePath);\n\n\t\tString url = \"http://files.grouplens.org/datasets/movielens/ml-1m.zip\";\n String folder = \"src/resources/main/data/ml-1m\";\n String modelPath = \"src/resources/main/crossValid/ml-1m/model/\";\n String recPath = \"src/resources/main/crossValid/ml-1m/recommendations/\";\n String dataFile = eparams.getDataSouceParams().getSourceLocation().get(0);\n int nFolds = N_FOLDS;\n \t\t\n System.out.println(\"Preparing splits...\");\n prepareSplits(url, nFolds, dataFile, folder, modelPath);\n \n System.out.println(\"Gathering recomendations...\");\n //recommend(nFolds, modelPath, recPath); // RiVal's original step.\n //orbsRecommend(nFolds, eparams, modelPath); // Based on RiVal' step\n mixedRecommend(nFolds, eparams, modelPath); // Mixed step\n \n //System.out.println(\"Preparing strategy...\");\n // the strategy files are (currently) being ignored\n //prepareStrategy(nFolds, modelPath, recPath, modelPath);\n\n System.out.println(\"Evaluating...\");\n evaluate(nFolds, modelPath, recPath);\n }", "public static void main(String[] args) {\n ArithmeticExpression calculation =\n new Operand(\n new Operand(new Number(4), Operation.PLUS, new Number(6)),\n Operation.MULTIPLICATION,\n new Operand(new Number(1), Operation.DIVISION, new Number(2)));\n\n System.out.println(calculation.toString() + \" = \" + calculation.calculate());\n }", "void program() {\n\n }", "public static void main(String[] args) {\n\n printResult(2 + 3);\n int a = 2 + 4;\n printResult(a);\n int result = add(2, 5);\n printResult(result);\n printResult(add(2, 6));\n schreibHallo();\n int ten = returnTen();\n System.out.println(ten);\n }", "public static void main(String[] args) {\n\t\tprocess();\r\n\r\n\t}", "public void run() {\n if (!script.compile()) {\n Program.stop(\"ERROR: There was an error while compiling your script.\"\n + \"\\nPlease check your syntax!\", false);\n return;\n }\n commandCounter = script.input.split(\";\").length - 1;\n if (!writeMemory()) {\n Program.stop(\"ERROR: There was a fatal error while \"\n + \"writing the script into the memory!\", false);\n return;\n }\n try {\n startProcessor();\n } catch (NumberFormatException n) {\n Program.stop(\"ERROR: There was a runtime error while executing the script!\", false);\n }\n Program.stop(\"\", true);\n }", "public static void main(String[] args) throws IOException {\n\t\tLineOfCode[] inputProgram = new LineOfCode[32];\n\t\t// Initialize an array of type LineOfMachineCode\n\t\tLineOfMachineCode[] instructions = new LineOfMachineCode[32];\n\t\tString[] opcodes = {\"LDA\", \"ADD\", \"SUB\", \"STA\", \"MPY\", \"DIV\", \n\t\t\t\t\"INP\", \"OUT\", \"JMP\", \"JMI\" }; \n\t\tString[] tokens = new String[80];\n\t\tString line = \"\";\n\t\t\n\t\t// prepare to read program from file\n\t\tFile filename = new File(\"MysteryProgram_0.txt\");\n\t\tScanner filescan = new Scanner(filename);\n\t\tScanner input = new Scanner(System.in);\n\t\tint numOfLines = 0; \n\t\t\n\t\t// Read the file containing the program one line at a time.\n\t\t// instantiate a LineOfCode Object for each line read in\n\t\t// and assign line tokens to the fields of the new object.\n\t\twhile(filescan.hasNext()){\n\t\t\tline = filescan.nextLine();\n\t\t\tString comments = \" \";\n\t\t\t// instantiate a LineOfCode object with empty fields\n\t\t\tinputProgram[numOfLines] = new LineOfCode();\n\t\t\t\n\t\t\tif(!line.isEmpty()){\n\t\t\ttokens = line.split(\"\\\\s+\");\n\t\t\t\n\t\t\t// if comments exits, create a comments string to holed them\n\t\t\t// and assign the comments to the appropriate instance variable\n\t\t\t\tif(tokens.length > 3 ){\n\t\t\t\t\tfor(int i = 3; i < tokens.length; i++ )\t\t\t\t\t\t\n\t\t\t\t\tcomments += tokens[i] + \" \";\t\n\t\t\t\t}else{\n\t\t\t\t\tcomments = \" \"; \n\t\t\t\t}\n\t\t\tinputProgram[numOfLines].setComments(comments);\n\t\t\t\n\t\t\t// check each token from the line and assign it to \n\t\t\t// its appropriate instance variable\n\t\t\tif(tokens[1].equals(\"DC\")){\n\t\t\t\tinputProgram[numOfLines].setOpcode(tokens[1]);\n\t\t\t\tinputProgram[numOfLines].setLabel(tokens[0]);\n\t\t\t\tinputProgram[numOfLines].setOperand(tokens[2]);\n\t\t\t}else if(tokens[1].equals(\"DL\")){\n\t\t\t\tinputProgram[numOfLines].setOpcode(tokens[1]);\n\t\t\t\tinputProgram[numOfLines].setLabel(tokens[0]);\n\t\t\t}else{// Big Else\t\t\t\n\t\t\t\t\n\t\t\t\t\tfor(int x = 0;x < opcodes.length; x++){\n\t\t\t\t\t\tif(opcodes[x].equals(tokens[0])){\n\t\t\t\t\t\tinputProgram[numOfLines].setOpcode(tokens[0]);\n\t\t\t\t\t\tinputProgram[numOfLines].setOperand(tokens[1]);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(opcodes[x].equals(tokens[1])){\n\t\t\t\t\t\t\tinputProgram[numOfLines].setOpcode(tokens[1]);\n\t\t\t\t\t\t\tinputProgram[numOfLines].setLabel(tokens[0]);\n\t\t\t\t\t\t\tinputProgram[numOfLines].setOperand(tokens[2]);\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t} //for loop\n\t\t\t\n\t\t\t} //Big Else\n\t\t\t\t\n\t\t\t\n\t\t\t\tnumOfLines++;\n\t\t\t} \t//Super If\t\n\t\t\t\n\t\t} // while, \n\t\t\n\t\t\n\t\t// finished reading the file\n\t\tfilescan.close();\n\t\t\n\t\t// Assemble machine code out of each LineOfCode object \n\t\t// from the inputProgram array. \n\t\tfor(int i = 0; i < numOfLines; i++){\n\t\t\tinstructions[i] = new LineOfMachineCode();\n\t\t\t// handle pseudo-opcodes if they are present in the line\n\t\t\tif(inputProgram[i].getOpcode().equals(\"DL\"))\n\t\t\t\tinstructions[i].setOperand(0);\n\t\t\telse if(inputProgram[i].getOpcode().equals(\"DC\"))\n\t\t\t\t\tinstructions[i].setOperand(Integer.parseInt(inputProgram[i].getOperand()));\n\t\t\telse{\n\t\t\t\t// helper variables \n\t\t\t\tint opc = 0;\n\t\t\t\tint op = 0;\n\t\t\t\tfor(int j = 0; j < opcodes.length;j++){\n\t\t\t\t\tif(inputProgram[i].getOpcode().equals(opcodes[j])){\n\t\t\t\t\t\t// assign opcode in program to correct index of opcode array\n\t\t\t\t\t\topc = j; \n\t\t\t\t\t\tinstructions[i].setOpcode(opc);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tfor(int k = 0; k < numOfLines; k++){\n\t\t\t\t\tif(inputProgram[k].getLabel().equals(inputProgram[i].getOperand()))\n\t\t\t\t\t{\n\t\t\t\t\t\t// assign memory location of label to operand\n\t\t\t\t\t\top = k; \n\t\t\t\t\t\tinstructions[i].setOperand(op);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//if opcode == 0 which is LDA how to handle it\n\t\t\t\t// handle operand greater than 9 ex. 12\n\t\t\t\tif(opc == 0 && op > 9)\n\t\t\t\t\t//System.out.print(opc + \"\" + op );\n\t\t\t\t\tinstructions[i].setOpcode(opc);\n\t\t\t\t\n\t\t\t\t//else if(opc == 0 && op < 10)\n\t\t\t\t\t//System.out.print(opc + \"0\" + op + \"\\n\");\n\t\t\telse{\t\n\t\t\t\t//System.out.print( (opc * 100 + op) + \"\\n\");\n\t\t\t\tinstructions[i].setOpcode(opc);\n\t\t\t\tinstructions[i].setOperand(op);\n\t\t\t\t}\n\t\t\t} // Big else\n\t\t\t\n\t\t\t\n\t\t\t// At this point we have everything converted to machine code\n\t\t\t// Option I - have another for loop start here to begin execution of lineOfMachineCode\n\t\t}// outer for \n\t\t\n\t\t// Vars used during execution Execute the program\n\t\tint pc = 0; \t\t\t\t\n\t\tint store = 0; \n\t\tint opcode = 0;\t\t \n\t\tint value = 0; \n\t\tint accumulator = 0; \t\t\t\n\t\t// Program execution\n\t\twhile( pc < numOfLines){\n\n\t\t\t\topcode = instructions[pc].getOpcode();\n\t\t\t\n\t\t\t\tif(opcode == 8){\n\t\t\t\tpc = instructions[pc].getOperand();\n\t\t\t\topcode = instructions[pc].getOpcode();\n\t\t\t\t}else if(opcode == 9 && accumulator < 0 ){\n\t\t\t\t\tpc = instructions[pc].getOperand();\n\t\t\t\t\topcode = instructions[pc].getOpcode();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\tswitch(opcode){\n\t\t\tcase 0: // LDA \n\t\t\t\tif(inputProgram[pc].getOpcode().equals(\"DC\"))\n\t\t\t\taccumulator = instructions[pc].getOperand();\n\t\t\t\telse if(inputProgram[pc].getOpcode().equals(\"DL\"))\n\t\t\t\t\taccumulator = instructions[pc].getOperand();\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase 1: //ADD\n\t\t\t\t\taccumulator += value;\n\t\t\t\tbreak;\n\t\t\tcase 2: //SUB\n\t\t\t\t\taccumulator -= value;\n\t\t\t\tbreak;\n\t\t\tcase 3: // STA\n\t\t\t\tstore = accumulator; \n\t\t\t\tbreak;\n\t\t\tcase 4: // MPY\n\t\t\t\t\taccumulator *= value;\n\t\t\t\tbreak;\n\t\t\tcase 5: // DIV\n\t\t\t\t\taccumulator /= value;\n\t\t\t\tbreak;\n\t\t\tcase 6: //INP\n\t\t\t\tSystem.out.println(\"Enter an Integer\");\n\t\t\t\tvalue = input.nextInt();\n\t\t\t\tbreak;\n\t\t\tcase 7: // OUT\n\t\t\t\tSystem.out.println(store);\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tSystem.out.println(\"Invalid opcode\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tpc++;\n\t\t}// while\n\t\tSystem.out.println(\"Total Lines: \" + numOfLines);\n\t}", "public void run(String[] args) throws Exception\n {\n ArgParser parser = new ArgParser(args);\n determineEvalMethod(parser);\n }", "public static void main(String[] args) {\n if (args.length != 1) {\r\n System.out.println(\r\n \"Usage: java EvaluateExpression \\\"expression\\\"\");\r\n System.exit(1);\r\n }\r\n \r\n /* Try to evaluate the expression and throw an exception if \r\n any problems occur */\r\n try {\r\n System.out.println(evaluateExpression(args[0]));\r\n }\r\n catch(Exception ex) {\r\n System.out.println(\"Wrong expression: \" + args[0]);\r\n }\r\n \r\n }", "public static void main(String[] args) throws IOException {\n String[] tokens1 = new String[] { \"2\", \"1\", \"+\", \"3\", \"*\" };\n String[] tokens2 = new String[] { \"4\", \"13\", \"5\", \"/\", \"+\" };\n System.out.println(evalRPN(tokens1));\n System.out.println(evalRPN(tokens2));\n }", "private static String evaluate(ArrayList<String> operators, ArrayList<String> operands) {\n\n /* Check for valid input. There should be one more operand than operator. */\n if (operands.size() != operators.size()+1)\n return \"Invalid Input\";\n\n String current;\n int value;\n int numMultiply = 0;\n int numAdd = 0;\n int currentOperator = 0;\n\n /* Get the number of multiplications in the operators list. */\n for (int i = 0; i < operators.size(); i++) {\n\n if (operators.get(i).equals(\"*\"))\n numMultiply++;\n }\n\n /* Get the number of addition and subtraction in the operators list. */\n for (int i = 0; i < operators.size(); i++) {\n\n if (operators.get(i).equals(\"-\") || operators.get(i).equals(\"+\"))\n numAdd++;\n }\n\n /* Evaluate multiplications first, from left to right. */\n while (numMultiply > 0){\n\n current = operators.get(currentOperator);\n if (current.equals(\"*\")) {\n\n /* When multiplication is found in the operators, get the associative operands from the operands list.\n Associative operands are found in the operands list at indexes current operator and current operator + 1.\n */\n value = Integer.parseInt(operands.get(currentOperator)) * Integer.parseInt(operands.get(currentOperator+1));\n\n /* Remove the operands and the operator since they have been evaluated and add the evaluated answer back in the operands. */\n operators.remove(currentOperator);\n operands.remove(currentOperator);\n operands.remove(currentOperator);\n operands.add(currentOperator, Integer.toString(value));\n\n numMultiply--;\n }\n else\n currentOperator++;\n }\n\n currentOperator = 0;\n\n /* Next evaluate the addition and subtraction, from left to right. */\n while (numAdd > 0){\n current = operators.get(currentOperator);\n if (current.equals(\"+\")) {\n\n value = Integer.parseInt(operands.get(currentOperator)) + Integer.parseInt(operands.get(currentOperator+1));\n operators.remove(currentOperator);\n operands.remove(currentOperator);\n operands.remove(currentOperator);\n operands.add(currentOperator, Integer.toString(value));\n numAdd--;\n }\n\n else if (current.equals(\"-\")) {\n\n value = Integer.parseInt(operands.get(currentOperator)) - Integer.parseInt(operands.get(currentOperator+1));\n operators.remove(currentOperator);\n operands.remove(currentOperator);\n operands.remove(currentOperator);\n operands.add(currentOperator, Integer.toString(value));\n numAdd--;\n }\n else\n currentOperator++;\n }\n\n /* When all the operations have been evaluated, the final answer will be in the first element of the operands list. */\n return operands.get(0);\n }", "public static void main(String[] args)\n\t{\tint generation = 0;\n\t\tint sum = 0;\n\t\tExecutor exec=new Executor();\n\t\t\n\t\tGeneticController pacman = new GeneticController();\n\t\tController<EnumMap<GHOST,MOVE>> ghosts = new Legacy();\n\n\n\t\tLispStatements ls = new LispStatements();\n\t\tArrayList<String> functionSet = new ArrayList<>();\n\t\tfunctionSet.add(\"2ifblue\");\n\t\tfunctionSet.add(\"4ifle\");\n\t\tfunctionSet.add(\"2ifindanger\");\n\t\tfunctionSet.add(\"2ifpowerpillscleared\");\n\t\tfunctionSet.add(\"2istopowersafe\");\n\t\tArrayList<String> terminalSet = new ArrayList<>();\n\t\tterminalSet.add(\"distToPill\");\n\t\tterminalSet.add(\"distToPower\");\n\t\tterminalSet.add(\"distGhost\");\n\t\tterminalSet.add(\"distTo2ndGhost\");\n\t\tterminalSet.add(\"distTo3rdGhost\");\n\t\tterminalSet.add(\"distToEdibleGhost\");\n\t\tterminalSet.add(\"distToNonEdibleGhost\");\n\t\tterminalSet.add(\"moveToFood\");\n\t\tterminalSet.add(\"moveToPower\");\n\t\tterminalSet.add(\"moveToEdibleGhost\");\n\t\tterminalSet.add(\"moveFromNonEdibleGhost\");\n\t\tterminalSet.add(\"moveFromPower\");\n\t\tterminalSet.add(\"runaway\");\n\t\ttry {\n\t\t\tls.setFunctionalSet(functionSet);\n\t\t}catch (Exception ignored){\n\n\t\t}\n\t\tls.setTerminalSet(terminalSet);\n\t\ttry {\n\t\t\tGenetic.Executor.setUp(pacman, ls, 8);\n\t\t}catch (Exception ignored){\n\n\t\t}\n\n\t\tdouble average = 0;\n\n\t\twhile (generation < 51) {\n\t\t\twhile (Generation.isGenFinished()) {\n\n\t\t\t\t\tfor(int i = 0; i < 10; i++) {\n\t\t\t\t\t\tint delay = 0;\n\t\t\t\t\t\tboolean visual = false;\n\t\t\t\t\t\tsum += exec.runGame(pacman, ghosts, visual, delay);\n\t\t\t\t\t}\n\n\t\t\t\t\tGeneration.setFitness(50000 - (sum/10));\n\t\t\t\t\tSystem.out.println(sum/10);\n\n\n\t\t\t\t\tsum = 0;\n\n\t\t\t\tGeneration.pointerUpdate();\n\t\t\t}\n\t\t\tSystem.out.println(\"Generation \" + generation);\n\t\t\tGenetic.Executor.newGen();\n\t\t\tSystem.out.println(Generation.getBestRating());\n\t\t\tgeneration ++;\n\t\t}\n\n\t\tSystem.out.println(Generation.getBestTree());\n\t\tSystem.out.println(Generation.getBestRating());\n\n\n\n/*\n\t\tboolean visual=false;\n\t\tString fileName=\"results/replay10.txt\";\n\n\t\tint bestScore = 0;\n\t\tint result = 0;\n\t\tint average = 0;\n\t\tfor(int i = 0; i < 1000 ; i++) {\n\t\t\tresult = exec.runGameTimedRecorded(pacman, ghosts, visual, fileName, bestScore);\n\t\t\taverage +=result;\n\t\t\tif(result > bestScore){\n\t\t\t\tbestScore = result;\n\t\t\t}\n\t\t\tSystem.out.println(result);\n\t\t}\n\t\tvisual = true;\n\t\tSystem.out.println(average/1000.0);\n\t\texec.replayGame(fileName,visual);\n\t\t*/\n\n\n\t}", "public static void program(CommonTree ast, IRTree irt)\n {\n statements(ast, irt);\n }", "public static void main(String[] args) {\n\t\t\n\t\tTask86 obj=new Task86();\n\t\tSystem.out.println(obj.add(20, 10));\n\t\tSystem.out.println(obj.mult(2, 15));\t\n\t\tobj.sub(30, 10);\n\t}", "public static void main(String[] args) throws IOException {\n SimpleLisp lisp = new SimpleLisp();\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\n while (true) {\n System.out.print(\"> \");\n String line = in.readLine();\n if (line.trim().isEmpty()) {\n break;\n }\n LispObject expr = lisp.read(new StringReader(line));\n LispObject result = expr.eval();\n System.out.println(result.getValue());\n }\n }", "public void performAnalysis (Launcher launcher) {\n //Iterates through each class and method the program was supplied with\n for (CtClass<?> classObject : Query.getElements(launcher.getFactory(), new TypeFilter<CtClass<?>>(CtClass.class))) {\n for (CtMethod<?> methodObject : Query.getElements(classObject, new TypeFilter<CtMethod<?>>(CtMethod.class))) {\n //Counts the number of various types of decision points that calculate cyclomatic complexity\n int ifCount = 0, conditionCount = 0, forCount = 0, whileCount = 0, caseCount = 0;\n ifCount = countIfs(methodObject);\n conditionCount = countConditions(methodObject);\n forCount = countFors(methodObject);\n whileCount = countWhiles(methodObject);\n caseCount = countCases(methodObject);\n localresults.put(\"IF\", ifCount);\n localresults.put(\"CONDITIONS\", conditionCount);\n localresults.put(\"FOR\", forCount);\n localresults.put(\"WHILE\", whileCount);\n localresults.put(\"CASE\", caseCount);\n //Totals the values per method and adds them to the hashmap\n int total = ifCount + conditionCount + forCount + whileCount + caseCount;\n total += 1;\n totalCMCValue += total;\n classCMCScores.put(classObject.getQualifiedName()+\".\"+methodObject.getSimpleName(), total);\n }\n }\n }", "public static void main(String[] args) {\n final int t = SYS_IN.nextInt(); // total test cases\n SYS_IN.nextLine();\n for (int ti = 0; ti < t; ti++) {\n evaluateCase();\n }\n SYS_IN.close();\n }", "public Const evaluate();" ]
[ "0.6140709", "0.5943529", "0.5875247", "0.56961215", "0.5685162", "0.56717485", "0.5666226", "0.5646286", "0.55644065", "0.5552732", "0.5496796", "0.5468726", "0.5463434", "0.54546875", "0.5447333", "0.5437551", "0.5422545", "0.5416039", "0.53983486", "0.53919303", "0.53834736", "0.5361751", "0.5354281", "0.5350498", "0.5348582", "0.53431934", "0.533605", "0.5318775", "0.5314568", "0.5311171", "0.52725095", "0.5267162", "0.5255473", "0.5251023", "0.52362627", "0.52224654", "0.5204899", "0.52044433", "0.5202595", "0.5197213", "0.5194025", "0.5175678", "0.51516134", "0.51500964", "0.51406896", "0.51392883", "0.51313376", "0.5130522", "0.5115232", "0.5107401", "0.50918835", "0.5085947", "0.50826365", "0.50737935", "0.5070361", "0.5069172", "0.50657064", "0.50653625", "0.5056391", "0.5050256", "0.5038757", "0.5037645", "0.5037635", "0.503503", "0.50269127", "0.5026562", "0.5023956", "0.5006354", "0.49984437", "0.49917555", "0.49866474", "0.4984146", "0.49724507", "0.4968322", "0.496806", "0.49679345", "0.49562383", "0.4950653", "0.4948268", "0.49468067", "0.4944577", "0.4936358", "0.49355632", "0.4934623", "0.4929149", "0.49285746", "0.49285358", "0.49192372", "0.49187908", "0.4916856", "0.49153063", "0.4911291", "0.49097925", "0.49048516", "0.49048352", "0.48990285", "0.48937228", "0.48846748", "0.48840976", "0.48833436" ]
0.5276117
30
Writes a checkpoint file.
private void writeCheckpoint(String filename) { File file = new File(checkpointDir, filename); try { geneticProgram.savePopulation(new FileOutputStream(file)); } catch (FileNotFoundException e) { log.log(Level.WARNING, "Exception in dump", e); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public synchronized void writeCheckpoint() {\n\t\tflush();\n\t\tpw.println(\"CHECKPOINT \" \n\t\t\t\t\t+ TransactionManager.instance().transactionList());\n\t\tflush();\n\t}", "void checkpoint() throws IOException;", "public void flushCheckpoint(long checkpoint)\r\n/* 124: */ {\r\n/* 125:155 */ this.checkpoint = checkpoint;\r\n/* 126: */ }", "@Override\n public void save(String bucketUuid, Map<Integer, Checkpoint> vbucketToCheckpoint) throws IOException {\n final File tempDir = new File(filename).getParentFile();\n\n final File temp = File.createTempFile(\"cbes-checkpoint-\", \".tmp.json\", tempDir);\n try {\n try (FileOutputStream out = new FileOutputStream(temp)) {\n mapper.writeValue(out, prepareForSerialization(bucketUuid, vbucketToCheckpoint));\n }\n\n Files.move(temp.toPath(), Paths.get(filename), StandardCopyOption.ATOMIC_MOVE);\n\n } catch (Exception t) {\n if (temp.exists() && !temp.delete()) {\n LOGGER.warn(\"Failed to delete temp file: {}\", temp);\n }\n throw t;\n }\n }", "public void write(final File out) throws IOException;", "@Override\n\tpublic void writeFile(String file_out) {\n\t\tthis.writeFile(Mode.POINT_ONLY, 0, DEFAULT_AND_LOAD_FACTOR, file_out);\n\t}", "private void writeMetadataChangeMarkerFile() {\n try {\n //noinspection ResultOfMethodCallIgnored\n new File(pathsProvider.getLocalProgramTempDir(), \"dbchangemarker.txt\").createNewFile();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public abstract void saveToFile(PrintWriter out);", "private void save() throws FileNotFoundException {\n\t\tm.write(new FileOutputStream(OUTPUT), \"RDF/XML\");\n\t}", "public void save(){\n checkpoint = chapter;\n }", "protected abstract void writeFile();", "public void write(File output) throws IOException {\n }", "public static void saveFile(State state) throws Exception{\n\n buildDoc();\n writePreferences(state.language, state.background, state.pastTurtles.size());\n\n writeTurtles(state.pastTurtles);\n writeLines(state.pastLines);\n\n createFile(STATE_FILE);\n\n }", "public void write() throws IOException {\n // No pairs to write\n if(map.size() == 0 || !isDirty) {\n System.err.println(\"preferences is already updated..\");\n return;\n }\n\n try(BufferedWriter bufferedWriter = Files.newBufferedWriter(fileName,\n StandardOpenOption.TRUNCATE_EXISTING,\n StandardOpenOption.CREATE))\n {\n for(Map.Entry<String, String> entry : map.entrySet()) {\n String key = entry.getKey();\n String value = entry.getValue();\n\n // Writes the current pair value in the format of 'key=value'\n bufferedWriter.write(String.format(\"%s=%s\\n\", key, value));\n }\n }\n\n isDirty = false;\n }", "private void outputToFile(String filename) throws FileNotFoundException, IOException {\n\t\tBufferedWriter writer = new BufferedWriter(\n\t\t\t\tnew FileWriter(filename+\".tmp\"));\n\t\twriter.write(VERIFY_STRING + \"\\n\");\n\n\t\t// output automata info\n\t\twriter.write(machine.getName() + \"\\n\");\n\t\twriter.write(machine.getType() + \"\\n\");\n\n\t\t// output state info\n\t\tfor (State state : machine.getStates()) {\n\t\t\twriter.write(\"STATE\\n\");\n\t\t\twriter.write(state.getName() + \"\\n\");\n\t\t\twriter.write(state.isAccept() + \" \" + state.isStart() + \" \" + \n\t\t\t\t\tstate.getID() + \" \" + state.getGraphic().getX() + \" \" + \n\t\t\t\t\tstate.getGraphic().getY() + \"\\n\");\n\n\t\t\t// output transitions\n\t\t\tfor (Transition t : state.getTransitions())\n\t\t\t\twriter.write(t.getID() + \" \" + t.getInput() + \" \" + \n\t\t\t\t\t\tt.getNext().getID() + \"\\n\");\n\t\t}\n\t\twriter.close();\n\t}", "public void writeToFile(byte[] output) {\r\n try {\r\n file.seek(currOffset);\r\n file.write(output);\r\n currOffset += output.length;\r\n }\r\n catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }", "public void writeToFile(File file) {\n\n\t}", "public void save()\n throws IOException\n {\n File file = new File(MainFrame.getConfig().getUserPath(), SNAPSHOTFILE);\n if(null != file.getParentFile())\n file.getParentFile().mkdirs();\n\n try(FileOutputStream ostream = new FileOutputStream(file)) {\n try(OutputStreamWriter fw = new OutputStreamWriter(ostream, StandardCharsets.UTF_8)) {\n PrintNode.printNode(m_snapshotDoc, \" \", fw);\n }\n }\n }", "private void write(S3CheckpointData data) throws IgniteCheckedException, AmazonClientException {\n assert data != null;\n\n if (log.isDebugEnabled())\n log.debug(\"Writing data to S3 [bucket=\" + bucketName + \", key=\" + data.getKey() + ']');\n\n byte[] buf = data.toBytes();\n\n ObjectMetadata meta = new ObjectMetadata();\n\n meta.setContentLength(buf.length);\n\n if (!F.isEmpty(sseAlg))\n meta.setSSEAlgorithm(sseAlg);\n\n s3.putObject(bucketName, data.getKey(), new ByteArrayInputStream(buf), meta);\n }", "JournalOutputStream getCheckpointOutputStream(long latestSequenceNumber) throws IOException;", "private void writeToFile() {\n try {\n FileOutputStream fos = new FileOutputStream(f);\n String toWrite = myJSON.toString(4);\n byte[] b = toWrite.getBytes();\n fos.write(b);\n fos.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public static void write(File file, WorkflowTrace trace) throws FileNotFoundException, JAXBException, IOException {\n FileOutputStream fos = new FileOutputStream(file);\n WorkflowTraceSerializer.write(fos, trace);\n }", "public abstract void save(FileWriter fw) throws IOException;", "private void writeFile(List<ClubPointsDTO> clubs) {\n\t\tFileWriter file = null;\n\t\ttry {\n\n\t\t\tfile = new FileWriter(\"clubs.txt\");\n\n\t\t\t// Escribimos linea a linea en el fichero\n\t\t\tfile.write(\"CLUB\\tPUNTOS\\r\\n\");\n\t\t\tfor(ClubPointsDTO c : clubs)\n\t\t\t\tfile.write(c.getName()+\"\\t\"+c.getPoints()+\"\\r\\n\");\n\n\t\t\tfile.close();\n\n\t\t} catch (Exception ex) {\n\t\t\tthrow new FileException();\n\t\t}\n\t}", "public abstract boolean writeDataToFile(String fileName, boolean overwrite);", "public void write(java.io.File f) throws java.io.IOException, Schema2BeansRuntimeException;", "public void save(OutputStream os) throws IOException;", "public void storeToFile() throws IOException {\n\t\t\n\t\tDLProgramStorer storer = new DLProgramStorerImpl();\n\t\t\n\t\t//String datalogFile = inputCKR.getGlobalOntologyFilename() + \".dlv\";\n\t\t//String datalogFile = \"./testcase/output.dlv\";\n\t\t//System.out.println(datalogGlobal.getStatements().size());\n\t\t\n\t\tFileWriter writer = new FileWriter(outputFilePath);\n\t\tstorer.store(datalogCKR, writer);\n\t\t//writer.flush();\n\t\twriter.close();\n\t\t\n\t\t//System.out.println(\"CKR program saved in: \" + outputFilePath);\n\t}", "public FileCheckpoint(Element config, DataAwareManagerMediator _dwareManMed) {\n super(config, _dwareManMed);\n\n chkptFile = new File(DOMUtils.getAttribute(config, FILE_NAME, true));\n try {\n // Opens the checkpoint/restart file for appending.\n this.writer = new BufferedWriter(new FileWriter(chkptFile, true));\n log.info(i18n.getString(\"checkPointEnabled\", chkptFile.getCanonicalPath()));\n } catch (IOException e) {\n throw new IllegalArgumentException(e.getMessage());\n }\n }", "public abstract void writeToFile( );", "public void saveTraining(File datum) throws IOException, FileNotFoundException {\n bp.writer(datum);\n }", "public void save() {\n\t\tWriteFile data = new WriteFile( this.name + \".txt\" );\n\t\ttry {\n\t\t\t data.writeToFile(this.toString());\n\t\t}\n\t\tcatch (IOException e) {\n\t\t\tSystem.out.println(\"Couldn't print to file\");\n\t\t}\n\t}", "private void writeTrace()\r\n {\r\n TGCreator creator = new TGCreator();\r\n TGTrace trace = creator.createTrace(JVM.getVM(), this.stateGraph);\r\n TraceGraphWriter tgWriter = new TraceGraphWriter(trace);\r\n\r\n if (this.traceCompressed)\r\n {\r\n this.filename += ITraceConstants.ZIP_FILE_SUFFIX;\r\n tgWriter.saveCompressed(new File(this.filename));\r\n }\r\n else\r\n {\r\n this.filename += ITraceConstants.XML_FILE_SUFFIX;\r\n tgWriter.save(new File(this.filename));\r\n }\r\n\r\n SymbolicExecutionTracerPlugin.log(Status.INFO,\r\n \"Symbolic Execution Tracer wrote \" + this.numEndStates\r\n + \" traces to \" + this.filename);\r\n }", "public long flushCheckpoint()\r\n/* 119: */ {\r\n/* 120:150 */ return this.checkpoint;\r\n/* 121: */ }", "private void saveInFile() {\n try {\n FileOutputStream fOut = openFileOutput(FILENAME,\n Context.MODE_PRIVATE);\n\n OutputStreamWriter writer = new OutputStreamWriter(fOut);\n Gson gson = new Gson();\n gson.toJson(counters, writer);\n writer.flush();\n\n fOut.close();\n\n } catch (FileNotFoundException e) {\n throw new RuntimeException();\n } catch (IOException e) {\n throw new RuntimeException();\n }\n }", "public void save() throws FileNotFoundException, IOException, ClassNotFoundException ;", "public void toFile() throws IOException {\n toFile(null);\n }", "private void writeFile(TimerEntity entity) {\n final File file = fileName(entity.getTimedObjectId(), entity.getId());\n\n FileOutputStream fileOutputStream = null;\n try {\n fileOutputStream = new FileOutputStream(file, false);\n final Marshaller marshaller = factory.createMarshaller(configuration);\n marshaller.start(new OutputStreamByteOutput(fileOutputStream));\n marshaller.writeObject(entity);\n marshaller.finish();\n fileOutputStream.flush();\n fileOutputStream.getFD().sync();\n } catch (FileNotFoundException e) {\n throw new RuntimeException(e);\n } catch (IOException e) {\n throw new RuntimeException(e);\n } finally {\n if (fileOutputStream != null) {\n try {\n fileOutputStream.close();\n } catch (IOException e) {\n logger.error(\"IOException closing file \", e);\n }\n }\n }\n }", "private static void commit() throws IOException {\n java.io.File out = SessionService.getConfFileByPath(Const.FILE_CONFIGURATION + \".\"\n + Const.FILE_SAVING_FILE_EXTENSION);\n OutputStream str = new FileOutputStream(out);\n // Write the temporary file\n try {\n properties.store(str, \"User configuration\");\n } finally {\n str.flush();\n str.close();\n }\n // Commit with recovery support\n java.io.File finalFile = SessionService.getConfFileByPath(Const.FILE_CONFIGURATION);\n UtilSystem.saveFileWithRecoverySupport(finalFile);\n Log.debug(\"Conf commited to : \" + finalFile.getAbsolutePath());\n }", "public void task_1_write(List<MonitoredData> timeline) throws IOException {\n FileWorker.writeFile(1, timeline, 0, null, null, null);\n }", "public void writeToFile(String outputName) throws Exception{\n if (trials == null || data == null) throw new Exception(\"Must read marker and data file before writing it out\");\n BufferedWriter bw = new BufferedWriter(new FileWriter(outputName));\n \n //.. write out the headers\n for (int i= FIRSTPROBEINDEX; i < header.length; i++) {\n bw.write(header[i]);\n bw.write(\",\");\n }\n \n //.. write out condition\n bw.write(\"condition\");\n \n bw.write(\"\\n\");\n int rowNum =0;\n \n //.. write out actual data\n for (String [] row : data) {\n if (row.length!= header.length) System.out.println(\"Row has \" + row.length + \" whereas header has \" + header.length);\n String label =null;\n for (int i = FIRSTPROBEINDEX; i < row.length; i++) {\n label = getLabel(rowNum); //.. will be null if it doesn't exist\n \n if (label != null ) {\n bw.write(row[i]);\n bw.write(\",\");\n }\n }\n if (label!=null) {\n //System.out.println(\"Writing \" + getLabel(rowNum));\n String condition = getLabel(rowNum);\n bw.write(condition);\n bw.write(\"\\n\");\n \n //.. this is a hack since my program gives an error if a conditon jsut has one line\n if (condition.equals(\"passed\")) duplicateLastLine(bw, row, condition,20 );\n \n }\n rowNum++;\n }\n \n bw.close();\n }", "private static void writeToOutput() {\r\n FileWriter salida = null;\r\n String archivo;\r\n JFileChooser jFC = new JFileChooser();\r\n jFC.setDialogTitle(\"KWIC - Seleccione el archivo de salida\");\r\n jFC.setCurrentDirectory(new File(\"src\"));\r\n int res = jFC.showSaveDialog(null);\r\n if (res == JFileChooser.APPROVE_OPTION) {\r\n archivo = jFC.getSelectedFile().getPath();\r\n } else {\r\n archivo = \"src/output.txt\";\r\n }\r\n try {\r\n salida = new FileWriter(archivo);\r\n PrintWriter bfw = new PrintWriter(salida);\r\n System.out.println(\"Índice-KWIC:\");\r\n for (String sentence : kwicIndex) {\r\n bfw.println(sentence);\r\n System.out.println(sentence);\r\n }\r\n bfw.close();\r\n System.out.println(\"Se ha creado satisfactoriamente el archivo de texto\");\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n }", "public void saveToFile(final File file) throws IOException, AnalysisConfigurationException;", "void checkpoint(Node node) throws RepositoryException;", "void write(TraceList traceList,File file) throws IOException;", "public void open(){\n try {\n output = new BufferedWriter(new FileWriter(training_path, true));\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "static void writeToFiles() throws IOException {\n\n writeToFilePriceHistory();\n writeToFileEmployees();\n writeToFileInventory();\n writeToSaleItems();\n writeToOrder();\n writeToFileInventory();\n writeToRevenueLog();\n }", "public boolean writeDataFile();", "void write(File file) throws IOException {\n Files.createParentDirs(file);\n FileWriter fileWriter = new FileWriter(file);\n try {\n for (Map.Entry<String, Status> record : records.entrySet()) {\n fileWriter.write(String.format(\"%s,%s\", record.getValue(), record.getKey()));\n fileWriter.write(\"\\n\");\n }\n } finally {\n fileWriter.close();\n }\n }", "void saveToFile(String filename) throws IOException;", "void saveToFile() {\n\t\ttry {\n\t\t\tFile directory = GameApplication.getInstance().getExternalFilesDir(Environment.DIRECTORY_DOCUMENTS);\n\t\t\tFile target = new File(directory, FILE_NAME);\n\t\t\tif (!target.exists()) {\n\t\t\t\ttarget.createNewFile();\n\t\t\t}\n\t\t\tJsonWriter writer = new JsonWriter(new FileWriter(target));\n\t\t\twriter.setIndent(\" \");\n\t\t\twriter.beginArray();\n\t\t\tfor (Scoreboard scoreboard : scoreboards.values()) {\n\t\t\t\twriteScoreboard(writer, scoreboard);\n\t\t\t}\n\t\t\twriter.endArray();\n\t\t\twriter.flush();\n\t\t\twriter.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void save(String fileName) throws IOException;", "public boolean checkpoint() {\n\t\ttry {\n\t\t\toutputStream.flush();\n\t\t} catch (IOException e) {\n\t\t\tif (RTS_COMMON.Option.VERBOSE)\n\t\t\t\te.printStackTrace();\n\t\t\treturn (false);\n\t\t}\n\t\treturn (true);\n\t}", "public static void writeNumberToFile() {\n try {\n FileOutputStream outputStream = new FileOutputStream(\"ex1.txt\");\n outputStream.write(String.valueOf(53).getBytes());\n } catch (FileNotFoundException e) {\n // handle FileNotFoundException\n } catch (IOException e) {\n // handle IOException\n } finally {\n System.out.println(\"Finally block\");\n }\n }", "public void writeDump(File f) {\n\n }", "@Override\n\tpublic void write(Object obj, File file) throws IJunitException {\n\t\t\n\t}", "public void writeKeyData(File f) throws IOException;", "public final void saveToFile() {\n\t\tWrite.midi(getScore(), getName()+\".mid\"); \n\t}", "void writeToFile(){\n try{\n OutputStream o = new FileOutputStream(distanceFile);\n for(int start = 1; start < 200; start++)\n for(int to = 1; to < 200; to++)\n for(int taxi = 0; taxi < 12; taxi++)\n for(int bus = 0; bus < 9; bus++)\n o.write(distance[start][to][taxi][bus]);\n o.close();\n o = new FileOutputStream(validMoveFile);\n for(int node = 1; node < 200; node++)\n for(int taxi = 0; taxi < 3; taxi++)\n for(int bus = 0; bus < 3; bus++)\n for(int underground = 0; underground < 3; underground++)\n for(int doublet = 0; doublet < 2; doublet++)\n for(int secret = 0; secret < 3; secret++)\n for(int b = 0; b < 4; b++)\n o.write((byte) (validMoves[node][taxi][bus][underground][doublet][secret] >> ((3 - b) * 8)));\n o.close();\n }\n catch (Exception e){\n System.out.println(\"Exception: \" + e);\n }\n }", "private void writeToFile(){\n try(BufferedWriter br = new BufferedWriter(new FileWriter(filename))){\n for(Teme x:getAll())\n br.write(x.toString()+\"\\n\");\n br.close();\n }catch (IOException e){\n e.printStackTrace();\n }\n }", "String saveToFile () throws Exception {\n\n File backupFile = new File(\"../dataBackup.txt\");\n\n// checks if backup file exists, if yes, it attempts to delete it\n if (backupFile.exists() && !backupFile.delete())\n return (\"Save terminated: backup could not be deleted\");\n// attempts to rename file to backup file\n if (!file.renameTo(backupFile))\n return (\"Save terminated: backup could not be created\");\n\n// creates custom writer\n Writer writer = new Writer(new FileWriter(file));\n\n// cycles through all timelines and all their events, writing all into the same file\n for (Timeline timeline : timelines) {\n writer.writeTimeline(timeline);\n for (Event event : timeline.events) {\n writer.writeEvent(event);\n }\n }\n\n writer.close();\n return (\"Save finished successfully\");\n }", "private void writeToFile() {\n boolean flag = true;\n int expectedPacket = (lastPacket)? sequenceNo: Constants.WINDOW_SIZE;\n for (int i = 0; i < expectedPacket; i++) {\n if(!receivedPacketList.containsKey(i)) {\n flag = false;\n }\n }\n if (flag) {\n System.out.println(\"Time: \" + System.currentTimeMillis() + \"\\t\" + \"Write to file Possible\");\n try (BufferedOutputStream stream = new BufferedOutputStream(new FileOutputStream(fileSavePath, true))) {\n for (int i = 0; i < receivedPacketList.size(); i++) {\n //System.out.println(new String(receivedPacketList.get(i)));\n stream.write(receivedPacketList.get(i));\n }\n receivedPacketList.clear();\n stream.close();\n } catch (FileNotFoundException ex) {\n \n } catch (IOException ex) {\n \n }\n receivedPacketList.clear();\n expectedList.clear();\n }\n }", "public void save () {\n // Make sure the workspace folder exist\n createFolder(this.pathToWorkspaceFolder);\n\n // Write the serialized Flow object\n System.out.println(\"Saving\");\n try (FileWriter file = new FileWriter(this.pathToWorkspaceFolder.toString() + \"/\" + FLOW_FILE_NAME)) {\n file.write(flow.serialize());\n System.out.println(\"Successfully Copied Flow \" + flow.getId() + \" to File :)\");\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void tempSaveToFile() {\n try {\n ObjectOutputStream outputStream = new ObjectOutputStream(\n this.openFileOutput(MenuActivity2048.TEMP_SAVE_FILENAME, MODE_PRIVATE));\n outputStream.writeObject(boardManager);\n outputStream.close();\n } catch (IOException e) {\n Log.e(\"Exception\", \"File write failed: \" + e.toString());\n }\n }", "private void export() {\n print(\"Outputting Instructions to file ... \");\n\n // Generate instructions right now\n List<Instruction> instructions = new ArrayList<Instruction>();\n convertToInstructions(instructions, shape);\n\n // Verify Instructions\n if (instructions == null || instructions.size() == 0) {\n println(\"failed\\nNo instructions!\");\n return;\n }\n\n // Prepare the output file\n output = createWriter(\"output/instructions.txt\");\n \n // TODO: Write configuration information to the file\n \n\n // Write all the Instructions to the file\n for (int i = 0; i < instructions.size(); i++) {\n Instruction instruction = instructions.get(i);\n output.println(instruction.toString());\n }\n\n // Finish the file\n output.flush();\n output.close();\n\n println(\"done\");\n }", "public void save() throws FileNotFoundException, IOException\n {\n settings.store(new FileOutputStream(FILE), \"N3TPD Config File\");\n }", "private static void writeFile(String name, Trajectory t) {\n\t\ttry {\n\t\t\tFile directory = new File(cacheDirectory);\n\t\t\tif (!directory.exists()) {\n\t\t\t\tconsole.log(\"missing dir, making\");\n\t\t\t\tdirectory.mkdir();\n\t\t\t}\n\t\t\t\n\t\t\tFileOutputStream fos = new FileOutputStream(cacheDirectory + name);\n\t\t ObjectOutputStream oos = new ObjectOutputStream(fos);\n\t\t oos.writeObject(t);\n\t\t oos.close();\n\t\t fos.close();\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tconsole.error(e);\n\t\t}\n\t}", "public void writeXML() throws IOException {\n OutputFormat format = OutputFormat.createPrettyPrint();//th format of xml file\n XMLWriter xmlWriter =new XMLWriter( new FileOutputStream(file), format);\n xmlWriter.write(document);//write the new xml into the file\n xmlWriter.flush();\n }", "public void save() \n throws IOException \n {\n File tickDir = new File(TextUtil.expand(TICKS_DIR));\n\n File tickFile = getTickFile(mExport);\n if (!mTicks.isEmpty() \n || (tickFile.exists() && !tickFile.getParentFile().equals(tickDir))) \n {\n tickFile.getParentFile().mkdirs();\n \n ZipOutputStream zip = new ZipOutputStream(new FileOutputStream(tickFile));\n try {\n String basename = mFile.getName();\n // file\n {\n ZipEntry fileEntry = new ZipEntry(basename);\n zip.putNextEntry(fileEntry);\n zip.write(mText.getBytes());\n zip.closeEntry();\n } \n // ticks\n {\n ZipEntry tickEntry = new ZipEntry(basename + TickConstants.TICK_ENTRY_EXT);\n zip.putNextEntry(tickEntry);\n zip.write(saveTicks());\n zip.closeEntry();\n }\n } finally {\n FileUtil.close(zip);\n }\n } else {\n tickFile.delete();\n }\n }", "public void saveMap() {\n this.scanMap();\n String userHome = System.getProperty(\"user.home\");\n BinaryExporter export = BinaryExporter.getInstance();\n File file = new File(userHome + \"world.j3o\");\n try {\n export.save(this.testNode, file); \n } catch (IOException ex) {\n Logger.getLogger(mapDevAppState_2.class.getName()).log(Level.SEVERE, \"File write error\");\n }\n }", "public void save() {\n UTILS.write(FILE.getAbsolutePath(), data);\n }", "public void save() throws FileNotFoundException {\n PrintWriter myWriter = new PrintWriter(\"duke.txt\");\n for (Task t : TaskList.getTasklist()) {\n myWriter.println(t.toString());\n }\n myWriter.flush();\n myWriter.close();\n }", "synchronized public void saveToFile() {\n try {\n saveObjToFile(this, saveFilePath);\n } catch (IOException e) {\n e.printStackTrace();\n log(\"error saving resource to file\");\n }\n }", "public void writeFile()\n\t{\n\t\t//Printwriter object\n\t\tPrintWriter writer = FileUtils.openToWrite(\"TobaccoUse.txt\");\n\t\twriter.print(\"Year, State, Abbreviation, Percentage of Tobacco Use\\n\");\n\t\tfor(int i = 0; i < tobacco.size(); i++)\n\t\t{\n\t\t\tStateTobacco state = tobacco.get(i);\n\t\t\tString name = state.getState();\n\t\t\tString abbr = state.getAbbreviation();\n\t\t\tdouble percent = state.getPercentUse();\n\t\t\tint year = state.getYear();\n\t\t\twriter.print(\"\"+ year + \", \" + name + \", \" + abbr + \", \" + percent + \"\\n\");\n\t\t} \n\t\twriter.close(); //closes printwriter object\n\t}", "private void writeToFile(E entity){\n try (BufferedWriter bw = new BufferedWriter(new FileWriter(this.fileName,true))) {\n bw.write(entity.toFile());\n bw.newLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void saveWorkflow(String filename);", "public static void writeInfoTofile() throws FileNotFoundException {\n try {\n FileOutputStream outputStream = new FileOutputStream(\"ex1.txt\");\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n throw e;\n }\n }", "private void saveToFile(){\n this.currentMarkovChain.setMarkovName(this.txtMarkovChainName.getText());\n saveMarkovToCSVFileInformation();\n \n //Save to file\n Result result = DigPopGUIUtilityClass.saveDigPopGUIInformationSaveFile(\n this.digPopGUIInformation,\n this.digPopGUIInformation.getFilePath());\n }", "void writeToFile() throws IOException{\n\t\tString fileName = f.getTitle() + \".txt\";\n\t\tfileWrite = new BufferedWriter( new FileWriter(fileName));\n\t\tfileWrite.write(history);\n\t\tSystem.out.println(fileName + \" File Writing Successful!!\");\n\t\tSystem.out.println(\"Data in file :\\n\" + history);\n\t\tfileWrite.flush();\n\t\tFile file = new File(fileName);\n\t\tjava.awt.Desktop.getDesktop().open(file);\n\n\t}", "public void write() {\n\t\tint xDist, yDist;\r\n\t\ttry {\r\n\t\t\tif (Pipes.getPipes().get(0).getX() - b.getX() < 0) { // check if pipes are behind bird\r\n\t\t\t\txDist = Pipes.getPipes().get(1).getX() - b.getX();\r\n\t\t\t\tyDist = Pipes.getPipes().get(1).getY() - b.getY() + Pipes.height;\r\n\t\t\t} else {\r\n\t\t\t\txDist = Pipes.getPipes().get(0).getX() - b.getX();\r\n\t\t\t\tyDist = Pipes.getPipes().get(0).getY() - b.getY() + Pipes.height;\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\txDist = -6969;\r\n\t\t\tyDist = -6969;\r\n\t\t\te.printStackTrace();\r\n\t\t\tSystem.out.println(\"Pipe out of bounds\");\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tFile file = new File(\"DATA.txt\");\r\n\t\t\tFileWriter fr = new FileWriter(file, true);\r\n\t\t\tfr.write(xDist + \",\" + yDist + \",\" + b.getYVel() + \",\" + didJump);\r\n\t\t\tfr.write(System.getProperty(\"line.separator\")); // makes a new line\r\n\t\t\tfr.close();\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(\"Wtrie file error\");\r\n\t\t}\r\n\t}", "public void writeHullToFile() throws IllegalStateException, FileNotFoundException \n\t{\n\t\tif(hullVertices == null)\n\t\t{\n\t\t\tthrow new IllegalStateException();\n\t\t}\n\t\tFile file = new File(\"hull.txt\"); \n\t PrintWriter writer = new PrintWriter(file);\n\t String a = \"\";\n\t \n\t \n\t for(int i = 0; i < hullVertices.length; i++) //iterate through array and create strings for coordinates\n\t {\n\t \t/*String x = hullVertices[i].getX() + \"\";\n\t \tString y = hullVertices[i].getY() + \"\";\n\t \t\n\t \tString point = x + \" \" + y;\n\t \t\n\t \ta += point;\n\t \ta += \"\\n\"; //add point to the string and newline*/\n\t \twriter.printf(\"%d %d\\n\", hullVertices[i].getX(), hullVertices[i].getY());\n\t }\n\t\n\t writer.close();\n\t}", "public void saveToFile(File outputFile) throws IOException {\n PrintWriter writer = new PrintWriter(outputFile);\n\n writer.write(\"# Exported by FrogLord\" + Constants.NEWLINE);\n for (Tuple3<Float, Float, Float> vertex : this.vertices)\n writer.write(\"v \" + vertex.getA() + \" \" + vertex.getB() + \" \" + vertex.getC() + Constants.NEWLINE);\n\n for (Tuple2<Float, Float> normal : this.normals)\n writer.write(\"vt \" + normal.getA() + \" \" + normal.getB() + Constants.NEWLINE);\n\n writer.close();\n }", "public void save(List<Task> list) throws IOException {\n FileWriter writer = new FileWriter(file);\n StringBuilder output = new StringBuilder();\n for (Task t : list) {\n output.append(formatTask(t));\n output.append(\"\\n\");\n }\n writer.write(output.toString());\n writer.close();\n }", "public void writeRuleToFile(String text, boolean append) {\n if (fileName.isEmpty())\n return;\n\n try {\n FileWriter fileWriter = new FileWriter(fileName, append);\n PrintWriter writer = new PrintWriter(fileWriter);\n\n writer.println(text);\n\n writer.close();\n fileWriter.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@Override\n\tpublic void flush() {\n\t\ttry {\n\t\t\tFile f = new File(path);\n\t\t\tFileWriter fw = new FileWriter(f);\n\t\t\tfw.write(\"\");\n\t\t\tfw.close();\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t}\n\t \n\t \n\t\n\t try {\n\t\t \n\t\t\n\t\t \n\t\t\tObjectOutputStream os;\n\t\t\tFile file = new File(path);\n\t\t\tFileOutputStream fos = new FileOutputStream(file, true);\n\t\t\tif (file.length() < 1) {\n\t\t\t\tos = new ObjectOutputStream(fos);\n\t\t\t} else {\n\t\t\t\tos = new MyObjectOutputStream(fos);\n\t\t\t}\n\t\t\tos.writeObject(constantPO);\n\t\t\tos.flush();\n\t\t\tos.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void writeToFile(SVGGraphics2D generator, String path) throws IOException {\n\t\tFile file = new File(path);\n\t\tif (!file.exists())\n\t\t\tfile.createNewFile();\n\t\tFileWriter fw = new FileWriter(file);\n\t\tPrintWriter writer = new PrintWriter(fw);\n\t\tgenerator.stream(writer);\n\t\twriter.close();\n\t}", "private void updateFile() {\n try {\n this.taskStorage.save(this.taskList);\n this.aliasStorage.save(this.parser);\n } catch (IOException e) {\n System.out.println(\"Master i am unable to save the file!\");\n }\n }", "public void writeFile(EquationStandardSession session, String inpLibrary) throws EQException\n\t{\n\t\tStatement statement = null;\n\t\ttry\n\t\t{\n\t\t\t// create the statement\n\t\t\tstatement = session.getConnection().createStatement(ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_READ_ONLY);\n\n\t\t\t// create the table\n\t\t\tString sqlStatement = createTableSQL();\n\t\t\tstatement.execute(sqlStatement);\n\n\t\t\t// change the label of the table\n\t\t\tsqlStatement = createLabelTableSQL();\n\t\t\tstatement.execute(sqlStatement);\n\n\t\t\t// Set the column headings\n\t\t\tsqlStatement = createLabelFieldSQL(false);\n\t\t\tstatement.execute(sqlStatement);\n\n\t\t\t// Set the Field text for the columns\n\t\t\tsqlStatement = createLabelFieldSQL(true);\n\t\t\tstatement.execute(sqlStatement);\n\t\t}\n\t\tcatch (SQLException e)\n\t\t{\n\t\t\tthrow new EQException(\"JournalFile: writeFile Failed: \", e);\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tSQLToolbox.close(statement);\n\t\t}\n\t}", "public File getFileForCheckpoint(Checkpoint checkpoint){\n return getFileForCheckpoint(checkpoint.getCheckpointNum());\n }", "@Override\n\tpublic void writeToFile(NetworkFileWriter nfw) throws IOException {\n\t\t// write the size of the layer\n\t\tnfw.writeInt(size);\n\t}", "public static void createSaveFile( )\n {\n try\n {\n new File( \"data\" ).mkdirs( );\n PrintWriter writer = new PrintWriter( \"data/\" + Game.instance.getCurrentSaveFile( ).SAVEFILENAME + \".txt\", \"UTF-8\" );\n writer.println( \"dkeys: \" + Game.START_DIAMOND_KEY_COUNT );\n writer.close( );\n }\n catch ( IOException e )\n {\n e.printStackTrace( );\n System.exit( 1 );\n }\n }", "public static void writeSave(String filepath, ISaveConfiguration scores) {\n try {\n Element root = Writer.buildDocumentWithRoot(DATA_TYPE);\n Document document = root.getOwnerDocument();\n\n addSaves(document, root, scores);\n\n Writer.writeOutput(document, filepath);\n } catch (TransformerException e) {\n throw new XMLException(e, Factory.UNKNOWN_ERROR);\n }\n }", "@Override\n\tpublic void writeFile(String hashname) {\n\t\tfor(CircosNode node : nodes){\n\t\t\tString useThisLabel = \"\";\n\t\t\tif(node.getLabel().length() > maxLabelLenght){\n\t\t\t\tuseThisLabel = node.getLabel().substring(0, maxLabelLenght) + \"...\";\n\t\t\t}else{\n\t\t\t\tuseThisLabel = node.getLabel();\n\t\t\t}\n\t\t\toutput += \"chr\" + Settings.CIRCOS_DELIMITER + \"-\" + Settings.CIRCOS_DELIMITER + node.getID() + Settings.CIRCOS_DELIMITER + useThisLabel + \n\t\t\t\t\tSettings.CIRCOS_DELIMITER + \"0\" + Settings.CIRCOS_DELIMITER + Math.round(node.getSzMetricValue()) + \n\t\t\t\t\tSettings.CIRCOS_DELIMITER + node.getID() + \"\\n\";\n\t\t}\n\t\tTools.createFile(Settings.CIRCOS_DATA_PREFIX+\"node\"+hashname+\".txt\", output);\n\t}", "private void saveInFile() {\n\t\tthis.deleteFile();\n\t\tfor (CounterModel obj : counterListModel.getCounterList()) {\n\t\t\ttry {\n\t\t\t\tGson gson = new Gson();\n\t\t\t\tif (obj.getCounterName().equals(counterModel.getCounterName())) {\n\t\t\t\t\tobj = counterModel;\n\t\t\t\t}\n\t\t\t\tString json = gson.toJson(obj) +'\\n';\n\t\t\t\tFileOutputStream fos = openFileOutput(FILENAME,\n\t\t\t\t\t\tContext.MODE_APPEND);\n\t\t\t\tfos.write(json.getBytes());\n\t\t\t\tfos.close();\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "private void writeStatsToFile() {\n\t\tString fileName = \"TypeaheadStats.dat\";\n\t\tString contents = \"Typeahead_Tasks,Index_Hits,Hit_Ratio,Avg_Time,Suffix_Time,Pruning\\n\";\n\t\tcontents += numOfSearchTasks + \n\t\t\t\t\",\" + numOfIndexHits + \n\t\t\t\t\",\" + 1.0 * numOfIndexHits / numOfSearchTasks + \n\t\t\t\t\",\" + totalTime / numOfSearchTasks +\n\t\t\t\t\",\" + suffixTreeTime / numOfSearchTasks + \n\t\t\t\t\",\" + pruningPercentage / numOfSearchTasks;\n\t\tFileManager.writeToFile(fileName, contents);\n\t}", "public void writeToFile() {\n try {\n // stworz plik\n File file = new File(\"../Alice.ids\");\n // stworz bufor zapisu do pliku\n FileWriter fileWriter = new FileWriter(file);\n for(int i = 0; i < identificationNumbers.length; i++) {\n for(int j = 0; j < identificationNumbers[i].length; j++)\n fileWriter.write(Integer.toString(identificationNumbers[i][j]));\n\t\t\t fileWriter.write(\"\\n\");\n }\n\t\t\tfileWriter.flush();\n\t\t\tfileWriter.close();\n } catch(Exception e) {\n e.printStackTrace();\n }\n }", "public void writeKeysToFile(){\n if(d == null){\n calculateKeypair();\n }\n FileHandler fh = new FileHandler();\n fh.writeFile(sbPrivate.toString(), \"sk.txt\");\n fh.writeFile(sbPublic.toString(), \"pk.txt\");\n }", "public void store (String fileName) throws IOException {\n\t\tBufferedWriter out = new BufferedWriter\n\t\t\t(new OutputStreamWriter\n\t\t\t (new FileOutputStream(fileName), JetTest.encoding));\n\t\tannotator.writeTagTable (out);\n\t\tout.write (\"endtags\");\n\t\tout.newLine ();\n\t\tmene.store (out);\n\t}", "private void saveLocalFile(ByteArrayOutputStream out) {\n //sava in local files\n FileWriter fw;\n File file = new File(\"/home/shaowen2/testdata/\" + \"vm\" +servers.getServerAddress().substring(15, 17) +\"-ouput.log\");\n\n try {\n if (!file.exists()) {\n file.createNewFile();\n }\n fw = new FileWriter(file);\n BufferedWriter bw = new BufferedWriter(fw);\n bw.write(out.toString());\n //bw.write(\"\\n\" + \"Query Count:\" + count + \"|| Time:\" + new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\").format(new Date()) + \"\\n\");\n bw.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "protected void checkpoint() {\n checkpoint = internalBuffer().readerIndex();\n }" ]
[ "0.69295967", "0.66093594", "0.5931999", "0.5794088", "0.57393223", "0.5671676", "0.5426662", "0.5391709", "0.5363129", "0.53585094", "0.534616", "0.5320663", "0.5301346", "0.52977145", "0.5274095", "0.5261248", "0.52547073", "0.5238459", "0.5233353", "0.52315587", "0.5218973", "0.5209291", "0.5195231", "0.51786494", "0.5148935", "0.51449436", "0.5131035", "0.5124828", "0.50688505", "0.5066275", "0.503247", "0.5023466", "0.5022857", "0.501961", "0.50193894", "0.5017099", "0.5006063", "0.4986758", "0.49785677", "0.49756768", "0.49698102", "0.4966155", "0.4960739", "0.4952343", "0.49321187", "0.49300915", "0.49179733", "0.49171346", "0.49047858", "0.48776537", "0.48696718", "0.48634267", "0.4858987", "0.4855908", "0.4848336", "0.48478946", "0.48460156", "0.48361292", "0.4828838", "0.48258725", "0.48162493", "0.48054558", "0.48026326", "0.4799964", "0.47940832", "0.47802472", "0.4770709", "0.47683895", "0.47637627", "0.4756613", "0.47547013", "0.47545254", "0.4753131", "0.4746797", "0.47456703", "0.47421387", "0.47362462", "0.4732251", "0.47276017", "0.47130996", "0.47127134", "0.47117528", "0.46980202", "0.46964458", "0.46798155", "0.4679734", "0.46783975", "0.46775496", "0.46766654", "0.46702084", "0.46656302", "0.46654415", "0.46649235", "0.46621537", "0.4653817", "0.46531218", "0.4649031", "0.46433356", "0.46421403", "0.46414694" ]
0.71965516
0
Creates a thread to handle I/O with a client.
private void sendForEvaluation(final int index, final Program program) { final IClient client = getNextClient(); Thread t = new Thread(new Runnable() { @Override public void run() { try { int fitness = client.evaluateProgram(program.program); enqueueClient(client); updateFitness(index, fitness); } catch (RemoteException ignored) { enqueueProgram(index, program); } } }); t.start(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void startInThread() {\n final Client fthis = this;\n if (in != null && in.isAlive()) in.interrupt();\n in = new Thread(() -> {\n while (true) {\n if (client.isClosed()) break;\n try {\n InputStream inFromServer = client.getInputStream();\n if (inFromServer.available() > 0) {\n String l = (char) inFromServer.read() + \"\";\n while (!l.endsWith(\"\\r\")) {\n l += (char) inFromServer.read() + \"\";\n }\n l = l.replace(\"\\r\", \"\");\n runPacketEvent(new ClientPacketEvent(fthis, PacketType.CLIENT_RECEIVE, l));\n }\n } catch (Exception e) {\n e.printStackTrace();\n break;\n }\n }\n });\n in.start();\n }", "public void toThread() {\n\t\t// TODO Auto-generated method stub\n\t\tnew Thread(this).start();\n\t\tclient.start();\n\t}", "public void run() {\n clientLogger.info(\"Client \" + name + \" started working\");\n EventLoopGroup group = new NioEventLoopGroup();\n try {\n Bootstrap bootstrap = new Bootstrap()\n .group(group)\n .channel(NioSocketChannel.class)\n .handler(new ClientInitializer());\n Channel channel = bootstrap.connect(host, port).sync().channel();\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\n while (true) {\n channel.write(in.readLine() + \"\\r\\n\");\n }\n } catch (InterruptedException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n group.shutdownGracefully();\n }\n clientLogger.info(\"Client \" + name + \" finished working\");\n }", "public void run() {\n ServerSocket serverSocket = null;\n try {\n serverSocket = new ServerSocket(8823);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n // running infinite loop for getting\n // client request\n while (true)\n {\n Socket socket = null;\n\n try\n {\n // socket object to receive incoming client requests\n socket = serverSocket.accept();\n\n //System.out.println(\"A new client is connected : \" + socket);\n\n // obtaining input and out streams\n InputStream inputStream = new DataInputStream(socket.getInputStream());\n OutputStream outputStream = new DataOutputStream(socket.getOutputStream());\n\n //System.out.println(\"Assigning new thread for this client\");\n\n // create a new thread object\n Thread t = new ClientHandler(socket, inputStream, outputStream);\n\n // Invoking the start() method\n t.start();\n\n }\n catch (Exception e){\n try {\n socket.close();\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n e.printStackTrace();\n }\n }\n }", "public ClientHandle(Socket cs) {\r\n \t\r\n this.threadSocket = cs;\r\n\r\n }", "public static void initCommunicationClientThread(){\r\n new CommunicationClientThread();\r\n }", "public LocalClient() {\n\t\tsuper(\"SERVER\", Arrays.asList(new String[] {\"*\"}), null, null);\n\t\tinputThread = new Thread(this);\n\t\tinputThread.start();\n\t}", "public static void main(String[] args) throws IOException {\n ServerSocket ss = new ServerSocket(3000);\n\n // infinite loop is running for getting client request\n while (true) {\n Socket serverSocket = null;\n\n try {\n // server socket object receive incoming client requests\n serverSocket = ss.accept();\n count++;\n\n System.out.println(\"A new client\" + clientNum++ + \" is connected : \" + serverSocket);\n\n // getting input and out streams\n DataInputStream dataInputStream = new DataInputStream(serverSocket.getInputStream());\n DataOutputStream dataOutputStream = new DataOutputStream(serverSocket.getOutputStream());\n\n System.out.println(\"Allocating new thread for this client\" + clientNum);\n\n // create a new thread object\n Thread newThread = new ClientHandler(serverSocket, dataInputStream, dataOutputStream, count);\n\n // Invoking the start() method\n newThread.start();\n\n } catch (Exception e) {\n serverSocket.close();\n e.printStackTrace();\n }\n }\n }", "public void run() {\n\t\tString choice = null;\n\t\tBufferedReader inFromClient = null;\n\t\tDataOutputStream outToClient = null;\n\t\t\n\t\ttry {\n\t\t\tinFromClient = new BufferedReader(new InputStreamReader(client.getInputStream()));\n\t\t\toutToClient = new DataOutputStream(client.getOutputStream());\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\ttry {\n\t\t\t// Loops until the client's connection is lost\n\t\t\twhile (true) {\t\n\t\t\t\t// Request that was sent from the client\n\t\t\t\tchoice = inFromClient.readLine();\n\t\t\t\tif(choice != null) {\n\t\t\t\t\tSystem.out.println(choice);\n\t\t\t\t\tswitch (choice) {\n\t\t\t\t\t\t// Calculates the next even fib by creating a new\n\t\t\t\t\t\t// thread to handle that calculation\n\t\t\t\t\t\tcase \"NEXTEVENFIB\":\n\t\t\t\t\t\t\tnew EvenFib(client).run();\n\t\t\t\t\t\t\t// Increments the fib index tracker so no duplicates\n\t\t\t\t\t\t\t// are sent\n\t\t\t\t\t\t\tServer.fib++;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t// Calculates the next even nextLargerRan by creating a new\n\t\t\t\t\t\t// thread to handle that calculation\n\t\t\t\t\t\tcase \"NEXTLARGERRAND\":\n\t\t\t\t\t\t\tnew NextLargeRan(client).run();\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t// Calculates the next prime by creating a new\n\t\t\t\t\t\t// thread to handle that calculation\n\t\t\t\t\t\tcase \"NEXTPRIME\":\n\t\t\t\t\t\t\tnew NextPrime(client).run();\n\t\t\t\t\t\t\t// Increments the prime index tracker so no duplicates\n\t\t\t\t\t\t\t// are sent\n\t\t\t\t\t\t\tServer.prime++;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\t// Displays that the client it was connected to\n\t\t\t// has disconnected\n\t\t\tSystem.out.println(\"Client Disconnected\");\n\t\t}\n\n\t}", "@Override\r\n\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\tRecieveSocketOfClient(SocketForClient);\r\n\t\t\t\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t\t\t\t// TODO: handle exception\r\n\t\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}", "public ReadThread() throws IOException {\n setName(\"TcpHarvester ReadThread\");\n setDaemon(true);\n }", "@SuppressWarnings(\"resource\")\r\n public void run() {\r\n try {\r\n ServerSocket server = new ServerSocket(ConfigurationFile.getClientPort()[clientNumber-1]);\r\n while(true) {\r\n Socket socket =server.accept();\r\n Thread thread = new Thread(new Connection(socket,hashtable));\r\n thread.start();\r\n }\r\n }\r\n catch(IOException e) {\r\n System.out.println(\"Server socket could not be created. Check configuration file.\");\r\n }\r\n }", "public SelectorThread(int i) throws IOException {\r\n super(\"ClientIO-\"+i);\r\n setDefaultUncaughtExceptionHandler(new KillOnExceptionHandler());\r\n selector = Selector.open();\r\n this.id = i;\r\n }", "public void run() {\n\t\twhile (true) {\n\t\t\tSocket clientSocket = null;\n\t\t\ttry {\n\t\t\t\tclientSocket = server.accept();\n\t\t\t\tview.writeLog(\"New client connected\");\n\t\t\t\tClientThread client = new ClientThread(clientSocket, this);\n\t\t\t\t(new Thread(client)).start();\n\t\t\t} catch (IOException e) {e.printStackTrace();}\n\t\t}\n\t}", "@Override\n\tpublic void run() {\n\t while (true) {\n\t try {\n\t\t\t\tsocket = serverSocket.accept();\n\n\t \tClient client = new Client(socket);\n\t \tclientList.add(client);\n\t \tSystem.out.println(\"New user connected.\");\n\n\t \tthreadProc = new Thread(client);\n\t \tthreadProc.start();\n\t \n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t }\n\t}", "public void run() {\n\t\tPrintWriter out = null;\r\n\t\ttry {\r\n\t\t\tout = new PrintWriter(clientSocket.getOutputStream(), true);\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tBufferedReader in = null;\r\n\t\ttry {\r\n\t\t\tin = new BufferedReader(new InputStreamReader(clientSocket.getInputStream()));\r\n\t\t} catch (IOException e1) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te1.printStackTrace();\r\n\t\t}\r\n\t\tString inputLine, outputLine;\r\n\t\tProtocol kkp = new Protocol();\r\n\r\n\t\toutputLine = kkp.processInput(null);\r\n\t\tout.println(outputLine);\r\n\t\t// Leo continuamente e interactuo\r\n\t\ttry {\r\n\t\t\twhile ((inputLine = in.readLine()) != null) {\r\n//\t\t\t\toutputLine = kkp.processInput(inputLine);\r\n\t\t\t\toutputLine = inputLine;\r\n\t\t\t\tout.println(outputLine);\r\n\t\t\t\tif (outputLine.equals(\"Bye.\")){\r\n\t\t\t\t\tbreak;\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (IOException e1) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te1.printStackTrace();\r\n\t\t}\r\n\t\ttry {\r\n\t\t\t// Cierro la entrada y salida\r\n\t\t\tout.close();\r\n\t\t\tin.close();\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} finally{\r\n\t\t\tlog.info(\"Clientes activos: \"+ (taskExecutor.getThreadPoolExecutor().getActiveCount()-1));\t\t\t\r\n\t\t}\r\n\t}", "@Override\n\tpublic void run() {\n\n\t\tServerSocket sSocket;\n\t\ttry {\n\t\t\tsSocket = new ServerSocket(15001);\n\t\t\tSystem.out.println(\"server listening at \" + sSocket.getLocalPort());\n\t\t\twhile (true) {\n\t\t\t\t// this is an unique socket for each client\n\t\t\t\tSocket socket = sSocket.accept();\n\t\t\t\tSystem.out.println(\"Client with port number: \" + socket.getPort() + \" is connected\");\n\t\t\t\t// start a new thread for handling requests from the client\n\t\t\t\tClientRequestHandler requestHandler = new ClientRequestHandler(sketcher, socket, scene, playerMap);\n\t\t\t\tnew Thread(requestHandler).start();\n\t\t\t\t// start a new thread for handling responses for the client\n\t\t\t\tClientResponseHandler responseHandler = new ClientResponseHandler(socket, scene, playerMap);\n\t\t\t\tnew Thread(responseHandler).start();\n\t\t\t}\n\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t}\n\t}", "public void run() {\n\t\ttry {\n\t\t\tout = new PrintWriter(client.getOutputStream(), true);\n\t\t\tin = new BufferedReader(new InputStreamReader(client.getInputStream()));\n\t\t\twhile ((inputLine = in.readLine()) != null) {\n\t\t\t\ts.getMessage(this, inputLine);\n\t\t\t\tSystem.out.println(inputLine);\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.println(\"Couldn't get I/O for the connection to host\");\n\t\t\tSystem.exit(-1);\n\t\t}\n\t}", "public TicketBoothClient()\n {\n Thread myThread = new Thread(this);\n myThread.start();\n }", "public ClientThread(Socket socket){\n this.socket = socket;\n }", "@Override\r\n public void run() {\r\n\r\n try {\r\n is = threadSocket.getInputStream();\r\n isr = new InputStreamReader(is);\r\n br = new BufferedReader(isr);\r\n\r\n String line = new String();\r\n GLogger.debug(Modules.NETWORK, \"Waiting for client {\" + threadSocket.toString() + \"}\");\r\n \r\n while ((!isDone) && (line = br.readLine()) != null) {\r\n \tprocessInput(line);\r\n }\r\n } catch (Exception e) {\r\n\r\n GLogger.error(Modules.NETWORK, \"IO Exception during client communication\");\r\n } finally {\r\n\r\n try {\r\n\t\t\t\t\tbr.close();\r\n\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n \r\n ClientStore.removeClient(threadSocket);\r\n try {\r\n\t\t\t\t\tthreadSocket.close();\r\n\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\r\n }\r\n\r\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\twhile (true) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tSocket socket = serverSocket.accept();\n\t\t\t\t\t\tclients.add(new Client(socket));\n\t\t\t\t\t\tSystem.out.println(\"[클라이언트 접속] \" + socket.getRemoteSocketAddress() + \": \"\n\t\t\t\t\t\t\t\t+ Thread.currentThread().getName());\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t// TODO: handle exception\n\t\t\t\t\t\tif (!serverSocket.isClosed()) {\n\t\t\t\t\t\t\tstopServer();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "private void Thread() {\n\n Thread thread = new Thread ( new Runnable() {\n \n @Override\n public void run() {\n \n String mensagem = \"\";\n\n try {\n \n InputStreamReader isr = new InputStreamReader(socket.getInputStream());\n BufferedReader br = new BufferedReader(isr);\n\n while ((mensagem = br.readLine()) != null) {\n\n enviarMensagem(mensagem);\n }\n } catch ( Exception e ) {\n e.printStackTrace();\n }\n }\n });\n //para iniciar a thread\n thread.start();\n }", "@Override\n public void run() {\n //Create server socket\n try (ServerSocket serverSocket = new ServerSocket(serverPort))\n {\n //In loop to continuously accept connections from client\n //main thread doing this\n while (true)\n {\n System.out.println(\"Waiting for client(s) to connect..\");\n //Socket represents connection to client\n Socket clientSocket = serverSocket.accept();\n System.out.println(\"Accepted connection from \" + clientSocket);\n //Message to write to client when connected via outputstream\n OutputStream outputStream = clientSocket.getOutputStream();\n outputStream.write((\"You have connected. Please write: login <username> to login!\\n\" + \"Write <help> for list of additional commands!\\n\").getBytes());\n //Server worker, handles communication with client socket\n ServerWorker worker = new ServerWorker(this, clientSocket);\n //Adding worker to workerlist\n workerList.add(worker);\n //Starting thread worker\n worker.start();\n }\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void run() {\n // Initial connect request comes in\n Request request = getRequest();\n\n if (request == null) {\n closeConnection();\n return;\n }\n\n if (request.getConnectRequest() == null) {\n closeConnection();\n System.err.println(\"Received invalid initial request from Remote Client.\");\n return;\n }\n\n ObjectFactory objectFactory = new ObjectFactory();\n Response responseWrapper = objectFactory.createResponse();\n responseWrapper.setId(request.getId());\n responseWrapper.setSuccess(true);\n responseWrapper.setConnectResponse(objectFactory.createConnectResponse());\n responseWrapper.getConnectResponse().setId(id);\n\n // Return connect response with our (statistically) unique ID.\n if (!sendMessage(responseWrapper)) {\n closeConnection();\n System.err.println(\"Unable to respond to connect Request from remote Client.\");\n return;\n }\n\n // register our thread with the server\n Server.register(id, this);\n\n // have handler manage the protocol until it decides it is done.\n while ((request = getRequest()) != null) {\n\n Response response = handler.process(this, request);\n\n if (response == null) {\n continue;\n }\n\n if (!sendMessage(response)) {\n break;\n }\n }\n\n // client is done so thread can be de-registered\n if (handler instanceof IShutdownHandler) {\n ((IShutdownHandler) handler).logout(Server.getState(id));\n }\n Server.unregister(id);\n\n // close communication to client.\n closeConnection();\n }", "final public void openConnection() throws IOException {\n // Do not do anything if the connection is already open\n if (isConnected())\n return;\n\n // Create the sockets and the data streams\n try {\n clientSocket = new Socket(host, port);\n output = new DataOutputStream(clientSocket.getOutputStream());\n // input =\n // new BufferedReader(new InputStreamReader(clientSocket.getInputStream(), \"Big5_HKSCS\"));\n input = new DataInputStream(clientSocket.getInputStream());\n } catch (IOException ex)\n // All three of the above must be closed when there is a failure\n // to create any of them\n {\n try {\n closeAll();\n } catch (Exception exc) {\n }\n\n throw ex; // Rethrow the exception.\n }\n\n clientReader = new Thread(this); // Create the data reader thread\n readyToStop = false;\n clientReader.start(); // Start the thread\n }", "private void runServer() {\n while(true) {\n // This is a blocking call and waits until a new client is connected.\n Socket clientSocket = waitForClientConnection();\n handleClientInNewThread(clientSocket);\n } \n }", "public void run() {\n try {\n // accepts the connection request.\n SelectableChannel peerHandle = this._handle.accept();\n if (peerHandle != null) {\n // now, create a service handler object to serve the\n // the client.\n ServiceHandler handler =\n this._factory.createServiceHandler(\n this._reactor,\n peerHandle);\n if (handler != null)\n // give the service handler object a chance to initialize itself.\n handler.open();\n }\n } catch (IOException ex) {\n MDMS.ERROR(ex.getMessage());\n }\n }", "public void run() {\n\n // Start threadPool\n for (int i = 0; i < nbThreads; i++) {\n ThreadClient threadClient = new ThreadClient(listSocketDevice, String.valueOf(i), handler);\n arrayThreadClients.add(threadClient);\n threadClient.start();\n }\n\n while (true) {\n try {\n if (v) Log.d(TAG, \"Server is waiting on accept...\");\n ISocket isocket = acceptISocket();\n\n if (v) Log.d(TAG, isocket.getRemoteSocketAddress() + \" accepted\");\n listSocketDevice.addSocketClient(isocket);\n\n // Notify handler\n handler.obtainMessage(Service.CONNECTION_PERFORMED,\n isocket.getRemoteSocketAddress()).sendToTarget();\n\n } catch (SocketException e) {\n handler.obtainMessage(Service.LOG_EXCEPTION, e).sendToTarget();\n break;\n } catch (IOException e) {\n handler.obtainMessage(Service.LOG_EXCEPTION, e).sendToTarget();\n break;\n }\n }\n }", "public void run() {\r\n try {\r\n this.is = new ObjectInputStream(clientSocket.getInputStream());\r\n this.os = new ObjectOutputStream(clientSocket.getOutputStream());\r\n while (this.readCommand()) {}\r\n } \r\n catch (IOException e) \r\n {\r\n \tSystem.out.println(\"XX. There was a problem with the Input/Output Communication:\");\r\n e.printStackTrace();\r\n }\r\n }", "public void run() {\n readFromClient();\n }", "@Override\r\n\tpublic void run() {\n\t\trunClient();\r\n\t}", "public ClientThread(String ip, String port){ // initiate with IP and port\n this.Port = port;\n this.IP = ip;\n }", "public void ListenThread() \n {\n Thread t = new Thread(new IncomingReader(writer, reader));\n t.start();\n \n }", "public void serve() throws IOException {\n int req = 0;\n while (req<maxreq) {\n //block intil a client connects\n final Socket socket = serversocket.accept();\n //create a new thread to handle the client\n\n Thread handler = new Thread(new Runnable() {\n public void run() {\n try {\n try {\n handle(socket);\n } finally {\n socket.close();\n }\n } catch (IOException ioe) {\n // this exception wouldn't terminate serve(),\n // since we're now on a different thread, but\n // we still need to handle it\n ioe.printStackTrace();\n }\n }\n });\n // start the thread\n handler.start();\n req++;\n }\n\n }", "public WorkerRunnable(Socket clientSocket, int port) throws IOException{\n\t\tthis.clientSocket = clientSocket;\n\t\tinFromClient = new BufferedReader(new InputStreamReader (clientSocket.getInputStream()));\n\t\tout = new PrintWriter(clientSocket.getOutputStream());\n\t\tthis.port = port;\n\n\t}", "public static void main(String[] args) throws IOException\n {\n Scanner sc=new Scanner(System.in);\n System.out.print(\"Enter Port No:\");\n int port=sc.nextInt();\n ServerSocket server_sokt=new ServerSocket(port); //Server Created \n System.out.println(\"Server Hosted at Port \"+port);\n\n while(true)\n {\n Socket socket_object=null; // Initialize Listening Socket\n try \n {\n socket_object=server_sokt.accept(); //Accept Connection Request from Client\n cnt+=1; \n DataInputStream inpt=new DataInputStream(socket_object.getInputStream());\n // String name=\"Client\"+cnt; // I can also put names like client1,client2 ......\n String name=inpt.readUTF(); // Read Name of Client \n System.out.println(\"Client \"+name+\" Connected\"); \n Thread new_client_thread=new ClientHandle(socket_object,inpt,name); // Creating a thread for a client\n new_client_thread.start(); //starting thread\n } \n catch (Exception e)\n {\n socket_object.close();\n e.printStackTrace();\n break;\n }\n }\n server_sokt.close();\n sc.close();\n }", "protected void serveClient() {\r\n\t\tif (lineIn == null || lineOut == null) {\r\n\t\t\tSystem.err.printf(\"I/O has not been set up.%n\");\r\n\t\t} else {\r\n\t\t\ttry {\r\n\t\t\t\tString clientRequest;\r\n\t\t\t\tStringTokenizer args;\r\n\r\n\t\t\t\t// control loop, receiving client requests\r\n\t\t\t\twhile (!exitRecieved) {\r\n\t\t\t\t\t// PRESENT PROMPT\r\n\t\t\t\t\tsendMessage(PROMPT);\r\n\r\n\t\t\t\t\t// ACCEPT & PROCESS INPUT\r\n\t\t\t\t\tclientRequest = receiveMessage();\r\n\t\t\t\t\targs = new StringTokenizer(clientRequest);\r\n\t\t\t\t\tprocessCommand(args);\r\n\t\t\t\t}\r\n\r\n\t\t\t} catch (IOException ioe) {\r\n\t\t\t\tSystem.err.printf(\"IO Error receiving client input: %s%n\", ioe);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "ServerThread(Server srv, Socket s, IProtocolHandler h) throws IOException {\n server = srv;\n fromClient = new BufferedReader(new InputStreamReader(s.getInputStream()));\n toClient = new PrintWriter(s.getOutputStream(), true);\n client = s;\n handler = h;\n id = UUID.randomUUID().toString();\n }", "public ClientThread(String user, String host, String port)\n\t{\n\t\tsuper();\n\t\tthis._myName = user;\n\t\tthis._hostname = host;\n\t\tthis._portnum = port;\n\t}", "public void start() throws IOException{\n\t\tSystem.out.println(\"starting new chatclient with socket ID ...\"); //socketID is currently determined in chatserverthread so inaccessible\n\t\tstrOut = new DataOutputStream(new BufferedOutputStream (socket.getOutputStream()) );\n\t\tconsole = new BufferedReader(new InputStreamReader(System.in)); //sets up environment for client msgs\n\t\n\t\t//Note: Later, Rather than reading in the console, data must be retrieved consistently from the GUI\n\t\t//Try again\n\t\t\n\t\tif(thread == null){\n\t\t\tclient = new ChatClientThread(this, socket);\n\t\t\tthread = new Thread(this);\n\t\t\tthread.start();\n\t\t\t//Where should this go?\n\t\t\t//Is there another way to start a gui for each new client?\n\t\t\t//Does the run method in here interfere with the run method below?\n\t\t}\n\t\t\n\t}", "private void handleClient() {\n\t\t//Socket link = null;\n\t\tRequestRecord reqRec = new RequestRecord();\n\t\tResponder respondR = new Responder();\n\t\t\n\t\ttry {\n\t\t\t// STEP 1 : accepting client request in client socket\n\t\t\t//link = servSock.accept(); //-----> already done in *ThreadExecutor*\n\t\t\t\n\t\t\t// STEP 2 : creating i/o stream for socket\n\t\t\tScanner input = new Scanner(link.getInputStream());\n\t\t\tdo{\n\t\t\t\t//PrintWriter output = new PrintWriter(link.getOutputStream(),true);\n\t\t\t\t//DataOutputStream ds = new DataOutputStream(link.getOutputStream());\n\t\t\t\tint numMsg = 0;\n\t\t\t\tString msg = input.nextLine();\n\t\t\t\t\n\t\t\t\t//to write all requests to a File\n\t\t\t\tFileOutputStream reqFile = new FileOutputStream(\"reqFile.txt\");\n\t\t\t\tDataOutputStream dat = new DataOutputStream(reqFile);\n\t\t\t\t\n\t\t\t\t// STEP 4 : listening iteratively till close string send\n\t\t\t\twhile(msg.length()>0){\n\t\t\t\t\tnumMsg++;\n\t\t\t\t\tdat.writeChars(msg + \"\\n\");\n\t\t\t\t\tSystem.out.println(\"\\nNew Message Received\");\n\t\t\t\t\tif(reqRec.setRecord(msg)==false)\n\t\t\t\t\t\tSystem.out.println(\"\\n-----\\nMsg#\"+numMsg+\": \"+msg+\":Error with Request Header Parsing\\n-----\\n\");\n\t\t\t\t\telse\n\t\t\t\t\t\tSystem.out.println(\"Msg#\" + numMsg + \": \" + msg);\n\t\t\t\t\tmsg = input.nextLine();\n\t\t\t\t};\n\t\t\t\tdat.writeChars(\"\\n-*-*-*-*-*-*-*-*-*-*-*-*-*-\\n\\n\");\n\t\t\t\tdat.close();\n\t\t\t\treqFile.close();\n\t\t\t\tSystem.out.println(\"---newEST : \" + reqRec.getResource());\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"\\n==========Send HTTP Response for Get Request of\\n\"+reqRec.getResource()+\"\\n***********\\n\");\n\t\t\t\tif(respondR.sendHTTPResponseGET(reqRec.getResource(), link)==true)//RES, ds)==true)\n\t\t\t\t\tSystem.out.println(\"-----------Resource Read\");\n\t\t\t\tSystem.out.println(\"Total Messages Transferred: \" + numMsg);\n\t\t\t\t//link.close();\n\t\t\t\tif(reqRec.getConnection().equalsIgnoreCase(\"Keep-Alive\")==true && respondR.isResourceExisting(reqRec.getResource())==true)\n\t\t\t\t\tlink.setKeepAlive(true);\n\t\t\t\telse\n\t\t\t\t\tbreak;\n\t\t\t}while(true);\n\t\t\tSystem.out.print(\"Request Link Over as Connection: \" + reqRec.getConnection());\n\t\t} catch (IOException e) {\n\t\t\tif(link.isClosed())\n\t\t\t\tSystem.out.print(\"\\n\\nCritical(report it to developer):: link closed at exception\\n\\n\");\n\t\t\tSystem.out.println(\"Error in listening.\\n {Error may be here or with RespondR}\\nTraceString: \");\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\t// STEP 5 : closing the connection\n\t\t\tSystem.out.println(\"\\nClosing Connection\\n\");\n\t\t\ttry {\t\t\t\t\n\t\t\t\tlink.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.out.println(\"Unable to disconnect.\\nTraceString: \");\n\t\t\t\te.printStackTrace();\n\t\t\t\tSystem.exit(1);\n\t\t\t}\n\t\t}/*ends :: try...catch...finally*/\n\t\t\n\t}", "public ChatServer()\n {\n try\n {\n ServerSocket socketServidor = new ServerSocket(PORT);\n while (true)\n {\n Socket client = socketServidor.accept();\n Runnable nuevoCliente = new ClientThread(chat, client);\n Thread thread = new Thread(nuevoCliente);\n thread.start();\n }\n } catch (Exception e)\n {\n e.getMessage();\n }\n }", "public ThreadedConnectionHandler(Socket clientSocket) {\r\n this.clientSocket = clientSocket;\r\n //Set up a service object to get the current date and time\r\n this.theDateService = new DateTimeService();\r\n //this.lngNumberOfReadings = 0;\r\n this.theTemperatureService = new TemperatureService();\r\n }", "@Override\n\tpublic void run()\n\t{\n\t\tSocket clientSocket;\n\t\tMemoryIO serverIO;\n\t\t// Detect whether the listener is shutdown. If not, it must be running all the time to wait for potential connections from clients. 11/27/2014, Bing Li\n\t\twhile (!super.isShutdown())\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\t// Wait and accept a connecting from a possible client residing on the coordinator. 11/27/2014, Bing Li\n\t\t\t\tclientSocket = super.accept();\n\t\t\t\t// Check whether the connected server IOs exceed the upper limit. 11/27/2014, Bing Li\n\t\t\t\tif (MemoryIORegistry.REGISTRY().getIOCount() >= ServerConfig.MAX_SERVER_IO_COUNT)\n\t\t\t\t{\n\t\t\t\t\ttry\n\t\t\t\t\t{\n\t\t\t\t\t\t// If the upper limit is reached, the listener has to wait until an existing server IO is disposed. 11/27/2014, Bing Li\n\t\t\t\t\t\tsuper.holdOn();\n\t\t\t\t\t}\n\t\t\t\t\tcatch (InterruptedException e)\n\t\t\t\t\t{\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// If the upper limit of IOs is not reached, a server IO is initialized. A common Collaborator and the socket are the initial parameters. The shared common collaborator guarantees all of the server IOs from a certain client could notify with each other with the same lock. Then, the upper limit of server IOs is under the control. 11/27/2014, Bing Li\n//\t\t\t\tserverIO = new MemoryIO(clientSocket, super.getCollaborator(), ServerConfig.COORDINATOR_PORT_FOR_MEMORY);\n\t\t\t\tserverIO = new MemoryIO(clientSocket, super.getCollaborator());\n\t\t\t\t// Add the new created server IO into the registry for further management. 11/27/2014, Bing Li\n\t\t\t\tMemoryIORegistry.REGISTRY().addIO(serverIO);\n\t\t\t\t// Execute the new created server IO concurrently to respond the client requests in an asynchronous manner. 11/27/2014, Bing Li\n\t\t\t\tsuper.execute(serverIO);\n\t\t\t}\n\t\t\tcatch (IOException e)\n\t\t\t{\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public void listen() {\n\t\tthread(\"NetworkClientInput\", () -> {\n\t\t\twhile (true) {\n\t\t\t\ttry {\n\t\t\t\t\tString str = in.readLine();\n\t\t\t\t\t\n\t\t\t\t\tif (str == null)\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(\"[CLIENT] Received: \" + str);\n\t\t\t\t\ttry {\n\t\t\t\t\t\thandle(str);\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tSystem.err.println(\"[Client] Error handling input\");\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tSystem.out.println(\"[Client] Disconnected.\");\n\t\t\t\t\tconnected = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tconnected = false;\n\t\t\texecutor.shutdown();\n\t\t\tsocket.close();\n\t\t});\n\t}", "public void run(){\n\t\t\tObjectReader readerClient = new ObjectReader(in, clientInetAddress);\r\n\t\t\treaderClient.start();\r\n\t\t\t\r\n\t\t\t// Constantly checks msgToSend for messages and sends them\r\n\t\t\twhile(true){\r\n\t\t\t\ttry{\r\n\t\t\t\t\t// Send message\r\n\t\t\t\t\tif(msgToSend.length() != 0){\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tout.writeObject(new DataObject(DataObject.STRING, msgToSend.toString()));\r\n\t\t\t\t\t\tout.flush();\r\n\t\t\t\t\t\tmsgToSend.setLength(0);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\tcatch(IOException ioe){\r\n\t\t\t\t\tioe.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}", "public static void main(String[] args) throws IOException {\n ServerSocket server = new ServerSocket(8080);\n ExecutorService service = Executors.newCachedThreadPool();\n while (true) {\n Socket socket = server.accept();\n System.out.println(\"Client accept\");\n service.submit(new ClientSession(socket));\n }\n\n }", "private void runProgram() {\n\n try {\n ServerSocket ss = new ServerSocket(8088);\n Dispatcher dispatcher = new Dispatcher(allmsg,allNamedPrintwriters,clientsToBeRemoved);\n Cleanup cleanup = new Cleanup(clientsToBeRemoved,allClients);\n cleanup.start();\n dispatcher.start();\n logger.initializeLogger();\n\n while (true) {\n Socket client = ss.accept();\n InputStreamReader ir = new InputStreamReader(client.getInputStream());\n PrintWriter printWriter = new PrintWriter(client.getOutputStream(),true);\n BufferedReader br = new BufferedReader(new InputStreamReader(client.getInputStream()));\n String input = br.readLine();\n System.out.println(input);\n String name = input.substring(8);\n logger.logEventInfo(name + \" has connected to the chatserver!\");\n allClients.put(name,client);\n allNamedPrintwriters.put(name,printWriter);\n ClientHandler cl = new ClientHandler(name,br, printWriter, allmsg);\n Thread t = new Thread(cl);\n t.start();\n allmsg.add(\"ONLINE#\");\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void run(){\n while(thread != null){\n try{\n clientSocket = serverSocket.accept();\n System.out.println(\"Client Connected\");\n ClientHandler client = new ClientHandler(clientSocket, clientArray, this);\n clientArray.add(client);\n client.start();\n currentItem = item.get(Index);\n displayItem();\n }\n\n catch(IOException ioExc){\n ioExc.printStackTrace();\n }\n //Starts the time and rests it\n if(newTimer){\n startTimer();\n newTimer = false;\n }\n }\n }", "public void run(){\r\n\r\n try{\r\n InputStreamReader isr = new InputStreamReader(inputStream);\r\n BufferedReader br = new BufferedReader(isr);\r\n String line = null;\r\n\r\n while((line = br.readLine()) != null){\r\n System.out.println(\"CLIENT: \" + type + \">\" + line);\r\n }\r\n\r\n }catch (IOException ioe){\r\n ioe.printStackTrace();\r\n //TODO - log this error and handle it like a boss\r\n }\r\n }", "public void run() {\n\t\tMisc.log(\"Server waiting for client...\");\r\n\r\n\t\ttry {\r\n\t\t\tserver = socket.accept();\r\n\t\t\tMisc.log(server.getRemoteSocketAddress() + \" has connected.\");\r\n\t\t\t\r\n\t\t\t//get the input and output streams which are used to send and receive messages from the client\r\n\t\t\tin = new DataInputStream(server.getInputStream());\r\n\t\t\tout = new DataOutputStream(server.getOutputStream());\r\n\t\t\t\r\n\t\t\t//send host's username to the connected client by creating a hello packet with the username\r\n\t\t\tsendData(new HelloPacket(serverHost.getUsername()).getData());\r\n\t\t\t\r\n\t\t} catch(IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\t//server is listening until the serverRunning flag is set to false\r\n\t\twhile(serverRunning) {\t\t\t\r\n\t\t\t//construct packet object to save received data into\r\n\t\t\tbyte[] data = new byte[1024];\r\n\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\t//wait to receive a packet\r\n\t\t\t\tin.read(data);\r\n\t\t\t\t//handle packet\r\n\t\t\t\tpacketHandler.handlePacket(data);\r\n\t\t\t} catch(Exception e) {\r\n\t\t\t\tMisc.log(\"Exception in server.\");\r\n\t\t\t\tserverRunning = false;\r\n\t\t\t}\r\n\t\t}\r\n\t\t//we are done and it has been requested that the server turns off\r\n\t\tcloseServer();\r\n\t\t\r\n\t\t//end of thread\r\n\t}", "public synchronized void run() {\n try {\n String data = in.readUTF();\n String response = FileRequestService.handleRequest(data, sharedWriteQueueService);\n out.writeUTF(response);\n System.out.println(\"server wrote:\" + response);\n } catch(EOFException e) {\n System.out.println(\"EOF:\" + e.getLocalizedMessage() + \" \" + e);\n } catch(IOException e) {\n System.out.println(\"IO:\" + e.getLocalizedMessage() + \" \" + e);\n } finally { \n try {\n clientSocket.close();\n } catch (IOException e){\n System.out.println(\"close:\" + e.getMessage());\n }\n }\n }", "public ClientWorker(ServerSocketChannel serverChannel){\n this.serverChannel = serverChannel;\n }", "@Override\n\tpublic void run(){\n\t\tInetAddress IPAddress = serverTcpSocket.getInetAddress();\n\t\tfor (ClientObj c: clients)\n\t\t\tif (c.getId() == client.getId()){\n\t\t\t\tSystem.out.print(IPAddress + \" Client already connected!\");\n\t\t\t\treturn;\n\t\t\t}\n\t\ttry{\n\t\t\t// Check handshake received for correctness\n\t\t\t//(connect c->s) [herader | \"JUSTIN\\0\" | connection port] (udp)\n\t\t\t//(connect response s->c) [header | client id | port] (udp)\n\t \n\t // open the connection\n\t\t clientSocket = null;\n\t\t Socket clientListener = null;\n\t\t // wait for client connection on tcp port\n\t\t //serverTcpSocket.setSoTimeout(5000);\n\t \tSystem.out.println (\" Waiting for tcp connection.....\");\n\t \tclientSocket = serverTcpSocket.accept();\n\t \tclientListener = serverTcpSocket.accept();\n\t \tclient.setListenerSocket(clientListener);\n\t\t\tIPAddress = clientSocket.getInetAddress();\n\t\t\tint recv_port = clientSocket.getPort();\n\t\t\tSystem.out.println(IPAddress + \": Client connected @ port \" + recv_port);\n\n\t\t // handle tcp connection\n\t\t\tclientSocket.setSoTimeout(Constants.ACK_TIMEOUT);\n\t\t out = new BufferedOutputStream(clientSocket.getOutputStream());\n\t\t\tin = new BufferedInputStream(clientSocket.getInputStream());\n\t\t\tclient.setAddress(clientSocket.getInetAddress());\n\t\t\tclient.setPort(clientSocket.getPort());\n\t\t clients.add(client);\n\t\t\t\n\t\t // handle requests\n\t\t\twhile (!shutdown_normally) {\n\t\t\t\t// read just the header, then handle the req based on the info in the header\n\t\t\t\tif ((buf = Utility.readIn(in, Constants.HEADER_LEN)) == null)\n\t\t\t\t\tbreak;\n\t\t\t\tint flag = buf.getInt(0);\n\t\t\t\tint len2 = buf.getInt(4);\n\t\t\t\tint id = buf.getInt(8);\n\t\t\t\t\n\t\t\t\t// check for correctness of header\n\t\t\t\t\n\t\t\t\tif (flag < Constants.OPEN_CONNECTION || \n\t\t\t\t\t\tflag > Constants.NUM_FLAGS || \n\t\t\t\t\t\tid != client.getId() || \n\t\t\t\t\t\tlen2 < 0){\n\t\t\t\t\tout.close(); \n\t\t\t\t\tin.close(); \n\t\t\t\t\tclientSocket.close(); \n\t\t\t\t\tserverTcpSocket.close();\n\t\t\t\t\tclients.remove(client);\n\t\t\t\t\tthrow new RuntimeException(\n\t\t\t\t\t\t\t\"Connection - FAILURE! (malformed header)\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// read payload\n\t\t\t\tif ((buf = Utility.readIn(in, Utility.getPaddedLength(len2))) == null)\n\t\t\t\t\tthrow new IOException(\"read failed.\");\n\t\t\t\t// update address (necessary?)\n\t\t\t\tclients.get(clients.indexOf(client)).setAddress(clientSocket.getInetAddress());\n\t\t\t\tclient.setAddress(clientSocket.getInetAddress());\n\t\t\t\tswitch (flag){\n\t\t\t\t\tcase Constants.ACK:\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase Constants.VIEW_REQ:\n\t\t\t\t\t\tSystem.out.println(client.getAddress() + \n\t\t\t\t\t\t\t\t\": Processing view request...\");\n\t\t\t\t\t\tViewFiles(buf);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase Constants.DOWNLOAD_REQ:\n\t\t\t\t\t\tSystem.out.println(client.getAddress() + \n\t\t\t\t\t\t\t\t\": Processing download request...\");\n\t\t\t\t\t\tDownload(buf);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase Constants.UPLOAD_REQ:\n\t\t\t\t\t\tSystem.out.println(client.getAddress() + \n\t\t\t\t\t\t\t\t\": Processing upload request...\");\n\t\t\t\t\t\tUpload(buf);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase Constants.DOWNLOAD_ACK:\n\t\t\t\t\t\tSystem.out.println(client.getAddress() + \n\t\t\t\t\t\t\t\t\": Processing download acknowledgment...\");\n\t\t\t\t\t\tDownloadCompleted(buf);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase Constants.CLOSE_CONNECTION:\n\t\t\t\t\t\tshutdown_normally = true;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t// close all open sockets\n\t\t out.close(); \n\t\t in.close(); \n\t\t clientSocket.close(); \n\t\t serverTcpSocket.close();\n\t\t} catch (SocketTimeoutException e) {\n\t\t\tSystem.err.println(IPAddress + \": Timeout waiting for response.\");\n\t\t} catch (UnknownHostException e) {\n\t\t\t// IPAdress unknown\n\t\t\tSystem.err.println(\"Don't know about host \" + IPAddress);\n\t\t} catch (IOException e) {\n\t\t\t// Error in communication\n\t\t\tSystem.err.println(\"Couldn't get I/O for the connection to \" +\n\t\t\t\t\tIPAddress);\n\t\t} catch (RuntimeException e){\n\t\t\t// Malformed Header or payload most likely\n\t\t\tSystem.err.println(IPAddress + \": Connection - FAILURE! (\" + e.getMessage() + \")\");\n\t\t} finally {\n\t\t\t// remove this client from active lists, close all (possibly) open sockets\n\t\t\tSystem.out.println(IPAddress + \": Connection - Closing!\");\n\t\t\tclients.remove(client);\n\t\t\ttry {\n\t\t\t\tSocket clientConnection = client.getListenerSocket();\n\t\t\t\tOutputStream out_c = new BufferedOutputStream(clientConnection.getOutputStream());\n\t\t\t\tbuf = Utility.addHeader(Constants.CLOSE_CONNECTION, 0, client.getId());\n\t\t\t\tout_c.write(buf.array());\n\t\t\t\tout_c.flush();\n\t\t\t\tout_c.close();\n\t\t\t\tclientConnection.close();\n\n\t\t\t\tif (out != null)\n\t\t\t\t\tout.close();\n\t\t\t\tif (in != null)\n\t\t\t\t\tin.close();\n\t\t\t\tif (!clientSocket.isClosed())\n\t\t\t\t\tclientSocket.close();\n\t\t\t\tif (!serverTcpSocket.isClosed())\n\t\t\t\t\tserverTcpSocket.close();\n\t\t\t} catch (IOException e){\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n }", "public void run() {\r\n try {\r\n while (true) {\r\n Socket serverClient = serverSocket.accept(); //server accept the contentServerId connection request\r\n ServerClientThread sct = new ServerClientThread(serverClient, lamportClock, feeds, timers); //send the request to a separate thread\r\n sct.start();\r\n }\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n }", "public ReadThreadClient(NetworkUtil nu)//, int id , String address, BufferSize bz)\n {\n //this.id=id ;\n //this.address=address;\n //System.out.println(\"Server read cnstructor\");\n //this.map = map ;\n thread = new Thread(this);\n this.nu = nu ;\n //this.bz=bz ;\n\n thread.start();\n //System.out.println(\"Server read thread started\");\n }", "private void startClientStatisticsThread() {\r\n\t\tnew Thread(clientStatistics).start();\r\n\t}", "public Client(){\r\n\t\t// ask the user for a host, port, and user name\r\n\t\tString host = JOptionPane.showInputDialog(\"Host address:\");\r\n\t\t\r\n\t\tString port = JOptionPane.showInputDialog(\"Host port:\");\r\n\t\tboolean shouldRepeat = true;\r\n\t\tint portNum = 0;\r\n\t\twhile(shouldRepeat){\r\n\t\t\ttry{\r\n\t\t\tportNum = Integer.parseInt(port);\r\n\t\t\tshouldRepeat = false;\r\n\t\t\t}\r\n\t\t\tcatch(NumberFormatException e){\r\n\t\t\t\tport = JOptionPane.showInputDialog(\"Host port:\");\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tclientName = JOptionPane.showInputDialog(\"User name:\");\r\n\t\t\r\n\t\tif (host == null || port == null || clientName == null)\r\n\t\t\treturn;\r\n\t\t\r\n\t\ttry{\r\n\t\t\t// Open a connection to the server\r\n\t\t\tserver = new Socket(host, portNum);\r\n\t\t\tout = new ObjectOutputStream(server.getOutputStream());\r\n\t\t\tin = new ObjectInputStream(server.getInputStream());\r\n\t\t\t\r\n\t\t\tout.writeObject(clientName);\r\n\t\t\t\r\n\t\t\tsetupGUI();\r\n\t\t\t\r\n\t\t\t// start a thread for handling server events\r\n\t\t\tnew Thread(new ServerHandler()).start();\r\n\t\t\t\r\n\t\t}catch(Exception e){\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public void creatSocket() {\n\n try {\n\n server = new ServerSocket(PORT);\n\n mExecutorService = Executors.newCachedThreadPool();\n\n while (true) {\n\n Socket client = server.accept();\n\n mExecutorService.execute(new SockectService(client));\n\n Log.d(TAG, \"Creating Socket\" );\n\n }\n\n } catch (Exception e) {\n\n e.printStackTrace();\n\n }\n\n }", "public void run() // cette methode doit obligatoirement etre implementuee a cause de l'interface Runnable\n\t{\n\t\tSocket sockCLI;\n\t\ttry\n\t\t{\n\t\t\tServerSocket socketEcoute = new ServerSocket(portCLI);\n\t\t\tSystem.out.println(\"----------------------------------------\");\n\t\t\tSystem.out.println(\"Attend client CLI sur le port : \"+ portCLI);\n\t\t\tSystem.out.println(\"----------------------------------------\");\n\t\t\tlogger.log(Level.WARNING,\"Attente client CLI sur le port: \" + portCLI);\n\t\t while (true)\n\t\t {\n\t\t\t\tSocket sc = socketEcoute.accept(); // un client se connecte, un nouveau thread client est lance\n\t\t\t\tlogger.log(Level.WARNING,\"Nouveau client CLI\");\n \t\t\tlogger.log(Level.INFO,\"IP client CLI: \" +sc.getRemoteSocketAddress());\n\t\t\t\tif (nbCLI == 0)\n\t\t\t\t{\n \t\t\t\tlogger.log(Level.INFO,\"timeout actif\");\n\t\t\t\t\tsc.setSoTimeout(180*1000);\n\t\t\t\t\t_clientCLI = new CLI_TCP_Thread(sc, _socketServ);\n\t\t\t\t\t_clientCLI.start();\n\t\t\t\t\tnbCLI = 1;\n\t\t\t\t} else {\n \t\t\t\tlogger.log(Level.WARNING,\"un client est deja connecte - fermeture de la connection\");\n \t\t\t\tPrintWriter output = new PrintWriter(sc.getOutputStream());\n\t\t\t\t\toutput.println(\"Server CLI-> Connection refusée : un client est déjà connecté!\");\n\n \t\t\t\ttry \n\t \t\t\t{\n\t \t\t\t\toutput.close();\n\t\t\t \t\tsc.close();\n\t\t\t\t\t\tSystem.out.println (\"CLI\" + Thread.currentThread() + \" : Logout !!! \");\n\t \t\t\t\t} \n\t \t\t\t\tcatch (IOException e)\n\t \t\t\t{\n\t \t\t\t}\n\t\t\t\t}\n \t\t\t\n\t\t }\n\t\t}\n\t catch (Exception e)\n\t\t{\n\t\t e.printStackTrace();\n\t\t}\n\t}", "public void start()\n {\n isRunning = true;\n try\n {\n //metoden opretter en ny socket for serveren på den valgte port\n ServerSocket serverSocket = new ServerSocket(port);\n //mens serveren kører venter den på en client\n while (isRunning)\n {\n serverDisplay(\"Serveren venter på clienter på port: \" + port);\n //accepterer clienten på socketen\n Socket socket = serverSocket.accept();\n\n if (!isRunning)\n {\n break;\n }\n // laver en ny thread til clienten med socketen der er blevet accepteret\n HandleClientThread handleClientThread = new HandleClientThread(socket);\n\n // her blever tråden tilføjet til arryet af clienter\n clientThreadArrayList.add(handleClientThread);\n // Starer handleclient tråden som håndtere clienter\n handleClientThread.start();\n }\n try\n {\n //Her lukker serveren socketen\n serverSocket.close();\n for (int i = 0; i < clientThreadArrayList.size() ; i++)\n {\n HandleClientThread hct = clientThreadArrayList.get(i);\n try\n {\n hct.inputStream.close();\n hct.outputStream.close();\n hct.socket.close();\n }\n catch (IOException e)\n {\n System.out.println(\"Uknowen command \" + e);\n }\n }\n }\n catch (Exception e)\n {\n serverDisplay(\"Kunne ikke lukke serveren og clienterne pga. \" + e);\n }\n }\n catch (IOException e)\n {\n String message = dateFormat.format(new Date()) + \"Fejl på ny server socket\" + e + \"\\n\";\n serverDisplay(message);\n }\n }", "public void run() {\r\n String request = \"\";\r\n\r\n try {\r\n /**\r\n * The ClientConnectionHandler constantly waits for requests from the client. Requests are the initial message\r\n * that the client sends. This initial message determines how the server receives the messages that come after\r\n * it (if there are any).\r\n */\r\n while (isOpen) {\r\n request = readMessage();\r\n processRequest(request);\r\n }\r\n clientSocket.close();\r\n System.out.println(\"Client #\" + clientNumber + \" has closed\");\r\n } catch (Exception e) {}\r\n }", "public Client(int myNodeId, int myPortNo, Quorumclients quorum, Requestque msgQueue, Socket client, Fileinput file, Clock clock){\n\t\tthis.myNodeId = myNodeId;\n\t\tthis.myPortNo = myPortNo;\n\t\tthis.quorum = quorum;\n\t\tthis.q = msgQueue;\n\t\tthis.client = client;\n\t\tthis.file = file;\n\t\tthis.clock = clock;\n\t\tmsgFromClient = null;\n\t\t\n\t\t//Thread creation\n\t\tt = new Thread(this, \"Client-\"+threadNo++);\n\t\tt.start();\n\t}", "NetThread(){}", "@Override\n public void run() {\n while (true) {\n try {\n\n Socket clientSocket = serverSock.accept();\n Client user = new Client(this, clientSocket);\n\n } catch (IOException ex) {\n Logger.getLogger(RSAServer.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n }", "@Override\n\tpublic void run() {\n\t\tlog(\"Running on port \" + serverSocket.getLocalPort());\n\t\twhile(true) {\n\t\t\ttry {\n\t\t\t\t// accept incomming connections\n\t\t\t\tSocket clientSocket = serverSocket.accept();\n\t\t\t\t//log(\"New connection from \" + client_socket.getRemoteSocketAddress());\n\t\t\t\t// create a new connection handler and run in a separate thread\n\t\t\t\tTrackerRequestHandler handler = new TrackerRequestHandler(this, clientSocket);\n\t\t\t\texecutor.execute(handler);\n\t\t\t} catch (IOException e) {\n\t\t\t\tlog(\"Problem accepting a connection\");\n\t\t\t}\n\t\t}\n\t}", "public void start() throws IOException {\n ThreadExecutor.registerClient(this.getClass().getName());\n tcpServer.startServer();\n }", "@Override\n\tpublic void run()\n\t{\n\t\tif (MyServer.flag)\n\t\t{\n\t\t\tTool.getPrintWriter()\n\t\t\t\t\t.println(\"Accept : 3D is online . \\nServer : \" + MyServer.getU3DSocket().size() + \" Connect . \");\n\t\t\twhile (true)\n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tThread.sleep(2000);\n\t\t\t\t} catch (InterruptedException e)\n\t\t\t\t{\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// return;\n\t\t} else\n\t\t{\n\t\t\tTool.getPrintWriter().println(\"Accept : Server : \" + MyServer.getSocketList().size() + \" Connect . \");\n\t\t\tTool.getPrintWriter().println(\"Accept : 用户端非3d连接.\");\n\t\t\tTool.getPrintWriter().println(\"Accept : 测试是否空 : \" + (client == null));\n\t\t\tnew Client(client);\n\t\t}\n\t}", "public synchronized void listen() {\n// synchronized (this) {\n try {\n String input;\n if ((input = in.readLine()) != null) {\n parseCommand(input);\n }\n } catch (IOException ex) {\n Logger.getLogger(ClientIO.class.getName()).log(Level.SEVERE, null, ex);\n }\n// }\n }", "public void run() {\n try {\n socketIn = new BufferedReader(new InputStreamReader(socket.getInputStream()));\n socketOut = new ObjectOutputStream(socket.getOutputStream());\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n readFromClient();\n pingToClient();\n }", "public PingClient() throws IOException {\n selector = Selector.open();\n Connector connector = new Connector();\n Printer printer = new Printer();\n connector.start();\n printer.start();\n receiveTarget();\n }", "@Override\r\n\tpublic void run() {\n\t\ttry {\r\n\t\t\tObjectInputStream objectInput = new ObjectInputStream(\r\n\t\t\t\t\tclsock.getInputStream());\r\n\t\t\tObject object = objectInput.readObject();\r\n\t\t\ttask = (String) object;// reading URLs from client\r\n\t\t} catch (ClassNotFoundException e) {\r\n\t\t\tSystem.out.println(\"The task Batch has not come from the Client\");\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\tString clientId = task.split(\",\")[0];\r\n\r\n\t\tRemoteScheduler remoteScheduler = new RemoteScheduler(clientId,\r\n\t\t\t\ttask);\r\n\t\tremoteScheduler.sendTaskToQueue();\r\n\t\tExecutorService remoteService = Executors.newFixedThreadPool(1);\r\n\t\ttry {\r\n\t\t\tFuture<String> remoteResult = remoteService\r\n\t\t\t\t\t.submit(remoteScheduler);\r\n\t\t\tString clientResult = remoteResult.get();\r\n\t\t\tObjectOutputStream outputStream = new ObjectOutputStream(\r\n\t\t\t\t\tclsock.getOutputStream());\r\n\t\t\toutputStream.writeObject(clientResult);\r\n\t\t\toutputStream.close();\r\n\t\t} catch (InterruptedException | ExecutionException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\ttry {\r\n\t\t\tclsock.close();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t}", "private void startClient(){\n if (started) return;\n\n// //GET RID OF THIS!!\n// sensorReadingArrayList = new ArrayList<MHLSensorReading>();\n\n started = true;\n clientThread = new Thread(new MHLClientThread(ip, port, userID));\n clientThread.start();\n }", "@Override\n public void run(){\n System.out.println(clientID+\" run\");\n open();\n if(isHost){ //HostClient listening\n try{\n controller.sendHostAddress(ip, port);\n socket = hostSocket.accept();\n System.out.println(clientID+\": run: accept\");\n close(); //closes hostSocket\n connected = true;\n open(); //gets streams\n controller.sendConnect(); \n }catch(IOException e){\n System.out.println(clientID+\": run: accept: failed: IOException: \"+e);\n }\n }\n while(connected){ //interprets requests from other client\n try{\n String request = streamIn.readUTF();\n System.out.println(clientID+\": receive: \"+request);\n String response[] = request.split(\"<&>\");\n controller.interpretRequest(response);\n }catch(IOException ioe){\n System.out.println(clientID+\": receive: failed: IOException:\"+ioe);\n connected = false; \n }\n }\n }", "private void run() throws IOException {\n\n // Establish connection with a server and create streams for communication\n System.out.println(\"Enter IP Address of the Server: \");\n String serverAddress = getClientInput();\n Socket socket = new Socket(serverAddress, 9001);\n in = new BufferedReader(new InputStreamReader(socket.getInputStream()));\n out = new PrintWriter(socket.getOutputStream(), true);\n\n String clientName;\n\n // Process replies from server\n while (true) {\n String line = in.readLine();\n if (line.startsWith(\"SUBMITNAME\")) {\n System.out.println(\"Enter a client name: \");\n clientName = getClientInput();\n out.println(clientName);\n }\n else if (line.startsWith(\"WELCOME\")) {\n System.out.println(line);\n String tempLine = \"\";\n while (!tempLine.startsWith(\"5\")){\n tempLine = in.readLine();\n System.out.println(tempLine);\n }\n }\n else if (line.startsWith(\"COMMAND\")) {\n System.out.println(\"Enter a command: \");\n out.println(getClientInput());\n }\n else if(line.startsWith(\"SERVER\")) {\n String answer = in.readLine();\n System.out.println(line + \": \" + answer);\n //Close after client calls exit and server closes the client thread.\n if(answer.equals(\"EXIT\")) {\n System.out.println(\"Session closed.\");\n break;\n }\n else {\n System.out.println(\"Enter a command: \");\n out.println(getClientInput());\n }\n }\n }\n }", "@Override\n public void run() {\n try {\n this.in = new BufferedReader(new InputStreamReader(\n clientSocket.getInputStream()));\n this.out = clientSocket.getOutputStream();\n\n\n String str = \"\";\n while (!(str != null && !str.equals(\"\"))) {\n str = in.readLine();\n }\n\n handleRequest(str);\n } catch (Exception e) {\n System.out.println(\"Error: \" + e);\n e.printStackTrace();\n }\n }", "public void run(){\n //wait for clients to connect to the server and start a new thread,\n //then continue waiting.\n while(true) {\n //create the packet to accept a message\n byte[] buf = new byte[bufSize];\n DatagramPacket packet = new DatagramPacket(buf, buf.length);\n try {\n //receive a message from the client\n datagramSocket.receive(packet);\n } catch (IOException e) {\n System.err.println(\"Error receiving datagram packet\");\n } catch (Exception e){\n serverGUI.displayText(\"Error: There is an issue with your connection. Please restart the program.\");\n }\n //Start a new thread for this client\n ServerThread servant = new ServerThread(mainServer, packet, serverGUI);\n servant.start();\n }\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\twhile (!client.isClosed()) {\n\t\t\t\t\tSystem.out.println(\"is socket connected\" + client.isConnected());\n\t\t\t\t\tInputStreamReader reader;\n\t\t\t\t\ttry {\n\n\t\t\t\t\t\treader = new InputStreamReader(client.getInputStream());\n\t\t\t\t\t\tBufferedReader buf = new BufferedReader(reader);\n\t\t\t\t\t\tString msg = buf.readLine();\n\t\t\t\t\t\tif (msg != null) {\n\t\t\t\t\t\t\tSystem.out.println(\"server:\" + msg.toString());\n\t\t\t\t\t\t\tString ContextMsg = \"来自被连接的回复:\" + client.getInetAddress() + \"\\n\" + msg.toString();\n\t\t\t\t\t\t\ttextList.add(ContextMsg);\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t}", "public static void main(String[] args) throws IOException {\r\n\t\t\r\n\t\tServerSocket serverSocket = null;\r\n\t\tSocket clientSocket = null;\r\n\t\tBufferedReader read = null;\r\n\t\tDataOutputStream write = null;\r\n\t\t\r\n\t\t// Attempt to open a server socket for inbound connections\r\n\t\ttry {\r\n\t\t\tserverSocket = new ServerSocket(SERVERPORT);\r\n\t\t} catch (IOException e) {\r\n\t\t\tSystem.err.println(\"Failed to open server socket\");\r\n\t\t\te.printStackTrace();\r\n\t\t\tSystem.exit(1);\r\n\t\t}\r\n\t\t\r\n\t\t// Wait for a client to connect \r\n\t\tSystem.out.println(\"Waiting ...\");\r\n\t\ttry {\r\n\t\t\t// This will block until someone trys to connect\r\n\t\t\tclientSocket = serverSocket.accept();\r\n\t\t\t\r\n\t\t\t// Get our input and output classes\r\n\t\t\tread = new BufferedReader(new InputStreamReader(clientSocket.getInputStream()));\r\n\t\t\twrite = new DataOutputStream(clientSocket.getOutputStream());\r\n\t\t\tSystem.out.println(\"Client connection from \" + clientSocket.getInetAddress());\r\n\t\t\t\r\n\t\t\t// This will continue until the clients types \"/quit\" or otherwise drops the connection\r\n\r\n Scanner writer = new Scanner(System.in);\r\n\r\n\t\t\twhile (true) {\r\n//\t\t\t\tString line = read.readLine();\r\n//\t\t\t\tSystem.out.println(line);\r\n//\t\t\t\tif (\"/quit\".equalsIgnoreCase(line)) {\r\n//\t\t\t\t\tSystem.out.println(\"Closing connection with \" + clientSocket.getInetAddress());\r\n//\t\t\t\t\tbreak;\r\n//\t\t\t\t}\r\n\t\t\t\tThread t = new ClientTaker(clientSocket, read, write);\r\n//\t\t\t\tSystem.out.printf(\"-> \");\r\n//\t\t\t\tline = writer.nextLine();\r\n//\t\t\t\tline += \"\\r\\n\";\r\n//\t\t\t\twrite.writeBytes(line);\r\n\t\t\t\tt.start();\r\n\t\t\t}\r\n\t\t} catch (SocketException e) {\r\n\t\t\tSystem.out.println(\"Client connection was disconnected\");\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} finally {\r\n\t\t\tread.close();\r\n\t\t\twrite.close();\r\n\t\t\tserverSocket.close();\r\n\t\t}\r\n\t\t\r\n\t}", "public Console(Client client, Controller controller){\r\n\t\tsuper(client,controller);\r\n\t\tsc = new Scanner(System.in);\r\n\t\tnew Thread(new ReadInput()).start();\r\n\t}", "public Client() {\n initComponents();\n \n Server server = new Server();\n server.start();\n \n }", "public void run() {\n\t\t// TODO Auto-generated method stub\n\t\twhile(true){\n\t\t\t\n\t\t\tif (DEBUG){\n\t\t\t\tSystem.out.println(\"Server_thread\");\n\t\t\t}\n\t\t\t\n\t\t\ttry{\t\n\t\t\t\trun_list.add(new ClientHandler(serversocket.accept()));\n\t\t\t\tnew Thread (run_list.get(run_list.size()-1)).start();;\n\t\t\t\n\t\t\t\n\t\t}\t\n\t\tcatch (IOException ex){\n\t\t\tex.printStackTrace();\n\t\t}\n\t\t\n\t\t\n\t\ttry{\n\t\t\tThread.sleep(10);\n\t\t}\n\t\tcatch (InterruptedException ex){\n\t\t\tex.printStackTrace();\n\t\t}\n\t\t}\n\t}", "public static void main(String[] args) {\n\n // Set up the thread pool\n threadPool = Executors.newFixedThreadPool(THREAD_POOL_SIZE);\n\n // The server socket that waits for clients to connect\n // Opened in a try-catch block\n try (ServerSocket serverSocket = new ServerSocket(SERVER_PORT_NUMBER)) {\n // looping continuously to accept connections from clients\n while (true) {\n // try-catch to catch IOException cause by the accept() method\n try {\n // getting a client connection, creating a runnable and granting it a thread.\n Socket clientConnectionSocket = serverSocket.accept();\n System.out.println(\"received a request\");\n ServeRequestRunnable serveClientRunnable = new ServeRequestRunnable(clientConnectionSocket);\n threadPool.submit(serveClientRunnable);\n } catch (IOException ioe) {\n ioe.printStackTrace();\n }\n }\n } catch (IOException ioe) {\n ioe.printStackTrace();\n } finally {\n threadPool.shutdown();\n }\n }", "private void ClientSocketConnection(ServerSocket serverSocket){\n while(true){\n try{\n Socket socket = serverSocket.accept();\n ClientThread client = new ClientThread(this, socket);\n Thread thread = new Thread(client);\n thread.start();\n clients.add(client);\n } \n catch (IOException e){\n e.printStackTrace();\n }\n }\n }", "@Override\n public void run() {\n\n startPingTimer();\n String read = \"\";\n\n try {\n while ((read = in.readLine()) != null){\n\n //System.out.println(\"[CLIENT] Received: \" + read);\n messageHandler(read);\n\n }\n closeConnection();\n\n }catch (IOException e){\n\n System.out.println(\"[CLIENT] \" + e.getMessage());\n System.out.println(\"[CLIENT] Connection closed.\");\n\n }\n\n }", "public static void main(String[] args) throws IOException {\n\t\tServerSocket ss= new ServerSocket(5000); \r\n\t\tSocket s = null; \r\n\t\twhile(true) {\r\n\t\t\ts = ss.accept();\r\n\t\t\t\r\n\t\t\tDataOutputStream out = new DataOutputStream(s.getOutputStream());\r\n\t\t\tDataInputStream in = new DataInputStream(s.getInputStream());\r\n\t\t\t\r\n\t\t\tserverHelper c = new serverHelper(s,\"client\"+clientCount,in,out);\r\n\t\t\t\r\n\t\t\tThread t = new Thread(c);\r\n\t\t\t//System.out.println(\"client\"+clientCount+\"is online\");\r\n\t\t\tclients.add(c);\r\n\t\t\tt.start();\r\n\t\t\tclientCount++;\r\n\t\t}\r\n\t}", "@Override\n\tpublic void run() {\n\t\tSocket connect_port = null;\n\t\twhile (true) {\t\t\t\n\t\t\ttry {\n\t\t\t\tconnect_port = this.listen_port.accept();\n\t\t\t\tRequest req = new Request(connect_port);\n\t\t\t\tthis.pool.submit(req);\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "@Override\n\t\t\t\t\tpublic void run() {\n\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tList<String> headers = readRequest(client);\n\t\t\t\t\t\t\tif (headers != null && headers.size() >= 1) {\n\t\t\t\t\t\t\t\tString requestURL = getRequestURL(headers.get(0));\n\t\t\t\t\t\t\t\tLog.d(TAG, requestURL);\n\n\t\t\t\t\t\t\t\tif (requestURL.startsWith(\"http://\")) {\n\n\t\t\t\t\t\t\t\t\t// HttpRequest request = new\n\t\t\t\t\t\t\t\t\t// BasicHttpRequest(\"GET\", requestURL);\n\n\t\t\t\t\t\t\t\t\tprocessHttpRequest(requestURL, client, headers);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tprocessFileRequest(requestURL, client, headers);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t} catch (IllegalStateException e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "public void run() {\n sendMessageToClient(\"Connexion au serveur réussie\");\n\n while (isActive) {\n try {\n String input = retrieveCommandFromClient();\n handleCommand(input);\n } catch (ServerException e) {\n System.out.println(e.getMessage());\n sendMessageToClient(e.getMessage());\n } catch (ClientOfflineException e) {\n System.out.println(\"Client # \" + clientId + \" deconnecte de facon innattendue\");\n deactivate();\n }\n }\n\n close();\n }", "public void addClient() throws IOException {\n BufferedReader in;\n Socket clientSocket; //pour chaque nouveau client\n System.out.println(\"New Client connected.\");\n clientSocket = serverSocket.accept();\n out = new PrintWriter(clientSocket.getOutputStream());\n in = new BufferedReader(new InputStreamReader(clientSocket.getInputStream()));\n tabClientsout.addElement(out);\n Runnable r = new recevoir(out, in);\n // genere le Thread pour le nouveau client\n new Thread(r).start();\n }", "@Override\n public void run() {\n try {\n socket = new Socket(\"192.168.0.165\", 2000);\n out = new PrintWriter(socket.getOutputStream());\n in = new BufferedReader(new InputStreamReader(socket.getInputStream()));\n ReadThread readThread = new ReadThread();\n readThread.start();\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n boolean done = false;\n\n while (!done) {\n if (message != null) {\n try {\n out.print(message);\n out.flush();\n message = null;\n } catch (Exception e) {\n e.printStackTrace();\n try {\n socket.close();\n in.close();\n out.close();\n done = true;\n } catch (IOException d) {\n e.printStackTrace();\n }\n }\n }\n }\n disconnect();\n }", "public ClientThread(Socket socket) throws IOException\r\n {\r\n this.socket = socket;\r\n this.netIn = new Scanner(new InputStreamReader(socket.getInputStream()));\r\n this.netOut = new PrintStream(socket.getOutputStream());\r\n\r\n }", "public void run() {\n try {\n this.listener = new ServerSocket(port);\n } catch (IOException e) {\n e.printStackTrace();\n }\n \n // On new connections, start a new thread to handle communications.\n try {\n while(true) {\n new Handler(this.listener.accept()).start();\n }\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n try {\n this.listener.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }", "public ReadThread (InputStream in)\n {\n this.in = in;\n this.start();\n }", "public static void main(String[] args) throws IOException, InterruptedException\n\t{\n\t\tClient ClientDevice = new Client();\n\t\tClientDevice.RollWindow();\n\t}", "public void handleClient(InputStream inFromClient, OutputStream outToClient);", "public void run()\n\t{\n\t\tSystem.out.println(\"Connection established: \" + clientSocket);\n\t\tThread messageThread; // start a new Thread on TCPReceiver to receive messages through clientSocket.\n\t\ttry \n\t\t{\n\t\t\tmessageThread = new Thread(new TCPNodeReceiver(clientSocket, messagingNode), \"tcpReceiverThread\"); // pass a copy of the MessagingNode to TCPNodeReceiver.\n\t\t\tmessageThread.start(); // start receiving messages.\t\t\t\t\t\n\t\t} \n\t\tcatch (IOException e) {\n\t\t\tSystem.err.println(\"messagingNodeThread got error: \" + e.getMessage());\n\t\t} \n\t}", "public ClientThread(Server server, Socket socket,\n RegistrationLoginHandler registrationLoginHandler,\n BootHandler bootHandler, ContactHandler contactHandler) {\n this.server = server;\n this.socket = socket;\n\n //handlers\n this.registrationLoginHandler = registrationLoginHandler;\n this.bootHandler = bootHandler;\n this.contactHandler = contactHandler;\n\n id = UUID.randomUUID().toString();\n\n System.out.println(\"Client connected with id: \" + id);\n\n try {\n output = new ObjectOutputStream(socket.getOutputStream());\n input = new ObjectInputStream(socket.getInputStream());\n } catch (IOException ex) {\n server.displayError(\"Exception creating new Input/output Streams: \" + ex.getMessage());\n ex.printStackTrace();\n }\n }", "public static void main(String[] args) throws IOException\n {\n ServerSocket listener = new ServerSocket(PORT);\n\n while (true)\n {\n System.out.println(\"[SERVER] Waiting for connection . . . \");\n //takes in the user client sockets\n Socket client = listener.accept();\n //Announces that the user has connected\n System.out.println(\"[SERVER] Connected to client \" + client.getInetAddress());\n ClientHandler clientThread = new ClientHandler(client, clients);\n\n pool.execute(clientThread);\n }\n }", "@Override\n public void run()\n {\n lock = new Lock();\n messenger = new Messenger(notifier);\n clientList = new ClientList(notifier, messenger, connectionLimit);\n publisher = new Publisher(lock, clientList);\n\n try\n {\n notifier.sendToConsole(\"Server Started\");\n LOGGER.info(\"Server Started\");\n\n // Set up networking\n socketFactory = (SSLServerSocketFactory) SSLServerSocketFactory\n .getDefault();\n serverSocket = (SSLServerSocket) socketFactory\n .createServerSocket(port);\n serverSocket.setEnabledCipherSuites(enabledCipherSuites);\n\n int idCounter = 1;\n\n // Now repeatedly listen for connections\n while (true)\n {\n // Blocks whilst waiting for an incoming connection\n socket = (SSLSocket) serverSocket.accept();\n\n conn = new ClientConnection(socket, idCounter, notifier, lock,\n publisher, clientList, password);\n new Thread((Runnable) conn).start();\n\n LOGGER.info(\"Someone connected: \" + idCounter);\n idCounter++;\n }\n\n } catch (final SocketException e)\n {\n LOGGER.severe(\"Socket Exception: Server closed?\");\n notifier.sendToConsole(\"Server Stopped\");\n } catch (final IOException e)\n {\n LOGGER.severe(e.getMessage());\n notifier.sendError(e);\n } finally\n {\n kill();\n }\n }" ]
[ "0.6840744", "0.6830531", "0.66302806", "0.6625492", "0.6624555", "0.6535384", "0.6473124", "0.6419385", "0.6382633", "0.63536334", "0.6343368", "0.6302756", "0.62860227", "0.62794095", "0.6244761", "0.6234486", "0.6232118", "0.61998314", "0.61612207", "0.61418086", "0.6129685", "0.61088985", "0.61050767", "0.61048985", "0.60816616", "0.6079569", "0.60534143", "0.6053082", "0.605147", "0.6050676", "0.60447025", "0.6040567", "0.6037183", "0.60332274", "0.60330015", "0.6027298", "0.6006434", "0.5989936", "0.59802216", "0.59708655", "0.5963197", "0.59544206", "0.5947196", "0.593974", "0.59181714", "0.5910575", "0.59070045", "0.5898316", "0.58938", "0.58882076", "0.58802444", "0.58664924", "0.58557856", "0.58535236", "0.5852883", "0.5852562", "0.5849094", "0.58480644", "0.58308727", "0.5824658", "0.5821135", "0.5817998", "0.5810145", "0.5784408", "0.57842374", "0.577585", "0.57701397", "0.57653177", "0.5744515", "0.5744238", "0.5734464", "0.57308936", "0.5728875", "0.5728226", "0.5686826", "0.5683847", "0.56783265", "0.56664217", "0.56582135", "0.565316", "0.5648116", "0.5645007", "0.56238675", "0.5616418", "0.5595427", "0.5592764", "0.5584915", "0.55806595", "0.5579986", "0.5576299", "0.55641514", "0.5560039", "0.555831", "0.55540156", "0.55531305", "0.5550109", "0.55500126", "0.55384874", "0.5533092", "0.5529832", "0.55294955" ]
0.0
-1
Updates the fitness of a program with the GeneticProgram.
private synchronized void updateFitness(int index, int fitness) { geneticProgram.setProgramFitness(index, fitness); programsRemaining--; updateStatistic(index, fitness); notifyAll(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void updateFitness ( ) {\n\n KozaFitness f = ((KozaFitness)program.fitness);\n\n f.setStandardizedFitness(param.Parameters.STATE, this.fit);\n\n }", "public void setFitness(int newFitness) {\n fitness = newFitness;\n }", "private void updateStatistic(int index, int fitness) {\n if (fitness < worst)\n worst = fitness;\n if (fitness > best) {\n best = fitness;\n frontRunner = geneticProgram.getProgram(index);\n }\n }", "public void incrementFitness()\n {\n this.fitness++;\n }", "public void setFitness(float fitness)\r\n\t{\r\n\t\tthis.fitness = fitness;\r\n\t}", "void setFitness(double fitness) throws UnsupportedOperationException;", "public void fitnessFunction()\n\t{\n\t\t\n\t}", "public abstract void updateFitness();", "private void setnewFitnessValue(double fitnessValue) {\n this.newfitnessValue = fitnessValue;\r\n }", "public void modifyFitness(Population population) {\n // prepare the calculation\n double[][] data = new double[population.size()][];\n for (int i = 0; i < data.length; i++) {\n data[i] = ((AbstractEAIndividual)population.get(i)).getFitness();\n }\n double min = Double.POSITIVE_INFINITY, fitnessSharing;\n double[] result = new double[data.length];\n AbstractEAIndividual tmpIndy;\n\n for (int x = 0; x < data[0].length; x++) {\n for (int i = 0; i < data.length; i++) data[i][x] = -data[i][x];\n for (int i = 0; i < data.length; i++) {\n if (data[i][x] < min) min = data[i][x];\n }\n\n for (int i = 0; i < data.length; i++) {\n // This will cause the worst individual to have no chance of being selected\n // also note that if all individual achieve equal fitness the sum will be zero\n result[i] = data[i][x] -min + 0.1;\n }\n\n for (int i = 0; i < population.size(); i++) {\n tmpIndy = (AbstractEAIndividual)population.get(i);\n fitnessSharing = 0;\n for (int j = 0; j < population.size(); j++) {\n if (this.m_SharingDistance < this.m_Metric.distance(tmpIndy, (AbstractEAIndividual)population.get(j))) {\n fitnessSharing += 1 - (this.m_Metric.distance(tmpIndy, (AbstractEAIndividual)population.get(j))/this.m_SharingDistance);\n }\n }\n result[i] = result[i]/fitnessSharing;\n }\n\n for (int i = 0; i < population.size(); i++) {\n ((AbstractEAIndividual)population.get(i)).SetFitness(x, result[i]);\n }\n }\n }", "public void setFitness(int f){\n this.fitness = f;\n }", "@Override\r\n\t\t\tpublic void populationUpdate(PopulationData<? extends Solution> data) {\n//\t\t\t\tbuffer.append(data.getPopulationSize());\r\n//\t\t\t\tbuffer.append(\"\\n\");\r\n\t\t\t\t\r\n\t\t\t\tdouble fit = data.getBestCandidateFitness();\r\n//\t\t\t\tSystem.out.println(fit);\r\n\t\t\t\tbuffer.delete(0, buffer.length());\r\n\t\t\t\tbuffer.append(fit);\r\n//\t\t\t\tbuffer.append(\"\\n\");\r\n\t\t\t\t\r\n\t\t\t\tif (Run10FastExternalizer.initialFitness.getDbl() == -1.0) {\r\n\t\t\t\t\tRun10FastExternalizer.initialFitness.setDbl(fit);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif (fit == 0.0){\r\n\t\t\t\t\tArrayList<Student> studentsCopy = new ArrayList<>();\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tfor (Student student: students){\r\n\t\t\t\t\t\tstudentsCopy.add(student.clone());\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tStringBuilder sb = new StringBuilder();\r\n\t\t\t\t\t\r\n\t\t\t\t\tfor (Student student: studentsCopy){\r\n\t\t\t\t\t\tstudent.register(data.getBestCandidate().getBlocks());\r\n//\t\t\t\t\t\tSystem.out.println(student.getSchedule());\r\n//\t\t\t\t\t\tbuffer.append(student.getSchedule().toString());\r\n//\t\t\t\t\t\tbuffer.append(\"\\n\");\r\n\t\t\t\t\t\tsb.append(student.getSchedule().toString());\r\n\t\t\t\t\t\tsb.append(\"\\n\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tsuperValue = sb.toString();\r\n\t\t\t\t}\r\n\t\t\t}", "void setFitnessScore(double score){\n fitnessScore = score;\n }", "public void setFitness(int fit)\n {\n this.fitness=fit;\n }", "void ComputeFitness(){\n\t\tint i, pos;\n\t\t// individual t;\n\t\tdouble min, sum = 0, sumSize = 0, tm;\n\t\t// First Compute Raw fitness\n\t\tfor(i = 0; i < poplen; i++)\n\t\t{\n\t\t\tif(oldpop[i].evaluated==FALSE)\n\t\t\t{ tm=ComputeRF(oldpop[i]);\n\t\t\t\toldpop[i].fitness = tm;\n\t\t\t\toldpop[i].oldfitness = tm;\n\t\t\t\toldpop[i].evaluated=TRUE;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\toldpop[i].fitness=oldpop[i].oldfitness;\n\t\t\t}\n\t\t\t\n\t\t\t//oldpop[i].DisplayIndividual();\n\t\t\t//System.out.println(oldpop[i].fitness);\n\t\t}\n\t\t//tim individual co fitness be nhat\n\t\tmin = oldpop[0].fitness;\n\t\tpos = 0;\n\t\tsum = oldpop[0].fitness;\n\t\tsumSize = oldpop[0].size;\n\t\t\n\t\tfor(i = 1; i < poplen; i++) {\n\t\t\tif(oldpop[i].fitness < min) {\n\t\t\t\tmin = oldpop[i].fitness;\n\t\t\t\tpos = i;\n\t\t\t}\n\t\t\tsum += oldpop[i].fitness;\n\t\t\tsumSize += oldpop[i].size;\n//\t\t\tpopSize[gen][i]= oldpop[i].size;\n\t\t}\n\t\t// copy the best and average\n\t\tbestcurrent[gen] = new individual();\n\t\tbestcurrent[gen].CopyIndividual(oldpop[pos], TRUE);\n\t\taverage[gen] = sum /poplen;\n\t\taverageSize[gen] = sumSize /poplen;\n\t\t// Third Compute Adjusted fitness\n\t\tAdjustFitness();\n\t\t// Finally Compute nomarlized fitness\n \t\tNormalizeFitness();\n\t}", "public void setFitness(double fit) {\n fitness = fit;\n }", "@Test\n\tpublic void testGA() {\n\t\tGenetic ga = new Genetic(100, 500, 10, SelectionType.TOURNAMENT , 0.6, 0.1);\n\t\tOptimumSolution os = ga.run();\n\t\tSystem.out.println(os.getSolution());\n\t}", "void calculateFitness() {\n if (reachedGoal) {\n fitness = 1d / 16d + 8192d / (genome.step * genome.step);\n } else {\n double d = position.distance(Game.Setup.goal);\n fitness = 1d / (d * d);\n }\n }", "public void updateFitness() {\n Particle p;\n for (int i = 0; i < SWARM_SIZE; i++) {\n p = swarm.get(i);\n p.setFitnessValue(getFitnessValue(p.getVector().getPos()));\n p.setpBestFitness(getFitnessValue(p.getpBest().getPos()));\n }\n }", "protected void setFitness(float fit)\t{\tfitness = fit;\t\t}", "void updateGarage(Garage updatedGarage);", "public void updateGraph(){\n\t\tgraph.update(updatePopulations(), iteration);\n\t\titeration++;\n\t}", "private static void calculateFitnessOfPopulation(ArrayList<Chromosome> population) {\n for (Chromosome chromosome : population) {\n // if the fitness of the chromosome has not yet been calculated (i.e. is still -1)\n fitnessFunction(chromosome);\n }\n }", "public void runGenerational() {\n\n\t\tSystem.out.println(\"Runing pure generational demo.\");\n\t\tFunction<BitSet, Double> knapsackFitnessFunction = new KnapsackFitness(capacity, parseElements());\n\t\tSpace<BitSet> space = new BitSetSpace(weights.length);\n\n\t\tGeneticSelector<BitSet, Double> rouletteSelector = new RouletteGeneticSelector<>(POP_SIZE);\n\t\tGeneticCrossover<BitSet, Double> crossover = new BinaryCrossover<>(0.9);\n\t\tGeneticOperator<BitSet, Double> geneticOperator = new CustomGeneticOperator<>(crossover);\n\t\tGeneticReplacement<BitSet, Double> replacement = new GenerationalReplacement<>();\n\t\tTracer.add(Population.class);\n\t\tTracer.start();\n\n\t\tSearch<BitSet, Double> search = new GeneticAlgorithm<>(POP_SIZE, NUM_ITER, rouletteSelector, geneticOperator,\n\t\t\t\treplacement);\n\t\tOptimizationProblem<BitSet, Double> problem = new OptimizationProblem<>(space, knapsackFitnessFunction,\n\t\t\t\tComparator.reverseOrder());\n\t\tSolution<BitSet, Double> foundSolution = search.solve(problem);\n\n\t\tSystem.out.println(String.format(\"Best found solution: %f, bitset: %s\",\n\t\t\t\tknapsackFitnessFunction.calculate(foundSolution.getSolution()), foundSolution.getSolution()));\n\n\t\tBitSet optimalBitSet = parseOptimalBitSet();\n\t\tSystem.out.println(String.format(\"Optimal solution: %f, bitset: %s\",\n\t\t\t\tknapsackFitnessFunction.calculate(optimalBitSet), optimalBitSet));\n\t\tKnapsackMetric metric = new KnapsackMetric();\n\t\tmetric.putDataOfBestInFile(1);\n\t}", "public void incrementFitnessBy2()\n {\n this.fitness=this.fitness+2;\n }", "public static void main(String[] args) throws IOException {\n\t\tint p = 8;\n\t\t// r is the fraction of the population to be replaced by Crossover at\n\t\t// each step\n//\t\tdouble r = Double.valueOf(8).doubleValue();\n\t\tdouble r = 8;\n\t\t// m is the rate of mutation\n//\t\tdouble m = Double.valueOf(8).doubleValue();\n\t\tdouble m = 8;\n\n\t\t// Write into files...\n\t\tFile outputFile = new File(\"testGA.txt\");\n\t\tFileWriter out = new FileWriter(outputFile);\n\n\t\t////////////////////////\n\t\tp = 33;\n\t\tr = 0.6;\n\t\tm = 0.1;\n\n\t\t// Report the population size, crossover rate and mutation rate\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"Learning the 8-queens problem with a Genetic Algorithm\");\n\t\tSystem.out.println(\"Population Size: \" + p);\n\t\tSystem.out.println(\"Crossover Rate: \" + r);\n\t\tSystem.out.println(\"Mutation Rate: \" + m);\n\t\tSystem.out.println();\n\t\tout.write(\"Parameters are p=\" + p + \", \" + \"r=\" + r + \" and m=\" + m + \"\\r\");\n\n\t\t// The genetic algorithm\n\t\tint iterationNum = 0;\n\t\tHypothesis bestIndividual;\n\t\tint bestFitness;\n\t\tdouble aveFitness;\n\t\t// Randomly generate initial population\n\t\tGA algorithm = new GA(p, r, m);\n\t\t// For each individual compute fitness\n\t\talgorithm.computeFitness();\n\t\t// Get the best individual\n\t\tbestIndividual = (algorithm.getPopulation())[0];\n\t\tbestFitness = bestIndividual.getFitness();\n\t\taveFitness = algorithm.computeAveFitness();\n\t\t// Iterate till we get the very best individual\n\t\twhile (bestFitness != 0) {\n\t\t\t// Select the very best members of the population to survive\n\t\t\talgorithm.select();\n\t\t\t// Make the best members reproduce themselves\n\t\t\talgorithm.crossover();\n\t\t\t// Add some mutations to new population\n\t\t\talgorithm.mutate();\n\t\t\t// The successor population becomes the current population\n\t\t\talgorithm.setNextGeneration();\n\t\t\t// For each individual compute fitness\n\t\t\talgorithm.computeFitness();\n\t\t\t// Get the best individual\n\t\t\tbestIndividual = (algorithm.getPopulation())[0];\n\t\t\tbestFitness = bestIndividual.getFitness();\n\t\t\taveFitness = algorithm.computeAveFitness();\n\t\t\t// Report best results to the user at every five iterations\n\t\t\tif (iterationNum % 5 == 0) {\n\t\t\t\tSystem.out.println(\"Iteration: \" + iterationNum + \" Best Fitness: \" + bestFitness\n\t\t\t\t\t\t+ \" Average Fitness \" + aveFitness);\n\t\t\t\tSystem.out.println(\"Best solution: \" + bestIndividual.toString());\n\t\t\t\tSystem.out.println();\n\t\t\t\tout.write(\"\\n\" + iterationNum + \",\" + bestFitness + \",\" + aveFitness + \"\\r\");\n\t\t\t}\n\t\t\titerationNum++;\n\t\t}\n\t\tSystem.out.println(\n\t\t\t\t\"Iteration: \" + iterationNum + \" Best Fitness: \" + bestFitness + \" Average Fitness \" + aveFitness);\n\t\tSystem.out.println(\"Solution is \" + bestIndividual.toString());\n\t\tout.write(\"\\n\" + iterationNum + \",\" + bestFitness + \",\" + aveFitness + \"\\r\");\n\t\tout.close();\n\t}", "private void sendForEvaluation(final int index, final Program program) {\n final IClient client = getNextClient();\n Thread t = new Thread(new Runnable() {\n @Override\n public void run() {\n try {\n int fitness = client.evaluateProgram(program.program);\n enqueueClient(client);\n updateFitness(index, fitness);\n } catch (RemoteException ignored) {\n enqueueProgram(index, program);\n }\n }\n });\n t.start();\n }", "public void calcularFitness() {\n double fit = 0;\r\n for (int x=0; x < this.genotipo.length;x++){\r\n if (x!=this.genotipo.length-1){\r\n fit+=distancias[this.genotipo[x]][this.genotipo[x+1]];\r\n }else{\r\n fit+=distancias[this.genotipo[x]][this.genotipo[0]];\r\n }\r\n }\r\n this.fitness = fit;\r\n }", "public synchronized void runGP() throws RemoteException {\n initRMI();\n initGP();\n\n log.info(\"Starting program dispatcher\");\n new Thread(this).start();\n\n int targetFitness = 0;\n for (ISimulator simulator : simulators)\n targetFitness += simulator.getTerminationFitness();\n\n for (int i = 1; i <= generations; i++) {\n while (programsRemaining > 0)\n try { wait(); } catch (InterruptedException ignored) { }\n\n if (best >= targetFitness) {\n log.info(\"Successful individual found.\");\n break;\n }\n\n resetStatistics();\n leader = frontRunner;\n\n if (i % 5 == 0) {\n log.info(\"Writing checkpoint\");\n writeCheckpoint(String.format(\"gen_%08d\", checkpointFileIndex));\n checkpointFileIndex++;\n }\n\n log.info(\"Creating generation #\" + Integer.toString(i));\n programsRemaining = geneticProgram.getPopulationSize();\n geneticProgram.createNextGeneration();\n log.info(\"Created generation #\" + Integer.toString(i));\n }\n\n cleanup();\n }", "public static void main(String[] args)\n\t{\tint generation = 0;\n\t\tint sum = 0;\n\t\tExecutor exec=new Executor();\n\t\t\n\t\tGeneticController pacman = new GeneticController();\n\t\tController<EnumMap<GHOST,MOVE>> ghosts = new Legacy();\n\n\n\t\tLispStatements ls = new LispStatements();\n\t\tArrayList<String> functionSet = new ArrayList<>();\n\t\tfunctionSet.add(\"2ifblue\");\n\t\tfunctionSet.add(\"4ifle\");\n\t\tfunctionSet.add(\"2ifindanger\");\n\t\tfunctionSet.add(\"2ifpowerpillscleared\");\n\t\tfunctionSet.add(\"2istopowersafe\");\n\t\tArrayList<String> terminalSet = new ArrayList<>();\n\t\tterminalSet.add(\"distToPill\");\n\t\tterminalSet.add(\"distToPower\");\n\t\tterminalSet.add(\"distGhost\");\n\t\tterminalSet.add(\"distTo2ndGhost\");\n\t\tterminalSet.add(\"distTo3rdGhost\");\n\t\tterminalSet.add(\"distToEdibleGhost\");\n\t\tterminalSet.add(\"distToNonEdibleGhost\");\n\t\tterminalSet.add(\"moveToFood\");\n\t\tterminalSet.add(\"moveToPower\");\n\t\tterminalSet.add(\"moveToEdibleGhost\");\n\t\tterminalSet.add(\"moveFromNonEdibleGhost\");\n\t\tterminalSet.add(\"moveFromPower\");\n\t\tterminalSet.add(\"runaway\");\n\t\ttry {\n\t\t\tls.setFunctionalSet(functionSet);\n\t\t}catch (Exception ignored){\n\n\t\t}\n\t\tls.setTerminalSet(terminalSet);\n\t\ttry {\n\t\t\tGenetic.Executor.setUp(pacman, ls, 8);\n\t\t}catch (Exception ignored){\n\n\t\t}\n\n\t\tdouble average = 0;\n\n\t\twhile (generation < 51) {\n\t\t\twhile (Generation.isGenFinished()) {\n\n\t\t\t\t\tfor(int i = 0; i < 10; i++) {\n\t\t\t\t\t\tint delay = 0;\n\t\t\t\t\t\tboolean visual = false;\n\t\t\t\t\t\tsum += exec.runGame(pacman, ghosts, visual, delay);\n\t\t\t\t\t}\n\n\t\t\t\t\tGeneration.setFitness(50000 - (sum/10));\n\t\t\t\t\tSystem.out.println(sum/10);\n\n\n\t\t\t\t\tsum = 0;\n\n\t\t\t\tGeneration.pointerUpdate();\n\t\t\t}\n\t\t\tSystem.out.println(\"Generation \" + generation);\n\t\t\tGenetic.Executor.newGen();\n\t\t\tSystem.out.println(Generation.getBestRating());\n\t\t\tgeneration ++;\n\t\t}\n\n\t\tSystem.out.println(Generation.getBestTree());\n\t\tSystem.out.println(Generation.getBestRating());\n\n\n\n/*\n\t\tboolean visual=false;\n\t\tString fileName=\"results/replay10.txt\";\n\n\t\tint bestScore = 0;\n\t\tint result = 0;\n\t\tint average = 0;\n\t\tfor(int i = 0; i < 1000 ; i++) {\n\t\t\tresult = exec.runGameTimedRecorded(pacman, ghosts, visual, fileName, bestScore);\n\t\t\taverage +=result;\n\t\t\tif(result > bestScore){\n\t\t\t\tbestScore = result;\n\t\t\t}\n\t\t\tSystem.out.println(result);\n\t\t}\n\t\tvisual = true;\n\t\tSystem.out.println(average/1000.0);\n\t\texec.replayGame(fileName,visual);\n\t\t*/\n\n\n\t}", "protected void evolve()\n\t\t{\tif(this_gen < NUMBER_GENERATIONS) {\n\t\t\t\t// Create a new generation.\n\t\t\t\tfloat avg_fit=Float.MIN_VALUE, max_fit=Float.MIN_VALUE, sum_fit=0;\n\t\t\t\tfloat tot_wait=0, avg_wait=0, tot_move=0, avg_move=0;\n\n\t\t\t\tfor(int i=0;i<NUMBER_INDIVIDUALS;i++) {\n\t\t\t\t\tfloat fit = calcFitness(inds[i]);\n\t\t\t\t\tinds[i].setFitness(fit);\n\t\t\t\t\tsum_fit\t += fit;\n\t\t\t\t\tmax_fit = fit>max_fit ? fit : max_fit;\n\t\t\t\t\ttot_wait += inds[i].getWait();\n\t\t\t\t\ttot_move += inds[i].getMove();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tavg_wait = tot_wait/NUMBER_INDIVIDUALS;\n\t\t\t\tavg_move = tot_move/NUMBER_INDIVIDUALS;\n\t\t\t\tavg_fit = sum_fit/NUMBER_INDIVIDUALS;\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"Stats of prev. gen: (a-wait,a-move)=(\"+avg_wait+\",\"+avg_move+\")\"+\" (a-fit,mx-fit)=(\"+avg_fit+\",\"+max_fit+\")\");\n\t\t\t\tSystem.out.println(\"Evolving...\");\n\t\t\t\t\n\t\t\t\t// Sorts the current Individual-array on fitness, descending\n\t\t\t\tinds = sortIndsArr(inds);\n\t\t\t\t\n\t\t\t\tint num_mating = (int) Math.floor(NUMBER_INDIVIDUALS*(1-ELITISM_FACTOR));\n\t\t\t\tint num_elitism = (int) Math.ceil(NUMBER_INDIVIDUALS*ELITISM_FACTOR);\n\t\t\t\tif(num_mating%2!=0) {\n\t\t\t\t\tnum_mating--;\n\t\t\t\t\tnum_elitism++;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tIndividual[] newInds = new Individual[NUMBER_INDIVIDUALS];\n\t\t\t\t\n\t\t\t\t// Tournament selection\n\t\t\t\tfor(int i=0;i<num_mating;i+=2) {\n\t\t\t\t\tIndividual mamma=null, pappa=null;\n\t\t\t\t\tfloat chn_mum = random.nextFloat();\n\t\t\t\t\tfloat chn_pap = random.nextFloat();\n\t\t\t\t\tfloat fit_mum, sum_fit2=0, sum_fit3=0;\n\t\t\t\t\tint index_mum = -1;\n\t\t\t\t\t\n\t\t\t\t\tfor(int j=0;j<NUMBER_INDIVIDUALS;j++) {\n\t\t\t\t\t\tsum_fit2 += (inds[j].getFitness()/sum_fit);\n\t\t\t\t\t\tif(chn_mum <= sum_fit2) {\n\t\t\t\t\t\t\tmamma = inds[j];\n\t\t\t\t\t\t\tindex_mum = j;\n\t\t\t\t\t\t\tfit_mum = mamma.getFitness();\n\t\t\t\t\t\t\tsum_fit2 = sum_fit-fit_mum;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tfor(int j=0;j<NUMBER_INDIVIDUALS;j++) {\n\t\t\t\t\t\tif(j!=index_mum) {\n\t\t\t\t\t\t\tsum_fit3 += (inds[j].getFitness()/sum_fit2);\n\t\t\t\t\t\t\tif(chn_pap <= sum_fit3) {\n\t\t\t\t\t\t\t\tpappa = inds[j];\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t//System.out.println(\"Mating...: \"+mamma.getFitness()+\",\"+pappa.getFitness());\n\t\t\t\t\tIndividual[] kids = mate(mamma, pappa);\n\t\t\t\t\tnewInds[i]\t= kids[0];\n\t\t\t\t\tnewInds[i+1]= kids[1];\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Elitism\n\t\t\t\tfor(int i=0;i<num_elitism;i++) {\n\t\t\t\t\tnewInds[i+num_mating] = inds[i];\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tinds = newInds;\t\t\t\t\t\t\t\t\n\t\t\t\tthis_gen++;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"Done with evolving\");\n\t\t\t\t// set the best individual as the ruling champ?\n\t\t\t\t// do nothing\n\t\t\t\treturn;\n\t\t\t}\n\t\t}", "private static double fitness(PMCGenotype gene, int trials)\n\t{\n\t\tController<MOVE> btc = new PacManBTController(decode(gene));\n\t\treturn runExperiment(btc, ghostController, trials);\n\t}", "public void evaluatePopulation() {\n // reset the total fitness score\n totalFitness = 0;\n\n for (int i = 0; i < populationSize; i++) {\n population.get(i).setRawFitness(\n FeederCollection.getFeeders().get(i).GetFitness());\n totalFitness += population.get(i).getRawFitness();\n }\n\n // set the normalized fitness for each population member\n for (Genotype g : population) {\n // normalized fitness = raw fitness / total fitness\n g.setNormalizedFitness((g.getRawFitness() / totalFitness));\n }\n\n // sort the popoulation\n Collections.sort(population, Genotype.FitnessOrder);\n\n highFitnesses.add(population.get(0).getRawFitness());\n avgFitnesses.add(totalFitness / population.size());\n\n\n }", "public abstract double getFitness(Genotype genotype);", "public static void runAGeneration() {\n //Breeds Population until max population size for genetic drift\n breedAll();\n\n //Genocides Population by fitness\n genocide();\n\n System.out.println(\"\\nPopulation: \");\n\n //prints population\n printPopulation();\n }", "public int getFitness(){\n return fitness;\n }", "private static void getFitness() {\n\t\tint popSize = population.size();\n\t\tChromosome thisChromo = null;\n\t\tdouble bestScore = 0;\n\t\tdouble worstScore = 0;\n\n\t\t// The worst score would be the one with the highest energy, best would be\n\t\t// lowest.\n\t\tworstScore = population.get(maximum()).conflicts();\n\n\t\t// Convert to a weighted percentage.\n\t\tbestScore = worstScore - population.get(minimum()).conflicts();\n\n\t\tfor (int i = 0; i < popSize; i++) {\n\t\t\tthisChromo = population.get(i);\n\t\t\tthisChromo.fitness((worstScore - thisChromo.conflicts()) * 100.0 / bestScore);\n\t\t}\n\n\t\treturn;\n\t}", "public int mutateGene(int gene);", "void update(String selectedGene);", "public static void updateMutationRate(KNode oldBest, KNode gBest)\r\n {\r\n if(oldBest.fitness() == gBest.fitness())\r\n {\r\n if(Constants.MUTATION_PROBABILITY < Constants.MAX_MUTATION_PROBABILITY)\r\n {\r\n Constants.MUTATION_PROBABILITY+=Constants.MUTATION_INCREMENT;\r\n }\r\n }\r\n else\r\n {\r\n Constants.MUTATION_PROBABILITY = Constants.MUTATION_INCREMENT;\r\n }\r\n }", "public void run() {\n PopulationFGA<Integer> poblacionActual = new PopulationFGA<>(funcionBorn,\n funcionFitness,\n problema.getDimension(),\n 1);\n poblacionActual.incializa(200);\n while(!condTerminacion.conditionReached(poblacionActual)) {\n System.out.println(\"Generacion Actual: \" + poblacionActual.getGeneracion());\n poblacionActual = iteration(poblacionActual);\n }\n ArrayList<IndividualFGA<Integer>> individuos = poblacionActual.generaIndividuos();\n IndividualFGA<Integer> mejor = individuos.get(0);\n for (IndividualFGA<Integer> e : individuos) {\n if (mejor.getFitness() <= e.getFitness())\n mejor = e;\n }\n System.out.println(\"Mejor solucion \" + '\\n' + mejor.toString());\n //System.out.println(\"Fitness \" + mejor.getFitness());\n int dim = problema.getDimension();\n int costo = 0;\n int obj1;\n int obj2;\n Phenotype<Integer> fenotipo = mejor.getRepActual();\n for (int i = 0; i < (dim - 1); i++) {\n obj1 = fenotipo.getAllele(i).intValue() - 1;\n for (int j = i + 1; j < dim; j++) {\n obj2 =fenotipo.getAllele(j).intValue() - 1; \n costo = costo + problema.getDistanciaEntre(i,j) * problema.getFlujoEntre(obj1,obj2);\n }\n }\n System.out.println(\"Costo de la solucion: \" + costo);\n\n }", "public static void GA(ArrayList<City> cities){\n int pathLength = cities.size();\n // the number of chromosomes which will be generated\n int populationSize = 100;\n // the number of chromosomes that will be generated from crossover as a percentage of the population\n double crossoverRate = 0.8;\n // the number of chromosomes that will be generated from crossover\n int crossoverSize = (int) (populationSize * crossoverRate);\n // the probability that a chromosome can have a random mutation\n double mutationRate = 0.05;\n // the number of generations\n int generations = 5000;\n\n // Initialising the distance matrix using the initialiseDistanceMatrix method\n initialiseDistanceMatrix(cities);\n\n // Generating the Initial Population\n ArrayList<Chromosome> population = generatePopulation(cities, pathLength, populationSize);\n\n // The following is done for each generation of the population\n for (int i = 0; i < generations; i++) {\n // calculating the fitness of every chromosome in the current generation\n calculateFitnessOfPopulation(population);\n // sort the population so that the chromosomes with the highest fitness are at the start of the list\n Collections.sort(population);\n // call the method which performs crossover on the population\n Set<Chromosome> children = crossoverPopulation(population, populationSize, crossoverSize);\n // carry out mutation on the children of the current population\n children.addAll( mutatePopulation(children, mutationRate) );\n\n // evolve the population\n population.addAll(children);\n ArrayList<Chromosome> currentGeneration = new ArrayList<>(population);\n ArrayList<Chromosome> nextGeneration = evolvePopulation(currentGeneration, populationSize, cities, pathLength);\n population = new ArrayList<>(nextGeneration);\n }\n\n // find the fittest chromosome\n Chromosome fittestChromosome = population.get(0);\n double maxFitness = population.get(0).fitness;\n for (Chromosome c : population) {\n if (c.fitness > maxFitness) {\n maxFitness = c.fitness;\n fittestChromosome = c;\n }\n }\n // display the path and distance of the fittest chromosome\n System.out.println(fittestChromosome.getPath());\n System.out.println(\"Total Route Distance: \" + routeDistance(fittestChromosome));\n\n //printPopulation(population);\n }", "protected float getFitness()\t\t\t{\treturn fitness;\t\t}", "public StrategyByGA(double ProbabilityOfCooperatingGivenCooperation,\n double ProbabilityOfCooperatingGivenDefection) {\n\n name = \"Strategy Developed by the Genetic Algorithm\";\n opponentLastMove = 1;\n proCoopGivCoop = ProbabilityOfCooperatingGivenCooperation;\n proCoopGivDef = ProbabilityOfCooperatingGivenDefection;\n }", "public float getFitness()\r\n\t{\r\n\t\treturn fitness;\r\n\t}", "public OTFModelGeneration(Program program) {\n\t\tsuper();\n\t\tthis.program = program;\n\t}", "private static void updateApplication() throws FileNotFoundException {\n\t\tFile file = new File(\"C:\\\\Users\\\\singh\\\\eclipse-workspace\\\\Loan\\\\application.txt\");\n\t\tScanner scan = new Scanner(file);\n\t\tScanner scanInput = new Scanner(System.in);\n\t\tSystem.out.println(\"Type the name of the person you want to update:\");\n\t\tString personName = scanInput.nextLine();\n\t\tString person = \"\\\"\"+personName+\"\\\"\";\n\t\t\n\t\t\n\n\t\twhile (scan.hasNextLine()) {\n\n\t\t\tString line = scan.nextLine();\n\t\t\tString[] userInfo = line.split(\"\\t\");\n\t\t\tString userInfoString= userInfo[0].toLowerCase();\n\t\t\tint education = Integer.parseInt(userInfo[2]);\n\t\t\tint experience = Integer.parseInt(userInfo[3]);\n\t\t\tint sum = education + experience;\n\t\t\t\n\t\t\tint loan = Integer.parseInt(userInfo[1]);\n\t\t\tint score = 0;\n\t\t\tint[] estimatedProfit = new int[userInfo.length - 4];\n\t\t\tApplicant applicant = new Applicant(userInfo[0], education, experience, estimatedProfit, score, loan);\n\t\t\t\tif(userInfoString.equals(person.toLowerCase())) {\n\t\t\t\t\tApplicant tempApplicant = activeList.find(applicant);\n\t\t\t\t\tint updatedEducation;\n\t\t\t\t\tint updatedExperience;\n\t\t\t\t\tString updatedName;\n\t\t\t\t\tint updatedScore = 0;\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(\"Enter the updated Name:\");\n\t\t\t\t\tupdatedName = scanInput.nextLine();\n\t\t\t\t\tSystem.out.println(\"Enter the updated experience:\");\n\t\t\t\t\tupdatedExperience = scanInput.nextInt();\n\t\t\t\t\tSystem.out.println(\"Enter the updated education:\");\n\t\t\t\t\tupdatedEducation=scanInput.nextInt();\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(\"How many enteries do you have for estimated profit?\");\n\t\t\t\t\tint temp =scanInput.nextInt();\n\t\t\t\t\tint[] updatedEstPro = new int[temp];\n\t\t\t\t\tfor(int i=0;i<temp;i++) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tSystem.out.println(\"Enter the \"+(i+1)+\" entry of estimated profit\");\n\t\t\t\t\t\tint entry = scanInput.nextInt();\n\t\t\t\t\t\tupdatedEstPro[i]=entry;\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif (sum < 10) {\n\t\t\t\t\t\tapplicant = new Applicant(updatedName, updatedEducation, updatedExperience, estimatedProfit, score, loan);\n\t\t\t\t\t\trejectedList.add(applicant);\n\t\t\t\t\t}\n\n\t\t\t\t\telse {\n\n\t\t\t\t\t\t/**\n\t\t\t\t\t\t * Calculate score\n\t\t\t\t\t\t */\n\t\t\t\t\t\tint tmp = 0;\n\t\t\t\t\t\tfor (int j = 0; j < estimatedProfit.length; j++) {\n\t\t\t\t\t\t\ttmp = estimatedProfit[j] / (j + 1);\n\t\t\t\t\t\t\tupdatedScore = updatedScore + tmp;\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\tApplicant updatedApplicant = new Applicant(updatedName, updatedEducation,updatedExperience,updatedEstPro,updatedScore,loan);\n\t\t\t\t\tactiveList.updateKey(updatedApplicant );\n\t\t\t\t \n\t\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\n\t\t\n\t\t\n\n\t} }", "public void evolve_enviroment() {\r\n\r\n // this.main_population.update_population();\r\n // get the indices of the best individual in the main population\r\n int main_pop_best = this.main_population.getBest_indices();\r\n\r\n // create a new individua with the genes of the best individual\r\n this.pop_best = new individual(this.main_population.getPopulation()[main_pop_best].getGenes(), solutions, output); // best individual in population\r\n\r\n // perform selection, crossover and mutation\r\n this.roulette_selection();\r\n this.crossover();\r\n this.mutate(this.prob);\r\n this.tournament_selection(); // survivor selection\r\n\r\n // find the indices of the worst individual and replace it with the best from the last generation\r\n this.main_population.setIndividual(pop_best, this.main_population.find_Worst_indicies());\r\n this.main_population.update_population();\r\n\r\n }", "public static void main(String[] args) {\n String fileName = \"data1.txt\";\n \n \n //Load the data from the dataset file\n dataSet = getDataSet(fileName);\n \n //Setting up the output file\n String outputFileName = \"\";\n if (fileName.indexOf(\".\") > 0) {\n outputFileName = fileName.substring(0, fileName.lastIndexOf(\".\"));\n }\n \n createFile(outputFileName+\".csv\");\n \n //log the time the algorithm started\n long startTime = System.currentTimeMillis();\n \n //Placeholder of the fittest individual\n fittestIndividual = new Individual(GENE_SIZE, NUM_RULES, COND_LEN);\n fittestIndividual.generateRulebase(); \n \n //Setup the mating pool\n matingPool = setupArray(POP_SIZE, NUM_RULES, GENE_SIZE, COND_LEN);\n \n //used to run the GA multiple times without doing it manually\n //set to 1 because we want to run the GA once\n for (int a = 0; a < 1; a++) {\n currentBest = new Individual(GENE_SIZE, NUM_RULES, COND_LEN);\n currentBest.generateRulebase();\n\n //Generate a population\n generatePopulation();\n\n //Initial calculation of the fitness\n calculateFitness(population);\n\n for (int i = 0; i < GENERATION; i++) {\n average = 0; //reset the average\n currentBestArray[i] = currentBest.getFitness();\n \n tournamentSelect(population);\n\n //Calculate the fitness of the mating pool\n calculateFitness(matingPool);\n\n //Perfrom crossover on the mating pool\n crossover(matingPool);\n\n //Mutation\n mutation(matingPool);\n\n //Calculate the fitness of the mating pool\n calculateFitness(matingPool);\n\n //Evaluate the current population\n for (Individual individual : matingPool) {\n if (individual.getFitness() > currentBest.getFitness()) {\n currentBest = new Individual(individual);\n }\n average = average + individual.getFitness();\n }\n \n\n //Replace the population with the new generation\n for (int j = 0; j < POP_SIZE; j++) {\n population[j] = new Individual(matingPool[j]);\n }\n \n averageArray[i] = average / POP_SIZE;\n }\n \n //Check whether the current best is fitter than the global fittest individual\n if (currentBest.fitness > fittestIndividual.fitness) {\n fittestIndividual = new Individual(currentBest);\n //copy the fittest individuals performance\n fittestArray = Arrays.copyOf(currentBestArray, currentBestArray.length);\n }\n }\n\n System.out.println(\"Best fitness generated for the dataset: \" + fittestIndividual.fitness);\n \n //output the rules\n printRules(fittestIndividual.getRulebase());\n \n //Save the performance data into the output file\n for (int i = 0; i < fittestArray.length; i++) {\n addToFile(i, fittestArray[i], averageArray[i]);\n }\n \n //close the file\n close();\n \n //Evaluate the fitness agaisnt the dataset\n calculateFitness(fittestIndividual);\n double accuracyPercentage = ((double) 100 / dataSet.size()) * fittestIndividual.fitness;\n System.out.format(\"%.2f%% accuracy on the datase set.\\n\", accuracyPercentage);\n \n //Log the duration it took\n long duration = System.currentTimeMillis() - startTime;\n System.out.println(\"Completed in \" + String.format(\"%02d min, %02d.%02d sec\",\n TimeUnit.MILLISECONDS.toMinutes(duration),\n TimeUnit.MILLISECONDS.toSeconds(duration)\n - TimeUnit.MINUTES.toSeconds(TimeUnit.MILLISECONDS.toMinutes(duration)),\n TimeUnit.MILLISECONDS.toMillis(duration) - TimeUnit.SECONDS.toMillis(TimeUnit.MILLISECONDS.toSeconds(duration))\n ));\n }", "public static void genocide() {\n //Assigns fitness levels\n evaluateFitnesses();\n\n //Sorts by fitness\n sortByFitlvl();\n\n //Simple genocide, kills off all until population size.\n for (int i = Population.size() - 1; i >= populationSize; i--) {\n Population.remove(i);\n }\n\n /*\n //Different kind of Genocide, selects organisms based on gaussian distribution\n\n while(Population.size() > populationSize){\n int randomOrganism = (int)(Population.size() - (Population.size()*Utilities.sharpGauss(2)));\n Population.remove(randomOrganism);\n }\n */\n }", "private void updateGPA(Double calculate_gpa) {\n tableHomeFrame.updateGPA(calculate_gpa);\n }", "public void updateData() {\n\n ProgramWorker pw = new ProgramWorker();\n pw.execute();\n\n }", "public void updatePopulation() {\r\n this.usedPopulation = Integer.parseInt(data.driver.findElement(By.id(\"pop_current_label\")).getText());\r\n this.maxPopulation = Integer.parseInt(data.driver.findElement(By.id(\"pop_max_label\")).getText());\r\n }", "public abstract double evaluateFitness();", "public double fitness()\n/* */ {\n/* 40 */ return 1.0D / (1.0D + this.distance);\n/* */ }", "void ComputeFitnessBefore(){\n\t\t\t\tint i, pos;\n\t\t\t\t// individual t;\n\t\t\t\tdouble min, sum = 0, tm;\n\t\t\t\t// First Compute Raw fitness\n\t\t\t\tfor(i = 0; i < poplen; i++)\n\t\t\t\t{\n\t\t\t\t\tif(oldpop[i].evaluated==FALSE)\n\t\t\t\t\t{ tm=ComputeRF(oldpop[i]);\n\t\t\t\t\t\toldpop[i].fitness = tm;\n\t\t\t\t\t\toldpop[i].oldfitness = tm;\n\t\t\t\t\t\toldpop[i].evaluated=TRUE;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\toldpop[i].fitness=oldpop[i].oldfitness;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//oldpop[i].DisplayIndividual();\n\t\t\t\t\t//System.out.println(oldpop[i].fitness);\n\t\t\t\t}\n\t\t\t\t//tim individual co fitness be nhat\n\t\t\t\tmin = oldpop[0].fitness;\t\t\t\n\t\t\t\tsum = oldpop[0].fitness;\t\t\t\n\t\t\t\t\n\t\t\t\tfor(i = 1; i < poplen; i++) {\n\t\t\t\t\tif(oldpop[i].fitness < min) {\n\t\t\t\t\t\tmin = oldpop[i].fitness;\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\tsum += oldpop[i].fitness;\t\t\t\t\n\t\t\t\t}\n\t\t\t\t// copy the best and average\n//\t\t\t\tbestBeforeFitness[gen]=min;\n//\t\t\t\tavgBeforeFitness[gen]=sum/poplen;\n//\t\t\t\tbestcurrent[gen] = new individual();\n//\t\t\t\tbestcurrent[gen].CopyIndividual(oldpop[pos], TRUE);\n//\t\t\t\taverage[gen] = sum /poplen;\t\t\t\n\t\t\t\t\n\t\t\t}", "public int getFitness()\n {\n return this.fitness;\n }", "public AIAssign2(){\n \n Scanner console = new Scanner(System.in);\n \n System.out.print(\"Input population size \");\n popsize = console.nextInt();\n \n System.out.print(\"Input tournament size \");\n tournysize = console.nextInt();\n \n System.out.print(\"Input crossover chance (%) \");\n crossprob = console.nextDouble();\n \n System.out.print(\"Input mutation chance (%) \");\n mutaprob = console.nextDouble();\n \n System.out.print(\"Input max generation size \");\n maxgen = console.nextInt();\n \n System.out.print(\"Input problem width \");\n width = console.nextInt();\n \n System.out.print(\"Input problem height \");\n height = console.nextInt();\n \n System.out.print(\"Input start location x-1 \");\n startx = console.nextInt();\n \n System.out.print(\"Input start location y-1 \");\n starty = console.nextInt();\n \n System.out.print(\"Input seed value \");\n seed = console.nextLong();\n \n Random rnd = new Random(seed);\n \n population = new int[popsize][height*width];\n population2 = new int[popsize][height*width];\n popfitness = new int[popsize];\n \n for (int i = 0 ; i<popsize ; i++){\n for (int j = 0 ; j<population[0].length ; j++){\n population[i][j] = (rnd.nextInt(4));\n }\n }\n Print(population);\n \n //the generation loop\n for (int gen = 0 ; gen < maxgen ; gen++){\n \n //fitness of individuals is stored\n int btemp = 0;\n for (int i = 0 ; i < popsize ; i++){\n \n problem = new char[width][height];\n problem[startx][starty] = 'S';\n \n popfitness[i] = Fitness(population[i], problem, startx, starty, 0);\n \n if (popfitness[i] > btemp){ btemp = popfitness[i];}\n }\n bestavg = bestavg + btemp;\n \n String line=\"\";\n int avg=0;\n for (int i = 0 ; i < popsize ; i++){\n line = line + \"[\" + popfitness[i] + \"] \"; \n avg = avg + popfitness[i];\n }\n avg = avg/popsize;\n avgavg = avgavg + avg;\n bestavg = bestavg / (gen+1);\n avgavg = avgavg / (gen+1);\n System.out.println(\"Gen: \"+gen + \" Fitness: \"+ line + \" Avg: \"+ avg + \" BestAvg: \" + bestavg + \" AvgAvg: \" + avgavg);\n bestavg = bestavg * (gen+1);\n avgavg = avgavg * (gen+1);\n \n //Tournament selection\n for (int i = 0 ; i < popsize ; i++){\n int best = 0; \n int rand = (int)(rnd.nextInt(popsize));\n best = rand;\n \n for (int k = 0 ; k < tournysize ; k++){\n if (popfitness[rand] > popfitness[best]){\n best = rand;\n }\n \n rand = (int)(rnd.nextInt(popsize));\n }\n population2[i] = Copy(population[best]); \n }\n \n //single-focus-flip and block exchange mutations\n for (int i = 0 ; i < popsize-1 ; i++){\n if (crossprob > rnd.nextInt(100)){\n int temp; \n for (int a = 0 ; a < 5 ; a++){\n temp = population2[i][a];\n population2[i][a] = population2[i+1][a];\n population2[i+1][a] = temp;\n }\n }\n }\n \n for (int i = 0 ; i < popsize ; i++){\n if (mutaprob > rnd.nextInt(200)){\n int temp = (int) (rnd.nextInt(population2[0].length)); \n population2[i][temp] = (int)(rnd.nextInt(4));\n }\n else if (mutaprob > rnd.nextInt(200)){\n for (int j = 0 ; j < population2[0].length/2 ; j++){\n int temp = population2[i][j];\n population2[i][j] = population2[i][population2[0].length-1-j];\n population2[i][population2[0].length-1-j] = temp;\n }\n }\n }\n \n population = population2;\n population2 = new int[popsize][population[0].length];\n \n }\n \n bestavg = bestavg / maxgen;\n avgavg = avgavg / maxgen;\n Print(population);\n System.out.println(\"Best Avg: \" + bestavg + \" Average of Avg: \" + avgavg);\n }", "public GeneticEngine() {\n avgFitnesses = new ArrayList<Double>();\n highFitnesses = new ArrayList<Double>();\n population = null;\n crossoverProbability = 0.07;\n mutationProbability = 0.001;\n maxGenerations = Integer.MAX_VALUE;\n }", "public void setGPA(double newGPA)throws Exception{\n\t\t\n\t\tif ((newGPA >= 0) && (newGPA <= 4.0)){\n\t\t\tthis.gpa = newGPA;\n\t\t\tString txt = Double.toString(newGPA);\n\t\t\toverWriteLine(\"GPA\", txt);\n\t\t}\n\n\t}", "double fitness(int gene) {\r\n \tint sum = 0;\r\n \tint prod= 1;\r\n \tfor (int j=0; j<LEN; j++) {\r\n \t\tif (oldpop[gene][j]==0) {\r\n \t\t\tsum += (j+1);\r\n \t\t} else {\r\n \t\t\tprod *= (j+1);\r\n \t\t}\r\n \t}\r\n \treturn Math.abs(sum - SUMTARG)/SUMTARG \r\n \t + Math.abs(prod - PRODTARG)/PRODTARG;\r\n }", "public boolean update(JSONObject jsonProgram);", "private void updatePreferences() {\n\n /* Update preferences of the agent */\n patientAgent.updatePreferredAllocations();\n List<AllocationState> newPreferredAllocations = patientAgent.getAllocationStates();\n preferredAllocationsIterator = patientAgent.getAllocationStates().iterator();\n currentSize = patientAgent.getAllocationStates().size();\n\n if (newPreferredAllocations.isEmpty() || iterationsWithNoImprovementCount >= maxIterationsNum) {\n /* We shut down the behaviour if there are no better appointments\n or we exceeded the possible number of non-improving algorithm iterations\n */\n isHappyWithAppointment = true;\n\n } else if (newPreferredAllocations.size() >= currentSize) {\n\n /* No improvement has been made in our algorithm */\n iterationsWithNoImprovementCount++;\n } else {\n\n /* Improved the appointment, resetting the counter */\n iterationsWithNoImprovementCount = 0;\n }\n\n\n }", "public void evaluate()\r\n {\r\n\tdouble max = ff.evaluate(chromos.get(0),generation());\r\n\tdouble min = max;\r\n\tdouble sum = 0;\r\n\tint max_i = 0;\r\n\tint min_i = 0;\r\n\r\n\tdouble temp = 0;\r\n\r\n\tfor(int i = 0; i < chromos.size(); i++)\r\n\t {\r\n\t\ttemp = ff.evaluate(chromos.get(i),generation());\r\n\t\tif(temp > max)\r\n\t\t {\r\n\t\t\tmax = temp;\r\n\t\t\tmax_i = i;\r\n\t\t }\r\n\r\n\t\tif(temp < min)\r\n\t\t {\r\n\t\t\tmin = temp;\r\n\t\t\tmin_i = i;\r\n\t\t }\r\n\t\tsum += temp;\r\n\t }\r\n\r\n\tbestFitness = max;\r\n\taverageFitness = sum/chromos.size();\r\n\tworstFitness = min;\r\n\tbestChromoIndex = max_i;;\r\n\tworstChromoIndex = min_i;\r\n\tbestChromo = chromos.get(max_i);\r\n\tworstChromo = chromos.get(min_i);\r\n\t\r\n\tevaluated = true;\r\n }", "public interface GAIndividual\r\n{\r\n public void mutate(double rate);\r\n public GAIndividual directReproduce();\r\n public GAIndividual reproduce( GAIndividual i );\r\n \r\n public int getFitness();\r\n public void setFitness ( int fitness );\r\n public void setRoulette (int start, int finish);\r\n public boolean hasRouletteNumber (int winner);\r\n public String toString();\r\n}", "public Chromosome withFitnessCalculated() {\n this.fitness = calculateFitness();\n return this;\n }", "public double setFitnessScore(double fitnessScore) {\n\t\tdouble previousValue = this.fitnessScore;\n\t\tthis.fitnessScore = fitnessScore;\n\t\treturn previousValue;\n\t}", "public void updateGame(){\n\t\tbird.tick(input);\n\t\tthis.spawnObstacle();\n\t\tif(this.obstacles.size() > 0 && this.goals.size() > 0){\n\t\t\tfor(int i=0;i<this.obstacles.size();i++){\n\t\t\t\tObstacle obs = obstacles.get(i);\n\t\t\t\tobs.tick();\n\t\t\t\tif(this.bird.onCollision(obs.x, obs.y, obs.w,obs.h)){\n\t\t\t\t\tthis.gameOver = true;\n\t\t\t\t\tSound.dead.play();\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i=0;i<this.goals.size();i++){\n\t\t\t\tGoal goal = goals.get(i);\n\t\t\t\tgoal.tick();\n\t\t\t\tif(this.bird.onCollision(goal.x, goal.y, goal.w,goal.h) && goal.active){\n\t\t\t\t\tSound.clink.play();\n\t\t\t\t\tthis.numGoals++;\n\t\t\t\t\tif(this.numGoals > this.bestScore) this.bestScore = this.numGoals;\n\t\t\t\t\tgoal.active = false;\n\t\t\t\t\tSystem.out.println(this.numGoals);\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t}", "public void setProgram( ProgramEntity program ) {\n this.program = program;\n }", "private void update()\r\n\t{\r\n\t\tfor (Agent agent : agents)\r\n\t\t{\r\n\t\t\tint i = agent.getIndex();\r\n\t\t\tp.setEntry(i, agent.getP());\r\n\t\t\tq.setEntry(i, agent.getQ());\r\n\t\t\tvabs.setEntry(i, agent.getVabs());\r\n\t\t\tvarg.setEntry(i, agent.getVarg());\r\n\t\t\tlambdaP.setEntry(i, agent.getLambdaP());\r\n\t\t\tlambdaQ.setEntry(i, agent.getLambdaQ());\r\n\t\t}\r\n\t}", "public void update() {\n\t\t\tif (!max.getText().isEmpty()) {\n\t\t\t\tInteger maxVal = Integer.parseInt(max.getText());\n\t\t\t\tif (maxVal > 2) {\n\t\t\t\t\tboolean toUpdate = false;\n\t\t\t\t\tPlgProbabilityDistribution distr = null;\n\t\t\t\t\tif (((String)cb.getSelectedItem()).equals(PlgProbabilityDistribution.distributionToName(DISTRIBUTION.UNIFORM))) {\n\t\t\t\t\t\tdistr = PlgProbabilityDistribution.uniformDistributionFactory();\n\t\t\t\t\t\ttoUpdate = true;\n\t\t\t\t\t} else if (((String)cb.getSelectedItem()).equals(PlgProbabilityDistribution.distributionToName(DISTRIBUTION.BETA))) {\n\t\t\t\t\t\tif (!alpha.getText().isEmpty() && !beta.getText().isEmpty()) {\n\t\t\t\t\t\t\tDouble a = Double.parseDouble(alpha.getText());\n\t\t\t\t\t\t\tDouble b = Double.parseDouble(beta.getText());\n\t\t\t\t\t\t\tdistr = PlgProbabilityDistribution.betaDistributionFactory(a, b);\n\t\t\t\t\t\t\ttoUpdate = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (((String)cb.getSelectedItem()).equals(PlgProbabilityDistribution.distributionToName(DISTRIBUTION.NORMAL))) {\n\t\t\t\t\t\tdistr = PlgProbabilityDistribution.normalDistributionFactory();\n\t\t\t\t\t\ttoUpdate = true;\n\t\t\t\t\t}\n\t\t\t\t\tif (toUpdate) {\n\t\t\t\t\t\tp.updateDistribution(dv, maxVal, distr);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}", "void calcFittest(){\n System.out.println(\"Wall hugs\");\n System.out.println(this.wallHugs);\n\n System.out.println(\"Freedom points\");\n System.out.println(this.freedomPoints);\n\n System.out.println(\"Visited points\");\n System.out.println(this.vistedPoints);\n\n this.fitnessScore = freedomPoints - wallHugs - vistedPoints;\n System.out.println(\"Individual fit score: \" + fitnessScore);\n }", "private void uniformMutation(){\n Random random = new Random();\n double newValue = random.nextGaussian()*16.6 + 50.0;\n if(newValue < 0) newValue = 0;\n if(newValue > 100) newValue = 100;\n int gene = random.nextInt(6);\n switch (gene){\n case 0 : this.x1 = newValue; break;\n case 1 : this.x2 = newValue; break;\n case 2 : this.x3 = newValue; break;\n case 3 : this.y1 = newValue; break;\n case 4 : this.y2 = newValue; break;\n case 5 : this.y3 = newValue; break;\n }\n }", "public double calculateFitness(DNA dna);", "private void initGP() {\n log.info(\"Initializing GP\");\n geneticProgram.addPopulationObserver(this);\n geneticProgram.initialize();\n frontRunner = geneticProgram.getProgram(0); // A safe default\n }", "public void runGeneticAlgo() {\n\t\tint offspringLimit = (int)(OFFSPRING_POOL_LIMIT * geneNumber);\n\t\tint factor = (int) Math.pow(10, String.valueOf(offspringLimit).length() - 1);\n\t\twhile(offspringPool.size() < offspringLimit) {\n\t\t\trunTournament();\n\t\t\tif(offspringPool.size() % factor == 0) {\n\t\t\t\tSystem.out.println(\"Finished \" + offspringPool.size() + \" tournaments\");\n\t\t\t}\n\t\t}\n\t\tsortPool();\n\t\tArrayList<Gene> newGenepool = new ArrayList<Gene>(genepool.subList(0, geneNumber - offspringLimit));\n\t\tnewGenepool.addAll(offspringPool);\n\t\tgenepool = newGenepool;\n\t\toffspringPool = new ArrayList<Gene>();\n\t}", "public static Individual run(int number) {\n\n //Initialize logging of the run\n\n DetailsLogger.startNewLog(detailsLogPrefix + \".\" + number + \".xml\");\n DetailsLogger.logParams(prop);\n\n //Set the rng seed\n\n RandomNumberGenerator.getInstance().reseed(number);\n\n //Create new population\n Population pop = new Population();\n pop.setPopulationSize(popSize);\n pop.setSampleIndividual(new BooleanIndividual(dimension));\n pop.createRandomInitialPopulation();\n\n\n //Set the options for the evolutionary algorithm\n EvolutionaryAlgorithm ea = new EvolutionaryAlgorithm();\n ea.setCPUCores(cpu_cores);\n ea.setFitnessFunction(new ExampleFitnessFunction());\n ea.addMatingSelector(new RouletteWheelSelector());\n ea.addOperator(new OnePtXOver(xoverProb));\n ea.addOperator(new BitFlipMutation(mutProb, mutProbPerBit));\n\n //Run the algorithm\n\n try {\n OutputStreamWriter out = new OutputStreamWriter(new FileOutputStream(fitnessFilePrefix + \".\" + number));\n OutputStreamWriter progOut = new OutputStreamWriter(new FileOutputStream(objectiveFilePrefix + \".\" + number));\n\n for (int i = 0; i < maxGen; i++) {\n\n //Make one generation\n ea.evolve(pop);\n ArrayList<Individual> sorted = pop.getSortedIndividuals();\n //Log the best individual to console.\n System.out.println(\"fitness: \" + sorted.get(0).getFitnessValue() + \" \" + sorted.get(0));\n\n //Add population statistics to the logs\n StatsLogger.logFitness(pop, out);\n StatsLogger.logObjective(pop, progOut);\n }\n\n OutputStreamWriter bestOut = new OutputStreamWriter(new FileOutputStream(bestPrefix + \".\" + number));\n\n Individual bestInd = pop.getSortedIndividuals().get(0);\n bestOut.write(bestInd.toString());\n\n out.close();\n progOut.close();\n bestOut.close();\n\n DetailsLogger.writeLog();\n\n return bestInd;\n } catch (Exception e) {\n e.printStackTrace();\n }\n return null;\n }", "public void update(Main main);", "public void updateModel() {\n\t\tIterator<Cell> itr = iterator();\n\t\twhile(itr.hasNext()) itr.next().update();\n\t\titr = iterator();\n\t\twhile(itr.hasNext()) {\n\t\t\t(itr.next()).nextGeneration();\n\t\t}\n\t\tupdateGraph();\n\t}", "static double fitness(vmnode[] vms, jobnode[] jobs, int[] assigned, HashMap<Integer, Integer> map, double[][] ect) {\n double libd = LIBD(vms, jobs, assigned);\n double makesp = calcmakespan(map, ect);\n return libd * makesp;\n }", "public interface GeneticOptimizer {\r\n\tpublic int getGenPopulation();\r\n\tpublic void setGenPopulation(Integer popSize);\r\n\tpublic int getGenIterations();\r\n\tpublic void setGenIterations(Integer iterations);\r\n\r\n}", "public Population mutatePopulation(Population population, List<FogDevice> fogDevices, List<? extends Cloudlet> cloudletList) {\n\n // Loop over current population by fitness\n for (int populationIndex = 1; populationIndex < population.size(); populationIndex++) {\n // if the current individual is selected to mutation phase\n if (this.mutationRate > Math.random()) {\n Individual individual = population.getFittest(populationIndex);\n individual = this.mutateIndividual(individual);\n }\n }\n // Return mutated population\n return population;\n }", "void EvolutionWithElitism(){\n\t\t \tint i, j, l, k;\n\t\t\t//individual[] temp;\n\t\t\tbyte _flippc=0,_flippm=0;\n//\t\t\tString _temp1=\"\", _temp2=\"\";\n\t\t\tint[] _cp;\n\t\t\tnode[] _nd,_nm;\n\t\t\t// Khoi tao quan the dau tien \n\t\t\tRampedInit(6, 0.5);\n\t\t\t//RampedInitOffLine(6, 0.5,15);\n\t\t\t\n//\t\t\tconstructiveRate = new double[NUMGEN];\n//\t\t\tsemanticDistance = new double[NUMGEN];\n\t\t\t\n\t\t\tgen = 0;\n\t\t\twhile(gen < generation) {\n\t\t\t\t\n\t\t\t\tComputeFitness();\n\t\t\t\t\n//\t\t\t\tint g_ncross = 0;\n//\t\t\t\tdouble g_sd = 0;\n//\t\t\t\tPrintToFile();\n\t//----------------------\n//\t\t\t\tFileInputStream instream = null;\n//\t\t\t\tPrintStream outstream = null;\n//\t\t\t\tPrintStream console = System.out;\n//\t\t\t\ttry {\n//\t\t\t\t\toutstream = new PrintStream(new FileOutputStream(\"c:/result/\" + \"detail_\"+ gen + \".txt\"));\n//\t\t\t\t\tSystem.setOut(outstream);\n//\t\t\t\t} catch(Exception e) {\n//\t\t\t\t\tSystem.err.println(\"Error Occurred.\");\n//\t\t\t\t}\n//\t\t\t\tfor(i = 0; i < poplen; i++) {\n//\t\t\t\t\tSystem.out.printf(\"%3.5f \",oldpop[i].fitness);\n//\t\t\t\t\tif((i+1) % 10 == 0) {\n//\t\t\t\t\t\tSystem.out.println();\n//\t\t\t\t\t}\n//\t\t\t\t}\n//\t\t\t\tfor(int ii = 0; ii < poplen; ii++) {\t\t\t\n//\t\t\t\t\t_temp1=\"\";\n//\t\t\t\t\t_temp1=oldpop[ii].chrom.TreeToStringN(oldpop[ii].chrom);\n//\t\t\t\t\tSystem.out.printf(\"%s\",ii+\" \"+ _temp1);\t\t\t\n//\t\t\t\t\tSystem.out.println();\n//\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// copy anh tot nhat sang the he sau\t \t\n\t\t\t\tnewpop[0].CopyIndividual(bestcurrent[gen], TRUE);\n\t\t\t\t// dot bien anh thu 2\n\t\t\t \n\t\t\t\tl=1;\t\n\t\t\t\ti = TourSelect(TOURSIZE);\n//\t\t\t\t\n\t\t\t\t\n\t\t\t newpop[l].CopyIndividual(oldpop[i], TRUE);\n\t\t\t\tindividual[] m_individual0=new individual[1];\n\t\t\t\tint[] _mt0=new int[1];\n\t\t\t\t_nm=new node[1];\n\t\t\t\tthis.ReplaceSubTree(newpop[l], m_individual0, 15, TRUE,_mt0,_nm);\n\t\t\t\tnewpop[l]=new individual();\n\t\t\t\tnewpop[l].CopyIndividual(m_individual0[0], TRUE);\t\t\t\n\t\t\t\tnewpop[l].evaluated=FALSE;\t\t\n//\t\t\t\t\n//\t\t\t\tm_individual0=null;\n\t\t\t\t\n\t//------------------------\t\t\n\t\t\t\tl = 2;\t\t\t\n\t\t\t\twhile(l < poplen) {\n\t\t\t\t//\tSystem.out.println(\"Generation \"+ String.valueOf(gen)+\":\");\n\t\t\t\t\t\t\t\t\t\t\n//\t\t\t\t\t\n\t\t\t\t\ti = TourSelect(TOURSIZE);\n\t\t\t\t\tj = TourSelect(TOURSIZE);\n\t\t\t\t\t\n//\t\t\t\t\t\n//\t\t\t\t\t\t\n\t\t\t\t _flippc=Flip(pcross);\n//\t\t\t\t System.out.printf(\"pcross:%d\", _flippc);\n//\t\t\t\t System.out.println();\n\t\t\t\t\tif(_flippc == 1) {\t\t\t\t\t\n\t\t\t\t\t\tindividual[] i_temp=new individual[2];\n\t\t\t\t\t\t_cp=new int[2];\n\t\t\t\t\t\t_nd=new node[2];\n\t\t\t\t//\t\n\t\t\t\t//\t\tif(SubTreeSwapWithTTest(oldpop[i], oldpop[j], i_temp,_cp,_nd) == TRUE)\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(SubTreeSwap(oldpop[i], oldpop[j], i_temp,_cp,_nd) == TRUE)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tnewpop[l].CopyIndividual(i_temp[0],TRUE);\n\t\t\t\t\t\t\tnewpop[l+1].CopyIndividual(i_temp[1],TRUE);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tnewpop[l].evaluated=FALSE;\n\t\t\t\t\t\t\tnewpop[l+1].evaluated=FALSE;\n//\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tncross++;\n\t\t\t\t\t\t\ti_temp=null;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// semantic distance\n//\t\t\t\t\t\t\tg_sd += newpop[l].getSemanticDistance(oldpop[i]);\n//\t\t\t\t\t\t\tg_sd += newpop[l+1].getSemanticDistance(oldpop[j]);\t\t\t\t\t\n//\t\t\t\t\t\t\tg_ncross++;\n\t\t\t\t\t\t\t\n//\t\t\t\t\t\t\tg_sd += oldpop[i].getSemanticDistance(oldpop[j]);\t\t\t\t\t\n//\t\t\t\t\t\t\tg_ncross++;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\t\t\t\t\t\t\n\t\t\t\t\t\t\tnewpop[l].CopyIndividual(oldpop[i], TRUE);\n\t\t\t\t\t\t\tnewpop[l + 1].CopyIndividual(oldpop[j],TRUE);\n//\t\t\t\t\t\t\tSystem.out.printf(\"%s\",\"reproduction\");\n//\t\t\t\t\t\t\tSystem.out.println();\n//\t\t\t\t\t\t\t_temp1=\"\";\n//\t\t\t\t\t\t\t_temp1=newpop[l].chrom.TreeToStringN(newpop[l].chrom);\n//\t\t\t\t\t\t\tSystem.out.printf(\"%s\", _temp1);\t\t\t\n//\t\t\t\t\t\t\tSystem.out.println();\n//\t\t\t\t\t\t\t_temp2=\"\";\n//\t\t\t\t\t\t\t_temp2=newpop[l+1].chrom.TreeToStringN(newpop[l+1].chrom);\n//\t\t\t\t\t\t\tSystem.out.printf(\"%s\", _temp2);\t\t\t\n//\t\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\t\ti_temp=null;\n\t\t\t\t\t\t} \n\t\t\t\t\t} \n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tnewpop[l].CopyIndividual(oldpop[i], TRUE);\n\t\t\t\t\t\tnewpop[l + 1].CopyIndividual(oldpop[j],TRUE);\n//\t\t\t\t\t\tSystem.out.printf(\"%s\",\"reproduction\");\n//\t\t\t\t\t\tSystem.out.println();\n//\t\t\t\t\t\t_temp1=\"\";\n//\t\t\t\t\t\t_temp1=newpop[l].chrom.TreeToStringN(newpop[l].chrom);\n//\t\t\t\t\t\tSystem.out.printf(\"%s\", _temp1);\t\t\t\n//\t\t\t\t\t\tSystem.out.println();\n//\t\t\t\t\t\t_temp2=\"\";\n//\t\t\t\t\t\t_temp2=newpop[l+1].chrom.TreeToStringN(newpop[l+1].chrom);\n//\t\t\t\t\t\tSystem.out.printf(\"%s\", _temp2);\t\t\t\n//\t\t\t\t\t\tSystem.out.println();\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t// mutation test\n\t\t\t\t\t_flippm=Flip(pmutate);\n//\t\t\t\t\tSystem.out.printf(\"pmutation:%d\", _flippm);\n//\t\t\t\t System.out.println();\n\t\t\t\t\tif(_flippm == 1) {\t\t\t\t\t\n\t\t\t\t\t\tindividual[] m_individual=new individual[1];\n\t\t\t\t\t\tint[] _mt=new int[1];\n\t\t\t\t\t\t_nm=new node[1];\n\t\t\t\t\t\tthis.ReplaceSubTree(newpop[l], m_individual, 15, TRUE,_mt,_nm);\n\t\t\t\t\t\tnewpop[l]=new individual();\n\t\t\t\t\t\tnewpop[l].CopyIndividual(m_individual[0], TRUE);\n\t\t\t\t\t\t\n\t\t\t\t\t\tnewpop[l].evaluated=FALSE;\n\t\t\t\t\t\t\n//\t\t\t\t\t\tSystem.out.printf(\"%s\",\"mutation \"+l+\" replacepoint:\"+_mt[0]);\n//\t\t\t\t\t\tSystem.out.println();\n//\t\t\t\t\t\t_temp1=\"\";\n//\t\t\t\t\t\t_temp1=newpop[l].chrom.TreeToStringN(_nm[0]);\n//\t\t\t\t\t\tSystem.out.printf(\"%s\", _temp1);\t\t\t\n//\t\t\t\t\t\tSystem.out.println();\n//\t\t\t\t\t\t_temp1=\"\";\n//\t\t\t\t\t\t_temp1=newpop[l].chrom.TreeToStringN(newpop[l].chrom);\n//\t\t\t\t\t\tSystem.out.printf(\"%s\", _temp1);\t\t\t\n//\t\t\t\t\t\tSystem.out.println();\t\t\t\t\t\n\t\t\t\t\t\tnmutate++;\n\t\t\t\t\t\tm_individual=null;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n//\t\t\t\t\t\t_temp1=\"\";\n//\t\t\t\t\t\t_temp1=newpop[l].chrom.TreeToStringN(newpop[l].chrom);\n//\t\t\t\t\t\tSystem.out.printf(\"%s\", _temp1);\t\t\t\n//\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif(Flip(pmutate) == 1) {\n\t\t\t\t\t\tindividual[] m_individual1=new individual[1];\n\t\t\t\t\t\tint[] _mt=new int[1];\n\t\t\t\t\t\t_nm=new node[1];\n\t\t\t\t\t\tthis.ReplaceSubTree(newpop[l + 1], m_individual1, 15, TRUE,_mt,_nm);\n\t\t\t\t\t\tnewpop[l+1]=new individual();\n\t\t\t\t\t\tnewpop[l+1].CopyIndividual(m_individual1[0], TRUE);\t\n\t\t\t\t\t\t\n\t\t\t\t\t\tnewpop[l+1].evaluated=FALSE;\n//\t\t\t\t\t\tSystem.out.printf(\"%s\",\"mutation \"+(l+1)+\" replacepoint:\"+_mt[0]);\n//\t\t\t\t\t\tSystem.out.println();\n//\t\t\t\t\t\t_temp2=\"\";\n//\t\t\t\t\t\t_temp2=newpop[l+1].chrom.TreeToStringN(_nm[0]);\n//\t\t\t\t\t\tSystem.out.printf(\"%s\", _temp2);\t\t\t\n//\t\t\t\t\t\tSystem.out.println();\n//\t\t\t\t\t\t_temp2=\"\";\n//\t\t\t\t\t\t_temp2=newpop[l+1].chrom.TreeToStringN(newpop[l+1].chrom);\n//\t\t\t\t\t\tSystem.out.printf(\"%s\", _temp2);\t\t\t\n//\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\tnmutate++;\n\t\t\t\t\t\tm_individual1=null;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n//\t\t\t\t\t\t_temp2=\"\";\n//\t\t\t\t\t\t_temp2=newpop[l+1].chrom.TreeToStringN(newpop[l+1].chrom);\n//\t\t\t\t\t\tSystem.out.printf(\"%s\", _temp2);\t\t\t\n//\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t}\n\t\t\t\t\tl += 2;\n\t\t\t\t}\n//\t\t\t\tfor(int ii = 0; ii < poplen; ii++) {\t\t\t\n//\t\t\t\t\t_temp1=\"\";\n//\t\t\t\t\t_temp1=oldpop[ii].chrom.TreeToStringN(newpop[ii].chrom);\n//\t\t\t\t\tSystem.out.printf(\"%s\",ii+\" \"+ _temp1);\t\t\t\n//\t\t\t\t\tSystem.out.println();\n//\t\t\t\t}\n//\t\t\t\toutstream.close();\n//\t\t\t\tSystem.setOut(console);\n\t\t\t\t// Thống kê tỷ lệ tTest\n\t\t\t\t\n\t\t\t\n\t\t\t\t\n\t//\t\t\tsemanticDistance[gen] = g_sd / (2.0 * g_ncross);\n//\t\t\t\tsemanticDistance[gen] = g_sd /g_ncross;\n\t\t\t\t\n\t\t\t\tgen++;\n\t\t\t\tfor(k = 0; k < poplen; k++)\n\t\t\t\t{\n\t\t\t\t\toldpop[k]=null;\n\t\t\t\t\toldpop[k]=new individual();\n\t\t\t\t\toldpop[k].CopyIndividual(newpop[k], TRUE);\n\t\t\t\t}\n\t\t\t}\n\t\t}", "public void GeneticAlgorithm (TableVar Variables, TableDat Examples, String nFile) {\r\n\r\n String contents;\r\n\r\n // Creates and initialices the population\r\n poblac = new Population(long_poblacion, Variables.getNVars(), RulesRep, Variables);\r\n poblac.RndInitPop (Variables);\r\n\r\n // Creates the populations \"Inter\" and \"Des\" to aply the genetic operations\r\n Inter = new Population(long_poblacion, Variables.getNVars(), RulesRep, Variables);\r\n Des = new Population(2*long_poblacion, Variables.getNVars(), RulesRep, Variables);\r\n \r\n // Inicialisation of variables\r\n Trials = 0;\r\n Gen = 0;\r\n\r\n // Evaluation of the individuals of the initial population\r\n Trials+=poblac.evalPop (this, Variables, Examples, false);\r\n \r\n // Increments the generation number\r\n Gen++; \r\n \r\n // General cycle of the genetic algorithm\r\n do {\r\n // Selection by Baker method\r\n if(RulesRep.compareTo(\"CAN\")==0)\r\n SelectCAN (Variables);\r\n else SelectDNF (Variables);\r\n\r\n // Crossover\r\n descendientes = 0;\r\n if(RulesRep.compareTo(\"CAN\")==0)\r\n MultipointCrossoverCAN (Variables);\r\n else MultipointCrossoverDNF (Variables);\r\n descendientes = 2;\r\n \r\n // Mutation\r\n if(RulesRep.compareTo(\"CAN\")==0)\r\n MutationCAN (Variables);\r\n else MutationDNF (Variables);\r\n\r\n // Reproduction\r\n if(RulesRep.compareTo(\"CAN\")==0)\r\n SteadyStepReproductionCAN(Variables);\r\n else SteadyStepReproductionDNF(Variables);\r\n\r\n // Evaluation of the new population\r\n Trials+=poblac.evalPop (this, Variables, Examples, false);\r\n\r\n // Next generation\r\n Gen++;\r\n\r\n // GA finishes when the number of evaluations is reached\r\n } while (Trials <= n_eval); \r\n\r\n contents = \" # \" + (Gen-1) + \" generations, \" + Trials + \" evaluations\\n\";\r\n Files.addToFile(nFile, contents);\r\n \r\n }", "private void mutate(float probability) {\r\n\r\n individual[] temp_pop = new individual[this.pop_size];\r\n\r\n for (int i = 0; i < this.pop_size; i++) {\r\n\r\n float temp_genes[] = this.offspring_population.getPopulation()[i].getGenes();\r\n\r\n // mutation can now mutate wild cards\r\n for (int j = 0; j < temp_genes.length; j++) {\r\n float k = new Random().nextFloat();\r\n\r\n if (k <= probability) {\r\n float temp = new Random().nextFloat();\r\n temp_genes[j] = temp; // add a float between 0-1 // just mutate a new float\r\n }\r\n }\r\n individual child = new individual(temp_genes, solutions, output);\r\n temp_pop[i] = child;\r\n }\r\n this.main_population.setPopulation(temp_pop);\r\n this.main_population.update_population();\r\n }", "public int getFitness(Graph_GA obj)\r\n\t{\r\n\t\tint fitness_score = 0;\r\n\t\tSet<DefaultEdge> edges= obj.graph_inp.edgeSet();\r\n Iterator<DefaultEdge> edges_list = edges.iterator();\r\n \r\n while(edges_list.hasNext())\r\n {\r\n \tDefaultEdge new_edge = edges_list.next();\r\n \tGA_Graph_Node source = obj.graph_inp.getEdgeSource(new_edge);\r\n \tGA_Graph_Node target = obj.graph_inp.getEdgeTarget(new_edge);\r\n \tif(chromosome[source.numID-1] == chromosome[target.numID-1])\r\n \t{\r\n \t\tfitness_score = fitness_score-1;\r\n \t}\r\n }\r\n\t\treturn fitness_score;\r\n\t}", "public void update() {\n // gear shift\n gear = simConnection.stringValueOf(gearid, \"P\");\n }", "public static void evaluateFitnesses() {\n for (Polynomial p : Population) {\n p.setRawFitness(getRawFitness(p, data));\n if (debug) {\n printPopulation(true);\n }\n }\n }", "public void evalPopulation(Population population, City cities[]) {\n\t\tdouble totalPopulationFitness = 0;\n\t\tfor (Individual individual : population.getIndividuals()) {\n\t\t\ttotalPopulationFitness += this.calcFitness(individual, cities);\n\t\t}\n\n\t\tdouble avgFitness = totalPopulationFitness / population.size();\n\n\t\tpopulation.setAverageFitness(avgFitness);\n\t}", "public GAIndividual()\n {\n m_fitness = 0;\n m_genome = new ArrayList<Integer>();\n }", "@Override\n\tpublic double valuta_figli() {\n\t\treturn simple_fitness();\n\t}", "public void setGov(int value);", "double getFitnessScore(){\n return fitnessScore;\n }", "public void setInput(Object input, int idx) {\r\n\r\n float h,s,b;\r\n // Tradeoff ScatterPlots Panel\r\n h = 0.168F;\r\n s = 0.208F;\r\n b = 0.979F;\r\n\r\n removeAll();\r\n currentPop = (IGANsgaPopulation) input;\r\n\r\n ///////////////////////////////////////////\r\n //currentPopInfo = new CurrentPopInfo();\r\n // setting up the runView\r\n\r\n int currentSize = currentPop.size();\r\n int numObj = currentPop.getNumObjectives();\r\n int numGen = currentPop.getCurrentGeneration();\r\n fitnessTable = new FitnessTable(currentPop.size(), numObj);\r\n\r\n runView.setPopulationTable(fitnessTable);\r\n \r\n StringBuffer nz = new StringBuffer(GEN_NUM);\r\n nz.append(numGen);\r\n runView.sizeLabel.setText(nz.toString());\r\n runView.redraw();\r\n\r\n StringBuffer sz = new StringBuffer(POP_SIZE);\r\n sz.append(currentSize);\r\n runView.sizeLabel.setText(sz.toString());\r\n runView.redraw();\r\n\r\n String[] objectiveNames = new String[numObj];\r\n for (int j = 0; j < numObj; j++) {\r\n objectiveNames[j] = currentPop.getObjectiveConstraints()[j].getName();\r\n }\r\n \r\n runView.om.setObjectiveNames(objectiveNames);\r\n\r\n // now copy the fitness values from the pop into the table\r\n\r\n FitnessTable ft = fitnessTable;\r\n int numRankZero = copyFitnessValuesToFitnessTable(currentPop, ft);\r\n \r\n StringBuffer rank = new StringBuffer(NUM_SOL);\r\n rank.append(numRankZero);\r\n runView.solutionsLabel.setText(rank.toString());\r\n runView.redraw();\r\n ///////////////////////////////////////////\r\n\r\n currentGen = currentPop.getCurrentGeneration();\r\n maxGen = currentPop.getMaxGenerations();\r\n\r\n // System.out.println(\"CURRENT GEN : \" + currentGen);\r\n // System.out.println(\"MAX GEN : \" + maxGen);\r\n\r\n int numObjs = currentPop.getNumObjectives();\r\n IGANsgaSolution[] nis = (IGANsgaSolution[]) (currentPop.getMembers());\r\n int numSolutions = nis.length;\r\n\r\n // Obtaining flags for which objectives are qualitative and which are quantitative\r\n qualObjs = (boolean[]) (currentPop.getIgaQualObj());\r\n\r\n // get the names of the objectives\r\n int numQuantObjs = 0;\r\n for (int i = 0; i < numObjs; i++) {\r\n if (qualObjs[i] == false){\r\n numQuantObjs++;\r\n }\r\n }\r\n String[] names = new String[numQuantObjs];\r\n\r\n // create the table\r\n // final MutableTable currentPopTable = (MutableTable) DefaultTableFactory.\r\n // BASIC 3 currentPopTable = (MutableTable) DefaultTableFactory.getInstance().createTable();\r\n currentPopTable = new MutableTableImpl(0);\r\n\r\n int qnOb = 0;\r\n for (int i = 0; i < numObjs; i++) {\r\n // put only quantitative objectives in the table\r\n if (qualObjs[i] == false){\r\n names[qnOb] = currentPop.getObjectiveConstraints()[i].getName();\r\n qnOb++;\r\n currentPopTable.addColumn(new FloatColumn(numSolutions));\r\n currentPopTable.setColumnLabel(currentPop.getObjectiveConstraints()[\r\n i].getName(),\r\n currentPopTable.getNumColumns() - 1);\r\n }\r\n }\r\n\r\n // fill the table\r\n // for each solution\r\n for (int i = 0; i < numSolutions; i++) {\r\n int j = 0;\r\n // copy each objective into the table\r\n for (int ob = 0; ob < numObjs; ob++) {\r\n // put only quantitative objectives\r\n if (qualObjs[ob] == false){\r\n currentPopTable.setFloat( (float) nis[i].getObjective(ob), i, j);\r\n j++;\r\n }\r\n }\r\n }\r\n\r\n // if (currentPop != null) {\r\n // currentPopInfo.scatterPlot.setObjectiveNames(names);\r\n // currentPopInfo.setPopulation(currentPop, currentPopTable);\r\n // }\r\n\r\n //currentPopInfo.setMinimumSize(new Dimension(800, 620));\r\n JPanel pnl = new JPanel();\r\n pnl.setBorder(BorderFactory.createLineBorder(Color.white,2));\r\n // pnl.add(currentPopInfo);\r\n pnl.add(runView);\r\n pnl.setBackground(Color.getHSBColor(h,s,b));\r\n scatterPlotPanel = new JScrollPane(pnl);\r\n scatterPlotPanel.setMinimumSize(new Dimension(700, 700));\r\n scatterPlotPanel.setBackground(Color.getHSBColor(h,s,b));\r\n\r\n // add buttonPanel and scatterPlotPanel to frame.\r\n add(buttonPanel, BorderLayout.SOUTH);\r\n add(scatterPlotPanel, BorderLayout.CENTER);\r\n revalidate();\r\n repaint();\r\n }", "public void runTournament() {\n\t\t//ArrayList<Gene> tournament = new ArrayList<Gene>();\n\t\tPriorityQueue<Gene> tournament = new PriorityQueue<Gene>(Collections.reverseOrder());\n\t\tint numContenders = (int)(FRAC_IN_TOURNAMENT * geneNumber);\n\t\tSet<Integer> chosenOnes = new HashSet<Integer>();\n\t\t\n\t\twhile(chosenOnes.size() < numContenders) {\n\t\t\tint randIndex = (int) (Math.random() * geneNumber);\n\t\t\tchosenOnes.add(randIndex);\n\t\t}\n\t\tfor(int i : chosenOnes){\n\t\t\ttournament.add(genepool.get(i));\n\t\t}\n\t\t//int firstIndex = getMax(tournament, -1);\n\t\t//int secondIndex = getMax(tournament, firstIndex);\n\t\t//Gene parent1 = tournament.get(firstIndex);\n\t\t//Gene parent2 = tournament.get(secondIndex);\n\t\tGene parent1 = tournament.poll();\n\t\tGene parent2 = tournament.poll();\n\t\t// Create a new gene from the 2 fittest genes\n\t\tGene newGene = parent1.waCrossover(parent2);\n\t\t\n\t\t// Calculate fitness for the new gene\n\t\tPlayerSkeleton.runGames(numGames, newGene);\n\t\toffspringPool.add(newGene);\n\t}", "void glUseProgram(int program);", "public double calcFitness(int[] genes) {\n\t\treturn 0;\n\t}", "public static double calculateFitness(Allele[] geneticCode) {\n return minMaxNormalization(decodeGeneticCode(geneticCode));\n }", "public int fitness() {\n\t\t//System.out.println(\"/!\\\\ WARNING: Full fitness() called!\");\n\t\tint fitness = 0;\n\t\tint fitnessCases = (int) Math.pow(2, circuit.order);\n\t\tfor (int i=0; i<fitnessCases; i++) {\n\t\t\tValuation v = new Valuation(i, circuit.order);\n\t\t\tboolean actualOutput = tree.evaluate(v);\n\t\t\tboolean correctOutput = v.correctOutput();\n\t\t\t\n\t\t\tif (actualOutput == correctOutput) fitness++;\n\t\t}\n\t\t\n\t\tthis.fitness = fitness;\n\t\tthis.fitnessCases = null;\n\t\t\n\t\treturn fitness;\n\t}", "public GeneticEngine(int popSize, int maxGen, int chromosomeLength) {\n avgFitnesses = new ArrayList<Double>();\n highFitnesses = new ArrayList<Double>();\n populationSize = popSize;\n maxGenerations = maxGen;\n chromosomeSize = chromosomeLength;\n initializePopulation();\n }" ]
[ "0.70739543", "0.6623254", "0.6598296", "0.6529128", "0.64446205", "0.641054", "0.63366514", "0.6290761", "0.62038934", "0.6099382", "0.60959876", "0.60909945", "0.608453", "0.592607", "0.59012264", "0.5872333", "0.5794065", "0.5786129", "0.5727194", "0.5703852", "0.5671021", "0.56567883", "0.56250745", "0.55462", "0.553746", "0.5502404", "0.5474018", "0.5380914", "0.5328295", "0.5323323", "0.5316121", "0.5296398", "0.527179", "0.527086", "0.52591753", "0.524465", "0.5244494", "0.52423096", "0.5235329", "0.523435", "0.52178437", "0.5180314", "0.5177212", "0.51767516", "0.517227", "0.5172111", "0.5171101", "0.5153016", "0.51374114", "0.5130982", "0.51212186", "0.5119655", "0.51138973", "0.510685", "0.5104493", "0.50975484", "0.5084494", "0.5056105", "0.50550014", "0.50482756", "0.50424623", "0.49929184", "0.49786717", "0.49616444", "0.4960978", "0.49483544", "0.49474975", "0.49334428", "0.49024877", "0.48989007", "0.4898848", "0.48811442", "0.48759356", "0.4845901", "0.48437282", "0.48395327", "0.4838561", "0.48369643", "0.48345366", "0.4825676", "0.48150268", "0.48115608", "0.48092493", "0.4808613", "0.48005235", "0.4799649", "0.47984427", "0.4798077", "0.4797946", "0.47954148", "0.4793852", "0.47783625", "0.4773016", "0.4770389", "0.47688672", "0.47657102", "0.47600088", "0.4755194", "0.47418168", "0.4740741" ]
0.7222052
0
Enqueues a client for processing, handling notification.
private synchronized void enqueueClient(IClient client) { clients.add(client); notifyAll(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void produce(Client client) throws InterruptedException {\n\t\tqueue.put(client);\n\t\tclient.setQueueStartTime(System.nanoTime() / Controller.divider - Controller.startTime);\n\t}", "public synchronized void enqueue(Socket clientSocket) {\n\t\tqueue.add(clientSocket);\n\t\tnotifyAll(); // Wake up anyone waiting on the queue\n\n\t}", "@Override\r\n \tpublic void clientConnectedCallback(RoMClient newClient) {\r\n \t\t// Add new client and start listening to this one\r\n \t\tthis.clients.addClient(newClient);\r\n \r\n \t\t// Create the ReceiveClientCommandThread for this client\r\n \t\tReceiveClientCommandThread receiveCommandThread = new ReceiveClientCommandThread(newClient, this, this);\r\n \t\treceiveCommandThread.start();\r\n \r\n \t\t// Create the CommandQueue Thread for this client\r\n \t\tClientCommandQueueThread commandQueueThread = new ClientCommandQueueThread(newClient);\r\n \t\tcommandQueueThread.start();\r\n \t}", "public synchronized void send(Object obj)\r\n\t{\r\n\t\tclientQueue.offer(obj);\r\n\t}", "public synchronized void addClient(Client client) {\n int taskIndex=0;\n taskIndex = giveMeTheTask();\n tasks.get(taskIndex).addClient(client);\n\n statistics.getClientProcessingTimes().add(client.getProcessingTime());\n\n System.out.println(client.getName()+ \" P.T: \"+ client.getProcessingTime() + \" repartizat la coada: \"+(taskIndex+1));\n LOGGER.info(client.getName()+ \" P.T: \"+ client.getProcessingTime() + \" repartizat la coada: \"+(taskIndex+1));\n }", "@Override\n\tpublic void onClientMessage(ClientThread client, String msg) {\n\t\ttry {\n\t\t\tlockClients.readLock().lock();\n\t\t\tLocalDateTime now = LocalDateTime.now();\n\t\t\tString toSend = \"[\"+dtf.format(now)+\"] \"+client.getClientName()+\" : \"+msg;\n\t\t\tfor (ClientThread ct : this.clients) {\n\t\t\t\tct.sendMessage(toSend);\n\t\t\t}\n\t\t\taddToHistory(toSend);\n\t\t} finally {\n\t\t\tlockClients.readLock().unlock();\n\t\t}\n\t}", "private void startQueuedItemsSender() {\n if (ctrlSenderTimerRunning)\n return;\n\n ctrlSenderTimer = new Timer(true);\n ctrlSenderTimer.schedule(new TimerTask() {\n @Override\n public void run() {\n JSONObject item = dataSource.getNextTxClient2Server();\n Log.i(TAG, \"Client2Server sender executed, assembling JSON and sending to Server...\");\n\n try {\n // no more? stop timer\n if (!item.has(\"moreInQueue\") || !item.getBoolean(\"moreInQueue\")) {\n stopQueuedItemsSender();\n }\n\n if (!item.getBoolean(\"fetched\")) {\n Log.w(TAG, \" ...warning, nothing fetched from BD!\");\n stopQueuedItemsSender();\n return;\n }\n\n CtrlMessage msg = new CtrlMessage(item.getString(\"jsonPackage\"));\n msg.setTXsender(item.getInt(\"TXclient\"));\n\n sendSocket(msg.buildMessage());\n }\n catch (JSONException e) {\n e.printStackTrace();\n }\n }\n }, 15, 85);\n ctrlSenderTimerRunning = true;\n }", "public synchronized void incrementClients()\r\n\t{\r\n\t\tnumberOfClients++;\r\n\t}", "void sendMessageToClient(long clientId, byte[] content, int prio) throws IOException, MlmqException;", "@Override\r\n\tpublic void addclient(Client client) {\n\t\t\r\n\t}", "@Override\n\tpublic void enqueue(ActorRef arg0, Envelope arg1) {\n\t\t\n\t}", "public interface Client extends ClientBase {\n\n\t/**\n\t * Adds a new listener for the client.<br>\n\t * <b>Note</b> that listeners should be added immediately when receiving the incoming notification.\n\t */\n\tpublic Client addListener(ClientListener listener);\n\n}", "@Override\n\tpublic void handlePacket(Packet msg, int sourceClientID)\n\t{\n\t\tprocessQueue.add(new ProcessEntry(msg, sourceClientID));\n\t}", "public void processStart(){\n initWorkerQueue();\n DataBean serverArgs = new DataBean();\n serverArgs.setValue(\"mode\",\"server\");\n serverArgs.setValue(\"messagekey\",\"72999\");\n serverArgs.setValue(\"user\",\"auth\");\n serverArgs.setValue(\"messagechannel\",\"/esb/system\");\n messageClient = new MessageClient(this,serverArgs);\n Helper.writeLog(1,\"starting message server\");\n messageClient.addHandler(this);\n \n }", "public void queueMessage(String message) {\r\n\t\tthis.queueMessage(new Message(Message.ALL_CLIENTS, message));\r\n\t}", "public void updateList()\r\n\t{\r\n\t\tclientQueue.offer(name);\r\n\t}", "public void enqueue(Message msg){\n\t\tqueue.add(msg);\n\t}", "void registerClient(UUID clientID, Client client) {\n if(!registeredClients.containsKey(clientID)) {\n registeredClients.put(clientID, client);\n }\n }", "void enqueue(BasePayload payload, EnqueueCallback callback);", "public synchronized void enqueue(Object msg) {\n\t\tqueue.add(msg);\n\n\t\t// if any threads wait on empty queue then wake them up\n\t\tnotifyAll();\n\t}", "public void registerCustomerToEvent(Client client) {\n\n\t}", "public void subscribe(String name, String clientId) throws Exception, RemoteException;", "public void writeToClient() throws IOException {\n\t\tclientBuffer.writeTo(clientChannel);\n\t\tif (clientBuffer.isReadyToWrite()) {\n\t\t\tregister();\n\t\t}\n\t}", "long sendRequestToClient(long client, byte[] content, int prio) throws IOException, MlmqException;", "synchronized public boolean add(ClientMessage req) {\n //System.out.println(\"****adding to rc queue\");\n if (!initialized) {\n init();\n }\n int i = (int) req.getSendingClient();\n if (i > order.length) {\n BFT.Debug.kill(new RuntimeException(\"invalid client id\"));\n }\n boolean present = reqs[i] != null;\n if (present) {\n if (reqs[i].getRequestId() <= req.getRequestId()) {\n bSize -= reqs[i].getTotalSize();\n reqs[i] = req;\n bSize += req.getTotalSize();\n }\n //System.out.println(\"adding to rc queue with false\");\n return false;\n }\n reqs[i] = req;\n bSize += req.getTotalSize();\n // update the entry for the sending client, but if he's\n // already got a place in line, dont put him in line again\n\n order[size] = i;\n size++;\n if (size == order.length) {\n size = 0;\n }\n if (size == head) {\n BFT.Debug.kill(\"\");\n }\n //System.out.println(\"adding to RC queue with true\");\n entries++;\n return true;\n }", "@Override\r\n\tpublic void run() {\n\t\ttry {\r\n\t\t\tObjectInputStream objectInput = new ObjectInputStream(\r\n\t\t\t\t\tclsock.getInputStream());\r\n\t\t\tObject object = objectInput.readObject();\r\n\t\t\ttask = (String) object;// reading URLs from client\r\n\t\t} catch (ClassNotFoundException e) {\r\n\t\t\tSystem.out.println(\"The task Batch has not come from the Client\");\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\tString clientId = task.split(\",\")[0];\r\n\r\n\t\tRemoteScheduler remoteScheduler = new RemoteScheduler(clientId,\r\n\t\t\t\ttask);\r\n\t\tremoteScheduler.sendTaskToQueue();\r\n\t\tExecutorService remoteService = Executors.newFixedThreadPool(1);\r\n\t\ttry {\r\n\t\t\tFuture<String> remoteResult = remoteService\r\n\t\t\t\t\t.submit(remoteScheduler);\r\n\t\t\tString clientResult = remoteResult.get();\r\n\t\t\tObjectOutputStream outputStream = new ObjectOutputStream(\r\n\t\t\t\t\tclsock.getOutputStream());\r\n\t\t\toutputStream.writeObject(clientResult);\r\n\t\t\toutputStream.close();\r\n\t\t} catch (InterruptedException | ExecutionException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\ttry {\r\n\t\t\tclsock.close();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t}", "public void sendCommandToClient(Collection<RoMClient> clientsToSend, ServerCommand serverCommand) {\r\n \t\tLogger.logMessage(\"Sending Command \\\"\" + serverCommand + \"\\\"\");\r\n \r\n \t\t// Add Command to clients MessageQueue\r\n \t\tfor (RoMClient client : clientsToSend) {\r\n \t\t\tclient.addCommandToQueue(serverCommand);\r\n \t\t}\r\n \t}", "public void dispatchConnection(String clientId)\n {\n for (GpsUpdateListener listsner : registeredListeners)\n {\n listsner.onClientConnected(clientId);\n }\n }", "public void handle_request(Request request){\n currentRequest.add(request);\n System.out.println(\"[Worker\"+String.valueOf(id)+\"] Received request of client \"+String.valueOf(request.getId()));\n }", "public void incrementClients() {\n\t\tconnectedClients.incrementAndGet();\n\t}", "public void onQueue();", "public void enqueue(Object value);", "@Override\n public void run() {\n try {\n boolean autoFlush = true;\n fromClient = new BufferedReader(new InputStreamReader(clientSocket.getInputStream()));\n toClient = new PrintWriter(clientSocket.getOutputStream(), autoFlush);\n } catch (IOException ioe) {\n throw new UncheckedIOException(ioe);\n }\n for (String entry : communicationWhenStarting) {\n sendMsg(entry);\n }\n while (connected) {\n try {\n Message msg = new Message(fromClient.readLine());\n updateClientAction(msg);\n } catch (IOException ioe) {\n disconnectClient();\n throw new MessageException(ioe);\n }\n }\n }", "protected void onQueued() {}", "private void sendMessage(WeakReference<Messenger> client, int msgCode, int requestCode, String message){\n \tLog.v(TAG,\"sendMessage: The message was: \" + message + \" (\" + msgCode + \")\" + \" requestCode was \" + requestCode);\n try {\n \t\tclient.get().send(Message.obtain(null, msgCode, requestCode, mState.ordinal(), message));\n } catch (RemoteException e) {\n // The client is dead. \n \t\tLog.e(TAG,\"sendMessage: The client is dead. Message was: \" + message + \" (\" + msgCode + \")\");\n } catch (NullPointerException e) {\n // The reply to client is does not exist. \n \t\tLog.e(TAG,\"sendMessage: client was null. Message was: \" + message + \" (\" + msgCode + \")\");\n }\n }", "void onEnqueue(boolean success, long rowCount);", "public void subscribe(SubscriberInterface subscriber, UUID clientId) throws RemoteException;", "boolean add(Client client, Subscription subscription);", "private void sendMessageToClient(String messageToClient){\n SwingUtilities.invokeLater(new Runnable() {\n @Override\n public void run() {\n output.println(\"\\n\" + \"Server: \" + messageToClient);\n output.flush();\n }\n });\n }", "public void updateClient()\n\t{\n\t\t// TODO\n\t}", "@Override\n public void run() {\n if (this.clientInterfaceTCP.getConnected())\n this.clientInterfaceTCP.sendString(this.messageToSend);\n }", "public void addClient(Client newClient) {\r\n\t\tthis.allClients.add(newClient);\r\n\t}", "@Override\r\n\tpublic void run() {\n\t\trunClient();\r\n\t}", "@Override\n\tpublic void run() {\t\n\t\tint maxNum = (maxCustomerNumOnline > maxCustomerNumShop) ? maxCustomerNumOnline : maxCustomerNumShop;\n\t\t\n\t\tfor(int i = 0; i < maxNum; i++) {\n\t\t\t// every number of milliseconds, add customer to end of queue \n\t\t\ttry {\t\t\t\n\t\t\t\t// if online queue exists add to it \n\t\t\t\tif (i < maxCustomerNumOnline) {\n\t\t\t\t\tCustomerQueueOutput out = onlineQueue.addToQueue();\n\t\t\t\t\tCoffeeShop.customerList.put(out.getCustomer().getId(), out.getCustomer());\n\t\t\t\t\t\n\t\t\t\t\tlog.updateLog(\"[QueueHandler]: \"+ \"Queue Handler added customer \" + out.getCustomer().getName() + \n\t\t\t\t\t\t\t\" (ID: \" + out.getCustomer().getId() + \") to online queue -> updated size: \" \n\t\t\t\t\t\t\t+ out.getUpdatedSize());\n\t\t\t\t}\n\n\t\t\t\tif (i < maxCustomerNumShop) {\n\t\t\t\t\t// add to in-shop queue \n\t\t\t\t\tCustomerQueueOutput out = shopQueue.addToQueue();\n\t\t\t\t\tCoffeeShop.customerList.put(out.getCustomer().getId(), out.getCustomer());\n\t\t\t\t\t\n\t\t\t\t\tlog.updateLog(\"[QueueHandler]: \"+ \"Queue Handler added customer \" + out.getCustomer().getName() + \n\t\t\t\t\t\t\t\" (ID: \" + out.getCustomer().getId() + \") to in-shop queue -> updated size: \" \n\t\t\t\t\t\t\t+ out.getUpdatedSize());\n\t\t\t\t}\t\t\t\t\t\t\n\n\t\t\t\t// delay for visualization purposes \n\t\t\t\tThread.sleep(onlineQueue.getDelay());\n\t\t\t\t\n\t\t\t// catch exception for calling sleep() function\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\tlog.updateLog(\"[QueueHandler]: \"+ \"Interuption in queueHandler\");\n\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t}\n\t\t}\t\t\n\t}", "public static void doClientMessageSend() {\n\t\tfinal String correlationId = \"ABC123\";\n\t\tMessage toSend = new Message(\"query message to server\", correlationId);\n\n\t\tMessagingSystemInfo messagingSystemInfo = oneAgentSDK.createMessagingSystemInfo(\"myCreativeMessagingSystem\",\n\t\t\t\t\"theOnlyQueue\", MessageDestinationType.QUEUE, ChannelType.TCP_IP, \"localhost:4711\");\n\n\t\t// sending the request:\n\t\t{\n\t\t\tOutgoingMessageTracer outgoingMessageTracer = oneAgentSDK.traceOutgoingMessage(messagingSystemInfo);\n\t\t\toutgoingMessageTracer.start();\n\t\t\ttry {\n\t\t\t\t// transport the Dynatrace tag along with the message to allow the outgoing message tracer to be linked\n\t\t\t\t// with the message processing tracer on the receiving side\n\t\t\t\ttoSend.setHeaderField(OneAgentSDK.DYNATRACE_MESSAGE_PROPERTYNAME, outgoingMessageTracer.getDynatraceStringTag());\n\t\t\t\ttheQueue.send(toSend);\n\t\t\t\toutgoingMessageTracer.setVendorMessageId(toSend.getMessageId()); // optional payload\n\t\t\t\toutgoingMessageTracer.setCorrelationId(toSend.correlationId);\n\t\t\t} catch (Exception e) {\n\t\t\t\toutgoingMessageTracer.error(e.getMessage());\n\t\t\t} finally {\n\t\t\t\toutgoingMessageTracer.end();\n\t\t\t}\n\t\t}\n\n\t\t// waiting for server response message:\n\t\t{\n\t\t\tIncomingMessageReceiveTracer receivingMessageTracer = oneAgentSDK.traceIncomingMessageReceive(messagingSystemInfo);\n\t\t\treceivingMessageTracer.start();\n\t\t\ttry {\n\t\t\t\tMessage answer = theQueue.receive(correlationId);\n\t\t\t\t\n\t\t\t\tIncomingMessageProcessTracer processMessageTracer = oneAgentSDK.traceIncomingMessageProcess(messagingSystemInfo);\n\t\t\t\t// retrieve Dynatrace tag created using the outgoing message tracer to link both sides together\n\t\t\t\tprocessMessageTracer.setDynatraceStringTag(answer.getHeaderField(OneAgentSDK.DYNATRACE_MESSAGE_PROPERTYNAME));\n\t\t\t\tprocessMessageTracer.setVendorMessageId(answer.msgId);\n\t\t\t\tprocessMessageTracer.setCorrelationId(answer.correlationId);\n\t\t\t\tprocessMessageTracer.start();\n\t\t\t\ttry {\n\t\t\t\t\t// handle answer message in sync way ...\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tprocessMessageTracer.error(e.getMessage());\n\t\t\t\t} finally {\n\t\t\t\t\tprocessMessageTracer.end();\n\t\t\t\t}\n\t\t\t} catch (Exception e) {\n\t\t\t\treceivingMessageTracer.error(e.getMessage());\n\t\t\t} finally {\n\t\t\t\treceivingMessageTracer.end();\n\t\t\t}\n\t\t}\n\t}", "public void produceEvent(ClientEvent ce, ObjectContainer container, ClientContext context) {\n \tif(container != null)\n \t\tcontainer.activate(listeners, 1);\n\tfor (Enumeration<ClientEventListener> e = listeners.elements() ; \n\t e.hasMoreElements();) {\n try {\n \tClientEventListener cel = e.nextElement();\n \tif(container != null)\n \t\tcontainer.activate(cel, 1);\n cel.receive(ce, container, context);\n } catch (NoSuchElementException ne) {\n\t\tLogger.normal(this, \"Concurrent modification in \"+\n\t\t\t\t\"produceEvent!: \"+this);\n\t } catch (Exception ue) {\n System.err.println(\"---Unexpected Exception------------------\");\n ue.printStackTrace();\n System.err.println(\"-----------------------------------------\");\n }\n\t}\n }", "@Override\n\tpublic void enqueue(String msgid, EmailAddress recipient) throws MessageEngineException {\n\t\t\n\t}", "public Client addListener(ClientListener listener);", "Client addClient(Client client) throws BaseException;", "@Override\n public void flush() {\n new QueueConsumer().run();\n }", "@Override\n\tpublic void run() {\n\n\t\treceiveClients();\n\n\t\tbeginLogging();\n\t}", "@Override\n public void send(Message message) {\n\n expensiveResource.addToResourcesQueue(message);\n expensiveResource.processNextMessage();\n\n }", "public void enqueue(String message) {\n\t\tqueue.add (message);\n\t}", "private String allocateClient(RequiredSpecs specs,String clientName) {\r\n\t\t\r\n\t\tif(canRun(specs)) {\r\n\t\t\tallocateSpecs(specs, clientName);\r\n\t\t\treturn clientName + \" started running now in \" + this.getName();\r\n\t\t} else {\r\n\t\t\tqueue.addClient(clientName, specs);\r\n\t\t\treturn clientName + \" was added to queue of \" + this.getName();\r\n\t\t}\r\n\t\t\r\n\t}", "public abstract void onClientConnect(ClientWrapper client);", "@Override\n public void accept(ConnectionClientSocket client) {\n client.visit(this);\n }", "public void process()\n {\n ClientRequest clientRequest = threadPool.remove();\n\n if (clientRequest == null)\n {\n return;\n }\n\n\n // Do the work\n // Create new Client\n ServiceLogger.LOGGER.info(\"Building client...\");\n Client client = ClientBuilder.newClient();\n client.register(JacksonFeature.class);\n\n // Get uri\n ServiceLogger.LOGGER.info(\"Getting URI...\");\n String URI = clientRequest.getURI();\n\n ServiceLogger.LOGGER.info(\"Getting endpoint...\");\n String endpointPath = clientRequest.getEndpoint();\n\n // Create WebTarget\n ServiceLogger.LOGGER.info(\"Building WebTarget...\");\n WebTarget webTarget = client.target(URI).path(endpointPath);\n\n // Send the request and save it to a Response\n ServiceLogger.LOGGER.info(\"Sending request...\");\n Response response = null;\n if (clientRequest.getHttpMethodType() == Constants.getRequest)\n {\n // Create InvocationBuilder\n ServiceLogger.LOGGER.info(\"Starting invocation builder...\");\n Map<String, Object> queryMap = clientRequest.getQueryParams();\n String pathParam = clientRequest.getPathParam();\n\n if (pathParam != null)\n {\n webTarget = webTarget.path(pathParam);\n }\n\n if (queryMap != null)\n {\n ServiceLogger.LOGGER.info(\"QUERY MAP NOT NULL.\");\n for (Map.Entry<String, Object> entry : queryMap.entrySet())\n {\n webTarget = webTarget.queryParam(entry.getKey(), entry.getValue());\n }\n }\n ServiceLogger.LOGGER.info(\"WEBTARGET: \" + webTarget.toString());\n\n Invocation.Builder invocationBuilder = webTarget.request(MediaType.APPLICATION_JSON);\n\n ServiceLogger.LOGGER.info(\"Got a GET request.\");\n response = invocationBuilder\n .header(\"email\", clientRequest.getEmail())\n .header(\"sessionID\", clientRequest.getSessionID())\n .header(\"transactionID\", clientRequest.getTransactionID())\n .get();\n }\n else if (clientRequest.getHttpMethodType() == Constants.postRequest)\n {\n // Create InvocationBuilder\n ServiceLogger.LOGGER.info(\"Starting invocation builder...\");\n Invocation.Builder invocationBuilder = webTarget.request(MediaType.APPLICATION_JSON);\n Map<String, Object> queryMap = clientRequest.getQueryParams();\n\n if (queryMap != null)\n {\n ServiceLogger.LOGGER.info(\"QUERY MAP NOT NULL.\");\n for (Map.Entry<String, Object> entry : queryMap.entrySet())\n {\n webTarget = webTarget.queryParam(entry.getKey(), entry.getValue());\n }\n }\n ServiceLogger.LOGGER.info(\"WEBTARGET: \" + webTarget.toString());\n\n ServiceLogger.LOGGER.info(\"Got a POST request.\");\n response = invocationBuilder\n .header(\"email\", clientRequest.getEmail())\n .header(\"sessionID\", clientRequest.getSessionID())\n .header(\"transactionID\", clientRequest.getTransactionID())\n .post(Entity.entity(clientRequest.getRequest(), MediaType.APPLICATION_JSON));\n }\n else if (clientRequest.getHttpMethodType() == Constants.deleteRequest)\n {\n String pathParam = clientRequest.getPathParam();\n if (pathParam != null)\n {\n webTarget = webTarget.path(pathParam);\n }\n Invocation.Builder invocationBuilder = webTarget.request(MediaType.APPLICATION_JSON);\n\n ServiceLogger.LOGGER.info(\"Got a DELETE request.\");\n response = invocationBuilder\n .header(\"email\", clientRequest.getEmail())\n .header(\"sessionID\", clientRequest.getSessionID())\n .header(\"transactionID\", clientRequest.getTransactionID())\n .delete();\n }\n else\n {\n ServiceLogger.LOGGER.warning(ANSI_YELLOW + \"Request was not sent successfully\");\n }\n ServiceLogger.LOGGER.info(ANSI_GREEN + \"Sent!\" + ANSI_RESET);\n\n // Check status code of request\n String jsonText = \"\";\n int httpstatus = response.getStatus();\n\n jsonText = response.readEntity(String.class);\n\n // Add response to database\n String email = clientRequest.getEmail();\n String sessionID = clientRequest.getSessionID();\n ResponseDatabase.insertResponseIntoDB(clientRequest.getTransactionID(), jsonText, email, sessionID, httpstatus);\n\n }", "void enqueue(E item);", "abstract protected void queueEntity(Entity entity);", "public void notifyListener() {\n\t\tbuffer.putInt(1);\n\t\tbuffer.flip();\n\t\tsocketLock.lock();\n\t\ttry {\n\t\t\tnotifyChannel.write(buffer);\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"[Turing Server] Non è stato possibile notificare il client.\");\n\t\t}\n\t\tsocketLock.unlock();\n\t\tbuffer.clear();\n\t}", "public RabbitMQClient(RabbitMQConnectionWrapper connWrapper, String queueIn, String queueOut, String clientKey, IClientHandler<byte[]> handler) throws Exception {\n this.queueIn = queueIn + \".\" + clientKey;\n this.queueOut = queueOut;\n this.routingKeyIn = this.queueIn;\n this.routingKeyOut = this.queueOut + \".\" + clientKey;\n\n this.conn = connWrapper.getConnection();\n this.channel = RabbitMQChannelPool.createChannel(conn, this.queueIn, this.queueOut, this.routingKeyIn, this.routingKeyOut);\n\n this.channel.basicConsume(this.queueIn, true, new DefaultConsumer(this.channel) {\n @Override\n public void handleDelivery(String consumerTag, Envelope envelope, AMQP.BasicProperties properties, byte[] body)\n throws IOException {\n handler.handle(body);\n }\n });\n }", "public void enqueue ()\n {\n count++;\n questionList.add(newQuestion);\n //System.out.println(\"Question #\"+ totNumQ + \" is added to the queue.\");\n }", "public interface MessageSender {\n\tpublic void enqueueMessage(Message m);\n}", "public void addClient(ServerClient client) {\n rrwl_serverclientlist.writeLock().lock();\n try {\n clientList.add(client);\n } finally {\n rrwl_serverclientlist.writeLock().unlock();\n }\n }", "@Override\n\tpublic void updateClient() {\n\t\t\n\t}", "public ClientQueueEvent(final JPPFClient client, final JPPFJob job, final JPPFPriorityQueue queue) {\n super(client);\n this.job = job;\n this.queue = queue;\n }", "void clientConnected(Client client);", "RequestSender onInform(Consumer<Message> consumer);", "@Override\n\tpublic void onClientConnection(ClientThread client) {\n\t\t//tcp.client.sendMessage(\"vous êtes connecté en tant que \" + tcp.client.getClientName());\n\t\ttry{\n\t\t\tlockHistory.readLock().lock();\n\t\t\tfor(String oldMessage : history){\n\t\t\t\tclient.sendMessage(oldMessage);\n\t\t\t}\n\t\t} finally {\n\t\t\tlockHistory.readLock().unlock();\n\t\t}\n\n\t\ttry {\n\t\t\tlockClients.writeLock().lock();\n\t\t\tthis.clients.add(client);\n\n\t\t} finally {\n\t\t\tlockClients.writeLock().unlock();\n\t\t}\n\n\t\ttry{\n\t\t\tlockClients.readLock().lock();\n\t\t\tLocalDateTime now = LocalDateTime.now();\n\t\t\tString toSend = \"[\"+dtf.format(now)+\"] \"+client.getClientName()+\" has joined the chat\";\n\t\t\tfor (ClientThread c : clients) {\n\t\t\t\tc.sendMessage(toSend);\n\t\t\t}\n\t\t\taddToHistory(toSend);\n\t\t} finally {\n\t\t\tlockClients.readLock().unlock();\n\t\t}\n\t}", "void enqueue(String object);", "public void queueMessage(Message message);", "RequestSender onRefuse(Consumer<Message> consumer);", "@Override\r\n\tpublic void run() {\r\n\t\t\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\t// generate Client\r\n\t\t\tClient client = new Client(publicKeysOfMixes);\r\n\t\t\tclient.connect();\r\n\t\t\tInputStream cascadeInputStream = client.getInputStream();\r\n\t\t\tOutputStream cascadeOutputStream = client.getOutputStream();\r\n\t\t\t\r\n\t\t\t// \"Send K bytes of data with a delay of L ms between sending, M \r\n\t\t\t// times.\"\r\n\t\t\t\r\n\t\t\tint m = getVariable(\"M\");\r\n\t\t\tfor (int i=1; i<=m; i++) {\r\n\t\t\t\t\r\n\t\t\t\t// generate random message\r\n\t\t\t\tint size = getVariable(\"K\");\r\n\t\t\t\tbyte[] message = generateRandomMessage(size);\r\n\t\t\t\t\r\n\t\t\t\tLOGGER.fine(\t\"(Client\" +Thread.currentThread()\r\n\t\t\t\t\t\t\t\t+\") Starting to write \" +i +\". message (\"\r\n\t\t\t\t\t\t\t\t+size +\" bytes): \\n\" +new String(message)\r\n\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t// send message\r\n\t\t\t\tcascadeOutputStream.write(message);\r\n\t\t\t\tcascadeOutputStream.flush();\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t// submit message id to ReceivalCheck\r\n\t\t\t\tint messageID = \r\n\t\t\t\t\tnew BigInteger(Arrays.copyOf(message, 9)).abs().intValue();\r\n\t\t\t\t\r\n\t\t\t\tReceivalCheck.addSentMessage(messageID);\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t// receive reply\r\n\t\t\t\tbyte[] reply = new byte[size];\r\n\t\t\t\tint sizeOfReply = cascadeInputStream.read(reply);\r\n\t\t\t\t\r\n\t\t\t\tLOGGER.fine(\t\"(Client\" +Thread.currentThread()\r\n\t\t\t\t\t\t\t\t+\") Received \" +i +\". reply (\"\r\n\t\t\t\t\t\t\t\t+sizeOfReply +\" bytes): \\n\" +new String(reply)\r\n\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t// submit message id to ReceivalCheck\r\n\t\t\t\tmessageID = \r\n\t\t\t\t\tnew BigInteger(Arrays.copyOf(reply, 9)).abs().intValue();\r\n\t\t\t\t\r\n\t\t\t\tReceivalCheck.addReceivedMessage(messageID);\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t// add delay\r\n\t\t\t\tif (i != m) { // not last round\r\n\t\t\t\t\t\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tThread.sleep((long)ClientSimulator.getVariable(\"L\"));\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tLOGGER.severe(e.getMessage());\r\n\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// disconnect\r\n\t\t\t\r\n\t\t\tLOGGER.fine(\t\"(Client\" +Thread.currentThread()\r\n\t\t\t\t\t\t\t+\") Disconnecting since all data is written!\"\r\n\t\t\t\t\t\t\t);\r\n\t\t\t\r\n\t\t\tclient.disconnect();\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t} catch (IOException e) {\r\n\t\t\t\r\n\t\t\tLOGGER.warning(\t\"(ClientSimulator) Message could not be sent! \"\r\n\t\t\t\t\t\t\t+e.getMessage()\r\n\t\t\t\t\t\t\t);\r\n\t\t}\r\n\t\t\r\n\t}", "public void run() {\n clientLogger.info(\"Client \" + name + \" started working\");\n EventLoopGroup group = new NioEventLoopGroup();\n try {\n Bootstrap bootstrap = new Bootstrap()\n .group(group)\n .channel(NioSocketChannel.class)\n .handler(new ClientInitializer());\n Channel channel = bootstrap.connect(host, port).sync().channel();\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\n while (true) {\n channel.write(in.readLine() + \"\\r\\n\");\n }\n } catch (InterruptedException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n group.shutdownGracefully();\n }\n clientLogger.info(\"Client \" + name + \" finished working\");\n }", "public void republishStored(String clientID) {\n LOG.debug(\"republishStored invoked to publish soterd messages for clientID \" + clientID);\n disruptorPublish(new RepublishEvent(clientID));\n }", "public void run(){\n\t\t\tObjectReader readerClient = new ObjectReader(in, clientInetAddress);\r\n\t\t\treaderClient.start();\r\n\t\t\t\r\n\t\t\t// Constantly checks msgToSend for messages and sends them\r\n\t\t\twhile(true){\r\n\t\t\t\ttry{\r\n\t\t\t\t\t// Send message\r\n\t\t\t\t\tif(msgToSend.length() != 0){\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tout.writeObject(new DataObject(DataObject.STRING, msgToSend.toString()));\r\n\t\t\t\t\t\tout.flush();\r\n\t\t\t\t\t\tmsgToSend.setLength(0);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\tcatch(IOException ioe){\r\n\t\t\t\t\tioe.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}", "@Override\r\n\tpublic void updateclient(Client client) {\n\t\t\r\n\t}", "public void addClient() {\n String name = getToken(\"Enter client company: \");\n String address = getToken(\"Enter address: \");\n String phone = getToken(\"Enter phone: \");\n Client result;\n result = warehouse.addClient(name, address, phone);\n if (result == null) {\n System.out.println(\"Client could not be added.\");\n }\n System.out.println(result);\n }", "public void clientConnected(WonderlandClientSender sender, \n \t WonderlandClientID clientID, Properties properties) {\n \tlogger.fine(\"client connected...\");\n }", "@Override\n public void run() {\n // When we read from the input stream, broadcast it to all client observers to relay to the clients via the respective socket.\n try {\n Object dataFromClient = inputFromClient.readObject();\n while (dataFromClient != null) {\n setChanged();\n if(dataFromClient instanceof Integer){\n Integer clientID = (Integer) dataFromClient;\n // This client sent its client id to be added to or removed from registered users. So, send the updated list to all observers to push to ALL clients.\n if(registeredUsers.contains(clientID)){\n removeClient(clientID);\n clientData.remove(clientID);\n }else {\n registeredUsers.add((Integer)dataFromClient); // Add the new client's future ID to the list of registered users. ID sent\n }\n System.out.println(\"Server sending \" + registeredUsers);\n notifyObservers(registeredUsers);\n }else if (dataFromClient instanceof Group){\n System.out.println(\"Server received \" + dataFromClient);\n Group group = (Group)dataFromClient;\n if(group.getGroupID() == -1){ // Indicates group is asking for proper id.\n group.setGroupID(currentGroupNumber);\n System.out.println(\"Here ya go, number \" + currentGroupNumber);\n currentGroupNumber++;\n }\n notifyObservers(group);\n }else{\n notifyObservers(dataFromClient);\n }\n System.out.println(\"Server sent \" + dataFromClient);\n dataFromClient = inputFromClient.readObject();\n }\n } catch (IOException | ClassNotFoundException e) {\n System.out.println(\"Could not read data from client\");\n }\n }", "@SuppressWarnings(\"empty-statement\")\n public void runClient() {\n // setup MQTT Client\n String clientID = \"apto01\";\n String pass = \"1234\";\n connOpt = new MqttConnectOptions();\n\n connOpt.setCleanSession(true);\n connOpt.setKeepAliveInterval(30);\n connOpt.setUserName(\"isis2503\");\n connOpt.setPassword(pass.toCharArray());\n\n alertaLogic = new AlertLogic();\n\n // Connect to Broker\n try {\n myClient = new MqttClient(BROKER_URL, clientID);\n myClient.setCallback(this);\n myClient.connect(connOpt);\n } catch (MqttException e) {\n e.printStackTrace();\n System.exit(-1);\n }\n\n System.out.println(\"Connected to \" + BROKER_URL);\n\n // setup topic\n // topics on m2m.io are in the form <domain>/<stuff>/<thing>\n // subscribe to topic if subscriber\n if (subscriber) {\n try {\n int subQoS = 0;\n myClient.subscribe(infoInoTopic, subQoS);\n } catch (MqttException e) {\n e.printStackTrace();\n }\n }\n // disconnect\n try {\n // wait to ensure subscribed messages are delivered\n while (subscriber);\n myClient.disconnect();\n } catch (MqttException e) {\n e.printStackTrace();\n }\n }", "public void handleMessageFromClient(Object msg) {\n\n }", "public void execute() {\n\t\tString userID = clientMediator.getUserName();\n\t\tString id = reactToController.communicateWith(userID);\n\t\tif(id != null){\n\t\t\tclientMediator.setReactTo(id);\n\t\t\tSimpleDateFormat df = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n\t\t\tString message = reactToController.reactToEntity(id,userID);\n\t\t\tString result = \"You just interacted with \" + id + \", so you \" + message + \" at \" + df.format(new Date()).toString();\n\t\t\tclientMediator.setReactResult(result);\n\t\t\tclientMediator.getEventQueue().add(new ReactToEvent(id,userID));\n\t\t}\n\t}", "public void clientStart()\n\t{\n\t\tint cnt = 0;\n\t\tfor(ConnectionThread i : connectionPool)\n\t\t{\n\t\t\ti.sendMessage(\"Rock and Roll\");\n\t\t\taddText(\"send start signal to Player\" + cnt++);\n\t\t}\n\t\tchangePicture();\n\t}", "public void run() {\n try {\n\n // Decorate the streams so we can send characters\n // and not just bytes.  Ensure output is flushed\n // after every newline.\n BufferedReader in = new BufferedReader(new InputStreamReader(socket.getInputStream()));\n PrintWriter out = new PrintWriter(socket.getOutputStream(), true);\n\n // Send a welcome message to the client.\n out.println(\"Hello, you are client #\" + clientNumber + \".\");\n out.println(\"Enter \\\"ADD,X,Y\\\",\\\"SUB,X,Y\\\",\\\"MUL,X,Y\\\",\\\"DIV,X,Y\\\", KILL, or \\\".\\\".\");\n out.println(\"KILL will terminate the server and all connections, \\\".\\\" will close this client only\");\n\n // Get messages from the client, line by line; return them\n // capitalized\n while (true) {\n String input = in.readLine();\n if (input == null || input.equals(\".\")){\n break;\n }\n this.queue.add(input, out);\n if(input.equalsIgnoreCase(\"KILL\"))\n {\n \tbreak;\n }\n }\n } catch (IOException e) {\n log(\"Error handling client# \" + clientNumber + \": \" + e);\n } finally {\n try {\n socket.close();\n } catch (IOException e) {\n log(\"Couldn't close a socket, what's going on?\");\n }\n log(\"Connection with client# \" + clientNumber + \" closed\");\n }\n }", "private void getClient(SocketAddress address, RedisOptions options, Handler<AsyncResult<Redis>> onClient) {\n\n Redis cli = connections.get(address);\n\n // already have a connection to this client, return that\n if (cli != null) {\n onClient.handle(Future.succeededFuture(cli));\n return;\n }\n\n RedisClient.create(vertx, address, options, create -> {\n if (create.failed()) {\n onClient.handle(create);\n return;\n }\n\n final Redis conn = create.result();\n\n conn.exceptionHandler(t -> {\n // broken connection so force a new client to be created\n connections.remove(address);\n // propagate the exception\n if (onException != null) {\n onException.handle(t);\n }\n\n // now since the clients are unbalanced, we need to reload the slots\n getSlots(options, ar -> {\n if (ar.failed()) {\n // getting slots failed, so raise the exception\n if (onException != null) {\n onException.handle(ar.cause());\n }\n }\n });\n });\n\n conn.endHandler(v -> {\n // closed connections should be removed\n connections.remove(address);\n // how many connections are still open?\n // when there's more than 0 then we can still operate\n if (connections.size() == 0) {\n // all connections are closed so we must assume this\n // cluster is ended (or we can't recover)\n if (onEnd != null) {\n onEnd.handle(null);\n }\n }\n });\n\n conn.handler(r -> {\n if (onMessage != null) {\n onMessage.handle(r);\n }\n });\n\n connections.put(address, conn);\n onClient.handle(Future.succeededFuture(conn));\n });\n }", "private void workOnQueue() {\n }", "static public void queueOperation(Context context, OperationInfo args) {\n // Set the schedule time for execution based on the desired delay.\n args.calculateScheduledTime();\n\n synchronized (sWorkQueue) {\n sWorkQueue.add(args);\n sWorkQueue.notify();\n }\n\n context.startService(new Intent(context, AsyncQueryServiceHelper.class));\n }", "public interface EventBusProducer {\n void post(final Answer answer);\n}", "public void handle(QueueItem<T>[] events, SyncProducer producer, Encoder<T> encoder) throws Exception;", "public static void increaseNumberOfClients()\n {\n ++numberOfClients;\n }", "private static void addProducer()\r\n\t{\r\n\t\tfetchers++;\r\n\t\tFetcher producer = new Fetcher();\r\n\t\tproducer.start();\r\n\t}", "public static void Producer(String json) {\n\t\tConnection connection = null;\n\t\tConnectionFactory connectionFactory = new ActiveMQConnectionFactory(\"tcp://localhost:61616\");\n\t\ttry {\n\t\t\tconnection = connectionFactory.createConnection();\n\t\t\tSession session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);\n\t\t\tQueue queue = session.createQueue(\"customerMaildetails\");\n\t\t\tMessageProducer producer = session.createProducer(queue);\n\t\t\tString payload = json;\n\t\t\tMessage message = session.createTextMessage(payload);\n\t\t\tSystem.out.println(\"Sending text '\" + payload + \"'\");\n\t\t\tproducer.send(message);\n\t\t\tsession.close();\n\t\t} catch (JMSException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tif (connection != null) {\n\t\t\t\ttry {\n\t\t\t\t\tconnection.close();\n\t\t\t\t} catch (JMSException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t}", "public synchronized void start(CertificateClient client)\n throws IOException {\n Preconditions.checkState(!isRunning());\n setCertClient(client);\n updateCurrentKey(new KeyPair(certClient.getPublicKey(),\n certClient.getPrivateKey()), certClient.getCertificate());\n client.registerNotificationReceiver(this);\n setIsRunning(true);\n }", "public void onMessage(javax.jms.Message message) {\n try {\n Serializable objectMessage = ((ObjectMessage)message).getObject();\n if (Register.class.isInstance(objectMessage)) {\n Register registerMsg = (Register) objectMessage;\n\n String sender = registerMsg.getSender();\n if (spineInstanceList == null) {\n spineInstanceList = new HashSet<String>();\n // Add LOCAL id to the list to ensure no other Spine tries to use it.\n log.trace(\"Adding first registered Spine with id: {}\", clientId);\n if (!sender.startsWith(SpineStatus.TEST_MASTER_STATUS)) {\n spineInstanceList.add(clientId);\n }\n }\n log.trace(\"Client '{}' Received Registration request from '{}'\", clientId, sender);\n TransactionUID uid = registerMsg.getUid();\n boolean permission = true;\n try {\n if (spineInstanceList.contains(sender)) {\n log.info(\"Spine Client id: '{}' has already been used, declining registration.\", sender);\n spine.sendSystemMessage(new RegisterConfirmation(clientId, uid, !permission));\n }\n else {\n spine.sendSystemMessage(new RegisterConfirmation(clientId, uid, permission));\n log.trace(\"Adding client '{}' to the authorized Spine List\", sender);\n if (!sender.startsWith(SpineStatus.TEST_MASTER_STATUS)) {\n spineInstanceList.add(sender);\n }\n }\n } catch (SpineException e) {\n log.warn(\"Exception while sending RegisterConfirmation Message\", e);\n }\n }\n else {\n log.warn(\"Attempt to subscribe to Unsupported Durable Message: '{}'\", message);\n }\n } catch (JMSException e) {\n log.warn(\"Exception while handling Durable Message\", e);\n }\n }", "@Override\n public void onClick(View v) {\n\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n clientThread.sendMessage(\"Que\");\n }\n });\n\n\n// new Thread(new ClientSend()).start();\n\n }", "protected HeavyClient getClient() {\n\t\treturn client;\n\t}", "@Override\n\tpublic void addClient(Client c, String msg) throws RemoteException {\n\t\tif(!users.contains(c)){\n\t\t\tusers.add(c);\n\t\t\tfor(int i=0;i<users.size();i++) {\t \n\t //sendMessage((Client)users.get(i),msg);\n\t\t\t\tSystem.out.println(users.get(i).getName());\n\t }\n\t //users.add(c);\n\t }\n\t}", "public void run() {\n\n // Start threadPool\n for (int i = 0; i < nbThreads; i++) {\n ThreadClient threadClient = new ThreadClient(listSocketDevice, String.valueOf(i), handler);\n arrayThreadClients.add(threadClient);\n threadClient.start();\n }\n\n while (true) {\n try {\n if (v) Log.d(TAG, \"Server is waiting on accept...\");\n ISocket isocket = acceptISocket();\n\n if (v) Log.d(TAG, isocket.getRemoteSocketAddress() + \" accepted\");\n listSocketDevice.addSocketClient(isocket);\n\n // Notify handler\n handler.obtainMessage(Service.CONNECTION_PERFORMED,\n isocket.getRemoteSocketAddress()).sendToTarget();\n\n } catch (SocketException e) {\n handler.obtainMessage(Service.LOG_EXCEPTION, e).sendToTarget();\n break;\n } catch (IOException e) {\n handler.obtainMessage(Service.LOG_EXCEPTION, e).sendToTarget();\n break;\n }\n }\n }", "public abstract void Enqueue (Type item);" ]
[ "0.6688081", "0.623886", "0.5932902", "0.5929418", "0.58214146", "0.5719143", "0.5530659", "0.5514275", "0.5512976", "0.5505865", "0.5503374", "0.5471985", "0.54593176", "0.54220986", "0.5364808", "0.5353097", "0.5339742", "0.53322196", "0.5311688", "0.52999604", "0.5292339", "0.528976", "0.5267897", "0.5264996", "0.5234644", "0.5230663", "0.52287734", "0.52276814", "0.5226222", "0.5204737", "0.520451", "0.51824695", "0.5170915", "0.5164419", "0.5160444", "0.5158392", "0.51488864", "0.5131817", "0.51309", "0.51299703", "0.51222384", "0.5104868", "0.5101162", "0.51004463", "0.5095067", "0.5094276", "0.50936574", "0.50888854", "0.50866544", "0.5066257", "0.5063064", "0.50587016", "0.5055918", "0.4999056", "0.49985018", "0.49938837", "0.49890536", "0.49658218", "0.49650288", "0.49638894", "0.49618074", "0.49539274", "0.4949538", "0.49432525", "0.4941615", "0.49379814", "0.49339175", "0.4928162", "0.49225438", "0.49124917", "0.49091336", "0.4907034", "0.48965472", "0.48892358", "0.488731", "0.48824957", "0.48819286", "0.4877551", "0.48742515", "0.48703402", "0.48594508", "0.48526496", "0.48451924", "0.48407587", "0.4840242", "0.4838983", "0.4832619", "0.4828267", "0.48264256", "0.48204425", "0.48132762", "0.4807386", "0.48061436", "0.48041978", "0.4802109", "0.48019487", "0.47994232", "0.4799415", "0.47942096", "0.4792247" ]
0.72175854
0
Enqueues a program, handling notification.
private synchronized void enqueueProgram(int index, Program individual) { pendingPrograms.add(new IndexedProgram(index, individual)); notifyAll(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "TriggerRegistrar(ProgramManager<ISPProgram> programMan) {\n _progMan = programMan;\n _pool = Executors.newCachedThreadPool();\n\n // Listen to all the programs.\n List<ISPProgram> progs = programMan.getPrograms();\n for (ISPProgram prog : progs) {\n prog.addCompositeChangeListener(this);\n }\n\n // Listen to the program manager to make sure we see any new programs.\n programMan.addListener(this);\n }", "public void setProducerApplication(String sProducerApplication) throws IOException;", "public void sendAppInfo(final Bundle appInfo)\n {\n sendEngagementCommand(new Runnable()\n {\n @Override\n public void run()\n {\n try\n {\n mEngagementService.sendAppInfo(appInfo);\n }\n catch (Exception e)\n {\n e.printStackTrace();\n }\n }\n });\n }", "private void sendDataToQueue(byte[] data){\n\t\t//*****************************************\n\t\t//Se possuir o Prefixo de Comando Interno, então envia o Comando para a Fila de Comandos Internos do Core\n\t\t// Do contrário envia o Comando para a Fila de Dados a Serem enviados pelo BluetootSenderWorker ao Carro\n\t\tif(new String(data).contains(SystemProperties.COMANDO_INTERNO_PREFIXO)){\n\t\t\tthis.systemCore.addDataToInternalCommandQueue(data);\n\t\t\tthis.sendMessageToPrompt(\"Comando enviado a Fila de comandos Internos do Dispositivo Android...\");\n\t\t}else{\n\t\t\tthis.systemCore.addDataToCarControlQueue(data);\n\t\t\tthis.sendMessageToPrompt(\"Controle enviado a Fila de dados a serem enviados ao Carro...\");\n\t\t}\n\t}", "private void sendQueueToWear() {\n new APITask(new APICallback() {\n @Override\n public void r(String result) {\n try {\n JSONArray normalOrderQueue = new JSONObject(result).getJSONArray(\"queue\");\n\n for (int i = 0; i < normalOrderQueue.length(); i++) {\n if (gettingHelp(normalOrderQueue.getJSONObject(i)))\n if (mAdapter.helpedByMe(normalOrderQueue.getJSONObject(i))) {\n JSONObject attendedUser = normalOrderQueue.getJSONObject(i);\n normalOrderQueue = new JSONArray();\n normalOrderQueue.put(attendedUser);\n break;\n } else {\n normalOrderQueue.remove(i);\n i--;\n }\n }\n\n String queue = normalOrderQueue.toString();\n\n PutDataMapRequest putDataMapReq = PutDataMapRequest.create(\"/stayawhile/queue\");\n putDataMapReq.getDataMap().putString(QUEUE_KEY, queue);\n PutDataRequest putDataReq = putDataMapReq.asPutDataRequest();\n putDataReq.setUrgent();\n PendingResult<DataApi.DataItemResult> pendingResult =\n Wearable.DataApi.putDataItem(mGoogleApiClient, putDataReq);\n }\n catch (JSONException e) {\n e.printStackTrace();\n }\n }\n }).execute(\"method\", \"queue/\" + Uri.encode(mQueueName));\n }", "private void sendNotification() {\n }", "public void run() {\n\t\tZMQ.Socket sender = context.socket(ZMQ.PUSH);\n\t\tsender.bind(\"tcp://*:5557\");\n\t\t\n\t\t//this lets you go to another machine to start a worker\n\t\tSystem.out.println(\"Press Enter when the workers are ready: \");\n\t\ttry {\n\t\t\tSystem.in.read();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t// Messaging sending loop\n\t\tSystem.out.println(\"Sending tasks to workers\\n\");\n\t\twhile (!Thread.interrupted()) {\n\t\t\ttry {\n\t\t\t\t// If there are jobs to be sent, send them\n\t\t\t\t// Synchronize access to workParts structure before accessing it\n\t\t\t\tsynchronized (Master.lock) {\n\t\t\t\t\tif (!workParts.isEmpty()) {\t\n\t\t\t\t\t\tfor (Computation comp : workParts.values()) {\n\t\t\t\t\t\t\t// Submit only unsubmitted jobs\n\t\t\t\t\t\t\tif (!comp.isSubmitted()) {\n\t\t\t\t\t\t\t\tfor (int i=0; i < comp.getNumOfSubmissions(); i++) {\n\t\t\t\t\t\t\t\t\tsendJob(sender, comp);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t// Set submitted flag\n\t\t\t\t\t\t\t\tcomp.setSubmitted(true);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// Take a short break before reading the job list again\n\t\t\t\tThread.sleep(10);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "@Override\n public void run() {\n while (running) {\n synchronized (this) {\n while (pendingPrograms.isEmpty())\n try { wait(); } catch (InterruptedException ignored) { }\n }\n IndexedProgram entry = getNextProgram();\n sendForEvaluation(entry.index, entry.program);\n }\n }", "private void sendQueuedNotifications() {\n Notification n;\n while ((n = pendingNotifs.poll()) != null) {\n broadcaster.sendNotification(n);\n }\n }", "@Override\n public void sendProgramsToReceiveTargets(Program[] progs) {\n \n }", "private void sendSourceCode()\n {\n try {\n String apkName = pManager.getApplicationInfo(appName, 0).sourceDir;\n int i = 0;\n for(Connection connection: this.connections) {\n if(this.status.get(i))\n this.protocol.sendApk(apkName, appName, connection.getInput(), connection.getOutput());\n\n i++;\n }\n }catch (PackageManager.NameNotFoundException e) {\n Log.e(TAG, \"Application not found: \" + e.getMessage());\n }\n }", "public void onQueue();", "String addReceiveQueue();", "public void enqueue ()\n {\n count++;\n questionList.add(newQuestion);\n //System.out.println(\"Question #\"+ totNumQ + \" is added to the queue.\");\n }", "private void speakIpa(String ipaText, int queueMode, ArrayList<String> params) {\n if (queueMode == 0) {\n stop();\n }\n mSpeechQueue.add(new SpeechItem(ipaText, params, SpeechItem.IPA));\n if (!mIsSpeaking) {\n processSpeechQueue();\n }\n }", "public void enQueueAppointments(List<Appointment> appToEnQueue, String userDocId, String sessionTag) {\n ClinicSession cs = (ClinicSession) this.HospitalSessions.get(sessionTag);\n for (Appointment app : appToEnQueue) {\n if (app.getOpenStatus().equals(Constants.OPENED_APP_STATUS)) {\n cs.getPersonnelAppointmentMap().put(userDocId, app);\n app.setOpenStatus(Constants.ENQUEUED_APP_STATUS);\n }\n }\n\n }", "private void sendForEvaluation(final int index, final Program program) {\n final IClient client = getNextClient();\n Thread t = new Thread(new Runnable() {\n @Override\n public void run() {\n try {\n int fitness = client.evaluateProgram(program.program);\n enqueueClient(client);\n updateFitness(index, fitness);\n } catch (RemoteException ignored) {\n enqueueProgram(index, program);\n }\n }\n });\n t.start();\n }", "public void enqueue(Message msg){\n\t\tqueue.add(msg);\n\t}", "void externalProcessStarted(String command, String consumer);", "public synchronized void enqueue(Object msg) {\n\t\tqueue.add(msg);\n\n\t\t// if any threads wait on empty queue then wake them up\n\t\tnotifyAll();\n\t}", "public com.google.protobuf.Empty registerApplication(org.thethingsnetwork.management.proto.HandlerOuterClass.ApplicationIdentifier request);", "public com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty> registerApplication(\n org.thethingsnetwork.management.proto.HandlerOuterClass.ApplicationIdentifier request);", "private void addApp(RifidiApp app) {\n\t\tsynchronized (apps) {\n\t\t\tif (apps.containsValue(app))\n\t\t\t\treturn;\n\t\t\tint appID = serviceCounter++;\n\t\t\tapps.put(appID, app);\n\t\t\tstartApp(appID, true);\n\t\t}\n\t}", "void notify(String data, PushType type);", "@Override\n\tpublic void execute() {\n\t\tthis.receiver.add(this.question, 42);\n\t}", "private void addToQueue (Parcel[] packagesAssigned){\n\n }", "private void ipcSend(JSONObject data) {\n JSONObject json = data;\n try {\n json.put(IPC_MESSAGE_APPID, mAppId);\n\n if (mIpcChannel != null) {\n log.e(\"ipcSend:[\" + json.toString() + \"]\");\n\n mIpcChannel.send(json.toString());\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public void notifyAll(int priority) {}", "public void execute() {\n\t\tthis.badgeId = studentWorkerOperation.AddNewBadge(this.badgeName, this.badgeDescription);\n\t}", "private void sendNotification() {\n int mNotificationId = 001;\n NotificationCompat.Builder mBuilder = new NotificationCompat.Builder(this)\n .setSmallIcon(R.drawable.ic_action_camera)\n .setContentTitle(\"Daily Selfie\")\n .setContentText(\"Time for another selfie\");\n Intent resultIntent = new Intent(this, MainActivity.class);\n PendingIntent resultPendingIntent =\n PendingIntent.getActivity(\n this,\n 0,\n resultIntent,\n PendingIntent.FLAG_UPDATE_CURRENT\n );\n mBuilder.setContentIntent(resultPendingIntent);\n // Gets an instance of the NotificationManager service\n NotificationManager mNotifyMgr = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);\n // Builds the notification and issues it.\n mNotifyMgr.notify(mNotificationId, mBuilder.build());\n }", "public Application(AppQueue event_q)\r\n {\r\n this.event_q = event_q;\r\n flag = true;\r\n }", "private void scheduleHeartBeatThread() {\n if (scheduler == null) {\n scheduler = Executors.newSingleThreadScheduledExecutor(\n Threads.createDaemonThreadFactory(\"program-heart-beat\"));\n scheduler.scheduleAtFixedRate(\n () -> {\n Map<String, String> properties = new HashMap<>();\n properties.put(ProgramOptionConstants.PROGRAM_RUN_ID, GSON.toJson(programRunId));\n properties.put(ProgramOptionConstants.HEART_BEAT_TIME,\n String.valueOf(System.currentTimeMillis()));\n // publish as heart_beat type, so it can be handled appropriately at receiver\n programStatePublisher.publish(Notification.Type.PROGRAM_HEART_BEAT, properties);\n LOG.trace(\"Sent heartbeat for program {}\", programRunId);\n }, heartBeatIntervalSeconds,\n heartBeatIntervalSeconds, TimeUnit.SECONDS);\n }\n }", "private void speak(String text, int queueMode, ArrayList<String> params) {\n if (queueMode == 0) {\n stop();\n }\n mSpeechQueue.add(new SpeechItem(text, params, SpeechItem.TEXT));\n if (!mIsSpeaking) {\n processSpeechQueue();\n }\n }", "private void playEarcon(String earcon, int queueMode,\n ArrayList<String> params) {\n if (queueMode == 0) {\n stop();\n }\n mSpeechQueue.add(new SpeechItem(earcon, params, SpeechItem.EARCON));\n if (!mIsSpeaking) {\n processSpeechQueue();\n }\n }", "void enqueue(BasePayload payload, EnqueueCallback callback);", "public void notifyProgramMessage(Level level, String message) {\n outputTextArea.append(SixDOFArmResources.getString(message));\n }", "public void enqueue(process p) {\n\t\tqueue.addLast(p);\n\t}", "public String getProducerApplication();", "private void queueTask(Version theTask) {\n\tsynchronized(_taskQueue) {\n\t _taskQueue.add(theTask);\n\t}\n }", "private void send() {\n vertx.eventBus().publish(GeneratorConfigVerticle.ADDRESS, toJson());\n }", "Message sendAndWait();", "void addToQueue(WebhookMessage msg);", "@Override\n\tpublic void enqueue(ActorRef arg0, Envelope arg1) {\n\t\t\n\t}", "public boolean addProgram(JSONObject programJSON);", "public com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty> setApplication(\n org.thethingsnetwork.management.proto.HandlerOuterClass.Application request);", "private void add(Pair<MarketDataRequestAtom,Event> inData)\n {\n getQueue().add(inData);\n }", "public interface AppEnvironment\n{\n /**\n * Registers the given OrderConsumer, such that it will be notified of order based events.\n * \n * @param orderConsumer\n */\n void registerOrderConsumer(OrderConsumer orderConsumer);\n\n /**\n * Performs a run of order processing\n */\n void run();\n\n}", "public void enqueue(String message) {\n\t\tqueue.add (message);\n\t}", "private static void CLIapplication() {\n\n\t\tboolean done = false;\n\t\tdo {\n\t\t\tint choice = HQmenu();\n\t\t\tSite newSite;\n\n\t\t\tswitch(choice) {\n\t\t\tcase 1:\n\t\t\t\tSystem.out.println(\"Register exchange office\");\n\t\t\t\tnewSite = createNewSite();\n\t\t\t\tif(sites.containsKey(newSite.getSiteName())) {\n\t\t\t\t\tSystem.out.println(\"Site already registred!1\");\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tsites.putIfAbsent(newSite.getSiteName(), newSite);\t\t\t\t\t\n\t\t\t\t\twriteNewSiteToConfigFile(newSite.getSiteName());\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tif(sites.isEmpty()) {\n\t\t\t\t\tSystem.out.println(\"You need to register site(s) first.\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tCLIHelper.menuInput();\n\t\t\t\tbreak;\n\t\t\tcase 0:\n\t\t\t\tdone = true;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tSystem.out.println(\"Not a valid menu choice!\");\n\t\t\t}\n\t\t\tlogger.info(\"-------Task_Done-------\\n\");\n\t\t}while(!done);\n\t}", "public interface EventBusProducer {\n void post(final Answer answer);\n}", "@Override\n\tpublic void executeEvent(Meeting meeting) {\n\t\tServerLogger logger = new ServerLogger(\"Audio Event\");\n\t\tSet<Entry<MeetingClient,ThreadedBufferedMessageWriter>> writers = meeting.getClientMessageWriters();\n\t\tfor(Entry<MeetingClient,ThreadedBufferedMessageWriter> writer : writers)\n\t\t{\n\t\t\tif(writer.getKey() != getClientWhoCreatedEvent())\n\t\t\t{\n\t\t\t\twriter.getValue().enqueueMessage(audioMessage);\n\t\t\t}\n\t\t}\n\t}", "public void updateData() {\n\n ProgramWorker pw = new ProgramWorker();\n pw.execute();\n\n }", "private void workOnQueue() {\n }", "void notifyMessage(Task task);", "protected void onQueued() {}", "public void addQueuedPassenger(){\n this._queuedPassengers +=1;\n }", "private void broadcastVoiceCommandAction() {\n\t\tVoiceCommandStartIntent.putExtra(\"command\", mApplications.get(CurIndex).title);\r\n\t\tcontext.sendBroadcast(VoiceCommandStartIntent);\r\n\t}", "public synchronized void produce(){\n\t\tif(num==capacity){\n\t\t\ttry {\n\t\t\t\twait();\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\t\n\t\t}\n\t\tnum++;\n\t\tSystem.out.println(\"Produce 1, now we have \"+num+\" products\");\n\t\tnotify();\n\t}", "public abstract void onProcess();", "@Override\n\tpublic void enqueue(String msgid, EmailAddress recipient) throws MessageEngineException {\n\t\t\n\t}", "@Override\n\tpublic void run() {\n\t\tthis.logger.debug(\"activity created sent: \" + body);\n\n\t\tSender sender = new Sender(this.apiKey);\n//\t\tNotification value = new Notification.Builder(\"TiTlE\").body(\"BoDy\").build();\n//\t\tMessage message = new Message.Builder().notification(value)\n//\t\t\t\t.addData(\"message\", body)\n//\t\t\t\t.addData(\"title\", title)\n//\t\t\t\t.build();\n\t\tMessage message = new Message.Builder()\n\t\t\t\t.addData(\"message\", body)\n\t\t\t\t.addData(\"title\", title)\n\t\t\t\t.addData(\"activity_id\", this.activityId)\n\t\t\t\t.build();\n\n\t\ttry {\n\t\t\tResult result = sender.send(message, this.registrationId, 1);\n\t\t\t//System.out.println(\"gcm result success:\" + result.getSuccess() + \" failure:\"+ result.getFailure() + \" fail msg: \" + result.getErrorCodeName());\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t//System.out.println(\"activity creation notification sent\");\n\n\t}", "void processQueue();", "public void push(final String queueName, final String item);", "protected void firePaperJamEvent()\n {\n // construct parameters and signatures\n Object[] parameter = new Object[ 1 ];\n parameter[ 0 ] = new Notification( \n \"PrinterEvent.PAPER_JAM\", this, 0L );\n String[] signature = new String[ 1 ];\n signature[ 0 ] = \"javax.management.Notification\";\n \n // invoke notification\n try {\n mBeanServer.invoke( eventBroadcasterName,\n \"sendNotification\", parameter, signature ); \n } \n\n // handle exception when invoking method\n catch( ReflectionException exception ) {\n exception.printStackTrace();\n }\n\n // handle exception communicating with MBean\n catch( MBeanException exception ) {\n exception.printStackTrace();\n } \n\n // handle exception if MBean not found\n catch( InstanceNotFoundException exception ) {\n exception.printStackTrace();\n } \n\n }", "private void enterToRunwayQueue() {\n\t\tqueue.insert(this);\n\t}", "void push(String message);", "@Override\r\n public void exec(String className, int[] sound) {\r\n TaskRequester requester = taskRequesterMap.get(className);\r\n if (requester != null) {\r\n try {\r\n requester.getTask().exec(sound);\r\n } catch (RemoteException e) {\r\n Log.e(TAG, e.getMessage());\r\n }\r\n } else {\r\n Log.e(TAG, \"No task requester for \"+className);\r\n }\r\n }", "public void queueSyn() {\n\t\tflags |= SYN_SEG_WAITING;\n\t}", "public void push(int x) {\r\n this.queueMain.offer(x);\r\n }", "private void sendQueue() {\r\n firePropertyChange(\"boardQueue\", null, myBoardQueue);\r\n firePropertyChange(\"scaleQueue\", null, myScaleDialogQueue);\r\n firePropertyChange(\"gui\", null, this);\r\n }", "public static void sendData(Program ProgramCur, Patient pat) throws Exception {\n String path = Programs.getProgramPath(ProgramCur);\n ArrayList ForProgram = ProgramProperties.getForProgram(ProgramCur.ProgramNum);\n ;\n if (pat == null)\n {\n MessageBox.Show(\"Please select a patient first\");\n return ;\n }\n \n //The path is available in the registry, but we'll just make the user enter it.\n if (!File.Exists(path))\n {\n MessageBox.Show(\"Could not find \" + path);\n return ;\n }\n \n //Make sure the program is running\n if (Process.GetProcessesByName(\"DentalEye\").Length == 0)\n {\n Process.Start(path);\n Thread.Sleep(TimeSpan.FromSeconds(4));\n }\n \n //command=\"[Add][PatNum][Fname][Lname][Address|Address2|City, ST Zip][phone1][phone2][mobile phone][email][sex(M/F)][birthdate (YYYY-MM-DD)]\"\n ProgramProperty PPCur = ProgramProperties.getCur(ForProgram,\"Enter 0 to use PatientNum, or 1 to use ChartNum\");\n ;\n String patID = new String();\n if (StringSupport.equals(PPCur.PropertyValue, \"0\"))\n {\n patID = pat.PatNum.ToString();\n }\n else\n {\n if (StringSupport.equals(pat.ChartNumber, \"\"))\n {\n MessageBox.Show(\"ChartNumber for this patient is blank.\");\n return ;\n }\n \n patID = pat.ChartNumber;\n } \n String command = \"[Add][\" + patID + \"]\" + \"[\" + pat.FName + \"]\" + \"[\" + pat.LName + \"]\" + \"[\" + pat.Address + \"|\";\n if (!StringSupport.equals(pat.Address2, \"\"))\n {\n command += pat.Address2 + \"|\";\n }\n \n command += pat.City + \", \" + pat.State + \" \" + pat.Zip + \"]\" + \"[\" + pat.HmPhone + \"]\" + \"[\" + pat.WkPhone + \"]\" + \"[\" + pat.WirelessPhone + \"]\" + \"[\" + pat.Email + \"]\";\n if (pat.Gender == PatientGender.Female)\n command += \"[F]\";\n else\n command += \"[M]\"; \n command += \"[\" + pat.Birthdate.ToString(\"yyyy-MM-dd\") + \"]\";\n try\n {\n //MessageBox.Show(command);\n //Create a context that uses a dedicated thread for DDE message pumping.\n DdeContext context = new DdeContext();\n try\n {\n {\n //Create a client.\n DdeClient client = new DdeClient(\"DENTEYE\", \"Patient\", context);\n try\n {\n {\n //Establish the conversation.\n client.Connect();\n //Add patient or modify if already exists\n client.Execute(command, 2000);\n //timeout 2 secs\n //Then, select patient\n command = \"[Search][\" + patID + \"]\";\n client.Execute(command, 2000);\n }\n }\n finally\n {\n if (client != null)\n Disposable.mkDisposable(client).dispose();\n \n }\n }\n }\n finally\n {\n if (context != null)\n Disposable.mkDisposable(context).dispose();\n \n }\n }\n catch (Exception __dummyCatchVar0)\n {\n }\n \n }", "private void sendCommand(String msg) throws InterruptedException {\n commandQueue.put(msg);\n selector.wakeup();\n }", "private void startAppLockWorker() {\n\n OneTimeWorkRequest oneTimeWorkRequest = new OneTimeWorkRequest.Builder(AppLockWorker.class).build();\n WorkManager.getInstance(getApplicationContext()).enqueueUniqueWork(Constants.APPLOCKWORK, ExistingWorkPolicy.REPLACE,oneTimeWorkRequest);\n }", "public void addToPumpQueue(Driver driver){\n\t\tqueue.add(driver);\n\t\tdriver.assignPump(pumpNumber);\n\t\tunitSpaceAvailable -= driver.getVehicle().getUnitSize();\n\t}", "void enqueue(String object);", "synchronized void receiveJETON(){\n\tif(SC){\n\t\tJeton = true;\n\t}else{\n\t\tif (procId==0){\n\t\t\tSyncMessage sm = new SyncMessage(MsgType.JETON, 0, procId);\n\t\t\tsendTo(0, sm);\n\t\t}else{\n\t\t\tSyncMessage sm = new SyncMessage(MsgType.JETON, 1, procId);\n\t\t\tsendTo(1, sm);\n\t\t}\n\t}\n\tthis.notifyAll();\n\n}", "public void appendProgram(IMAProgram methodCode) {\n program.append(methodCode);\n }", "@Override\n public void onMessage(Context context, Intent intent) {\n \tNoteApplication app = (NoteApplication) getApplication();\n \tapp.notifyListener(intent);\n }", "private void sendHeadlinerNotification() {\n startService(new Intent(this, ForegroundNotificationService.class));\n }", "private void produceWorker(Class<? extends WorkerWatch> jobClass, String groupName, Long queueTaskId) \n throws SchedulerException \n {\n JobDetail jobDetail = org.quartz.JobBuilder.newJob(jobClass)\n .usingJobData(\"queueTaskId\", queueTaskId)\n .withIdentity(jobClass.getName() + \"-\" + queueTaskId, groupName + \"Workers-\"+queueTaskId)\n .build();\n\n SimpleTrigger trigger = (SimpleTrigger)newTrigger()\n .withIdentity(jobClass.getName() + \"-\" + queueTaskId, groupName + \"Workers-\"+queueTaskId)\n .startNow()\n .withSchedule(simpleSchedule()\n .withMisfireHandlingInstructionNextWithExistingCount()\n .withIntervalInSeconds(1)\n .withRepeatCount(0))\n .build();\n\n Scheduler sched = new StdSchedulerFactory().getScheduler(\"AgaveConsumerTransferScheduler\");\n if (!sched.isStarted()) {\n sched.start();\n }\n \n log.debug(\"Assigning \" + jobClass.getSimpleName() + \" \" + queueTaskId + \" for processing\");\n \n sched.scheduleJob(jobDetail, trigger);\n }", "public String registerNewProducer(Producer producer);", "void sendStoredText(int subId, String callingPkg, Uri messageUri, String scAddress,\n PendingIntent sentIntent, PendingIntent deliveryIntent);", "public void push(Product p) throws InterruptedException\n\t{\n\t\tqueue.put(p);\n\t}", "private void sendNotifications() {\n for (long sid : self.getCurrentAndNextConfigVoters()) {\n QuorumVerifier qv = self.getQuorumVerifier();\n ToSend notmsg = new ToSend(\n ToSend.mType.notification,\n proposedLeader,\n proposedZxid,\n logicalclock.get(),\n QuorumPeer.ServerState.LOOKING,\n sid,\n proposedEpoch,\n qv.toString().getBytes(UTF_8));\n\n LOG.debug(\n \"Sending Notification: {} (n.leader), 0x{} (n.zxid), 0x{} (n.round), {} (recipient),\"\n + \" {} (myid), 0x{} (n.peerEpoch) \",\n proposedLeader,\n Long.toHexString(proposedZxid),\n Long.toHexString(logicalclock.get()),\n sid,\n self.getMyId(),\n Long.toHexString(proposedEpoch));\n\n sendqueue.offer(notmsg);\n }\n }", "@Override\n public void run() {\n ZMQ.Context context = ZMQ.context(2);\n\n ZMQ.Socket publisher = context.socket(ZMQ.PUB);\n publisher.setAffinity(1);\n publisher.setHWM(0);\n publisher.bind(\"tcp://*:5556\");\n //publisher.bind(\"ipc://weather\");\n\n ZMQ.Socket incoming = context.socket(ZMQ.PULL);\n incoming.setHWM(0);\n incoming.setAffinity(2);\n incoming.bind(\"tcp://*:5557\");\n\n System.out.println(\"Sequencer is alive\");\n\n ZMQ.proxy(incoming, publisher, null);\n // while (! Thread.currentThread().isInterrupted()) {\n // byte[] data = incoming.recv(0);\n // //System.out.printf(\"Received message with %d bytes\\n\", data.length);\n // publisher.send(data, 0);\n // }\n\n publisher.close();\n incoming.close();\n context.term();\n }", "private void publishQueston() {\n JSONObject job = new JSONObject();\n\n try {\n job.put(\"authent\", tools.getValue(Constants.AUTHENT));\n\n job.put(\"q_id\", getIntent().getStringExtra(\"id\"));\n job.put(\"content\", answer_content.getText().toString() + \"\");\n job.put(\"is_niming\", isAnonymity);\n if (imgList.size() > 0) {\n String str = gson.toJson(imgList);\n JSONArray jarr = new JSONArray(str);\n job.put(\"attachment\", jarr);\n }\n } catch (JSONException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n\n MainBizImpl.getInstance()\n .onCirclModeRequest(myHandler, this, SEND_TASK_SUCESS,\n SEND_TASK_FIAL, job, \"questions/submitAnswer\");\n\n }", "public void queueMessage(Message message);", "public void push(String message) throws IOException;", "public void registerApplication(org.thethingsnetwork.management.proto.HandlerOuterClass.ApplicationIdentifier request,\n io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver);", "@Test\n public void testProcessControlChannelProgramUpdates() throws Exception {\n createTethering(\"xyz\", NAMESPACES, REQUEST_TIME, DESCRIPTION);\n acceptTethering();\n expectTetheringControlResponse(\"xyz\", HttpResponseStatus.OK);\n\n // Add program update Notifications to body\n HttpRequest.Builder builder =\n HttpRequest.builder(HttpMethod.POST, config.resolveURL(\"tethering/channels/xyz\"));\n ProgramRunId programRunId =\n new ProgramRunId(\"system\", \"app\", ProgramType.SPARK, \"program\", \"run\");\n Notification programUpdate =\n new Notification(\n Notification.Type.PROGRAM_STATUS,\n ImmutableMap.of(ProgramOptionConstants.PROGRAM_RUN_ID, GSON.toJson(programRunId)));\n TetheringControlChannelRequest content =\n new TetheringControlChannelRequest(null, ImmutableList.of(programUpdate));\n builder.withBody(GSON.toJson(content));\n HttpResponse response = HttpRequests.execute(builder.build());\n Assert.assertEquals(HttpResponseStatus.OK.code(), response.getResponseCode());\n\n // Check that program update was persisted as a state transition in TMS\n try (CloseableIterator<Message> iterator =\n new MultiThreadMessagingContext(messagingService)\n .getMessageFetcher()\n .fetch(\n NamespaceId.SYSTEM.getNamespace(),\n cConf.get(Constants.AppFabric.PROGRAM_STATUS_EVENT_TOPIC),\n 1,\n null)) {\n Assert.assertTrue(iterator.hasNext());\n Notification notification =\n iterator.next().decodePayload(r -> GSON.fromJson(r, Notification.class));\n Assert.assertEquals(programUpdate, notification);\n Map<String, String> properties = notification.getProperties();\n Assert.assertEquals(\n GSON.toJson(programRunId), properties.get(ProgramOptionConstants.PROGRAM_RUN_ID));\n }\n }", "void sendScheduledNotifications(JobProgress progress);", "public void speakIpa(String ipaText, int queueMode, String[] params) {\n ArrayList<String> speakingParams = new ArrayList<String>();\n if (params != null) {\n speakingParams = new ArrayList<String>(Arrays.asList(params));\n }\n mSelf.speakIpa(ipaText, queueMode, speakingParams);\n }", "public void notifyKi(){\n this.kiPlugin.gamerFoundASet();\n }", "public static void Producer(String json) {\n\t\tConnection connection = null;\n\t\tConnectionFactory connectionFactory = new ActiveMQConnectionFactory(\"tcp://localhost:61616\");\n\t\ttry {\n\t\t\tconnection = connectionFactory.createConnection();\n\t\t\tSession session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);\n\t\t\tQueue queue = session.createQueue(\"customerMaildetails\");\n\t\t\tMessageProducer producer = session.createProducer(queue);\n\t\t\tString payload = json;\n\t\t\tMessage message = session.createTextMessage(payload);\n\t\t\tSystem.out.println(\"Sending text '\" + payload + \"'\");\n\t\t\tproducer.send(message);\n\t\t\tsession.close();\n\t\t} catch (JMSException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tif (connection != null) {\n\t\t\t\ttry {\n\t\t\t\t\tconnection.close();\n\t\t\t\t} catch (JMSException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t}", "private void notifyOnBinaryReceived(byte[] data) {\n synchronized (globalLock) {\n if (isRunning) {\n onBinaryReceived(data);\n }\n }\n }", "@Override\n public void flush() {\n new QueueConsumer().run();\n }", "public static void computerAwake(String currentApplication){\n lock.lock(); // block until condition holds\n try {\n ComputerDispatcher.turningOn = false;\n\n //set current application\n currentContext.currentApplication = currentApplication;\n PendingCommand pcmd;\n while (!pending.isEmpty()){\n pcmd = pending.pop();\n System.out.println(\"running pending command\");\n //deal with race conditions\n if (pcmd != null)\n interpretCommand(pcmd.c, pcmd.text);\n }\n }\n finally {\n lock.unlock();\n }\n }", "synchronized void addProcess(DpinProcess dp)\n{\n if (dp != null) process_set.put(dp.getId(),dp);\n notifyAll();\n}", "void onInstallerEvent(String eventName, Object... args);", "public void run(){\n // first register the producer\n m_DirectoryQueue.registerProducer();\n\n enqueueFiles(f_Root);\n\n //lastly unregister the producer\n m_DirectoryQueue.unregisterProducer();\n }" ]
[ "0.5385765", "0.536495", "0.53239924", "0.5209478", "0.52041596", "0.5203713", "0.5199444", "0.5144666", "0.5141067", "0.5138", "0.50776786", "0.50455326", "0.5006013", "0.4999387", "0.49829993", "0.4971564", "0.4951349", "0.4950132", "0.49478948", "0.49300784", "0.4927464", "0.49106723", "0.4886706", "0.48772088", "0.4857005", "0.4853243", "0.48379493", "0.4827231", "0.4825882", "0.47996908", "0.47937834", "0.47877416", "0.478054", "0.47781527", "0.47750196", "0.47401187", "0.47279033", "0.47274336", "0.4716369", "0.4702244", "0.46980253", "0.46937418", "0.46912405", "0.46758747", "0.46740577", "0.46735337", "0.46656495", "0.46633428", "0.4660922", "0.4659", "0.4657665", "0.46504414", "0.46491137", "0.46416563", "0.46411106", "0.46366078", "0.46289483", "0.46195853", "0.46144524", "0.46045047", "0.46007708", "0.45983204", "0.4591875", "0.45865887", "0.45847157", "0.45845908", "0.45788914", "0.4576854", "0.45687416", "0.45636687", "0.45636398", "0.4552781", "0.45522952", "0.45517814", "0.4546152", "0.45456073", "0.454328", "0.45427045", "0.45425993", "0.4534202", "0.45339897", "0.4529574", "0.4529299", "0.45254064", "0.4518664", "0.45128417", "0.45115408", "0.4506609", "0.45043677", "0.44990143", "0.44963318", "0.44945422", "0.4492423", "0.44890103", "0.44788313", "0.44777095", "0.44776788", "0.4475091", "0.4474008", "0.44695604" ]
0.6512887
0
Updates the statistics fields with new fitness information.
private void updateStatistic(int index, int fitness) { if (fitness < worst) worst = fitness; if (fitness > best) { best = fitness; frontRunner = geneticProgram.getProgram(index); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void updateFitness ( ) {\n\n KozaFitness f = ((KozaFitness)program.fitness);\n\n f.setStandardizedFitness(param.Parameters.STATE, this.fit);\n\n }", "public void incrementFitness()\n {\n this.fitness++;\n }", "public abstract void updateFitness();", "public void setFitness(float fitness)\r\n\t{\r\n\t\tthis.fitness = fitness;\r\n\t}", "void setFitness(double fitness) throws UnsupportedOperationException;", "public void growStats() {\r\n\t\tLIFE += increment;\r\n\t\tSTRENGTH += increment;\r\n\t}", "public void updateStats( ) {\r\n\t\tperseverance = owner.perseverance;\r\n\t\tobservation = owner.observation;\r\n\t\tintellect = owner.intellect;\r\n\t\tnegotiation = owner.negotiation;\r\n\t\ttact = owner.tact;\r\n\t\tstrength = owner.strength;\r\n\r\n\t\txCoord = owner.xCoord;\r\n\t\tyCoord = owner.yCoord;\r\n\r\n\t\tmaxHealth = 2400 + ( perseverance * 200 );\r\n\r\n\t\thealth = maxHealth;\r\n\r\n\t\tsetDamages( );\r\n\t}", "void calculateFitness() {\n if (reachedGoal) {\n fitness = 1d / 16d + 8192d / (genome.step * genome.step);\n } else {\n double d = position.distance(Game.Setup.goal);\n fitness = 1d / (d * d);\n }\n }", "public void setFitness(int newFitness) {\n fitness = newFitness;\n }", "private void setnewFitnessValue(double fitnessValue) {\n this.newfitnessValue = fitnessValue;\r\n }", "@Override\r\n\t\t\tpublic void populationUpdate(PopulationData<? extends Solution> data) {\n//\t\t\t\tbuffer.append(data.getPopulationSize());\r\n//\t\t\t\tbuffer.append(\"\\n\");\r\n\t\t\t\t\r\n\t\t\t\tdouble fit = data.getBestCandidateFitness();\r\n//\t\t\t\tSystem.out.println(fit);\r\n\t\t\t\tbuffer.delete(0, buffer.length());\r\n\t\t\t\tbuffer.append(fit);\r\n//\t\t\t\tbuffer.append(\"\\n\");\r\n\t\t\t\t\r\n\t\t\t\tif (Run10FastExternalizer.initialFitness.getDbl() == -1.0) {\r\n\t\t\t\t\tRun10FastExternalizer.initialFitness.setDbl(fit);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif (fit == 0.0){\r\n\t\t\t\t\tArrayList<Student> studentsCopy = new ArrayList<>();\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tfor (Student student: students){\r\n\t\t\t\t\t\tstudentsCopy.add(student.clone());\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tStringBuilder sb = new StringBuilder();\r\n\t\t\t\t\t\r\n\t\t\t\t\tfor (Student student: studentsCopy){\r\n\t\t\t\t\t\tstudent.register(data.getBestCandidate().getBlocks());\r\n//\t\t\t\t\t\tSystem.out.println(student.getSchedule());\r\n//\t\t\t\t\t\tbuffer.append(student.getSchedule().toString());\r\n//\t\t\t\t\t\tbuffer.append(\"\\n\");\r\n\t\t\t\t\t\tsb.append(student.getSchedule().toString());\r\n\t\t\t\t\t\tsb.append(\"\\n\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tsuperValue = sb.toString();\r\n\t\t\t\t}\r\n\t\t\t}", "void setFitnessScore(double score){\n fitnessScore = score;\n }", "protected float getFitness()\t\t\t{\treturn fitness;\t\t}", "private synchronized void updateFitness(int index, int fitness) {\n geneticProgram.setProgramFitness(index, fitness);\n programsRemaining--;\n updateStatistic(index, fitness);\n notifyAll();\n }", "public void fitnessFunction()\n\t{\n\t\t\n\t}", "@Override\n public void updateStats() {\n if (entering || isLogoutStarted()) {\n return;\n }\n\n refreshOverloaded();\n refreshExpertisePenalty();\n super.updateStats();\n }", "private void updateStats()\n\t{\n\n\t\tint[] temp = simulation.getStatValue();\n\t\tfor(int i = 0; i < temp.length; i++)\n\t\t{\n\t\t\tthis.statsValues[i].setText(Integer.toString(temp[i]));\n\t\t}\n\t\t\n\t\tint[] temp2 = simulation.getNumberInEachLine();\n\t\tfor(int i = 0; i < temp2.length; i++)\n\t\t{\n\t\t\tthis.eatValues[i].setText(Integer.toString(temp2[i]));\n\t\t}\n\t}", "public void updateFitness() {\n Particle p;\n for (int i = 0; i < SWARM_SIZE; i++) {\n p = swarm.get(i);\n p.setFitnessValue(getFitnessValue(p.getVector().getPos()));\n p.setpBestFitness(getFitnessValue(p.getpBest().getPos()));\n }\n }", "public float getFitness()\r\n\t{\r\n\t\treturn fitness;\r\n\t}", "public void computeStats() {\n\t\tstats = new Stats();\t\t\n\t}", "public int getFitness(){\n return fitness;\n }", "public void modifyFitness(Population population) {\n // prepare the calculation\n double[][] data = new double[population.size()][];\n for (int i = 0; i < data.length; i++) {\n data[i] = ((AbstractEAIndividual)population.get(i)).getFitness();\n }\n double min = Double.POSITIVE_INFINITY, fitnessSharing;\n double[] result = new double[data.length];\n AbstractEAIndividual tmpIndy;\n\n for (int x = 0; x < data[0].length; x++) {\n for (int i = 0; i < data.length; i++) data[i][x] = -data[i][x];\n for (int i = 0; i < data.length; i++) {\n if (data[i][x] < min) min = data[i][x];\n }\n\n for (int i = 0; i < data.length; i++) {\n // This will cause the worst individual to have no chance of being selected\n // also note that if all individual achieve equal fitness the sum will be zero\n result[i] = data[i][x] -min + 0.1;\n }\n\n for (int i = 0; i < population.size(); i++) {\n tmpIndy = (AbstractEAIndividual)population.get(i);\n fitnessSharing = 0;\n for (int j = 0; j < population.size(); j++) {\n if (this.m_SharingDistance < this.m_Metric.distance(tmpIndy, (AbstractEAIndividual)population.get(j))) {\n fitnessSharing += 1 - (this.m_Metric.distance(tmpIndy, (AbstractEAIndividual)population.get(j))/this.m_SharingDistance);\n }\n }\n result[i] = result[i]/fitnessSharing;\n }\n\n for (int i = 0; i < population.size(); i++) {\n ((AbstractEAIndividual)population.get(i)).SetFitness(x, result[i]);\n }\n }\n }", "protected void mutateWeights() {\n\t\t// TODO: Change the way weight mutation works\n\t\tif (Braincraft.gatherStats) {\n\t\t\tArrayList<Integer> mutatedgenes = new ArrayList<Integer>();\n\t\t\tfor (Gene g : genes.values()) {\n\t\t\t\tif (Braincraft.randomChance(population.perWeightMutationRate)) {\n\t\t\t\t\tg.weight = Braincraft.randomWeight();\n\t\t\t\t\tmutatedgenes.add(g.innovation);\n\t\t\t\t}\n\t\t\t}\n\t\t\tString output = \"weight mutation \" + ID;\n\t\t\tfor (Integer i : mutatedgenes) {\n\t\t\t\toutput += \" \" + i;\n\t\t\t}\n\t\t\tBraincraft.genetics.add(output);\n\t\t} else {\n\t\t\tfor (Gene g : genes.values()) {\n\t\t\t\tif (Braincraft.randomChance(population.perWeightMutationRate))\n\t\t\t\t\tg.weight = Braincraft.randomWeight();\n\t\t\t}\n\t\t}\n\t\t// TODO: Report weight mutations to stats\n\t}", "void ComputeFitness(){\n\t\tint i, pos;\n\t\t// individual t;\n\t\tdouble min, sum = 0, sumSize = 0, tm;\n\t\t// First Compute Raw fitness\n\t\tfor(i = 0; i < poplen; i++)\n\t\t{\n\t\t\tif(oldpop[i].evaluated==FALSE)\n\t\t\t{ tm=ComputeRF(oldpop[i]);\n\t\t\t\toldpop[i].fitness = tm;\n\t\t\t\toldpop[i].oldfitness = tm;\n\t\t\t\toldpop[i].evaluated=TRUE;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\toldpop[i].fitness=oldpop[i].oldfitness;\n\t\t\t}\n\t\t\t\n\t\t\t//oldpop[i].DisplayIndividual();\n\t\t\t//System.out.println(oldpop[i].fitness);\n\t\t}\n\t\t//tim individual co fitness be nhat\n\t\tmin = oldpop[0].fitness;\n\t\tpos = 0;\n\t\tsum = oldpop[0].fitness;\n\t\tsumSize = oldpop[0].size;\n\t\t\n\t\tfor(i = 1; i < poplen; i++) {\n\t\t\tif(oldpop[i].fitness < min) {\n\t\t\t\tmin = oldpop[i].fitness;\n\t\t\t\tpos = i;\n\t\t\t}\n\t\t\tsum += oldpop[i].fitness;\n\t\t\tsumSize += oldpop[i].size;\n//\t\t\tpopSize[gen][i]= oldpop[i].size;\n\t\t}\n\t\t// copy the best and average\n\t\tbestcurrent[gen] = new individual();\n\t\tbestcurrent[gen].CopyIndividual(oldpop[pos], TRUE);\n\t\taverage[gen] = sum /poplen;\n\t\taverageSize[gen] = sumSize /poplen;\n\t\t// Third Compute Adjusted fitness\n\t\tAdjustFitness();\n\t\t// Finally Compute nomarlized fitness\n \t\tNormalizeFitness();\n\t}", "public void saveStats() {\n this.saveStats(null);\n }", "public void setFitness(int f){\n this.fitness = f;\n }", "public void modifyStats(Stats s) {\n\r\n\t}", "public void upgradeStats()\n {\n reload-=1;\n damage*=2;\n range+=50;\n }", "double getFitnessScore(){\n return fitnessScore;\n }", "public void incrementFitnessBy2()\n {\n this.fitness=this.fitness+2;\n }", "public void recalculateStats(){\n weight = .25f * (shaftMat.getParameter(\"Density\") * length + headMat.getParameter(\"Density\") * .4f);\n sharpness = headMat.getParameter(\"Malleability\") + 1f / headMat.getParameter(\"Durability\"); //Malleable objects can be sharp, as can fragile objects\n// fragility = 1f / (shaftMat.getParameter(\"Durability\") * .5f + headMat.getParameter(\"Durability\") * .5f);\n durability = (shaftMat.getParameter(\"Durability\") * .5f + headMat.getParameter(\"Durability\") * .5f);\n trueness = shaftMat.getParameter(\"Regularity\") + headMat.getParameter(\"Regularity\");\n// length = 2f;\n }", "public void calcularFitness() {\n double fit = 0;\r\n for (int x=0; x < this.genotipo.length;x++){\r\n if (x!=this.genotipo.length-1){\r\n fit+=distancias[this.genotipo[x]][this.genotipo[x+1]];\r\n }else{\r\n fit+=distancias[this.genotipo[x]][this.genotipo[0]];\r\n }\r\n }\r\n this.fitness = fit;\r\n }", "public void updateStats(Instance inst) {\n\t\t\tstatsTarget.update(inst.classValue()) ;\t\t\t\n//\t\t\tSystem.out.println(\"V:\"+inst.classValue()+\":\"+statsTarget.getCurrentVariance()+ \":\"+statsTarget.getStandardDeviation());\n\t\t\t\n\t\t\tint index = 0 ;\n\t\t\tfor (int j = 0; j < inst.numAttributes(); j++) {\n\t\t\t\tif (inst.classIndex()==j)\n\t\t\t\t\tcontinue ;\n\t\t\t\tstatsAttributes.get(index).update(inst.value(j));\n\t\t\t\tindex++ ;\n\t\t\t}\t\t\t\t\n\t\t}", "public double getFitness(){\n return averageFitness;\n }", "public int getFitness()\n {\n return this.fitness;\n }", "protected void setFitness(float fit)\t{\tfitness = fit;\t\t}", "public void evaluatePopulation() {\n // reset the total fitness score\n totalFitness = 0;\n\n for (int i = 0; i < populationSize; i++) {\n population.get(i).setRawFitness(\n FeederCollection.getFeeders().get(i).GetFitness());\n totalFitness += population.get(i).getRawFitness();\n }\n\n // set the normalized fitness for each population member\n for (Genotype g : population) {\n // normalized fitness = raw fitness / total fitness\n g.setNormalizedFitness((g.getRawFitness() / totalFitness));\n }\n\n // sort the popoulation\n Collections.sort(population, Genotype.FitnessOrder);\n\n highFitnesses.add(population.get(0).getRawFitness());\n avgFitnesses.add(totalFitness / population.size());\n\n\n }", "private void updateBonusStats(double percentage) {\n baseStats.setHealth((int) (baseStats.getHealth() * percentage));\n baseStats.setStrength((int) (baseStats.getStrength() * percentage));\n baseStats.setDexterity((int) (baseStats.getDexterity() * percentage));\n baseStats.setIntelligence((int) (baseStats.getIntelligence() * percentage));\n }", "public double fitness()\n/* */ {\n/* 40 */ return 1.0D / (1.0D + this.distance);\n/* */ }", "private void updateGeneStatusDistributionData() {\n\t\tdouble[][][] value = gaTracker.getGeneValueDistribution();\n\t\tdouble[][][] status = gaTracker.getGeneStatusDistribution();\n\n\t\t/*\n\t\t * Collecting all data into one array, then replacing everything at once\n\t\t * to hopefully fix race condition in JFreeChart\n\t\t */\n\t\tdouble[][][][][] new_datasets = new double[geneCount][][][][];\n\n\t\tif (refreshWaiter.isReadyToRefresh()) {\n\t\t\tfor (int j = 0; j < geneCount; j++) {\n\t\t\t\tnew_datasets[j] = new double[numAgentTypes][2][][];\n\n\t\t\t\tfor (int i = 0; i < numAgentTypes; i++) {\n\t\t\t\t\tdouble[][] newx = {gene_status_distribution_range, status[i][j]};\n\t\t\t\t\tnew_datasets[j][i][0] = newx;\n\t\t\t\t\tdouble[][] newy = {gene_value_distribution_range, value[i][j]};\n\t\t\t\t\tnew_datasets[j][i][1] = newy;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfor (int j = 0; j < geneCount; j++) {\n\t\t\t\tfor (int i = 0; i < numAgentTypes; i++) {\n\t\t\t\t\tString key = \"Agent \" + (i+1);\n\t\t\t\t\tgene_status_distribution_data[j].addSeries(key, new_datasets[j][i][0]);\n\t\t\t\t\tgene_value_distribution_data[j].addSeries(key, new_datasets[j][i][1]);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// If wait is true, there might be a deadlock pressing the stop button\n\t\t\trefreshWaiter.refresh(false);\n\t\t}\n\n\t}", "void setStats(double newWidth, double newHeight) {\n width = newWidth;\n height = newHeight;\n }", "private static void getFitness() {\n\t\tint popSize = population.size();\n\t\tChromosome thisChromo = null;\n\t\tdouble bestScore = 0;\n\t\tdouble worstScore = 0;\n\n\t\t// The worst score would be the one with the highest energy, best would be\n\t\t// lowest.\n\t\tworstScore = population.get(maximum()).conflicts();\n\n\t\t// Convert to a weighted percentage.\n\t\tbestScore = worstScore - population.get(minimum()).conflicts();\n\n\t\tfor (int i = 0; i < popSize; i++) {\n\t\t\tthisChromo = population.get(i);\n\t\t\tthisChromo.fitness((worstScore - thisChromo.conflicts()) * 100.0 / bestScore);\n\t\t}\n\n\t\treturn;\n\t}", "private void updateRecord(){\r\n\t\tgameStats.setVictory(victory);\r\n\t\tgameStats.setDays(days);\r\n\t\tgameStats.setBuildings(buildingCount);\r\n\t\tgameStats.setResources(wood + stone + food);\r\n\t}", "@Override\n public void update() {\n updateHealth();\n updateActiveWeapon();\n updateAmmunition();\n updateWaveCounter();\n updateReloading();\n }", "public abstract double getFitness(Genotype genotype);", "public void computeItemStats()\n\t{\n\t\tfor(Entry<String,Item> item: urgotItems.getItems().entrySet())\n\t\t{\n\t\t\t// Add every item stat value.\n\t\t\titem.getValue().addItemStats(urgot);\n\t\t}\n\t\t\n\t\tfor(Entry<String,Item> item: urgotItems.getItems().entrySet())\n\t\t{\n\t\t\t// Add passives after all stats have been added.\n\t\t\titem.getValue().applyPassive(urgot);\n\t\t}\n\t}", "@Override\r\n public void update() {\r\n this.highestRevenueRestaurant = findHighestRevenueRestaurant();\r\n this.total = calculateTotal();\r\n }", "private final void updateStatistics(){\r\n\t\tstatisticsText_.setLength(0); \t//reset\r\n\t\t\r\n\t\tRegion[][] regions = Map.getInstance().getRegions();\r\n\t\tVehicle[] vehicles;\r\n\t\tVehicle vehicle;\r\n\t\tint i, j, k;\r\n\t\tint activeVehicles = 0;\r\n\t\tint travelledVehicles = 0;\r\n\t\tint wifiVehicles = 0;\r\n\t\tlong messagesCreated = 0;\r\n\t\tlong IDsChanged = 0;\r\n\t\tdouble messageForwardFailed = 0;\r\n\t\tdouble travelDistance = 0;\r\n\t\tdouble travelTime = 0;\r\n\t\tdouble speed = 0;\r\n\t\tdouble knownVehicles = 0;\r\n\t\tfor(i = 0; i < regions.length; ++i){\r\n\t\t\tfor(j = 0; j < regions[i].length; ++j){\r\n\t\t\t\tvehicles = regions[i][j].getVehicleArray();\r\n\t\t\t\tfor(k = 0; k < vehicles.length; ++k){\r\n\t\t\t\t\tvehicle = vehicles[k];\r\n\t\t\t\t\tif(vehicle.getTotalTravelTime() > 0){\r\n\t\t\t\t\t\t++travelledVehicles;\r\n\t\t\t\t\t\ttravelDistance += vehicle.getTotalTravelDistance();\r\n\t\t\t\t\t\ttravelTime += vehicle.getTotalTravelTime();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(vehicle.isActive()){\r\n\t\t\t\t\t\t++activeVehicles;\r\n\t\t\t\t\t\tspeed += vehicle.getCurSpeed();\r\n\t\t\t\t\t\tif(vehicle.isWiFiEnabled()){\r\n\t\t\t\t\t\t\t++wifiVehicles;\r\n\t\t\t\t\t\t\tmessageForwardFailed += vehicle.getKnownMessages().getFailedForwardCount();\r\n\t\t\t\t\t\t\tknownVehicles += vehicle.getKnownVehiclesList().getSize();\r\n\t\t\t\t\t\t\tIDsChanged += vehicle.getIDsChanged();\r\n\t\t\t\t\t\t\tmessagesCreated += vehicle.getMessagesCreated();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tstatisticsText_.append(Messages.getString(\"ReportingControlPanel.currentTime\")); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(INTEGER_FORMAT.format(Renderer.getInstance().getTimePassed()));\r\n\t\tstatisticsText_.append(\"\\n\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(Messages.getString(\"ReportingControlPanel.activeVehicles\")); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(INTEGER_FORMAT.format(activeVehicles));\r\n\t\tstatisticsText_.append(\"\\n\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(Messages.getString(\"ReportingControlPanel.averageSpeed\")); //$NON-NLS-1$\r\n\t\tif(activeVehicles > 0) statisticsText_.append(INTEGER_FORMAT_FRACTION.format(speed/activeVehicles/100000*3600));\r\n\t\telse statisticsText_.append(\"0\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(\" km/h\\n\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(Messages.getString(\"ReportingControlPanel.averageTravelDistance\")); //$NON-NLS-1$\r\n\t\tif(travelledVehicles > 0) statisticsText_.append(INTEGER_FORMAT_FRACTION.format(travelDistance/travelledVehicles/100));\r\n\t\telse statisticsText_.append(\"0\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(\" m\\n\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(Messages.getString(\"ReportingControlPanel.averageTravelTime\")); //$NON-NLS-1$\r\n\t\tif(travelledVehicles > 0) statisticsText_.append(INTEGER_FORMAT_FRACTION.format(travelTime/travelledVehicles/1000));\r\n\t\telse statisticsText_.append(\"0\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(\" s\\n\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(Messages.getString(\"ReportingControlPanel.wifiVehicles\")); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(INTEGER_FORMAT.format(wifiVehicles));\r\n\t\tstatisticsText_.append(\"\\n\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(Messages.getString(\"ReportingControlPanel.averageKnownVehicles\")); //$NON-NLS-1$\r\n\t\tif(wifiVehicles > 0) statisticsText_.append(INTEGER_FORMAT_FRACTION.format(knownVehicles/wifiVehicles));\r\n\t\telse statisticsText_.append(\"0\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(\"\\n\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(Messages.getString(\"ReportingControlPanel.uniqueMessages\")); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(INTEGER_FORMAT.format(messagesCreated));\r\n\t\tstatisticsText_.append(\"\\n\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(Messages.getString(\"ReportingControlPanel.failedMessages\")); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(INTEGER_FORMAT.format(messageForwardFailed));\r\n\t\tstatisticsText_.append(\"\\n\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(Messages.getString(\"ReportingControlPanel.totalIDchanges\")); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(INTEGER_FORMAT.format(IDsChanged));\r\n\t\tstatisticsText_.append(\"\\n\"); //$NON-NLS-1$\r\n\t\t\r\n\t\tstatisticsTextArea_.setText(statisticsText_.toString());\r\n\t}", "public void setFitness(int fit)\n {\n this.fitness=fit;\n }", "private static void calculateFitnessOfPopulation(ArrayList<Chromosome> population) {\n for (Chromosome chromosome : population) {\n // if the fitness of the chromosome has not yet been calculated (i.e. is still -1)\n fitnessFunction(chromosome);\n }\n }", "public void setFitness(double fit) {\n fitness = fit;\n }", "public void update() {\r\n \t\tif(regenerateHealth && !isDead) {\r\n \t\t\tthis.health += healthRegen*1000*(\r\n \t\t\t\t\tSystem.currentTimeMillis()-lastRegTime);\r\n \t\t}\r\n \t}", "public void updateStats() {\n ObservableList<Node> children = gpLocations.getChildren();\n for (int i = 0; i < gpLocations.getChildren().size() / 2; i++)\n for (Node n : children)\n if (gpLocations.getRowIndex(n) == i + 1 && gpLocations.getColumnIndex(n) == 1) {\n Text t = (Text) n;\n t.setText(String.format(\n \"\\t\\t%.1f\", activeCar.getCurrentLocation().getDistanceToLocation(locations.get(i))));\n }\n\n children = gpCars.getChildren();\n for (int j = 0; j < gpCars.getChildren().size() / 2; j++)\n for (Node m : children)\n if (gpCars.getRowIndex(m) == j + 1 && gpCars.getColumnIndex(m) == 1) {\n Text tmpM = (Text) m;\n tmpM.setText(String.format(\"\\t\\t%.1f\", cars.get(j).getTime()));\n }\n\n children = gridPane.getChildren();\n for (Node o : children)\n if (gridPane.getRowIndex(o) == 5 && gpCars.getColumnIndex(o) == 0) {\n Text tmpO = (Text) o;\n tmpO.setText(\"Active Car\\t\" + activeCar.getIdentifier() + \" \" + activeCar.getEnd().getName());\n }\n }", "public abstract List<Double> updatePopulations();", "@Override\r\n\tpublic void setStats(Stats s) {\n\t\t\r\n\t}", "protected void updateSummaries() { }", "protected void updateSummaries() { }", "private void update()\r\n\t{\r\n\t\tfor (Agent agent : agents)\r\n\t\t{\r\n\t\t\tint i = agent.getIndex();\r\n\t\t\tp.setEntry(i, agent.getP());\r\n\t\t\tq.setEntry(i, agent.getQ());\r\n\t\t\tvabs.setEntry(i, agent.getVabs());\r\n\t\t\tvarg.setEntry(i, agent.getVarg());\r\n\t\t\tlambdaP.setEntry(i, agent.getLambdaP());\r\n\t\t\tlambdaQ.setEntry(i, agent.getLambdaQ());\r\n\t\t}\r\n\t}", "void calcFittest(){\n System.out.println(\"Wall hugs\");\n System.out.println(this.wallHugs);\n\n System.out.println(\"Freedom points\");\n System.out.println(this.freedomPoints);\n\n System.out.println(\"Visited points\");\n System.out.println(this.vistedPoints);\n\n this.fitnessScore = freedomPoints - wallHugs - vistedPoints;\n System.out.println(\"Individual fit score: \" + fitnessScore);\n }", "public void updateStats(int n1, int n2, int n3, int n4){\n //update values\n this.n1 = n1;\n this.n2 = n2;\n this.n3 = n3;\n this.n4 = n4;\n //repaint graph\n repaint();\n }", "void forceStats(long operations, long hits);", "public void updateWithTestStats() {\n\t\tBasicDBObject updateQuery = new BasicDBObject(); \n\t\tBasicDBObject fieldSets = new BasicDBObject(); \n\t\tfieldSets.put(\"numFailedTests\", numFailedTests); \n\t\tfieldSets.put(\"numPassedTests\", numPassedTests); \n\t\tfieldSets.put(\"testSuiteName\", testSuiteName); \n\t\tfieldSets.put(\"testEndTime\", testEndTime); \n\t\tupdateQuery.put( \"$set\", fieldSets); \n\t\tappendData(updateQuery);\n\t}", "@Override\n\tpublic double valuta_figli() {\n\t\treturn simple_fitness();\n\t}", "private void stats ( ) {\n\n nodes = 0;\n depth = 0;\n\n parse(((GPIndividual)program).trees[0].child);\n\n }", "void ComputeFitnessBefore(){\n\t\t\t\tint i, pos;\n\t\t\t\t// individual t;\n\t\t\t\tdouble min, sum = 0, tm;\n\t\t\t\t// First Compute Raw fitness\n\t\t\t\tfor(i = 0; i < poplen; i++)\n\t\t\t\t{\n\t\t\t\t\tif(oldpop[i].evaluated==FALSE)\n\t\t\t\t\t{ tm=ComputeRF(oldpop[i]);\n\t\t\t\t\t\toldpop[i].fitness = tm;\n\t\t\t\t\t\toldpop[i].oldfitness = tm;\n\t\t\t\t\t\toldpop[i].evaluated=TRUE;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\toldpop[i].fitness=oldpop[i].oldfitness;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//oldpop[i].DisplayIndividual();\n\t\t\t\t\t//System.out.println(oldpop[i].fitness);\n\t\t\t\t}\n\t\t\t\t//tim individual co fitness be nhat\n\t\t\t\tmin = oldpop[0].fitness;\t\t\t\n\t\t\t\tsum = oldpop[0].fitness;\t\t\t\n\t\t\t\t\n\t\t\t\tfor(i = 1; i < poplen; i++) {\n\t\t\t\t\tif(oldpop[i].fitness < min) {\n\t\t\t\t\t\tmin = oldpop[i].fitness;\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\tsum += oldpop[i].fitness;\t\t\t\t\n\t\t\t\t}\n\t\t\t\t// copy the best and average\n//\t\t\t\tbestBeforeFitness[gen]=min;\n//\t\t\t\tavgBeforeFitness[gen]=sum/poplen;\n//\t\t\t\tbestcurrent[gen] = new individual();\n//\t\t\t\tbestcurrent[gen].CopyIndividual(oldpop[pos], TRUE);\n//\t\t\t\taverage[gen] = sum /poplen;\t\t\t\n\t\t\t\t\n\t\t\t}", "public float AssignFitness() {\n\t\t\n\t\tfitness = 0;\n\t\tif(sample_map.size() == 0) {\n\t\t\treturn fitness;\n\t\t}\n\t\t\n\t\tLinkSample ptr = k_closest;\n\t\twhile(ptr != null) {\n\t\t\tfitness += ptr.s.weight;\n\t\t\tptr = ptr.next_ptr;\n\t\t}\n\t\t\n\t\tfitness /= sample_map.size();\n\t\treturn fitness;\n\t}", "private void _updateStatistics(String priority) {\n _numDropped++;\n if (\"0\".equals(priority)) {\n _numGuides++;\n } else if (\"1\".equals(priority)) {\n _numP1++;\n } else if (\"2\".equals(priority)) {\n _numP2++;\n } else if (\"3\".equals(priority)) {\n _numP3++;\n }\n }", "public void updatePopulation() {\r\n this.usedPopulation = Integer.parseInt(data.driver.findElement(By.id(\"pop_current_label\")).getText());\r\n this.maxPopulation = Integer.parseInt(data.driver.findElement(By.id(\"pop_max_label\")).getText());\r\n }", "void statistics();", "public static void updateMutationRate(KNode oldBest, KNode gBest)\r\n {\r\n if(oldBest.fitness() == gBest.fitness())\r\n {\r\n if(Constants.MUTATION_PROBABILITY < Constants.MAX_MUTATION_PROBABILITY)\r\n {\r\n Constants.MUTATION_PROBABILITY+=Constants.MUTATION_INCREMENT;\r\n }\r\n }\r\n else\r\n {\r\n Constants.MUTATION_PROBABILITY = Constants.MUTATION_INCREMENT;\r\n }\r\n }", "@Override\n public void updateAppearance(ArrayList<Individual> population, GeneticAlgorithm GA) {\n HashSet<Individual> a = new HashSet<>();\n a.addAll(population);\n ArrayList<Individual> toProcess = new ArrayList<>();\n toProcess.addAll(a);\n\n // All individuals in population are present in the previous population. The remaining, not.\n for (Individual ind : toProcess) {\n ArrayDeque<Boolean> values = appearance.get(ind);\n if (values != null) {\n // the indivual was previously added. Update the structure\n values.addFirst(Boolean.TRUE);\n if (values.size() > maxTime) {\n values.removeLast();\n }\n } else {\n // new Individual. Add it to the hashmap\n ArrayDeque<Boolean> toAdd = new ArrayDeque<>(maxTime);\n toAdd.add(Boolean.TRUE);\n appearance.put(ind, toAdd);\n }\n }\n\n // Now, the remaining individuals in the hashmap does not appear in this timestamp. Update it.\n Set<Individual> notPresent = appearance.keySet();\n //notPresent.removeAll(population);\n\n for (Individual ind : notPresent) {\n if (!population.contains(ind)) {\n ArrayDeque<Boolean> values = appearance.get(ind);\n values.addFirst(Boolean.FALSE);\n if (values.size() > maxTime) {\n values.removeLast();\n }\n }\n }\n }", "public void updateGraph(){\n\t\tgraph.update(updatePopulations(), iteration);\n\t\titeration++;\n\t}", "public void update() {\n\t\t\tif (!max.getText().isEmpty()) {\n\t\t\t\tInteger maxVal = Integer.parseInt(max.getText());\n\t\t\t\tif (maxVal > 2) {\n\t\t\t\t\tboolean toUpdate = false;\n\t\t\t\t\tPlgProbabilityDistribution distr = null;\n\t\t\t\t\tif (((String)cb.getSelectedItem()).equals(PlgProbabilityDistribution.distributionToName(DISTRIBUTION.UNIFORM))) {\n\t\t\t\t\t\tdistr = PlgProbabilityDistribution.uniformDistributionFactory();\n\t\t\t\t\t\ttoUpdate = true;\n\t\t\t\t\t} else if (((String)cb.getSelectedItem()).equals(PlgProbabilityDistribution.distributionToName(DISTRIBUTION.BETA))) {\n\t\t\t\t\t\tif (!alpha.getText().isEmpty() && !beta.getText().isEmpty()) {\n\t\t\t\t\t\t\tDouble a = Double.parseDouble(alpha.getText());\n\t\t\t\t\t\t\tDouble b = Double.parseDouble(beta.getText());\n\t\t\t\t\t\t\tdistr = PlgProbabilityDistribution.betaDistributionFactory(a, b);\n\t\t\t\t\t\t\ttoUpdate = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (((String)cb.getSelectedItem()).equals(PlgProbabilityDistribution.distributionToName(DISTRIBUTION.NORMAL))) {\n\t\t\t\t\t\tdistr = PlgProbabilityDistribution.normalDistributionFactory();\n\t\t\t\t\t\ttoUpdate = true;\n\t\t\t\t\t}\n\t\t\t\t\tif (toUpdate) {\n\t\t\t\t\t\tp.updateDistribution(dv, maxVal, distr);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}", "private void calculateStats(World world, Vec3i spawnLocation) {\n double distanceFromSpawn = getWorldSpawn(world).getManhattanDistance(spawnLocation);\n int levelBase = (int) (distanceFromSpawn / (double) OpenPixelmonConfig.distancePerLevel) + 1;\n int lvlVariation = PixelmonUtils.randBetween(-5, 5);\n set(LEVEL, MathHelper.clamp(levelBase + lvlVariation, 1, OpenPixelmonConfig.maxLevelByDistance));\n\n// setHealth((get(IV_STORAGE).hp + 2.0F * (float) getPokedexEntry().hp + (float) get(EV_STORAGE).hp / 4.0F + 100.0F) * (float) getLevel() / 100.0F + 10.0F); old pixelmon method. not entirely sure why it's differnet\n set(MAX_HP, getPokedexEntry().hp);\n set(HP, (float) (Math.floor(0.01 * (2 * getPokedexEntry().hp + get(IV_STORAGE).hp + Math.floor(0.25 * get(EV_STORAGE).hp)) * getLevel()) + getLevel() + 10));\n }", "protected float calcFitness(Individual ind) {\n\t\t\tdouble w = (double) ind.getWait();\n\t\t\tdouble g = (double) ind.getMove();\n\t\t\treturn (float) (g/(w+g));\n\t\t}", "private void updateStatsCAE(){\n\t\tupdateQueueSize();\n\t}", "private void refreshGoalData () {\n DateTime now = DateTime.now();\n if((now.getWeekOfWeekyear() > userGoals.getWeekOfYear()) || now.getWeekOfWeekyear() == 0 ) {\n userGoals.setWeekOfYear(now.getWeekOfWeekyear());\n userGoals.setRunsPerWeekActual(0);\n userGoals.setMilesPerWeekActual(0.0);\n }\n\n //Calculates weekly mileage and runs per week\n double mileage = 0.0;\n int numOfRuns = 0;\n if(runMap != null && !(runMap.isEmpty())) {\n //Get current year and current week of the year\n int year = now.getYear();\n int currWeek = now.getWeekOfWeekyear();\n Calendar c = Calendar.getInstance();\n c.clear();\n //Set calendar to beginning of week\n c.set(Calendar.YEAR, year);\n c.set(Calendar.WEEK_OF_YEAR, currWeek);\n Date beginningOfWeek = c.getTime();\n\n SimpleDateFormat formatter = new SimpleDateFormat(\"MM/dd/yyyy\");\n\n for (String key : runMap.keySet()) {\n Run run = runMap.get(key);\n //Date stored as MM/dd/yyyy\n try {\n Date dateOfRun = formatter.parse(run.getDate());\n if (dateOfRun.compareTo(beginningOfWeek) >= 0) {\n mileage += run.getMileage();\n numOfRuns++;\n }\n }catch (ParseException p) {\n //idfk\n }\n\n }\n\n if(userShoes != null && !userShoes.isEmpty()) {\n //While we're here, we're going to update the mileage for each shoe\n for (String shoeKey : userShoes.keySet()) {\n Shoe currShoe = userShoes.get(shoeKey);\n currShoe.setMileage(0.0);\n for (String runKey : runMap.keySet()) {\n if (currShoe.getName().equals(runMap.get(runKey).getShoe())) {\n currShoe.addMileage(runMap.get(runKey).getMileage());\n }\n }\n }\n }\n\n }\n userGoals.setRunsPerWeekActual(numOfRuns);\n userGoals.setMilesPerWeekActual(mileage);\n\n\n goalRef.setValue(userGoals);\n shoeRef.setValue(userShoes);\n\n check = 1;\n }", "void updateInformation();", "protected void evolve()\n\t\t{\tif(this_gen < NUMBER_GENERATIONS) {\n\t\t\t\t// Create a new generation.\n\t\t\t\tfloat avg_fit=Float.MIN_VALUE, max_fit=Float.MIN_VALUE, sum_fit=0;\n\t\t\t\tfloat tot_wait=0, avg_wait=0, tot_move=0, avg_move=0;\n\n\t\t\t\tfor(int i=0;i<NUMBER_INDIVIDUALS;i++) {\n\t\t\t\t\tfloat fit = calcFitness(inds[i]);\n\t\t\t\t\tinds[i].setFitness(fit);\n\t\t\t\t\tsum_fit\t += fit;\n\t\t\t\t\tmax_fit = fit>max_fit ? fit : max_fit;\n\t\t\t\t\ttot_wait += inds[i].getWait();\n\t\t\t\t\ttot_move += inds[i].getMove();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tavg_wait = tot_wait/NUMBER_INDIVIDUALS;\n\t\t\t\tavg_move = tot_move/NUMBER_INDIVIDUALS;\n\t\t\t\tavg_fit = sum_fit/NUMBER_INDIVIDUALS;\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"Stats of prev. gen: (a-wait,a-move)=(\"+avg_wait+\",\"+avg_move+\")\"+\" (a-fit,mx-fit)=(\"+avg_fit+\",\"+max_fit+\")\");\n\t\t\t\tSystem.out.println(\"Evolving...\");\n\t\t\t\t\n\t\t\t\t// Sorts the current Individual-array on fitness, descending\n\t\t\t\tinds = sortIndsArr(inds);\n\t\t\t\t\n\t\t\t\tint num_mating = (int) Math.floor(NUMBER_INDIVIDUALS*(1-ELITISM_FACTOR));\n\t\t\t\tint num_elitism = (int) Math.ceil(NUMBER_INDIVIDUALS*ELITISM_FACTOR);\n\t\t\t\tif(num_mating%2!=0) {\n\t\t\t\t\tnum_mating--;\n\t\t\t\t\tnum_elitism++;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tIndividual[] newInds = new Individual[NUMBER_INDIVIDUALS];\n\t\t\t\t\n\t\t\t\t// Tournament selection\n\t\t\t\tfor(int i=0;i<num_mating;i+=2) {\n\t\t\t\t\tIndividual mamma=null, pappa=null;\n\t\t\t\t\tfloat chn_mum = random.nextFloat();\n\t\t\t\t\tfloat chn_pap = random.nextFloat();\n\t\t\t\t\tfloat fit_mum, sum_fit2=0, sum_fit3=0;\n\t\t\t\t\tint index_mum = -1;\n\t\t\t\t\t\n\t\t\t\t\tfor(int j=0;j<NUMBER_INDIVIDUALS;j++) {\n\t\t\t\t\t\tsum_fit2 += (inds[j].getFitness()/sum_fit);\n\t\t\t\t\t\tif(chn_mum <= sum_fit2) {\n\t\t\t\t\t\t\tmamma = inds[j];\n\t\t\t\t\t\t\tindex_mum = j;\n\t\t\t\t\t\t\tfit_mum = mamma.getFitness();\n\t\t\t\t\t\t\tsum_fit2 = sum_fit-fit_mum;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tfor(int j=0;j<NUMBER_INDIVIDUALS;j++) {\n\t\t\t\t\t\tif(j!=index_mum) {\n\t\t\t\t\t\t\tsum_fit3 += (inds[j].getFitness()/sum_fit2);\n\t\t\t\t\t\t\tif(chn_pap <= sum_fit3) {\n\t\t\t\t\t\t\t\tpappa = inds[j];\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t//System.out.println(\"Mating...: \"+mamma.getFitness()+\",\"+pappa.getFitness());\n\t\t\t\t\tIndividual[] kids = mate(mamma, pappa);\n\t\t\t\t\tnewInds[i]\t= kids[0];\n\t\t\t\t\tnewInds[i+1]= kids[1];\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Elitism\n\t\t\t\tfor(int i=0;i<num_elitism;i++) {\n\t\t\t\t\tnewInds[i+num_mating] = inds[i];\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tinds = newInds;\t\t\t\t\t\t\t\t\n\t\t\t\tthis_gen++;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"Done with evolving\");\n\t\t\t\t// set the best individual as the ruling champ?\n\t\t\t\t// do nothing\n\t\t\t\treturn;\n\t\t\t}\n\t\t}", "private void calculateFitness() {\n\t\tint day1=this.getNumberOfHours()*this.getNumberOfClasses();\n\t\tint day2=2*day1;\n\t\tint day3=3*day1;\n\t\tint day4=4*day1;\n\t\tint day5=5*day1;\n\t\tTeacher_lesson temp=null;\n\t\t//day 1//\n\t\tHashSet<Integer> closedSet=new HashSet<Integer>();\n\t\t\n\t\t\n\t\t\n\t\tfor(int i=0;i<day1;i++){\n\t\t\ttemp=getdata(this.genes[i]);\n\t\t\tif(temp !=null){\n\t\t\t\tif(!(closedSet.contains(temp.get_tid()))){\n\t\t\t\n\t\t\t\t \t\n\t\t\t\tfor(int j=i+1;j<day1;j++){\n\t\t\t\n\t\t\tif(temp.get_tid()==this.genes[j]){\n\t\t\t\ttemp.set_d_hour(temp.get_td_hour()-1);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t}\n\t\t\tclosedSet.add(temp.get_tid());\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\t\t//-1 giati den aferesame thn prwti wra otan to vriskei ston pinaka//\n\t\t\t\ttemp.set_d_hour(temp.get_td_hour()-1);\n\t\t\t\tif(temp.get_td_hour()>0){++this.fitness;}\n\t\t}\n\t\t\t\n\t\t}\n\t\n\t\t\n\t\t\n\t\t\n\t\t//day2//\n\t\tclosedSet.clear();;\n\t\t\n\t\tfor(int i=day1;i<day2;i++){\n\t\t\ttemp=getdata(this.genes[i]);\n\t\t\tif(temp !=null){\n\t\t\t\tif(!(closedSet.contains(temp.get_tid()))){\n\t\t\t\n\t\t\t\t \t\n\t\t\t\tfor(int j=i+1;j<day2;j++){\n\t\t\t\n\t\t\tif(temp.get_tid()==this.genes[j]){\n\t\t\t\ttemp.set_d_hour(temp.get_td_hour()-1);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t}\n\t\t\tclosedSet.add(temp.get_tid());\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\t\t//-1 giati den aferesame thn prwti wra otan to vriskei ston pinaka//\n\t\t\t\ttemp.set_d_hour(temp.get_td_hour()-1);\n\t\t\t\tif(temp.get_td_hour()>0){++this.fitness;}\n\t\t}\n\t\t\t\n\t\t}\n\t\t//day3//\n\t\tclosedSet.clear();;\n\t\tfor(int i=day2;i<day3;i++){\n\t\t\ttemp=getdata(this.genes[i]);\n\t\t\tif(temp !=null){\n\t\t\t\tif(!(closedSet.contains(temp.get_tid()))){\n\t\t\t\n\t\t\t\t \t\n\t\t\t\tfor(int j=i+1;j<day3;j++){\n\t\t\t\n\t\t\tif(temp.get_tid()==this.genes[j]){\n\t\t\t\ttemp.set_d_hour(temp.get_td_hour()-1);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t}\n\t\t\tclosedSet.add(temp.get_tid());\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\t\t//-1 giati den aferesame thn prwti wra otan to vriskei ston pinaka//\n\t\t\t\ttemp.set_d_hour(temp.get_td_hour()-1);\n\t\t\t\tif(temp.get_td_hour()>0){++this.fitness;}\n\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\t//day4//\n\t\tclosedSet.clear();;\n\t\tfor(int i=day3;i<day4;i++){\n\t\t\ttemp=getdata(this.genes[i]);\n\t\t\tif(temp !=null){\n\t\t\t\tif(!(closedSet.contains(temp.get_tid()))){\n\t\t\t\n\t\t\t\t \t\n\t\t\t\tfor(int j=i+1;j<day4;j++){\n\t\t\t\n\t\t\tif(temp.get_tid()==this.genes[j]){\n\t\t\t\ttemp.set_d_hour(temp.get_td_hour()-1);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t}\n\t\t\tclosedSet.add(temp.get_tid());\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\t\t//-1 giati den aferesame thn prwti wra otan to vriskei ston pinaka//\n\t\t\t\t\n\t\t\t\ttemp.set_d_hour(temp.get_td_hour()-1);\n\t\t\t\tif(temp.get_td_hour()>0){++this.fitness;}\n\t\t}\n\t\t\t\n\t\t}\n\t\t//day5//\n\t\tclosedSet.clear();;\n\t\tfor(int i=day4;i<day5;i++){\n\t\t\ttemp=getdata(this.genes[i]);\n\t\t\tif(temp !=null){\n\t\t\t\tif(!(closedSet.contains(temp.get_tid()))){\n\t\t\t\n\t\t\t\t \t\n\t\t\t\tfor(int j=i+1;j<day5;j++){\n\t\t\t\n\t\t\tif(temp.get_tid()==this.genes[j]){\n\t\t\t\ttemp.set_d_hour(temp.get_td_hour()-1);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t}\n\t\t\tclosedSet.add(temp.get_tid());\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\t\t//-1 giati den aferesame thn prwti wra otan to vriskei ston pinaka//\n\t\t\t\ttemp.set_d_hour(temp.get_td_hour()-1);\n\t\t\t\tif(temp.get_td_hour()>0){++this.fitness;}\n\t\t\t\t\n\t\t}\n\t\t\t/*if(temp.get_td_hour()<0){this.fitness=this.fitness-100;}//adunato na ginei giati o ka8igitis exei parapanw wres apo oti mporei na kanei//\n\t\t\t\telse if (temp.get_td_hour()==0){this.fitness=this.fitness-2;}//meiwnoume giati o ka8igitis 8a epivarin8ei oles tou tis wres thn idia mera//\n\t\t\t\telse{++this.fitness;}//kalh prosegisi*/\n\t\t}\n\t\t//*********************END OF DAILY EVALUATION*****************************//\n\t\t\n\t\t//**********************START OF WEEKLY EVALUATION************************//\n\t\t\n\t\tclosedSet.clear();\n\t\t\n\t int \t_weeklyhours = 1;\n\t \n\t\tfor(int i=0;i<day5;i++){\n\t\t\ttemp=getdata(this.genes[i]);\n\t\t\tif(temp!=null){\n\t\t\tif(!closedSet.contains(this.genes[i])){\n\t\t\t\t\n\t\t\t\n\t\t\tfor(int j=i+1;j<day5;j++){\n\t\t\t\tif(temp.get_tid()==this.genes[j]){\n\t\t\t\t\t++_weeklyhours; }\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t/*if(_weeklyhours>temp.get_tw_hour()){\n\t\t\t\tthis.fitness=this.fitness-100 ; //adunato na kanei parapanw wres ma8hma//\n\t\t\t}else\n\t\t\t\t{++this.fitness;}*/\n\t\t\tif(_weeklyhours<temp.get_tw_hour()){++this.fitness;}\n\t\t\tclosedSet.add(this.genes[i]);}\n\t\t\t}\n\t\t}\n\t\t\n\t\t//*************END OF WEEKLY EVALUATION**********//\n\t\n\t\t//**START OF LESSON EVALUATION***//\n\t\tArraylistLesson set=new ArraylistLesson();\n\t\tclass_lid templ=null;\n\t\tTeacher_lesson tempj=null;\n\t\tint lid=0;\n\t\tString _class;\n\t\tint _classhours=1;\n\t\tfor(int i=0;i<day5;i++){\n\t\t\ttemp=getdata(this.genes[i]);\n\t\t\tif(temp!=null){\n\t\t\tlid=temp.get_lid();\n\t\t\t_class=temp.get_class();\n\t\t\ttempl=new class_lid(lid,_class);\n\t\t\tif(!set.contains(templ)){\n\t\t\t\t\n\t\t\t\tfor(int j=i+1;j<day5;j++){\n\t\t\t\t\ttempj=getdata(this.genes[j]);{\n\t\t\t\t\t\tif(tempj!=null){\n\t\t\t\t\t\t\tif(temp.get_tid()==tempj.get_tid()){\n\t\t\t\t\t\t\t\tif(temp.get_lid()==tempj.get_lid()&&temp.get_class().equalsIgnoreCase(tempj.get_class())){\n\t\t\t\t\t\t\t\t\t++_classhours;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\tint hours;\n\t\t\t\thours=temp.get_lhours();\n\t\t\t\n\t\tif(_classhours==hours){\n\t\t\t++this.fitness;\n\t\t}\n\t\tset.add(templ);\n\t\t\t}\n\t\t}\n\t\t\t\t\n\t}", "public abstract double evaluateFitness();", "@Override\n\tpublic void update() {\n\t\tage++;\n\t\tpoints = Globals.points;\n\t}", "public interface GAIndividual\r\n{\r\n public void mutate(double rate);\r\n public GAIndividual directReproduce();\r\n public GAIndividual reproduce( GAIndividual i );\r\n \r\n public int getFitness();\r\n public void setFitness ( int fitness );\r\n public void setRoulette (int start, int finish);\r\n public boolean hasRouletteNumber (int winner);\r\n public String toString();\r\n}", "private Double calculateTotalFitness() {\n double totalFitnessScore = 0;\n\n IgniteCache<Long, Chromosome> cache = ignite.cache(GAGridConstants.POPULATION_CACHE);\n\n SqlFieldsQuery sql = new SqlFieldsQuery(\"select SUM(FITNESSSCORE) from Chromosome\");\n\n // Iterate over the result set.\n try (QueryCursor<List<?>> cursor = cache.query(sql)) {\n for (List<?> row : cursor)\n totalFitnessScore = (Double)row.get(0);\n }\n\n return totalFitnessScore;\n }", "public void stats() {\n\t\tSystem.out.println(\"The score is: \" + score \n\t\t\t\t+ \"\\nNumber of Astronauts rescused: \" + rescuedAstronauts \n\t\t\t\t+ \"\\nNumber of Astronauts roaming: \" + roamingAstronauts\n\t\t\t\t+ \"\\nNumber of Aliens rescued: \" + rescuedAliens\n\t\t\t\t+ \"\\nNumber of Aliens roaming: \" + roamingAliens);\n\t}", "@Override\n\tpublic void updateStatistics(Instance inst) {\n\t\t// Update the statistics for this node\n\t\t// number of instances passing through the node\n\t\tnodeStatistics.addToValue(0, 1);\n\t\t// sum of y values\n\t\tnodeStatistics.addToValue(1, inst.classValue());\n\t\t// sum of squared y values\n\t\tnodeStatistics.addToValue(2, inst.classValue()*inst.classValue());\n\t\t\t\t\n\t\tthis.perceptron.trainOnInstance(inst);\n\t\tif (this.predictionFunction != 1) { //Train target mean if prediction function is not Perceptron\n\t\t\tthis.targetMean.trainOnInstance(inst);\n\t\t}\n\t}", "private int copyFitnessValuesToFitnessTable(IGANsgaPopulation pop,\r\n FitnessTable ft) {\r\n int size = pop.size();\r\n int numObj = pop.getNumObjectives();\r\n int numRankZero = 0;\r\n for (int j = 0; j < size; j++) {\r\n IGANsgaSolution sol = (IGANsgaSolution) pop.getMember(j);\r\n if (sol.getRank() == 0) {\r\n numRankZero++;\r\n }\r\n for (int k = 0; k < numObj; k++) {\r\n ft.setFitnessValue(sol.getObjective(k), j, k);\r\n }\r\n }\r\n return numRankZero;\r\n }", "void updateGarage(Garage updatedGarage);", "public Chromosome withFitnessCalculated() {\n this.fitness = calculateFitness();\n return this;\n }", "public double[] getFitness() {\n return this.m_Fitness;\n }", "private void updateGPA(Double calculate_gpa) {\n tableHomeFrame.updateGPA(calculate_gpa);\n }", "public void addStats(Stats that) {\n totalRequests += that.totalRequests;\n remoteRequests += that.remoteRequests;\n totalCancels += that.totalCancels;\n totalFails += that.totalFails;\n remoteData += that.remoteData;\n localData += that.localData;\n totalLatency += that.totalLatency;\n }", "public GAIndividual()\n {\n m_fitness = 0;\n m_genome = new ArrayList<Integer>();\n }", "public static String addToStatistics(){\n\t\tString addedStats = Start.addToStatistics();\n\t\t//add\n\t\t//e.g.: addedStats += MyReport();\n\t\treturn addedStats;\n\t}", "public void update() throws IOException {\n\n\t\tif(this.bdgDataColIdx < 4){\n\t\t\tSystem.err.println(\"Invalid index for bedgraph column of data value. Resetting to 4. Expected >=4. Got \" + this.bdgDataColIdx);\n\t\t\tthis.bdgDataColIdx= 4;\n\t\t}\n\n\t\tif(Utils.getFileTypeFromName(this.getFilename()).equals(TrackFormat.BIGWIG)){\n\t\t\t\n\t\t\tbigWigToScores(this.bigWigReader);\n\t\t\t\n\t\t} else if(Utils.getFileTypeFromName(this.getFilename()).equals(TrackFormat.TDF)){\n\n\t\t\tthis.screenWiggleLocusInfoList= \n\t\t\t\t\tTDFUtils.tdfRangeToScreen(this.getFilename(), this.getGc().getChrom(), \n\t\t\t\t\t\t\tthis.getGc().getFrom(), this.getGc().getTo(), this.getGc().getMapping());\n\t\t\t\n\t\t\tArrayList<Double> screenScores= new ArrayList<Double>();\n\t\t\tfor(ScreenWiggleLocusInfo x : screenWiggleLocusInfoList){\n\t\t\t\tscreenScores.add((double)x.getMeanScore());\n\t\t\t}\n\t\t\tthis.setScreenScores(screenScores);\t\n\t\t\t\n\t\t} else if(Utils.getFileTypeFromName(this.getFilename()).equals(TrackFormat.BEDGRAPH)){\n\n\t\t\t// FIXME: Do not use hardcoded .samTextViewer.tmp.gz!\n\t\t\tif(Utils.hasTabixIndex(this.getFilename())){\n\t\t\t\tbedGraphToScores(this.getFilename());\n\t\t\t} else if(Utils.hasTabixIndex(this.getFilename() + \".samTextViewer.tmp.gz\")){\n\t\t\t\tbedGraphToScores(this.getFilename() + \".samTextViewer.tmp.gz\");\n\t\t\t} else {\n\t\t\t\tblockCompressAndIndex(this.getFilename(), this.getFilename() + \".samTextViewer.tmp.gz\", true);\n\t\t\t\tbedGraphToScores(this.getFilename() + \".samTextViewer.tmp.gz\");\n\t\t\t}\n\t\t} else {\n\t\t\tthrow new RuntimeException(\"Extension (i.e. file type) not recognized for \" + this.getFilename());\n\t\t}\n\t\tthis.setYLimitMin(this.getYLimitMin());\n\t\tthis.setYLimitMax(this.getYLimitMax());\n\t}", "private void updateStats(final int nbTasks, final long elapsed, final long elapsedInNode) {\n //server.getStatsManager().taskExecuted(newBundle.getTaskCount(), elapsed / 1000000L, newBundle.getNodeExecutionTime() / 1000000L);\n JPPFStatistics stats = JPPFDriver.getInstance().getStatistics();\n stats.addValue(JPPFStatisticsHelper.TASK_DISPATCH, nbTasks);\n stats.addValues(JPPFStatisticsHelper.EXECUTION, elapsed, nbTasks);\n stats.addValues(JPPFStatisticsHelper.NODE_EXECUTION, elapsedInNode, nbTasks);\n stats.addValues(JPPFStatisticsHelper.TRANSPORT_TIME, elapsed - elapsedInNode, nbTasks);\n }", "protected abstract void addMaterialStats();", "public double getFitness() {\n if (fitness == 0) {\n fitness = 1/(double)getDistance();\n }\n return fitness;\n }", "@Override\n\tpublic void updateModel() {\n\n\t\tfinal List<GbGradingSchemaEntry> schemaEntries = this.schemaView.getModelObject();\n\n\t\tfinal Map<String, Double> bottomPercents = new HashMap<>();\n\t\tfor (final GbGradingSchemaEntry schemaEntry : schemaEntries) {\n\t\t\tbottomPercents.put(schemaEntry.getGrade(), schemaEntry.getMinPercent());\n\t\t}\n\n\t\tthis.model.getObject().getGradebookInformation().setSelectedGradingScaleBottomPercents(bottomPercents);\n\n\t\tthis.configuredGradeMappingId = this.currentGradeMappingId;\n\t}", "private void resetStats() {\n }" ]
[ "0.69800127", "0.66777843", "0.6546924", "0.6533754", "0.6473912", "0.6473496", "0.637501", "0.6345269", "0.63428146", "0.63034314", "0.62726253", "0.62608814", "0.6248963", "0.623906", "0.61583036", "0.61433506", "0.61406994", "0.61099166", "0.608541", "0.6077681", "0.6062546", "0.59849846", "0.59805804", "0.5968692", "0.59073055", "0.5867432", "0.58517313", "0.57653964", "0.57625103", "0.57496274", "0.57489926", "0.57463926", "0.5739321", "0.57125145", "0.56882125", "0.56508976", "0.56376916", "0.5626016", "0.5615306", "0.5596751", "0.55954844", "0.5571747", "0.5563412", "0.55354625", "0.5533878", "0.5532753", "0.5516755", "0.549891", "0.5492764", "0.5476351", "0.5475788", "0.54683316", "0.54649913", "0.54585874", "0.5417755", "0.5401449", "0.5401449", "0.5384134", "0.5348563", "0.5321481", "0.5311068", "0.5306089", "0.5297428", "0.5296576", "0.52859306", "0.52778035", "0.5265277", "0.5257608", "0.5242884", "0.52080745", "0.5206654", "0.5205862", "0.52051383", "0.5204929", "0.52032", "0.52030754", "0.51987076", "0.51734", "0.5172301", "0.5154848", "0.51547235", "0.5148474", "0.5131636", "0.512928", "0.5127929", "0.5119474", "0.5110763", "0.5110255", "0.5110128", "0.51037043", "0.5101617", "0.5092759", "0.5082541", "0.5078395", "0.50733805", "0.50507843", "0.50397956", "0.5035095", "0.5031046", "0.50234914" ]
0.69765216
1
Resets the statistics fields.
private void resetStatistics() { worst = Integer.MAX_VALUE; best = Integer.MIN_VALUE; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void resetStatistics()\n {\n }", "public static void resetStatistics()\r\n {\r\n \t//System.out.println ( \"Resetting statistics\");\r\n count_ = 0; \r\n }", "public void reset() {\n\t\tfor (int i = 0; i < stats.size(); i++) {\n\t\t\tstats.get(i).reset();\n\t\t}\n\t}", "private void resetStats() {\n }", "public void resetStats() {\n recentStats = new Stats();\n }", "public void resetHitStatistics()\n {\n m_stats.resetHitStatistics();\n }", "public void resetStats(){\n curA = attack;\n curD = defense;\n curSpA = spAttack;\n curSpD = spDefense;\n curS = speed;\n }", "private void clearStats() {\n stats_ = emptyProtobufList();\n }", "@Override\n boolean resetStatistics();", "void clearStatistics();", "void statsReset();", "public void reset() {\n this.metricsSent.set(0);\n this.eventsSent.set(0);\n this.serviceChecksSent.set(0);\n this.bytesSent.set(0);\n this.bytesDropped.set(0);\n this.packetsSent.set(0);\n this.packetsDropped.set(0);\n this.packetsDroppedQueue.set(0);\n this.aggregatedContexts.set(0);\n }", "public void reset() {\n counters = null;\n counterMap = null;\n counterValueMap = null;\n }", "public void reset() {\n this.count = 0;\n this.average = 0.0;\n }", "public abstract void statsReset();", "@Override\r\n\tpublic void reset() {\n\t\tthis.dcn = null;\r\n\t\tthis.pairs.clear();\r\n\t\tthis.successfulCount = 0;\r\n\t\tthis.failedCount = 0;\r\n\t\tthis.metrics.clear();\r\n\t}", "public void reset() {\n tpsAttentePerso = 0;\n tpsAttentePerso2 =0;\n \ttotalTime = 0;\n\tnbVisited = 0;\n moyenne =0;\n }", "public Builder clearStats() {\n bitField0_ = (bitField0_ & ~0x00000010);\n stats_ = null;\n if (statsBuilder_ != null) {\n statsBuilder_.dispose();\n statsBuilder_ = null;\n }\n onChanged();\n return this;\n }", "public void clear() {\n\t\tsample.clear();\n\t\tcount.set(0);\n\t\t_max.set(Long.MIN_VALUE);\n\t\t_min.set(Long.MAX_VALUE);\n\t\t_sum.set(0);\n\t\tvarianceM.set(-1);\n\t\tvarianceS.set(0);\n\t}", "public static void Reset(){\n\t\ttstr = 0;\n\t\ttluc = 0;\n\t\ttmag = 0; \n\t\ttacc = 0;\n\t\ttdef = 0; \n\t\ttspe = 0;\n\t\ttHP = 10;\n\t\ttMP = 0;\n\t\tstatPoints = 13;\n\t}", "protected void reset(VwStatsPerGame dto)\n\t{\n\t}", "public void reset() {\n\t\tvar.clear();\n\t\tname.clear();\n\t}", "public final synchronized void reset() {\n\t\tnumTypes = numCoords = 0;\n\t}", "public void clearState() {\n synchronized (mutex) {\n statisticsAccumulator.clearState();\n }\n }", "void reset() {\n errors.clear();\n variables.clear();\n }", "private void reset() {\n ms = s = m = h = 0;\n actualizar();\n }", "public void reset ()\r\n\t{\r\n\t\tsuper.reset();\r\n\t\tlastSampleTime = 0;\r\n\t\tfirstSampleTime = 0;\r\n\t\tlastSampleSize = 0;\r\n\t}", "public void clear() {\n _sample.clear();\n _count = 0;\n _max = null;\n _min = null;\n _sum = BigDecimal.ZERO;\n _m = -1;\n _s = 0;\n }", "public void resetPlayerStats(PlayerStats oldStats) {\r\n\t\toldStats.numberOfWins = 0;\r\n\t\toldStats.numberOfGames = 0;\r\n\t\toldStats.numberOfAttacks = 0;\r\n\t\toldStats.numberOfSPAttacks = 0;\r\n\t\toldStats.numberOfMeals = 0;\r\n\t}", "public void resetCounters() {\n setErrorCounter(0);\n setDelayCounter(0);\n }", "private void reset() {\n\t\tdata.clear();\n\t}", "void clearStatistics() throws IOException;", "public synchronized final void reset() {\r\n f_index = getDefaultIndex();\r\n f_userSetWidth = -1;\r\n // by default the first column is sorted the others unsorted\r\n f_sort = getDefaultSort();\r\n }", "public void reset() {\n while (getNumTotal() > 0) {\n this.removeNuclei();\n }\n lastModified = Calendar.getInstance().getTimeInMillis(); // record time\n }", "public void resetCounters()\n {\n cacheHits = 0;\n cacheMisses = 0;\n }", "@UnsupportedAppUsage\n public void clearStats() {\n mStats = null;\n }", "public void cleanStatistics() {\n\t\thasChildStopNominator = HashBasedTable.create();\n\t\thasChildStopDenominator = HashBasedTable.create();\n\t\tnoChildStopNominator = HashBasedTable.create();\n\t\tnoChildStopDenominator = HashBasedTable.create();\n\t\tleftAttachNominator = HashBasedTable.create();\n\t\tleftAttachDenominator = HashBasedTable.create();\n\t\trightAttachNominator = HashBasedTable.create();\n\t\trightAttachDenominator = HashBasedTable.create();\n\t}", "public void reset() {\n\n\t\tazDiff = 0.0;\n\t\taltDiff = 0.0;\n\t\trotDiff = 0.0;\n\n\t\tazMax = 0.0;\n\t\taltMax = 0.0;\n\t\trotMax = 0.0;\n\n\t\tazInt = 0.0;\n\t\taltInt = 0.0;\n\t\trotInt = 0.0;\n\n\t\tazSqInt = 0.0;\n\t\taltSqInt = 0.0;\n\t\trotSqInt = 0.0;\n\n\t\tazSum = 0.0;\n\t\taltSum = 0.0;\n\t\trotSum = 0.0;\n\n\t\tcount = 0;\n\n\t\tstartTime = System.currentTimeMillis();\n\t\ttimeStamp = startTime;\n\n\t\trotTrkIsLost = false;\n\t\tsetEnableAlerts(true);\n\n\t}", "@Override\n public void resetAllValues() {\n }", "void resetStationStatistics() {\n\n if (dbg) System.out.println(\"<br>resetStationStatistics: \" +\n \"depthMin, depthMax = \" + depthMin + \" \" + depthMax);\n if (dbg) System.out.println(\"<br>resetStationStatistics: \" +\n \"sampleCount = \" + sampleCount);\n if (dbg) System.out.println(\"<br>resetStationStatistics: \" +\n \"stationSampleCount = \" + stationSampleCount);\n if (dbg) System.out.println(\"<br>resetStationStatistics: \" +\n \"sampleRejectCount = \" + sampleRejectCount);\n if (dbg) System.out.println(\"<br>resetStationStatistics: \" +\n \"stationSampleRejectCount = \" + stationSampleRejectCount);\n\n depthMin = 9999.99f;\n depthMax = -9999.99f;\n stationSampleCount = 0;\n stationSampleRejectCount = 0;\n prevDepth = 0f;\n\n }", "void reset()\n {\n reset(values);\n }", "public static void reset()\r\n {\r\n errorCount = 0;\r\n warningCount = 0;\r\n }", "public void resetCounters() {\n\t\t//RobotMap.leftEncoder.reset();\n\t\t//RobotMap.rightEncoder.reset();\n\t\tRobotMap.ahrs.zeroYaw();\n\t\tRobotMap.talonLeft.setSelectedSensorPosition(0, 0, 10);\n\t\tRobotMap.talonRight.setSelectedSensorPosition(0, 0, 10);\n\t\tbearing = 0;\n\t}", "public void reset() {\n setValuesInternal(new Date(clock.getTime()), false, true);\n }", "public void resetData() {\r\n this.setName(\"\");\r\n this.setType(\"\");\r\n this.setContact(\"\");\r\n this.setAffiliatedResearchers(\"\");\r\n this.setCountry(\"\");\r\n this.setResearchKeywords(\"\");\r\n this.setResearchDescription(\"\");\r\n this.setHomePage(\"\");\r\n }", "public void reset() {\n/* 54 */ this.count = 0;\n/* 55 */ this.totalTime = 0L;\n/* */ }", "public SearchResult clearStatsEntries() {\n this.stats = null;\n return this;\n }", "public void reset() {\n sum1 = 0;\n sum2 = 0;\n }", "private void reset() {\n \t resultCount =0;\n\t searchStatus = 0;\n\t resultSetStatus = 0;\n\t errorCode = 0;\n\t errorMsg = \"None provided\";\n\t Present = null;\n\t dbResults = null;\n oclc7= null;\n oclc8 = null;\n requestLength=0;\n responseLength=0;\n }", "public void clear () {\n\n\t\tn_vars = 0;\n\t\tn_values = null;\n\t\tmin_probability = DEF_MIN_PROBABILITY;\n\n\t\tpeak_probability = 0.0;\n\t\tpeak_indexes = null;\n\t\ttotal_probability = 0.0;\n\t\tmarginal_probability = null;\n\t\tmarginal_mode_index = null;\n\t\tmarginal_peak_probability = null;\n\t\tmarginal_peak_indexes = null;\n\t\tmarginal_2d_probability = null;\n\t\tmarginal_2d_mode_index = null;\n\n\t\treturn;\n\t}", "public void reset() {\n monster.setHealth(10);\n player.setHealth(10);\n\n }", "private void reset(){\n plotValues.clear();\n xLabels.clear();\n }", "public void reset(){\r\n maxDate = null;\r\n minDate = null;\r\n }", "public Builder clearStats() {\n copyOnWrite();\n instance.clearStats();\n return this;\n }", "protected void reset()\n {\n this.shapeDataCache.removeAllEntries();\n this.sector = null;\n }", "public void clearStats()\n {\n pathJTextArea.setText(\"\");\n costJTextField.setText(\"\");\n timeJTextField.setText(\"\");\n }", "public void reset() {\n deadBlackCount = 0;\n deadWhiteCount = 0;\n deadRedCount = 0;\n deadBlueCount = 0;\n\n for (int i = 0; i < DIMENSION; i++) {\n for (int j = 0; j < DIMENSION; j++) {\n fields[i][j].reset();\n }\n }\n }", "public void resetConceptDetectionStatistics() {\n this.numberOfDetectedConcepts = 0;\n this.cardinalitySentenceDetectionRuntime = 0;\n this.fillInTheBlankTextConceptDetectionRuntime = 0;\n }", "private void reset() {\n //todo test it !\n longitude = 0.0;\n latitude = 0.0;\n IDToday = 0L;\n venVolToday = 0L;\n PM25Today = 0;\n PM25Source = 0;\n DBCanRun = true;\n DBRunTime = 0;\n isPMSearchRunning = false;\n isLocationChanged = false;\n isUploadRunning = false;\n refreshAll();\n locationInitial();\n DBInitial();\n sensorInitial();\n }", "public void reset() {\n\t\t\t\t\r\n\t\t\t}", "public void reset() {\n super.reset();\n }", "public void reset(){\r\n \ttablero.clear();\r\n \tfalling = null;\r\n \tgameOver = false;\r\n \tlevel = 0;\r\n \ttotalRows = 0;\r\n \tLevelHelper.setLevelSpeed(level, this);\r\n }", "protected void reset () {\n for (Field field : this.map) {\n this.table.putNumber(field.getName(), field.getDefaultValue());\n }\n }", "public void reset() {\n initEntries();\n }", "public void reset () {\n lastSave = count;\n count = 0;\n }", "public void reset() {\n\t\tmDistanceMap.clear();\n\t\tmIncomingEdgeMap.clear();\n\t}", "public synchronized void reset()\n\t{\n\t\tthis.snapshots.clear();\n\t\tthis.selfPositions.clear();\n\t}", "final void reset() {\r\n\t\t\tsp = 0;\r\n\t\t\thp = 0;\r\n\t\t}", "public final void reset() {\n\t\tscore = 0;\n\t\tlives = 10;\n\t\tshields = 3;\n\t}", "public void reset() {\n\t\tsuper.reset(); // reset the Reportable, too.\n\n\t\tif (_interArrivalTimeActivated && _interArrivalTally != null)\n\t\t\t_interArrivalTally.reset();\n\t\t\n\t\t// really reset the counter value?\n\t\tif (!this.isResetResistant) {\n\t\t\tthis._value = 0;\n \t this._min = this._max = 0;\n\t\t}\n\t}", "public void reset() {\n\t\tthis.count = 0;\n\t}", "private void resetValues() {\n\t\ttotalNet = Money.of(Double.valueOf(0.0), currencyCode);\n\t\ttotalVat = Money.of(Double.valueOf(0.0), currencyCode);\n\t\ttotalGross = Money.of(Double.valueOf(0.0), currencyCode);\n\t}", "public void resetAll() {\n reset(getAll());\n }", "public void resetAttributes()\r\n\t{\r\n\t\t// TODO Keep Attribute List upto date\r\n\t\tintelligence = 0;\r\n\t\tcunning = 0;\r\n\t\tstrength = 0;\r\n\t\tagility = 0;\r\n\t\tperception = 0;\r\n\t\thonor = 0;\r\n\t\tspeed = 0;\r\n\t\tloyalty = 0;\r\n\t}", "public void reset() {\n\t\tcount = 0;\n\t}", "@SuppressWarnings(\"NullAway\")\n\t\tpublic void reset() {\n\t\t\ttrackDoc = null;\n\t\t\tglobalDoc = null;\n\t\t\tpredicted.reset();\n\t\t\tobserved.reset();\n\t\t\tdoc_to_imagePixel.reset();\n\t\t}", "@Override\r\n\tpublic void reset() {\r\n\t\tsuper.reset();\r\n\t\tresetMomentObservation();\r\n\t\texpectations.reset();\r\n\t}", "@Override\n\tpublic void reset() {\n\t\tfor(int i=0; i<mRemainedCounters; i++){\n\t\t\tfinal ICounter counter = this.mCounters.getFirst();\n\t\t\tcounter.reset();\n\t\t\tthis.mCounters.removeFirst();\n\t\t\tthis.mCounters.addLast(counter);\n\t\t}\n\t\tthis.mRemainedCounters = this.mCounters.size();\n\t}", "protected void reset() {\n\t\t}", "public void reset()\n {\n total_frames = 0;\n total_messages = 0;\n total_size = 0;\n lost_frames = 0;\n lost_segments = 0;\n num_files = 0;\n start_time = System.nanoTime();\n m_lastFrames.clear();\n }", "public void reset() {\n this.errorNo = 0;\n this.errorStrings = \"\";\n }", "public void reset()\r\n {\n if_list.removeAllElements();\r\n ls_db.reset();\r\n spf_root = null;\r\n vertex_list.removeAllElements();\r\n router_lsa_self = null;\r\n floodLastTime = Double.NaN;\r\n delayFlood = false;\r\n spf_calculation = 0;\r\n lsa_refresh_timer = null;\r\n }", "public void reset() {\n _valueLoaded = false;\n _value = null;\n }", "public void clear(){\r\n\t\tsummary \t= null;\r\n\t\tstart\t\t= 0;\r\n\t\tend\t\t\t= 0;\r\n\t\tlocation\t= null;\r\n\t\talarm\t\t= 0;\r\n\t\tnote\t\t= null;\r\n\t\tallDay\t\t= false;\r\n\t\tattendees\t= null;\r\n\t\tfree_busy\t= FB_FREE;\r\n\t\tevent_class\t= CLASS_PRIVATE;\r\n\t\trepeat_type\t= \"\";\r\n\t}", "public void clear() {\n oredCriteria.clear();\n orderByClause = null;\n distinct = false;\n this.offset= 0;\n this.limit= Integer.MAX_VALUE;\n this.sumCol=null;\n this.groupSelClause=null;\n this.groupByClause=null;\n this.forUpdate=false;\n }", "private void resetValues() {\n teamAScoreInt = 0;\n teamBScoreInt = 0;\n teamAFoulScoreInt = 0;\n teamBFoulScoreInt = 0;\n }", "private void reset() {\n PlayerPanel.reset();\n playersAgentsMap.clear();\n agentList.clear();\n playerCount = 0;\n playerList.removeAll();\n iPlayerList.clear();\n dominator = \"\";\n firstBlood = false;\n }", "public void reset() {\n gameStatus = null;\n userId = null;\n gameId = null;\n gameUpdated = false;\n selectedTile = null;\n moved = false;\n }", "public void reset() {\r\n dogNameField.clear();\r\n dogText.clear();\r\n }", "public void clearFields() {\n\t\tid.clear();\n\t\tfn.clear();\n\t\tln.clear();\n\t\tage.clear();\n\t\tun.clear();\n\t\tpass.clear();\n\t\tdate.setValue(null);\n\t}", "public void clear() {\n oredCriteria.clear();\n orderByClause = null;\n distinct = false;\n this.offset= 0;\n this.limit= Integer.MAX_VALUE;\n this.sumCol=null;\n this.groupSelClause=null;\n this.groupByClause=null;\n }", "public void reset() {\r\n minX = null;\r\n maxX = null;\r\n minY = null;\r\n maxY = null;\r\n\r\n minIn = null;\r\n maxIn = null;\r\n\r\n inverted = false;\r\n }", "private void clean() {\n aggregatedValues.clear();\n this.numMessageSent = 0;\n this.numMessageReceived = 0;\n }", "public void reset() {\n delta = 0.0;\n solucionActual = null;\n mejorSolucion = null;\n solucionVecina = null;\n iteracionesDiferenteTemperatura = 0;\n iteracionesMismaTemperatura = 0;\n esquemaReduccion = 0;\n vecindad = null;\n temperatura = 0.0;\n temperaturaInicial = 0.0;\n tipoProblema = 0;\n alfa = 0;\n beta = 0;\n }", "public void reset()\n {\n this.timeToCook = 0;\n this.startTime = 0;\n }", "public void reset() {\n for (int i = 0; i < this.numRows; i++) {\n this.rows[i] = new int[0];\n }\n for (int k = 0; k < this.numCols; k++) {\n this.cols[k] = new IntOpenHashSet();\n }\n }", "private void resetAll() // resetAll method start\n\t{\n\t\theader.reset();\n\t\tdebit.reset();\n\t\tcredit.reset();\n\t}", "public void reset() {\n\t\tstartTime = System.nanoTime();\n\t\tpreviousTime = getTime();\n\t}", "public synchronized void resetValues(){\n numSent = 0;\n }", "public void resetDeaths()\n {\n \tstats.put(deathsKey, 0);\n }" ]
[ "0.83352405", "0.827494", "0.79295564", "0.7926881", "0.789929", "0.74916756", "0.7482785", "0.7461174", "0.7460829", "0.7407365", "0.7398709", "0.7321102", "0.7304593", "0.7167716", "0.71317923", "0.70166177", "0.6928677", "0.6924175", "0.6909214", "0.69060415", "0.68906236", "0.6883925", "0.68696433", "0.68526715", "0.68489593", "0.6846873", "0.68464476", "0.6827051", "0.6812346", "0.6806922", "0.67978275", "0.6796233", "0.67782325", "0.67560774", "0.6740028", "0.6712325", "0.6710643", "0.6683461", "0.6671844", "0.6669833", "0.6667673", "0.66550267", "0.66498053", "0.66261625", "0.6618522", "0.6611224", "0.6604512", "0.65870374", "0.6568911", "0.65595436", "0.6554599", "0.6553383", "0.65524596", "0.6547367", "0.6532035", "0.6528074", "0.651401", "0.6510564", "0.6509399", "0.6505614", "0.6502469", "0.6495626", "0.6485859", "0.6485719", "0.64827687", "0.6480965", "0.6480619", "0.648061", "0.6461792", "0.64420223", "0.64410913", "0.64409083", "0.6439639", "0.6435605", "0.64276236", "0.6425992", "0.6423709", "0.64224136", "0.64182603", "0.64152396", "0.64126575", "0.6405011", "0.64024997", "0.63977337", "0.6392952", "0.6380791", "0.6379599", "0.63785046", "0.6377028", "0.636859", "0.6367588", "0.6366949", "0.63626236", "0.6362189", "0.6361826", "0.63599294", "0.63569075", "0.63551915", "0.6350132", "0.63475215" ]
0.70035803
16
Registers a new server with RMI. This entry point accepts one required and one option argument. The required argument is the directory path to the simulator files and it appears first. It is optionally followed by the path to a checkpoint directory, which (if specified) will load the last version of that GP and continue it.
public static void main(String[] args) throws Exception { if (args.length < 1) { System.err.println("Usage: Master <simulation_directory> " + "[checkpoint_directory]"); System.exit(-1); } SimulationDirLoader sdl = new SimulationDirLoader(args[0]); ISimulator[] simulators = sdl.load(); GeneticProgram gp; if (args.length == 2) { gp = loadCheckpoint(args[1]); } else { gp = new GeneticProgram(POPULATION_SIZE, GeneticProgram.INIT_POP_METHOD.RHALF_AND_HALF, 3); } new Master(gp, simulators, GENERATIONS).runGP(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void registerWithServer();", "public static void main(String[] args) {\n\n try {\n\n Registry registry = LocateRegistry.createRegistry( 1888);\n registry.rebind(\"YStudentServerImpl\", new YStudentServerImpl());\n\n\n }\n catch (Exception ex){\n System.err.println(\"YStudentServerImpl exeption\");\n ex.printStackTrace();\n }\n\n\n }", "public static void main(String[] args) {\n\n\t\tString registryHost;\n\t\tint registryPort;\n\t\tString localIP = \"127.0.1.1\";\n\t\ttry {\n\t\t\tlocalIP = Inet4Address.getLocalHost().getHostAddress();\n\t\t} catch (UnknownHostException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tif(args.length == 2) {\n\t\t\tregistryHost = args[0];\n\t\t\tregistryPort = Integer.parseInt(args[1]);\n\t\t} else if (args.length == 3) {\n\t\t\tregistryHost = args[0];\n\t\t\tregistryPort = Integer.parseInt(args[1]);\n\t\t\tlocalIP = args[2];\n\t\t} else {\n\t\t\tSystem.out.print(\"Usage: java RMIserver <Registry host> <Registry port> [ServerIP]\");\n\t\t\treturn;\t\t\t\n\t\t}\n\t\tRMIserver myserver = new RMIserver(localIP);\n\n\t\tRegistry registry;\n\t\tregistry = LocateRegistry.getRegistry(registryHost, registryPort);\n\n\t\twhile (true) {\n\t\t\tSystem.out.print(myserver.getPrompt());\n\t\t\tString cmdl = System.console().readLine();\n\t\t\tString cmdargs[] = cmdl.split(\" \");\n\t\t\tif (cmdargs[0].equals(\"register\")) {\n\t\t\t\tString class_name = cmdargs[1];\n\t\t\t\tString class_stub_name = cmdargs[1] + \"_stub\";\n\t\t\t\t// start a new thread to handle this particular server\n\t\t\t\t// object\n\t\t\t\tRunnable job = new ServerHandler(registry, class_name,\n\t\t\t\t\t\tclass_stub_name, localIP);\n\t\t\t\tThread t = new Thread(job);\n\t\t\t\tt.start();\n\t\t\t} else if (cmdargs[0].equals(\"exit\")) {\n\t\t\t\tSystem.out.println(\"Server Exisiting...\");\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tmyserver.printUsage();\n\t\t\t}\n\t\t}\n\t}", "public static void main(String[] args) throws NotBoundException, ClassNotFoundException, SQLException {\n\t\ttry {\n\t\t\tRegistry registry = LocateRegistry.createRegistry(1099);\n\t\t\tregistry.rebind(\"server\", (RMIServerInterface) new RMIServer());\n\t\t\tSystem.out.println(\"Rmi Server Running...\");\n\t\t} catch (AccessException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (RemoteException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public static void main(String[] args) {\n try {\n //创建一个远程对象\n\n String ip = args[0];\n String port = args[1];\n Integer totalSpace = args[2] == null ? 100 :Integer.valueOf(args[2]);\n ChunkServerProperties properties = new ChunkServerProperties();\n properties.setIp(ip);\n properties.setPort(port);\n\n IChunkServerService chunkServer = new BFSChunkServer(totalSpace,0,\"/\",ip);\n\n LocateRegistry.createRegistry(Integer.parseInt(port));\n\n String rmi = \"rmi://\"+properties.getServerIpPort()+\"/chunk_server\";\n Printer.println(rmi);\n Naming.bind(rmi,chunkServer);\n\n String masterRMI =\"rmi://127.0.0.1:8888/master\";\n\n IMasterService masterService =(IMasterService) Naming.lookup(\"rmi://127.0.0.1:8888/master\");\n\n\n masterService.registerChunkServer(properties);\n\n Printer.println(\"register to master \"+masterRMI + \" succcess\");\n\n } catch (RemoteException e) {\n e.printStackTrace();\n } catch (MalformedURLException e) {\n e.printStackTrace();\n } catch (AlreadyBoundException e) {\n e.printStackTrace();\n } catch (NotBoundException e) {\n e.printStackTrace();\n }\n }", "public static void main ( String args [] )\n {\n // Variable deceleration\n String hostname = \"localhost\" ; // Default host to use\n \n // Override the default values for hostname if passed through command line.\n if ( args [0].length () != 0 ) { hostname = args [0] ; }\n \n try\n {\n // Set the system property for \"java.rmi.server.hostname\".\n System.setProperty ( \"java.rmi.server.hostname\", hostname ) ;\n \n // Initialize the interface to access all the remote functions.\n HelloServerImplementation registerObject = new HelloServerImplementation () ;\n\n // Declare registry variable\n Registry registry ;\n \n // This try catch is to make sure that the registry is created\n try \n {\n // Try to get the remote object Registry for the local host on the default registry port of 1099.\n registry = LocateRegistry.getRegistry() ;\n registry.list() ; // Fetch the names bounded to the registry\n }\n // Catch the exception where communication with the registry fails and create the registry.\n catch ( RemoteException e ) \n {\n // Create the registry on the default rmi port 1099\n System.out.println ( \"RMI registry cannot be located at port \" + Registry.REGISTRY_PORT ) ;\n registry = LocateRegistry.createRegistry ( Registry.REGISTRY_PORT ) ;\n System.out.println ( \"RMI registry created at port \" + Registry.REGISTRY_PORT ) ;\n }\n \n // Once the registry is successfully created, rebind the HelloServerInterface to the remote reference created above.\n registry.rebind ( \"HelloServerInterface\", registerObject ) ;\n System.out.println ( \"Callback Server ready.\" ) ;\n }\n // Catch the exception and provide the necessary information to the user. \n catch ( Exception e ) { System.out.println ( \"Exception: \" + e.getMessage () ) ; e.printStackTrace () ; }\n }", "public static void main(String args[]) {\n try {\n LocateRegistry.createRegistry(80);\n OperacoesImpl obj = new OperacoesImpl();\n Naming.rebind(\"ServerRMI\", obj);\n System.out.println(\"Server RMI pronto.\");\n } catch (Exception e) {\n System.out.println(\"Server erro\" + e.getMessage());\n }\n }", "public static void main(String[] args) throws RemoteException {\n\t\tServidorRMI server = new ServidorRMI();\n\t}", "public static void main(String[] args) {\n\t\ttry {\n\t\t\tRegistryInterface rInterface = new RegistryServer();\n\t\t\tint portnum=Integer.parseInt(args[1]);\n\t\t\tInetAddress iAddress=InetAddress.getByName(args[0]);\n\t\t\tSocketFactory sFactory=new SocketFactory(iAddress);\n\t\t\tRegistry registry = LocateRegistry.createRegistry(portnum,null,sFactory);\n\t\t\tregistry.bind(\"registryServer\", rInterface);\n\t\t} catch (RemoteException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (AlreadyBoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (UnknownHostException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public static void main(String args[]) {\n try {\n //Cria HelloImpl\n //Runtime.getRuntime().exec(\"rmiregistry 1010\");\n //Registry registry = LocateRegistry.getRegistry(2001);\n \tSystem.setProperty(\"java.rmi.server.hostname\",\"192.168.0.30\");\n Registry registry = LocateRegistry.createRegistry(2001);\n Implementation obj = new Implementation();\n registry.bind(\"HelloServer\", obj);\n System.out.println(\"Hello Server pronto.\");\n } catch (Exception e) {\n System.out.println(\"HelloServer erro \" + e.getMessage());\n }\n }", "public synchronized void start(String hostname, Registration naming_server)\n throws RMIException, UnknownHostException, FileNotFoundException\n {\n if( !root.isDirectory() || !root.exists() ) {\n throw new FileNotFoundException(\"Server root not found or is not a directory\");\n }\n storage.start();\n command.start();\n \n // Wait for it to start?\n\n Path[] serverFiles = naming_server.register(\n Stub.create(Storage.class, storage, hostname),\n Stub.create(Command.class, command, hostname),\n Path.list(root));\n\n // Storage Server startup deletes all duplicate files on server.\n for(Path p : serverFiles) {\n p.toFile(root).delete();\n File parent = new File(p.toFile(root).getParent());\n \n while(!parent.equals(root)) {\n if(parent.list().length == 0) {\n parent.delete();\n } else {\n break;\n }\n parent = new File(parent.getParent());\n }\n } \n }", "public interface Server {\n void register(String serverName, Class impl) throws Exception;\n\n void start() throws IOException;\n\n\n}", "public static void main(String[] args) throws RemoteException, MalformedURLException {\n\t\tAddC add = new AddC(); \r\n\t\tNaming.rebind(\"ADD\", add);\r\n\t\tSystem.out.println(\"Server Up and running\");\r\n\t}", "public static void main(String[] args) {\n\t\tif (args.length > 0) {\n\t\t\ttry {\n\t\t\t\t//RMI registry creation\n\t\t\t\tLocateRegistry.createRegistry(SettingsManager.getPortDaemon());\n\t\t\t\tSystem.out.println(messageHeader+\"RMI registry created\");\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.out.println(messageHeader+\"RMI registry exists already\");\n\t\t\t}\n\n\t\t\ttry {\n\t\t\t\t//Bind the daemon to the RMI register\n\t\t\t\tDaemonImpl demon = new DaemonImpl(args[0]);\n\t\t\t\tNaming.rebind(\"//\"+demon.getServerAddress()+\":\"+SettingsManager.getPortDaemon()+\"/DaemonImpl\",demon);\n\t\t\t\tSystem.out.println(messageHeader+\"Daemon bound in registry\");\n\t\t\t\t//Notify the JobManager of its availability\n\t\t\t\tJobManager jobManager = (JobManager) Naming.lookup(\"//\"+SettingsManager.getMasterNodeAddress()+\":\"+SettingsManager.getPortJobMaster()+\"/JobManager\");\n\t\t\t\tjobManager.notifyDaemonAvailability(demon.getServerAddress());\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} else printUsage();\n\t}", "public void registerServer() {\n log.info(\"Registering service {}\", serviceName);\n cancelDiscovery = discoveryService.register(\n ResolvingDiscoverable.of(new Discoverable(serviceName, httpService.getBindAddress())));\n }", "public static void main(String args[]) throws Exception {\n\t\tLocateRegistry.createRegistry(1099);\n\t\tServer remote = new ServerImpl();\n\t\t//将远程服务对象绑定到指定JNDI。\n\t\tNaming.rebind(\"rmi://localhost:1099/HelloServiceImpl\", remote);\n\t}", "@Override\n\tpublic void addServer(String arg0) throws IOException {\n\n\t}", "@Override\n\tpublic void addServer(String arg0, int arg1) throws IOException {\n\n\t}", "public static void main(String[] args) throws MalformedObjectNameException, InstanceAlreadyExistsException,\n\t\t\tMBeanRegistrationException, NotCompliantMBeanException {\n\t\tMBeanServer server = ManagementFactory.getPlatformMBeanServer();\n\t\tObjectName myJmxName = new ObjectName(\"jmxBean:name=myJmx\");\n\t\tserver.registerMBean(new MyJmx(), myJmxName);\n// TODO Auto-generated method stub\n\t\ttry {\n\t\t\tLocateRegistry.createRegistry(9999);\n\t\t\tJMXServiceURL url = new JMXServiceURL(\"service:jmx:rmi:///jndi/rmi://localhost:9999/jmxrmi\");\n\t\t\tJMXConnectorServer jcs = JMXConnectorServerFactory.newJMXConnectorServer(url, null, server);\n\t\t\tSystem.out.println(\"begin rmi start\");\n\t\t\tjcs.start();\n\t\t\tSystem.out.println(\"rmi start\");\n\t\t} catch (RemoteException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\t//System.setSecurityManager(new RMISecurityManager());\n\t\tScanner in = new Scanner(System.in);\n\t\t\n\t\tSystem.out.println(\"Server is starting...\");\n\t\t\n\t\ttry {\n\t\t\tServer server = new Server(sPort);\n\t\t\tserver.start();\n\t\t\tSystem.out.println(\"Press Enter to exit.\") ;\n\t\t\t\n\t\t\tin.nextLine() ;\n\t\t\t\n\t\t\t//Naming.rebind(Utilities.SERVER_NAME, gc);\n\t\t\tSystem.out.println(\"Server is started\");\n\t\t} catch (RemoteException | UnknownHostException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tin.close(); \n\t}", "public static void main(String args[]) {\n ContentServer cs = new ContentServer();\n try {\n // Bind the RMI Object\n ContentServerIntf stub =\n (ContentServerIntf) UnicastRemoteObject.exportObject(cs, 0);\n LocateRegistry.createRegistry(40000);\n Registry registry = LocateRegistry.getRegistry(InetAddress.getLocalHost().getHostAddress(), 40000);\n registry.rebind(cs.getCsPublicIp(), stub);\n\n // start the ContentServer\n cs.setUp();\n cs.start();\n\n // register with proxy\n NodeData nodeData = new NodeData();\n nodeData.setIpAddress(cs.getCsPublicIp());\n Registry masterReg = LocateRegistry.getRegistry(\"52.7.96.47\", 50000);\n MasterInter masterInter = (MasterInter) masterReg.lookup(\"master\");\n masterInter.join(nodeData);\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "private void startServer() throws RemoteException, AlreadyBoundException{\n\t\ttry{\n\t\t\tInsuranceImplementation impl = new InsuranceImplementation();\n\t\t\timpl.setIPAddress(ipHospital.getText());\n\t\t\timpl.setPortNumebr(Integer.parseInt(portHospital.getText()));\n\t\t\t\n\t\t\tRegistry registry = LocateRegistry.createRegistry(Integer.parseInt(portInsurance.getText()));\n\t\t\tregistry.bind(Constants.RMI_ID, impl); \n\t\t\t\n\t\t\tlogMessage(\"Insurance Server Started\");\n\t\t\t\n\t\t} catch (Exception exp)\n\t\t{\n\t\t\tlogMessage(\"ObjID already in use.\\nPlease kill the process running at port 5002\");\n\t\t\texp.printStackTrace();\n\t\t} \n\t\t\n\t}", "public static void main(String[] args) {\n loadServer();\n\n }", "public static void main(String[] args) {\n try {\n\n path_config = args[0];\n\n Servidor server = new Servidor(args[2],args[3]);\n\n server.agregar_servidores_backup(args[1]);\n\n\n\n\n \n while (server.active) {\n server.run();\n }\n System.exit(0);\n\n\n } catch (RemoteException ex) {\n Logger.getLogger(Servidor.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public static void main(String[] args) {\n\t\tserverManager = new ServerManager(8031);\n\t\t\n\t}", "@Override\n\tpublic void addServer(String arg0, int arg1, int arg2) throws IOException {\n\n\t}", "void startServer(String name, Config.ServerConfig config);", "public static void main(String args[])\r\n {\n System.setSecurityManager(new RMISecurityManager());\r\n\r\n try\r\n {\r\n // Create ResultRMIImpl\r\n ResultRMIImpl myResult = new ResultRMIImpl(\"//Binita/myResultRMI\");\r\n System.out.println(\"ResultRMI Server ready.\");\r\n } \r\n catch (Exception e)\r\n { \r\n System.out.println(\"Exception: \" + e.getMessage());\r\n e.printStackTrace();\r\n }\r\n }", "private static void startServer(){\n try{\n MMServer server=new MMServer(50000);\n }catch (IOException ioe){\n System.exit(0);\n }\n \n }", "public static void main(String[] args) {\n /* obtenção da localização do serviço de registo RMI */\n \n // nome do sistema onde está localizado o serviço de registos RMI\n String rmiRegHostName;\n \n // port de escuta do serviço\n int rmiRegPortNumb; \n\n RegistryConfig rc = new RegistryConfig(\"config.ini\");\n rmiRegHostName = rc.registryHost();\n rmiRegPortNumb = rc.registryPort();\n \n /* instanciação e instalação do gestor de segurança */\n if (System.getSecurityManager() == null) {\n System.setSecurityManager(new SecurityManager());\n }\n \n /* instanciação do objecto remoto que representa o referee site e geração de um stub para ele */\n RefereeSite referee_site = null;\n RefereeSiteInterface refereeSiteInterface = null;\n referee_site = new RefereeSite();\n \n try {\n refereeSiteInterface = (RefereeSiteInterface) UnicastRemoteObject.exportObject(referee_site, rc.refereeSitePort());\n } catch (RemoteException e) {\n System.out.println(\"Excepção na geração do stub para o referee site: \" + e.getMessage());\n System.exit(1);\n }\n \n System.out.println(\"O stub para o referee site foi gerado!\");\n\n /* seu registo no serviço de registo RMI */\n String nameEntryBase = RegistryConfig.registerHandler;\n String nameEntryObject = RegistryConfig.refereeSiteNameEntry;\n Registry registry = null;\n RegisterInterface reg = null;\n\n try {\n registry = LocateRegistry.getRegistry(rmiRegHostName, rmiRegPortNumb);\n } catch (RemoteException e) {\n System.out.println(\"Excepção na criação do registo RMI: \" + e.getMessage());\n System.exit(1);\n }\n \n System.out.println(\"O registo RMI foi criado!\");\n\n try {\n reg = (RegisterInterface) registry.lookup(nameEntryBase);\n } catch (RemoteException e) {\n System.out.println(\"RegisterRemoteObject lookup exception: \" + e.getMessage());\n System.exit(1);\n } catch (NotBoundException e) {\n System.out.println(\"RegisterRemoteObject not bound exception: \" + e.getMessage());\n System.exit(1);\n }\n\n try {\n reg.bind(nameEntryObject, refereeSiteInterface);\n } catch (RemoteException e) {\n System.out.println(\"Excepção no registo do referee site: \" + e.getMessage());\n System.exit(1);\n } catch (AlreadyBoundException e) {\n System.out.println(\"O referee site já está registado: \" + e.getMessage());\n System.exit(1);\n }\n \n System.out.println(\"O referee site foi registado!\");\n }", "private static void addInstance(String[] args,CuratorFramework client,String command,\n List<ExampleServer> servers) throws Exception {\n \n if (args.length < 2) {\n System.err.println(\"syntax error (expected add <name> <description>): \" + command);\n return;\n }\n \n StringBuilder description = new StringBuilder();\n for (int i = 1; i < args.length; ++i) {\n if (i > 1) {\n description.append(' ');\n }\n description.append(args[i]);\n }\n \n String serviceName = args[0];\n ExampleServer server = new ExampleServer(client,PATH,serviceName,description.toString());\n servers.add(server);\n server.start();\n \n System.out.println(serviceName + \" added\");\n }", "public void startServer() {\n URLClassLoader loader = createClasspath(opts);\n X_Process.runInClassloader(loader, appServer\n .map(DevAppServer::doStartServer, getAppName() + \"Server\", getPort())\n .ignoreOut1().unsafe());\n }", "public void initServer(File fname) {\n // Do something!\n System.err.println(\"Init server with fname \" + fname);\n }", "public void run() {\n\t try{\n \t\tRegistry registry = LocateRegistry.createRegistry(1099);\n \t\tTestUnitImpl testUnit = new TestUnitImpl();\n \t\tProxyMonitoringUnit proxyUnit= new ProxyMonitoringUnit();\n\t registry.rebind(\"TestingUnit\", testUnit);\n\t registry.rebind(\"ProxyUnit\", proxyUnit);\n\t System.out.println(\"server.RMI Server is ready.\");\n \t}catch(RemoteException e){\n \t\te.printStackTrace();\n \t}\n \t\n }", "@NotNull\n public AsynchResult<Server> addServer(AddServerRequestV1 request) {\n // TODO \n // We need first to probe the server to find out some server properties to decide what kind of client to use.\n var client = new HuaweiServerHardwareClient(request.address, request.username, request.password);\n var basicInfo = client.getServerBasicInfo();\n var currentServer = serverRepository.findFirstByAssetInfoSerialNumber(basicInfo.assetInfo.serialNumber);\n if (currentServer != null) {\n throw new ResourceAlreadyExistException();\n }\n var initializedServer = Server.initialize(basicInfo);\n initializedServer = serverRepository.save(initializedServer);\n var context = new AddServerContext();\n return context.run();\n }", "public static void main(String[] args) throws Exception{\n /* get location of the generic registry service */\n String rmiRegHostName;\n int rmiRegPortNumber;\n \n Scanner sc = new Scanner(System.in);\n int listeningPort = 22324;\n String nameEntry = RegistryConfig.bettingCenterNameEntry;\n \n System.out.println(\"Node process host name(RMI Service Host Name): \");\n rmiRegHostName = sc.nextLine();\n System.out.println(\"Node process port number(RMI Service Port Number): \");\n rmiRegPortNumber = sc.nextInt();\n \n /* Instanciate and install security manager */\n if(System.getSecurityManager() == null){\n System.setSecurityManager(new SecurityManager());\n }\n \n /* Get Central Registry */\n Registry registry = null;\n try{\n registry = LocateRegistry.getRegistry(rmiRegHostName, rmiRegPortNumber);\n }catch(RemoteException e){\n System.err.println(\"Wrong registry location!!!\");\n System.exit(1);\n }\n System.out.println(\"RMI Registry created!\");\n \n /* Get LogRepository register */\n Log_Interface log_itf = null;\n try{\n log_itf = (Log_Interface) registry.lookup(RegistryConfig.logRepositoryNameEntry);\n } catch (NotBoundException e){\n System.out.println(\"LogRepository lookup exception: \" + e.getMessage());\n e.printStackTrace();\n System.exit(1);\n }\n \n /* Create Betting Center Stub */\n Betting_Center betting_center = new Betting_Center(log_itf, GlobalInfo.numSpec, rmiRegHostName, rmiRegPortNumber);\n BettingCenter_Itf betting_center_itf = null;\n \n try{\n betting_center_itf = (BettingCenter_Itf) UnicastRemoteObject.exportObject(betting_center, listeningPort);\n } catch (RemoteException e) {\n System.out.println(\"Betting stub create exception: \" + e.getMessage());\n e.printStackTrace();\n System.exit(1);\n }\n System.out.print(\"Betting Center Stub created!\\n\");\n \n /* Register RMI register */\n Register register = null;\n String nameEntryBase = RegistryConfig.rmiRegisterName;\n try {\n register = (Register) registry.lookup(nameEntryBase);\n } catch (RemoteException | NotBoundException ex) {\n System.out.println(\"Wrong register location!\");\n System.exit (1);\n }\n \n try {\n register.bind(nameEntry, betting_center_itf);\n } catch (RemoteException e) {\n System.out.println(\"Betting Center register exception \" + e.getMessage());\n e.printStackTrace();\n System.exit(1);\n } catch (Exception e) {\n System.out.println(\"Betting Center is already registered: \" + e.getMessage());\n e.printStackTrace();\n System.exit(1);\n }\n System.out.println(\"Betting Center module has been registered!\");\n }", "public static void main(String[] args) {\n System.out.println(\"Begin Server...\");\n\n\n\n try {\n Remote r = Naming.lookup(\"UniversalRegistry\");\n IUniversalRegistry iur = (IUniversalRegistry)r;\n\n //on ajoute des voitures dans le registre universel\n Voiture v1 = new Voiture(1);\n iur.bind(\"v1\",v1);\n Voiture v2 = new Voiture(2);\n iur.bind(\"v2\",v2);\n\n\n //On ajoute des voitures electrique dans le registre universel\n VoitureElectrique ve = new VoitureElectrique(4,0);\n iur.bind(\"ve\",ve);\n VoitureElectrique ve1 = new VoitureElectrique(4,1);\n iur.bind(\"ve1\",ve1);\n\n VoitureElectrique ve3 = new VoitureElectrique(4,1);\n iur.bind(\"ve3\",ve3);\n\n ClassTest classTest = new ClassTest();\n iur.bind(\"cl\",classTest);\n\n\n }\n\n catch(Exception e){\n e.printStackTrace();\n }\n\n\n\n }", "public static void main(String argv[]) {\n\t\tSystem.setSecurityManager(new SecurityManager());\n\t\tif ((argv.length < 4) || (argv.length > 4)) {\n\t\t\tSystem.out.println(\"Usage: [this node][this node host][next node][next node host]\");\n\t\t\tSystem.out.println(\"Only \" + argv.length + \" parameters entered\");\n\t\t\tSystem.exit(1);\n\t\t}\n\n\t\t// get current node hostname, id and next node hostname, id and filename from command line args\n\t\tString current_node = argv[0];\n\t\tString current_host = argv[1];\n\t\tString next_node = argv[2];\n\t\tString next_host = argv[3];\n\n\t\t// get host name\n\t\ttry {\n\t\t\tInetAddress inet_address = InetAddress.getLocalHost();\n\t\t\tString member_hostname = inet_address.getHostName();\n\n\t\t\tSystem.out.println(\"Ring member hostname: \" + member_hostname);\n\t\t\tSystem.out.println(\"Ring member \" + member_hostname + \" binding to RMI Registry\");\n\n\t\t\t\t// instantiate ringMemberImpl class with appropriate parameters\n\t\t\t\tringMemberImpl server = new ringMemberImpl(current_node, current_host, next_node, next_host);\n\t\t\t\t// register object with RMI registry\n\t\t\t\tNaming.rebind(\"rmi://\" + current_host + \"/\" + current_node, server);\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"Ring element: \" + member_hostname + \"/\" + current_node + \" is bound with RMIregistry\");\n\t\t\t\t\n\t\t} catch (UnknownHostException e) {\n\t\t\tSystem.out.println(\"Cannot resolve host: \");\n\t\t\te.printStackTrace();\n\t\t} catch (RemoteException e) {\n\t\t\tSystem.out.println(\"RMI related exception thrown: \");\n\t\t\te.printStackTrace();\n\t\t} catch (MalformedURLException e) {\n\t\t\tSystem.out.println(\"Error in input URL: \");\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "static private Server createServer(String args[]) throws Exception {\n if (args.length < 1) {\n usage();\n }\n\n int port = PORT;\n int backlog = BACKLOG;\n boolean secure = SECURE;\n\n for (int i = 1; i < args.length; i++) {\n if (args[i].equals(\"-port\")) {\n checkArgs(i, args.length);\n port = Integer.valueOf(args[++i]);\n } else if (args[i].equals(\"-backlog\")) {\n checkArgs(i, args.length);\n backlog = Integer.valueOf(args[++i]);\n } else if (args[i].equals(\"-secure\")) {\n secure = true;\n } else {\n usage();\n }\n }\n\n Server server = null;\n\n if (args[0].equals(\"B1\")) {\n server = new B1(port, backlog, secure);\n } else if (args[0].equals(\"BN\")) {\n server = new BN(port, backlog, secure);\n } else if (args[0].equals(\"BP\")) {\n server = new BP(port, backlog, secure);\n } else if (args[0].equals(\"N1\")) {\n server = new N1(port, backlog, secure);\n } else if (args[0].equals(\"N2\")) {\n server = new N2(port, backlog, secure);\n }\n\n return server;\n }", "public static void main(String[] args) throws Exception {\n\n List<RequestHandle> requestHandleList = new ArrayList<RequestHandle>();\n requestHandleList.add(new LsfRequestServerHandle());\n\n final Server server = new Server(new DefaultServerRoute(),new ServerHandler(requestHandleList), GlobalManager.serverPort);\n Thread t= new Thread(new Runnable() {\n public void run() {\n //start server\n try {\n server.run();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n });\n t.start();\n\n ServerConfig serverBean = new ServerConfig();\n serverBean.setAlias(\"test\");\n serverBean.setInterfaceId(IService.class.getCanonicalName());\n serverBean.setImpl(new IServerImpl());\n server.registerServer(serverBean);\n\n\n }", "public static void main(String[] args) throws Exception { Take in a string for the filename, so that we don't have it hard coded.\n\t\t//\n\t\tfilename = args[0];\n\t\t\t\n\t\tSystem.out.println(\"starting remote service\");\n\t\t\n\t\tLocateRegistry.createRegistry(1099);\n\t\t\n\t\tNaming.bind(\"cypher-service\", new VigenereBreakerImpl());\n\t\t\n\t\tSystem.out.println(\"service started...\");\n\t}", "public static void main(String[] args) throws Exception {\n\n if(System.getSecurityManager() == null) {\n System.setSecurityManager(new SecurityManager());\n }\n\n if(args.length < 1) {\n System.exit(-1);\n }\n\n String domain = args[0];\n\n System.setProperty(\"java.rmi.server.hostname\", domain);\n\n SpaceImpl spaceImpl = getInstance();\n\n // Unexport to ensure no exceptions\n UnicastRemoteObject.unexportObject(spaceImpl, true);\n\n Space stub = (Space) UnicastRemoteObject.exportObject(spaceImpl, 0);\n\n Registry registry = LocateRegistry.createRegistry(Space.PORT);\n registry.rebind(Space.SERVICE_NAME, stub);\n\n System.out.println(\"SpaceImpl.main Registered and Ready.\");\n }", "public static void main (String args[]) throws Exception{\n\t\t// 1. Before starting the nodes, manually create the registry with the rmiregistry command.\n\t\t// 2. Connect to the registry. Call getRegistry method of the NodeImplementation class on port registryPort.\n\t\t// 3. Register in the registry, notify the others that you've joined the network.\n\t\t// 4. If there are enough nodes have joined then start the algorithm.\n\t\t\n\t\tString myURL = args[0];\n\t\tint registryPort = Integer.parseInt(args[1]);\n\t\tint nodePort = Integer.parseInt(args[2]);\n\t\tString upstreamURL = args[3];\n\t\tString downstreamURL = args[4];\n//\t\tSystem.out.println(registryPort + \"\" + nodePort);\n\t\t// Create and install a security manager\n\t\tif (System.getSecurityManager() == null){\n\t\t\tSystem.setSecurityManager(new RMISecurityManager());\n\t\t}\n\t\tGSImplementation node = new GSImplementation(registryPort, nodePort, upstreamURL, downstreamURL, expectedNetworkSize, myURL);\n\t\tnode.notifyOthers();\n\t\tSystem.out.println(\"Waiting for the incoming messages...\");\n\t}", "private void startServer() {\n\t\ttry {\n//\t\t\tserver = new Server();\n//\t\t\tserver.start();\n\t\t} catch (Exception e) {\n\t\t\t// TODO: add message in UI for user\n\t\t}\n\t}", "public static String startServer() throws QVCSException, IOException {\n System.out.println(Thread.currentThread().getName() + \"********************************************************* TestHelper.startServer\");\n String serverStartSyncString = null;\n if (serverProxyObject == null) {\n // So the server starts fresh.\n initDirectories();\n\n // So the server uses a project property file useful for the machine the tests are running on.\n initProjectProperties();\n\n // For unit testing, listen on the 2xxxx ports.\n serverStartSyncString = \"Sync server start\";\n String userDir = System.getProperty(USER_DIR);\n File userDirFile = new File(userDir);\n String canonicalUserDir = userDirFile.getCanonicalPath();\n final String args[] = {canonicalUserDir, \"29889\", \"29890\", \"29080\", serverStartSyncString};\n serverProxyObject = new Object();\n ServerResponseFactory.setShutdownInProgress(false);\n Runnable worker = new Runnable() {\n\n @Override\n public void run() {\n try {\n QVCSEnterpriseServer.main(args);\n } catch (Exception e) {\n LOGGER.log(Level.SEVERE, Utility.expandStackTraceToString(e));\n }\n }\n };\n synchronized (serverStartSyncString) {\n try {\n // Put all this on a separate worker thread.\n new Thread(worker).start();\n serverStartSyncString.wait();\n }\n catch (InterruptedException e) {\n LOGGER.log(Level.SEVERE, Utility.expandStackTraceToString(e));\n }\n }\n } else {\n if (QVCSEnterpriseServer.getServerIsRunningFlag()) {\n System.out.println(Thread.currentThread().getName() + \"********************************************************* TestHelper.startServer -- server already running.\");\n serverProxyObject = null;\n throw new QVCSRuntimeException(\"Starting server when server already running!\");\n }\n }\n LOGGER.log(Level.INFO, \"********************************************************* TestHelper returning from startServer\");\n return (serverStartSyncString);\n }", "public void startClient() throws RemoteException {\n\t\t\n\t\t// object to be passed to server\n\t\tString[] details = { name, dob, country, clientServiceName, hostName };\n\n\t\t// creating server stub \n\t\ttry {\n\t\t\tNaming.rebind(\"rmi://\" + hostName + \"/\" + clientServiceName, this);\n\t\t\tIServer = (IChatServer) Naming.lookup(\"rmi://\" + hostName + \"/\" + serviceName);\n\t\t} catch (ConnectException e) {\n\t\t\tJOptionPane.showMessageDialog(chatGUI.frame, \"The server seems to be unavailable\\nPlease try later\",\n\t\t\t\t\t\"Connection problem\", JOptionPane.ERROR_MESSAGE);\n\t\t\tconnectionProblem = true;\n\t\t\te.printStackTrace();\n\t\t} catch (NotBoundException | MalformedURLException me) {\n\t\t\tconnectionProblem = true;\n\t\t\tme.printStackTrace();\n\t\t}\n\t\t// if no problem sends details object to the server to be processed\n\t\tif (!connectionProblem) {\n\t\t\tIServer.initiateRegister(details);\n\n\t\t}\n\t\t// print this if it was able to reach this point\n\t\tSystem.out.println(\"Client Listen RMI Server is running...\\n\");\n\t}", "public static void main(String[] argv) throws Exception\n {\n // Create a temporary bundle cache directory and\n // make sure to clean it up on exit.\n final File cachedir = File.createTempFile(\"felix.example.servicebased\", null);\n cachedir.delete();\n Runtime.getRuntime().addShutdownHook(new Thread() {\n public void run()\n {\n deleteFileOrDir(cachedir);\n }\n });\n \n Map configMap = new StringMap(false);\n configMap.put(Constants.FRAMEWORK_SYSTEMPACKAGES,\n \"org.osgi.framework; version=1.3.0,\" +\n \"org.osgi.service.packageadmin; version=1.2.0,\" +\n \"org.osgi.service.startlevel; version=1.0.0,\" +\n \"org.osgi.service.url; version=1.0.0,\" +\n \"org.osgi.util.tracker; version=1.3.2,\" +\n \"org.apache.felix.example.servicebased.host.service; version=1.0.0,\" +\n \"javax.swing\");\n configMap.put(FelixConstants.AUTO_START_PROP + \".1\",\n \"file:../servicebased.circle/target/servicebased.circle-1.0.0.jar \" +\n \"file:../servicebased.square/target/servicebased.square-1.0.0.jar \" +\n \"file:../servicebased.triangle/target/servicebased.triangle-1.0.0.jar\");\n configMap.put(FelixConstants.LOG_LEVEL_PROP, \"1\");\n configMap.put(BundleCache.CACHE_PROFILE_DIR_PROP, cachedir.getAbsolutePath());\n \n List list = new ArrayList();\n list.add(new Activator());\n \n try\n {\n // Now create an instance of the framework.\n Felix felix = new Felix(configMap, list);\n felix.start();\n }\n catch (Exception ex)\n {\n System.err.println(\"Could not create framework: \" + ex);\n ex.printStackTrace();\n System.exit(-1);\n }\n }", "private void start() throws IOException {\n\n\n int port = 9090;\n server = ServerBuilder.forPort(port)\n .addService(new CounterServiceImpl())\n .build()\n .start();\n // logger.info(\"Server started, listening on \" + port);\n\n /* Add hook when stop application*/\n Runtime.getRuntime().addShutdownHook(new Thread() {\n @Override\n public void run() {\n // Use stderr here since the logger may have been reset by its JVM shutdown hook.\n // IRedis.USER_SYNC_COMMAND.\n System.err.println(\"*** shutting down gRPC server since JVM is shutting down\");\n Count.this.stop();\n System.err.println(\"*** server shut down\");\n\n }\n });\n }", "private static void createServer(final IChordNode node, int localPort)\n throws Exception {\n LocateRegistry.createRegistry(localPort);\n Naming.rebind(\n String.format(\"//localhost:%d/%s\", localPort, CHORDNODE),\n node\n );\n System.out.printf(\n \"New server started on localhost:%d with ID %d%n\",\n localPort, node.getID()\n );\n\n // Make nodes leave cleanly if the JVM is terminated\n Runtime.getRuntime().addShutdownHook( new Thread() {\n public void run() {\n try {\n node.leave();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n } );\n\n\n // Continuously print network information, keeping server alive\n while (true) {\n System.out.printf(\"### %4d ####%n\", node.getID());\n System.out.println( node.ringToString() );\n System.out.println();\n Thread.sleep(3000);\n }\n }", "public static void main(String[] args) throws Exception{\n\t\tDicService dicService = new DicServiceImpl();\n\t\tdicService.loadDic();\n\t\t// Start on port 1099\n\t\tLocateRegistry.createRegistry(1099);\n\t\tNaming.rebind(\"dicService\", dicService);\n\t\t//Print server is ready\n\t\tSystem.out.println(\"Server ready.\");\n\t}", "public static void main(String[] args) throws Exception{\n if(args.length != 1){\n\n }\n\n Registry registry = new Registry(Integer.parseInt(args[0]));\n registry.init();\n }", "@Override\r\n\t\t\tpublic void run()\r\n\t\t\t{\n\t\t\t\tString path = \"D:\\\\TUM\\\\3rd Semester\\\\3. Lab Course - Cloud DB [IN0012, IN2106, IN4163]\\\\LatestVersion\\\\gr6\\\\path\";\r\n\t\t\t\tKVServer newServer = new KVServer(\"newNode\", 50001, 30000, 3, \"FIFO\", path, 0,1,1);\r\n\t\t\t}", "public static void main(String[] args) throws IOException, InterruptedException {\n\t\tSystem.out.printf(\"Received %d arguments%n\", args.length);\n\t\tfor (int i = 0; i < args.length; i++) {\n\t\t\tSystem.out.printf(\"arg[%d] = %s%n\", i, args[i]);\n\t\t}\n\n\t\t// check arguments\n\t\tif (args.length < 1) {\n\t\t\tSystem.err.println(\"Argument(s) missing!\");\n\t\t\tSystem.err.printf(\"Usage: java %s port%n\", PasServerApp.class.getName());\n\t\t\treturn;\n\t\t}\n\n // parse port\n int port = Integer.parseInt(args[0]);\n\n\n Database database = new Database();\n BindableService service1 = new PasServiceImpl(database);\n\n // bind this server to a port and to any grpc services you want\n Server server = ServerBuilder\n .forPort(port)\n .addService(service1)\n .build();\n\n // start server\n server.start();\n System.out.println(\"Server started on port \" + port);\n server.awaitTermination();\n }", "public void start() {\n _serverRegisterProcessor = new ServerRegisterProcessor();\n _serverRegisterProcessor.start();\n }", "private void register() throws IOException {\n while( true ) {\n try {\n dnRegistration = namenode.register( dnRegistration );\n break;\n } catch( SocketTimeoutException e ) { // namenode is busy\n LOG.info(\"Problem connecting to server: \" + getNameNodeAddr());\n try {\n Thread.sleep(1000);\n } catch (InterruptedException ie) {}\n }\n }\n if( storage.getStorageID().equals(\"\") ) {\n storage.setStorageID( dnRegistration.getStorageID());\n storage.writeAll();\n }\n }", "public static RoMServer createServer() throws IOException, Exception {\r\n \t\t// Ip and Port out of config\r\n \t\tIConfig cfg = ConfigurationFactory.getConfig();\r\n \r\n \t\treturn RoMServer.createServer(cfg.getIp(), cfg.getPort());\r\n \t}", "public static void main(String[] args) {\n\t\tSystem.setProperty(\"spring.config.name\", \"registration-server\");\n\t\t//SpringApplication.run(RegistrationServer.class, args);\n\t\t\n\t\t new SpringApplicationBuilder(RegistrationServer.class)\n .properties(\"spring.config.name:registration-server\").build().run(args);\n\t}", "public static void main(String... args) {\n if (args.length == 0) {\n System.out.println(\"Please enter a command.\");\n System.exit(0);\n }\n switch (args[0].toLowerCase()) {\n case \"init\":\n if (args.length == 1) {\n File g = new File(\".gitlet\");\n if (g.exists()) {\n System.out.println(\"A Gitlet version-control system already \" +\n \"exists in the current directory.\");\n System.exit(0);\n }\n Registry gitlet = new Registry();\n gitlet.init();\n File allData = new File(\".gitlet/AllData\");\n Utils.writeObject(allData, gitlet);\n } else {\n System.out.println(\"Incorrect operands.\");\n }\n System.exit(0);\n break;\n case \"log\":\n if (args.length == 1) {\n File g = new File(\".gitlet\");\n if (!g.exists()) {\n System.out.println(\"Not in an initialized Gitlet directory.\");\n System.exit(0);\n }\n File allData = new File(\".gitlet/AllData\");\n Registry gitlet = Utils.readObject(allData, Registry.class);\n gitlet.log();\n Utils.writeObject(allData, gitlet);\n } else {\n System.out.println(\"Incorrect operands.\");\n }\n System.exit(0);\n break;\n case \"global-log\":\n if (args.length == 1) {\n File g = new File(\".gitlet\");\n if (!g.exists()) {\n System.out.println(\"Not in an initialized Gitlet directory.\");\n System.exit(0);\n }\n File allData = new File(\".gitlet/AllData\");\n Registry gitlet = Utils.readObject(allData, Registry.class);\n gitlet.gLog();\n Utils.writeObject(allData, gitlet);\n } else {\n System.out.println(\"Incorrect operands.\");\n }\n System.exit(0);\n break;\n case \"status\":\n if (args.length == 1) {\n File g = new File(\".gitlet\");\n if (!g.exists()) {\n System.out.println(\"Not in an initialized Gitlet directory.\");\n System.exit(0);\n }\n File allData = new File(\".gitlet/AllData\");\n Registry gitlet = Utils.readObject(allData, Registry.class);\n gitlet.status();\n Utils.writeObject(allData, gitlet);\n } else {\n System.out.println(\"Incorrect operands.\");\n }\n System.exit(0);\n break;\n case \"add\":\n if (args.length == 2) {\n File g = new File(\".gitlet\");\n if (!g.exists()) {\n System.out.println(\"Not in an initialized Gitlet directory.\");\n System.exit(0);\n }\n File allData = new File(\".gitlet/AllData\");\n Registry gitlet = Utils.readObject(allData, Registry.class);\n gitlet.add(args[1]);\n Utils.writeObject(allData, gitlet);\n } else {\n System.out.println(\"Incorrect operands.\");\n }\n System.exit(0);\n break;\n case \"commit\":\n if (args.length <= 2) {\n File g = new File(\".gitlet\");\n if (!g.exists()) {\n System.out.println(\"Not in an initialized Gitlet directory.\");\n System.exit(0);\n }\n try {\n File allData = new File(\".gitlet/AllData\");\n Registry gitlet = Utils.readObject(allData, Registry.class);\n gitlet.commit(args[1]);\n Utils.writeObject(allData, gitlet);\n } catch (ArrayIndexOutOfBoundsException e) {\n System.out.println(\"Please enter a commit message.\");\n }\n } else {\n System.out.println(\"Incorrect operands.\");\n }\n System.exit(0);\n break;\n case \"rm\":\n if (args.length == 2) {\n File g = new File(\".gitlet\");\n if (!g.exists()) {\n System.out.println(\"Not in an initialized Gitlet directory.\");\n System.exit(0);\n }\n File allData = new File(\".gitlet/AllData\");\n Registry gitlet = Utils.readObject(allData, Registry.class);\n gitlet.remove(args[1]);\n Utils.writeObject(allData, gitlet);\n } else {\n System.out.println(\"Incorrect operands.\");\n }\n System.exit(0);\n break;\n case \"find\":\n if (args.length == 2) {\n File g = new File(\".gitlet\");\n if (!g.exists()) {\n System.out.println(\"Not in an initialized Gitlet directory.\");\n System.exit(0);\n }\n File allData = new File(\".gitlet/AllData\");\n Registry gitlet = Utils.readObject(allData, Registry.class);\n gitlet.find(args[1]);\n Utils.writeObject(allData, gitlet);\n } else {\n System.out.println(\"Incorrect operands.\");\n }\n System.exit(0);\n break;\n case \"branch\":\n if (args.length == 2) {\n File g = new File(\".gitlet\");\n if (!g.exists()) {\n System.out.println(\"Not in an initialized Gitlet directory.\");\n System.exit(0);\n }\n File allData = new File(\".gitlet/AllData\");\n Registry gitlet = Utils.readObject(allData, Registry.class);\n gitlet.branch(args[1]);\n Utils.writeObject(allData, gitlet);\n } else {\n System.out.println(\"Incorrect operands.\");\n }\n System.exit(0);\n break;\n case \"rm-branch\":\n if (args.length == 2) {\n File g = new File(\".gitlet\");\n if (!g.exists()) {\n System.out.println(\"Not in an initialized Gitlet directory.\");\n System.exit(0);\n }\n File allData = new File(\".gitlet/AllData\");\n Registry gitlet = Utils.readObject(allData, Registry.class);\n gitlet.removeBranch(args[1]);\n Utils.writeObject(allData, gitlet);\n } else {\n System.out.println(\"Incorrect operands.\");\n }\n System.exit(0);\n break;\n case \"reset\":\n if (args.length == 2) {\n File g = new File(\".gitlet\");\n if (!g.exists()) {\n System.out.println(\"Not in an initialized Gitlet directory.\");\n System.exit(0);\n }\n File allData = new File(\".gitlet/AllData\");\n Registry gitlet = Utils.readObject(allData, Registry.class);\n gitlet.reset(args[1]);\n Utils.writeObject(allData, gitlet);\n } else {\n System.out.println(\"Incorrect operands.\");\n }\n System.exit(0);\n break;\n case \"merge\":\n if (args.length == 2) {\n File g = new File(\".gitlet\");\n if (!g.exists()) {\n System.out.println(\"Not in an initialized Gitlet directory.\");\n System.exit(0);\n }\n File allData = new File(\".gitlet/AllData\");\n Registry gitlet = Utils.readObject(allData, Registry.class);\n gitlet.merge(args[1]);\n Utils.writeObject(allData, gitlet);\n } else {\n System.out.println(\"Incorrect operands.\");\n }\n System.exit(0);\n break;\n case \"checkout\":\n if (args.length == 3) {\n if (args[1].equals(\"--\")) {\n File g = new File(\".gitlet\");\n if (!g.exists()) {\n System.out.println(\"Not in an initialized Gitlet directory.\");\n System.exit(0);\n }\n File allData = new File(\".gitlet/AllData\");\n Registry gitlet = Utils.readObject(allData, Registry.class);\n gitlet.fileCheckout(args[2]);\n Utils.writeObject(allData, gitlet);\n } else {\n System.out.println(\"Incorrect operands.\");\n }\n } else if (args.length == 4) {\n if (args[2].equals(\"--\")) {\n File g = new File(\".gitlet\");\n if (!g.exists()) {\n System.out.println(\"Not in an initialized Gitlet directory.\");\n System.exit(0);\n }\n File allData = new File(\".gitlet/AllData\");\n Registry gitlet = Utils.readObject(allData, Registry.class);\n gitlet.checkout(args[1], args[3]);\n Utils.writeObject(allData, gitlet);\n } else {\n System.out.println(\"Incorrect operands.\");\n }\n } else if (args.length == 2) {\n File g = new File(\".gitlet\");\n if (!g.exists()) {\n System.out.println(\"Not in an initialized Gitlet directory.\");\n System.exit(0);\n }\n File allData = new File(\".gitlet/AllData\");\n Registry gitlet = Utils.readObject(allData, Registry.class);\n gitlet.branchCheckout(args[1]);\n Utils.writeObject(allData, gitlet);\n } else {\n System.out.println(\"Incorrect operands.\");\n }\n System.exit(0);\n break;\n default:\n System.out.println(\"No command with that name exists.\");\n System.exit(0);\n }\n }", "public static void main(String args[]) throws IllegalArgumentException\n\t{\n\t\tString map = null;\n\t\tInteger port = null;\n\t\tboolean runningLocal = false;\n\t\tfor (String arg : args)\n\t\t{\n\t\t\tString[] splitArg = arg.split(\"=\");\n\t\t\tif (splitArg[0].equals(\"--port\"))\n\t\t\t{\n\t\t\t\tport = Integer.parseInt(splitArg[1]);\n\t\t\t} else if (splitArg[0].equals(\"--map\"))\n\t\t\t{\n\t\t\t\tmap = splitArg[1];\n\t\t\t} else if (splitArg[0].equals(\"--localhost\"))\n\t\t\t{\n\t\t\t\trunningLocal = true;\n\t\t\t} else if (splitArg[0].equals(\"--production\"))\n\t\t\t{\n\t\t\t\tOptionsManager.getSingleton().setUsingTestDB(false);\n\t\t\t}\n\t\t}\n\t\tif (map == null)\n\t\t{\n\t\t\tthrow new IllegalArgumentException(\"Map name is required to run the server. Use the --map=STRING option.\");\n\t\t} else if (port == null && !OptionsManager.getSingleton().isTestMode())\n\t\t{\n\t\t\tthrow new IllegalArgumentException(\"Port is required to run the server. Use the --port=INTEGER option.\");\n\t\t}\n\t\tServer S = new Server(map, port, runningLocal);\n\t\tS.run();\n\t}", "public void startServer(PWModelDetails pwModelDetails) {\n try {\n List<ServerSap> serverSaps = null;\n try {\n serverSaps = ServerSap.getSapsFromSclFile(pwModelDetails.getSclFileName());\n } catch (SclParseException e) {\n logger.info(\"Error parsing SCL/ICD file: \" + e.getMessage());\n e.printStackTrace();\n return;\n }\n serverSap = serverSaps.get(0);\n serverSap.setPort(pwModelDetails.getPortNumber());\n\n InetAddress address = null;\n try {\n ipAddress = pwModelDetails.getIpAddress();\n address = InetAddress.getByName(ipAddress);\n } catch (UnknownHostException e) {\n logger.info(\"Unknown host: \" + ipAddress);\n logger.info(\"Proxy will run with the defualt IP as define in the SCL file.\");\n logger.info(\"Unknown host \" + ipAddress);\n return;\n }\n if (address != null) {\n serverSap.setBindAddress(address);\n }\n Runtime.getRuntime().addShutdownHook(new Thread() {\n @Override\n public void run() {\n if (serverSap != null) {\n serverSap.stop();\n }\n logger.info(\"Server was stopped\");\n }\n });\n ServerModel serverModel = serverSap.getModelCopy();\n// create a SampleServer instance that can be passed as a callback object to startListening() and\n// SmartPowerIEDServer sampleServer = new SmartPowerIEDServer();\n SoftGridIEDServer sampleServer = this;\n// Open MUC initialization\n List<BasicDataAttribute> branchCircuitBreakerVals = new ArrayList<BasicDataAttribute>(3);\n for (String reference : iedRefFcHashMap.keySet()) {\n BasicDataAttribute field = (BasicDataAttribute) serverModel.findModelNode(reference, iedRefFcHashMap.get(reference));\n if (field == null) {\n logger.info(\">>>>>> Error in obtaining SCL reference object = \" + reference);\n }\n branchCircuitBreakerVals.add(field);\n }\n// Power World Device Initialization\n ParameterGenerator parameterGenerator = new ParameterGenerator();\n parameterGenerator.setSclKeyToPWKeyMap(pwModelDetails.getSclToPWMapping());\n parameterGenerator.setKeyParameters(pwModelDetails.getKeyArray());\n parameterGenerator.setValueParameters(pwModelDetails.getDataFieldArray());\n parameterGenerator.setPersistedValues(pwModelDetails.getValueArray());\n parameterGenerator.setDeviceObjectName(pwModelDetails.getDeviceName());\n if (controlAPI == null) {\n controlAPI = IedControlerFactory.getPWComBridgeIterface();\n synchronized (controlAPI) {\n if (!controlAPI.isCaseOpened()) {\n controlAPI.openCase();\n }\n }\n }\n parameterGenerator.setControlAPI(controlAPI);\n// load power world data\n serverSap.startListening(sampleServer, parameterGenerator);\n try {\n serverSap.setValues(branchCircuitBreakerVals);\n } catch (Exception e) {\n logger.info(\"pwModelDetails.getModelNodeReference() = \" + pwModelDetails.getModelNodeReference());\n e.printStackTrace();\n }\n\n String[][] paramPack = parameterGenerator.getParamPack();\n type = IEDUtils.getIEDType(parameterGenerator.getDeviceObjectName());\n id = ++IED_COUNT;\n StringBuffer sb = new StringBuffer();\n String logDataSeperator = \":\";\n boolean loged = false;\n logEvent(\"IED : \" + type.name() + \" : \" + id + \" is Started...!\");\n String[] elements = null;\n while (true) {\n synchronized (this) {\n try {\n Thread.sleep(PW_INTERROGATION_INTERVAL);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n\n elements = parameterGenerator.loadDataValues(paramPack);\n if (elements == null) {\n if(type.name().equals(\"BUS\"))\n {\n System.out.println(\"BUS\");\n }\n continue;\n }\n sb.append(\"Type:\").append(type.name());\n for (int i = 0; i < branchCircuitBreakerVals.size(); i++) {\n BasicDataAttribute modelNodes = branchCircuitBreakerVals.get(i);\n if (modelNodes != null && elements.length > i) {\n String pwKeyName = null;\n for (String sclKey : parameterGenerator.getSclKeyToPWKeyMap().keySet()) {\n if (modelNodes.getReference().toString().endsWith(sclKey)) {\n pwKeyName = sclKey;\n }\n }\n if (pwKeyName == null) {\n continue;\n }\n for (int j = 0; j < paramPack[0].length; j++) {\n if (!loged) {\n sb.append(logDataSeperator).append(paramPack[0][j]).append(logDataSeperator).append(elements[j]);\n }\n if (parameterGenerator.getSclKeyToPWKeyMap().get(pwKeyName).equals(paramPack[0][j])) {\n if (modelNodes instanceof BdaDoubleBitPos) {\n byte[] status = new byte[1];\n if (elements[j].equalsIgnoreCase(\"open\")) {\n status[0] = 0;\n } else {\n status[0] = 1;\n }\n ((BdaDoubleBitPos) modelNodes).setValue(status);\n } else if (modelNodes instanceof BdaVisibleString) {\n ((BdaVisibleString) modelNodes).setValue(elements[j]);\n } else if (modelNodes instanceof BdaFloat32) {\n ((BdaFloat32) modelNodes).setFloat(Float.parseFloat(elements[j]));\n }\n }\n }\n loged = true;\n }\n }\n serverStarted = true;\n// synchronized (logger) {\n// if (ConfigUtil.MANUAL_EXPERIMENT_MODE) {\n // if this string is not printed in the log file,\n logger.info(sb.toString());\n// }\n// }\n sb = new StringBuffer(\"\");\n loged = false;\n serverSap.setValues(branchCircuitBreakerVals);\n if (serverStoped) {\n serverStarted = false;\n break;\n }\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public void startServer() {\n server.start();\n }", "public static void main(String[] args) {\n\n try {\n MyRemote service = new MyRemoteImp1();\n Naming.rebind(\"Remote Hello\", service);\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n }", "private static void startup( String path )\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tStandardizerServerSettings.initializeSettings();\r\n\r\n\t\t\tStandardizerServerConfig.read( path );\r\n\r\n\t\t\tStandardizerServerLogger.initialize();\r\n\r\n\t\t\tStandardizerServerSessionImpl.initialize();\r\n\r\n\t\t\tStandardizerServerBootstrap bootstrap =\r\n\t\t\t\tnew StandardizerServerBootstrapImpl();\r\n\r\n\t\t\tRegistry registry =\r\n\t\t\t\tLocateRegistry.createRegistry\r\n\t\t\t\t(\r\n\t\t\t\t\tStandardizerServerConfig.getRmiRegistryPort()\r\n\t\t\t\t);\r\n\r\n\t\t\tregistry.rebind( \"SpellingStandardizer\" , bootstrap );\r\n\r\n\t\t\tSystem.out.println\r\n\t\t\t(\r\n\t\t\t\tStandardizerServerSettings.getString\r\n\t\t\t\t(\r\n\t\t\t\t\t\"Standardizerserverstarted\"\r\n\t\t\t\t)\r\n\t\t\t);\r\n\t\t}\r\n\t\tcatch ( Exception e )\r\n\t\t{\r\n\t\t\tSystem.out.println\r\n\t\t\t(\r\n\t\t\t\tStandardizerServerSettings.getString\r\n\t\t\t\t(\r\n\t\t\t\t\t\"Standardizerserverstartupfailure\"\r\n\t\t\t\t)\r\n\t\t\t);\r\n\r\n\t\t\te.printStackTrace();\r\n\r\n\t\t\tSystem.exit( 1 );\r\n\t\t}\r\n\t}", "public static void main(String[] args) throws Exception {\n CenterServerImp mtlServer = new CenterServerImp(Location.MTL);\n CenterServerImp lvlServer = new CenterServerImp(Location.LVL);\n CenterServerImp ddoServer = new CenterServerImp(Location.DDO);\n Registry registry = LocateRegistry.createRegistry(Constants.REGISTRY_PORT);\n registry.bind(\"MontrealServer\", mtlServer);\n registry.bind(\"LavalServer\", lvlServer);\n registry.bind(\"DDOServer\", ddoServer);\n System.out.println(\"#================= Server is up and running =================#\");\n }", "public static void main(String[] args) {\n Server server = new Server(1234);\n server.listen();\n \n // YOUR CODE HERE\n // It is not required (or recommended) to implement the server in\n // this runner class.\n }", "public void setServer (\r\n String strServer) throws java.io.IOException, com.linar.jintegra.AutomationException;", "public static void main(String[] args) {\n Registry registry = null;\n DepAirportInt depAirportInt = null;\n AirplaneInt airplaneInt = null;\n\n try {\n registry = LocateRegistry.getRegistry(\n SimulatorParam.RegistryName,\n SimulatorParam.RegistryPort);\n } catch (RemoteException e) {\n System.out.println(\"RMI registry creation exception: \" +\n e.getMessage());\n e.printStackTrace();\n System.exit(1);\n }\n System.out.println(\"RMI registry was created!\");\n\n try {\n depAirportInt = (DepAirportInt) registry.lookup(\"DepAirport\");\n airplaneInt = (AirplaneInt) registry.lookup(\"Airplane\");\n } catch (RemoteException e) {\n System.out.println(\"Shared Region look up exception: \" +\n e.getMessage());\n e.printStackTrace();\n System.exit(1);\n } catch (NotBoundException e) {\n System.out.println(\"Shared Region not bound exception: \" +\n e.getMessage());\n e.printStackTrace();\n System.exit(1);\n }\n\n // entities initialization\n Passenger[] passengers = new Passenger[SimulatorParam.TOTAL];\n\n\n for (int i = 0; i < SimulatorParam.TOTAL; i++) {\n passengers[i]=new Passenger(depAirportInt, airplaneInt, i);\n }\n\n // start of the simulation\n for (int i = 0; i < SimulatorParam.TOTAL; i++)\n passengers[i].start();\n\n // end of the simulation\n for (int i = 0; i < SimulatorParam.TOTAL; i++) {\n try {\n passengers[i].join();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n\n // end of the simulation\n\n }", "@Override\n\tpublic void addServer(InetSocketAddress arg0, int arg1) throws IOException {\n\n\t}", "public static void main(String[] args) {\n\n Server server = new Server();\n \n\n }", "public static void main(String[] args) throws RemoteException{\n \r\n Registry registry= LocateRegistry.createRegistry(5099); //registrar a nuestro cliente \r\n registry.rebind(\"hello\", new ObjectRemote());\r\n }", "public void startJMXService() throws ServerException {\n\n //File path for the jmx config file.\n String filePath = CarbonUtils.getEtcCarbonConfigDirPath() + File.separator + \"jmx.xml\";\n boolean startJMXServer = false;\n\n File jmxConfigFile = new File(filePath);\n\n //Check whether jmx.xml file exists\n if (jmxConfigFile.exists()) {\n //Read jmx.xml file.\n parseJMXConfigXML(filePath);\n startJMXServer = jmxProperties.isStartServer();\n if (!startJMXServer) {\n return;\n }\n }\n\n int rmiRegistryPort = jmxProperties.getRmiRegistryPort();\n if (rmiRegistryPort == -1) {\n throw new RuntimeException(\"RMIRegistry port has not been properly defined in the \" +\n \"jmx.xml or carbon.xml files\");\n }\n MBeanServer mbs = ManagementFactory.getMBeanServer();\n String jmxURL;\n try {\n try {\n rmiRegistry = LocateRegistry.createRegistry(rmiRegistryPort);\n } catch (Throwable ignored) {\n log.error(\"Could not create the RMI local registry\", ignored);\n }\n\n String hostName;\n //If 'startRMIServer' element in jmx.xml file set to true and 'HostName' element\n // value that file is not null.\n if (startJMXServer && jmxProperties.getHostName() != null) {\n hostName = jmxProperties.getHostName();//Set hostname value from jmx.xml file.\n } else { //Else\n hostName = NetworkUtils.getLocalHostname();\n }\n // Create an RMI connector and start it\n int rmiServerPort = jmxProperties.getRmiServerPort();\n if (rmiServerPort != -1) {\n jmxURL = \"service:jmx:rmi://\" + hostName + \":\" +\n rmiServerPort + \"/jndi/rmi://\" + hostName + \":\" +\n rmiRegistryPort + \"/jmxrmi\";\n\n } else {\n jmxURL = \"service:jmx:rmi:///jndi/rmi://\" +\n hostName + \":\" + rmiRegistryPort + \"/jmxrmi\";\n }\n JMXServiceURL url = new JMXServiceURL(jmxURL);\n\n // Security credentials are included in the env Map\n HashMap<String, CarbonJMXAuthenticator> env =\n new HashMap<String, CarbonJMXAuthenticator>();\n env.put(JMXConnectorServer.AUTHENTICATOR, new CarbonJMXAuthenticator());\n jmxConnectorServer =\n JMXConnectorServerFactory.newJMXConnectorServer(url, env, mbs);\n jmxConnectorServer.start();\n log.info(\"JMX Service URL : \" + jmxURL);\n } catch (Exception e) {\n String msg = \"Could not initialize RMI server\";\n log.error(msg, e);\n }\n }", "public static void main(String[] args) {\n Servidor s = new Servidor();\n try{\n VoteSystem channel = (VoteSystem) UnicastRemoteObject.exportObject(s, 0);\n Registry register = LocateRegistry.createRegistry(1099);\n register.bind(\"VoteSystem\", channel);\n ServerGUI sgui= new ServerGUI();\n ServerThread st = new ServerThread(sgui);\n st.setDaemon(true);\n st.start();\n sgui.setVisible(true);\n }\n catch(Exception e){\n e.printStackTrace();\n }\n }", "@Override\n @POST\n @Path(\"/servers\")\n @Consumes(\"application/json\")\n public Response registerServer(String requestBody) throws Exception {\n if (log.isTraceEnabled()) {\n log.trace(\"registerServer() started. Data: \" + requestBody);\n }\n\n Server server;\n try {\n JSONObject json = new JSONObject(requestBody);\n String serverURI = json.getString(\"serverURI\");\n Pattern uriPattern = Pattern.compile(\n String.format(\"^/providers/%d/servers/(\\\\d+)$\", provider.getProviderId()));\n Matcher m = uriPattern.matcher(serverURI);\n if (!m.find()) {\n throw new Exception(\"Invalid server URI: \" + serverURI);\n }\n int serverId = Integer.parseInt(m.group(1));\n server = ServerDAO.findById(provider, serverId);\n if (server == null) {\n throw new Exception(String.format(\"Server '%s' not found.\", serverURI));\n }\n }\n catch (Exception e) {\n throw new WebApplicationException(\n Response.status(Response.Status.BAD_REQUEST).entity(e.getMessage()).build());\n }\n\n EntityManager em = PersistenceUtils.getInstance().getEntityManager();\n\n try {\n if (!cluster.getServerList().contains(server)) {\n em.getTransaction().begin();\n server.getClusterList().add(cluster);\n cluster.getServerList().add(server);\n server = em.merge(server);\n cluster = em.merge(cluster);\n em.getTransaction().commit();\n }\n // no problem if server is already registered\n\n URI resourceUri = new URI(String.format(\"/%d\", server.getServerId()));\n log.trace(\"registerServer() finished successfully.\");\n return Response.created(resourceUri).build();\n }\n finally {\n PersistenceUtils.getInstance().closeEntityManager(em);\n }\n }", "public static void main(String[] args) throws NumberFormatException,\n IOException\n {\n int port = 0;\n String address = \"127.0.0.1\";\n String path = \"\";\n\n if (args.length % 2 == 0) {\n for (int i = 0; i < args.length; i++) {\n if (args[i].equals(\"-a\")) {\n address = args[i + 1];\n }\n if (args[i].equals(\"-d\")) {\n path = args[i + 1];\n }\n if (args[i].equals(\"-p\")) {\n port = Integer.parseInt(args[i + 1]);\n }\n }\n }\n\n if (port != 0 && !path.equals(\"\")) {\n new FileServer().launch(port, path, address);\n } else {\n System.out\n .println(\"> arguments must be : -p [port] -d [path of the file system] -a (optionnal) [address]\");\n }\n }", "public static void main(String[] args) {\n\t\ttry {\n\t\t\t\n\t\t\tfileStoreHandler = new FileStoreHandler();\n\t\t\tfilestoreProcessor = new FileStore.Processor(fileStoreHandler);\n\t\t\t\n\t\t\tport = Integer.valueOf(args[0]);\n\n\t\t\tFile newDir = new File(\"FileStore\");\n\t\t\tdeleteDir(newDir);\n\t\t\tnewDir.mkdir();\n\n\t\t\tRunnable runnableSimple = new Runnable() {\n\t\t\t\tpublic void run() {\n\t\t\t\t\tsimple(filestoreProcessor);\n\t\t\t\t}\n\t\t\t};\n\n\t\t\tnew Thread(runnableSimple).start();\n\n\t\t} catch (Exception x) {\n\t\t\twrite(new SystemException().setMessage(x.toString()));\n\t\t}\n\n\t}", "public void addServer(Identity identity, ServerInvokerMetadata invokers[]);", "void registerMaster(ZeroconfRosMasterInfo masterInfo);", "protected RMIclientHandler(String s, Registry r) throws RemoteException {\r\n\t\tFile serverStorage = new File (s);\r\n\t\tserverStorage.mkdir();\r\n\t\tthis.registry=r;\r\n\t}", "public static void main(String[] args) throws IOException {\n\n RPC.Builder builder = new RPC.Builder(new Configuration());\n builder.setBindAddress(\"localhost\")\n .setPort(8888)\n .setProtocol(UserLoginServices.class)\n .setInstance(new UserLoginImpl());\n\n RPC.Server build = builder.build();\n build.start();\n\n }", "@Override\n\tpublic void addServer(InetSocketAddress arg0) throws IOException {\n\n\t}", "public SyncServer() throws RemoteException\r\n\t{\r\n\t\ttry {\r\n\t\t\tinit(SYNC);\r\n\t\t} catch (Exception e) {\r\n\t\t\tDebug.ErrorMessage(\"SyncServer initialization error\",\"Exception\" + e);\r\n\t\t}\r\n\t}", "private void initRMI() throws RemoteException {\n log.info(\"Registering with RMI\");\n Registry registry = LocateRegistry.getRegistry();\n registry.rebind(address, this);\n }", "public static HttpServer startServer() {\n // create a resource config that scans for JAX-RS resources and providers\n // in com.example.rest package\n final ResourceConfig rc = new ResourceConfig().packages(\"com.assignment.backend\");\n rc.register(org.glassfish.jersey.moxy.json.MoxyJsonFeature.class);\n rc.register(getAbstractBinder());\n rc.property(ServerProperties.BV_SEND_ERROR_IN_RESPONSE, true);\n rc.property(ServerProperties.BV_DISABLE_VALIDATE_ON_EXECUTABLE_OVERRIDE_CHECK, true);\n\n // create and start a new instance of grizzly http server\n // exposing the Jersey application at BASE_URI\n return GrizzlyHttpServerFactory.createHttpServer(URI.create(BASE_URI), rc);\n }", "public void initRMI() {\n\t\ttry {\n\t\t\t//creo RMI handler\n\t\t\tGossip_RMI_handler handler = new Gossip_RMI_handler(data);\n\t\t\t//esporto l'interfaccia\n\t\t\tGossip_RMI_server_interface stub = (Gossip_RMI_server_interface)UnicastRemoteObject.exportObject(handler, 0);\n\t\t\tLocateRegistry.createRegistry(Gossip_config.RMI_PORT);\n\t\t\tRegistry r = LocateRegistry.getRegistry(Gossip_config.RMI_PORT);\n\t\t\tr.rebind(Gossip_config.RMI_NAME, stub);\n\t\t\t\n\t\t} catch (RemoteException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\tnew Server();\n\t}", "public static void main(String args[]) {\n\t\tif (args.length == 1)\n\t\t\tport = Integer.parseInt(args[0]);\n\t\tnew calculatorserver();\n\t}", "public static void main(String[] args) throws MalformedObjectNameException, InstanceAlreadyExistsException,\n\t\t\tMBeanRegistrationException, NotCompliantMBeanException, InterruptedException {\n\t\tMBeanServer server = ManagementFactory.getPlatformMBeanServer();\n\t\tObjectName myJmxName = new ObjectName(\"jmxBean:name=myJmx\");\n\t\tserver.registerMBean(new MyJmx(), myJmxName);\n\t\tThread.sleep(60 * 60 * 1000);\n\t}", "public static void main(String[] args) throws IOException {\t\t\t\n\t\t\n\t\tSystem.out.println(\"Starting server...\");\n\t\tGameServer gameServer = new GameServer(4321);\n\t\tgameServer.serve();\n\n\t}", "public RegistryImpl(int port) throws RemoteException\n {\n Skeleton skeleton = new Skeleton(this, \"127.0.0.1\", port, 0);\n skeleton.start();\n }", "public static void main(String[] args) throws BadServerResponse, XenAPIException, XmlRpcException {\n\t\tString masterName = \"vmaster\";\r\n\t\tString vmNamePrefix = \"vslave\";\r\n\t\tint clusterSize = 2;\r\n\t/*\tVMResource vslave1 = new VMResource(\"vslave1\");\r\n\t\tVMResource vslave2 = new VMResource(\"vslave2\");*/\r\n\t\t//vslave1.setVMMemory(1024*MEMORY_UNIT);\r\n/*\t\tvslave1.changeVMCpu(2);\r\n\t\tvslave2.changeVMCpu(2);*/\r\n\t\tif(startLHadoop(masterName, vmNamePrefix, clusterSize))\r\n\t\t\tSystem.out.println(\"complete!\");\r\n\t\telse\r\n\t\t\tSystem.out.println(\"not started!\");\r\n\t}", "public static void main(String[] args) throws IOException {\n log.info(\"The ticket to ride server is running.\");\n\n try (ServerSocket listener = new ServerSocket(9001)) {\n while (true) {\n Socket socket = listener.accept();\n\n MiniServer h = new MiniServer(socket);\n\n new Thread(h::go).start();\n }\n } catch (BindException be) {\n log.error(\"Cannot start server\", be);\n JOptionPane.showMessageDialog(null, \"Cannot start server\",\n be.getMessage(), JOptionPane.ERROR_MESSAGE);\n System.exit(1);\n }\n }", "public static void main(String [] args) throws IOException, SQLException, ClassNotFoundException, Exception {\n\t //get port and server from input if user has entered any values\n\t int port = args.length > 0 ? Integer.parseInt(args[0]) : 6066;\n\t String serverName = args.length > 1 ? args[1] : \"localhost\";\n\t Thread t = new ImageServer(port);\n\t t.start();\n }", "private boolean startupProcedure()\n\t{\n\t\t//Start RMI-server\n\t\tnetworkinterface.startRMIServer();\n\t\tboolean RMIRunning = networkinterface.bindRMIServer(nodeManager, \"NodeServer\");\n\t\t\n\t\t//Start multicastservice\n\t\tif(networkinterface.setupMulticastservice())\n\t\t{\n\t\t\tnetworkinterface.runMulticastservice();\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\treturn RMIRunning;\n\t}", "@Override\n public boolean serverRegister(String ip, int port, int id) throws RemoteException {\n try {\n if(this.ip.equals(ip) && this.port == port){\n return false;\n }else if(this.id == id){\n return false;\n }\n \n String url = \"rmi://\"+ip+\":\"+port+\"/mytube\";\n ServerInterface server = (ServerInterface) Naming.lookup(url);\n \n if(server.acceptRegister(this.ip, this.port, this.id)){\n servers.add(server);\n //Check if servers are really bidirectionally connected.\n if(server.serverPing(this) == this.id){\n System.out.println(\"CONNECT: Bidirectionally connected to the server \"+url);\n return true;\n }\n }\n return false;\n } catch (NotBoundException | MalformedURLException | RemoteException e){\n return false;\n }\n }", "public void addServer(String nameServer) { \n Server server = new Server(nameServer);\n serversList.add(server);\n }", "public static void main(final String[] args) throws IOException {\n startServer();\n }", "private void installLocalOrRemote() {\n CommandPacket startCommandPacket = null;\n //直到成功为止,控制台可能重启、网络问题等原因\n //TODO\n int time = 0;\n while ((startCommandPacket = getStartCommandPacket()) == null){\n try {\n time ++;\n if(time == 20){\n String defaultRegister = \"zookeeper\";\n String register = agentConfig.getProperty(\"register.name\", defaultRegister);\n if(defaultRegister.equals(register)){\n logger.error(\"经过10s尝试启动simulator失败, 请确认控制台是否正常\");\n }\n break;\n }\n logger.error(\"启动simulator获取远程失败,休眠500ms重试,请确认控制台是否正常\");\n Thread.sleep(500 );\n } catch (InterruptedException ignore) {\n }\n }\n\n if(startCommandPacket == null){\n startCommandPacket = new CommandPacket();\n // 启动\n startCommandPacket.setId(HeartCommandConstants.startCommandId);\n Map<String, Object> extras = new HashMap<String, Object>();\n extras.put(HeartCommandConstants.PATH_TYPE_KEY, HeartCommandConstants.PATH_TYPE_LOCAL_VALUE);\n // 使用本地探针包\n startCommandPacket.setExtras(extras);\n }\n install(startCommandPacket);\n }", "public static void main(String[] args) {\n Server se = new Server();\n }", "public boolean registerNode(Node node, String remoteHost, String remoteAddress, OutputStream out, boolean isRequestedRegistration) throws IOException;", "public static void main(String[] args) {\n\t\tUserManager.init();\n\t\tServerManager.start();\n\t}" ]
[ "0.614563", "0.6041246", "0.5964096", "0.5789064", "0.5680281", "0.5650225", "0.55993253", "0.5578888", "0.5530824", "0.5524071", "0.55088466", "0.5486147", "0.54561025", "0.5353177", "0.5305878", "0.52675104", "0.52643585", "0.51958275", "0.51957303", "0.5188381", "0.5180692", "0.5155647", "0.513129", "0.5118214", "0.5115587", "0.510606", "0.5087964", "0.50792694", "0.50732654", "0.50638276", "0.50340617", "0.50249135", "0.4987899", "0.49846306", "0.49582738", "0.49557203", "0.49542102", "0.49515548", "0.49434194", "0.49326608", "0.49295405", "0.49001414", "0.48964515", "0.48872256", "0.48814645", "0.48794487", "0.4876772", "0.48750037", "0.48491994", "0.4833926", "0.48291424", "0.4827366", "0.48269275", "0.48047164", "0.47996444", "0.47966778", "0.47928977", "0.47925383", "0.47920957", "0.47795802", "0.47781342", "0.47717535", "0.47672442", "0.47651052", "0.47614977", "0.47500193", "0.47496524", "0.47420925", "0.47373015", "0.47339112", "0.47270012", "0.47264108", "0.47263938", "0.47147524", "0.47092366", "0.47081432", "0.4698262", "0.46893877", "0.46890053", "0.46876153", "0.46816993", "0.4681418", "0.4677196", "0.46753928", "0.4667843", "0.4660187", "0.4655805", "0.46550837", "0.46458867", "0.46443683", "0.4640666", "0.4640047", "0.46230736", "0.46160156", "0.46160156", "0.4613143", "0.46055532", "0.45979753", "0.4591288", "0.45877573" ]
0.48765752
47
Loads a checkpoint of a genetic program.
private static GeneticProgram loadCheckpoint(String arg) { CheckpointLoader cpl = new CheckpointLoader(arg); GeneticProgram gp = cpl.instantiate(); if (gp == null) { System.err.println("Could not load checkpoint."); System.exit(-1); } return gp; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ComputationGraph loadCheckpointCG(Checkpoint checkpoint){\n return loadCheckpointCG(checkpoint.getCheckpointNum());\n }", "public ComputationGraph loadCheckpointCG(int checkpointNum) {\n return loadCheckpointCG(rootDir, checkpointNum);\n }", "public static ComputationGraph loadCheckpointCG(File rootDir, int checkpointNum){\n File f = getFileForCheckpoint(rootDir, checkpointNum);\n try {\n return ModelSerializer.restoreComputationGraph(f, true);\n } catch (IOException e){\n throw new RuntimeException(e);\n }\n }", "void checkpoint() throws IOException;", "public void initializeGraphPrueba() {\n //path to checkpoit.ckpt HACER\n //To load the checkpoint, place the checkpoint files in the device and create a Tensor\n //to the path of the checkpoint prefix\n //FALTA ******\n\n // si modelo updated se usa el checkpoints que he descargado del servidor. Si no, el del movil.\n if (isModelUpdated){\n /* //NO VA BIEN:\n checkpointPrefix = Tensors.create((file_descargado).toString());\n Toast.makeText(MainActivity.this, \"Usando el modelo actualizado\", Toast.LENGTH_SHORT).show();\n\n */\n\n //A VER SI VA\n try {\n //Place the .pb file generated before in the assets folder and import it as a byte[] array\n // hay que poner el .meta\n inputCheck = getAssets().open(\"+checkpoints_name_1002-.ckpt.meta\");\n // inputCheck = getAssets().open(\"+checkpoints_name_1002-.ckpt\"); NOT FOUND\n byte[] buffer = new byte[inputCheck.available()];\n int bytesRead;\n ByteArrayOutputStream output = new ByteArrayOutputStream();\n while ((bytesRead = inputCheck.read(buffer)) != -1) {\n output.write(buffer, 0, bytesRead);\n }\n variableAuxCheck = output.toByteArray(); // array con el checkpoint\n } catch (IOException e) {\n e.printStackTrace();\n }\n checkpointPrefix = Tensors.create((variableAuxCheck).toString());\n }\n\n else {\n try {\n //Place the .pb file generated before in the assets folder and import it as a byte[] array\n // hay que poner el .meta\n inputCheck = getAssets().open(\"checkpoint_name1.ckpt.meta\");\n byte[] buffer = new byte[inputCheck.available()];\n int bytesRead;\n ByteArrayOutputStream output = new ByteArrayOutputStream();\n while ((bytesRead = inputCheck.read(buffer)) != -1) {\n output.write(buffer, 0, bytesRead);\n }\n variableAuxCheck = output.toByteArray(); // array con el checkpoint\n } catch (IOException e) {\n e.printStackTrace();\n }\n checkpointPrefix = Tensors.create((variableAuxCheck).toString());\n }\n\n //checkpointPrefix = Tensors.create((getApplicationContext().getExternalFilesDir(Environment.DIRECTORY_DOCUMENTS).getAbsolutePath() + \"final_model.ckpt\").toString()); //PARA USAR EL CHECKPOINT DESCARGADO\n // checkpointDir = getApplicationContext().getExternalFilesDir(Environment.DIRECTORY_DOCUMENTS).getAbsolutePath();\n //Create a variable of class org.tensorflow.Graph:\n graph = new Graph();\n sess = new Session(graph);\n InputStream inputStream;\n try {\n // inputStream = getAssets().open(\"graph.pb\"); //MODELO SENCILLO //PROBAR CON GRAPH_PRUEBA QUE ES MI GRAPH DE O BYTES\n // inputStream = getAssets().open(\"graph5.pb\"); //MODELO SENCILLO\n if (isModelUpdated) { // ESTO ES ALGO TEMPORAL. NO ES BUENO\n inputStream = getAssets().open(\"graph_pesos.pb\");\n }\n else {\n inputStream = getAssets().open(\"graph5.pb\");\n }\n byte[] buffer = new byte[inputStream.available()];\n int bytesRead;\n ByteArrayOutputStream output = new ByteArrayOutputStream();\n while ((bytesRead = inputStream.read(buffer)) != -1) {\n output.write(buffer, 0, bytesRead);\n }\n graphDef = output.toByteArray();\n } catch (IOException e) {\n e.printStackTrace();\n }\n //Place the .pb file generated before in the assets folder and import it as a byte[] array.\n // Let the array's name be graphdef.\n //Now, load the graph from the graphdef:\n graph.importGraphDef(graphDef);\n try {\n //Now, load the checkpoint by running the restore checkpoint op in the graph:\n sess.runner().feed(\"save/Const\", checkpointPrefix).addTarget(\"save/restore_all\").run();\n Toast.makeText(this, \"Checkpoint Found and Loaded!\", Toast.LENGTH_SHORT).show();\n }\n catch (Exception e) {\n //Alternatively, initialize the graph by calling the init op:\n sess.runner().addTarget(\"init\").run();\n Log.i(\"Checkpoint: \", \"Graph Initialized\");\n }\n }", "@RequiresApi(api = Build.VERSION_CODES.KITKAT)\n public void initializeGraph() {\n checkpointPrefix = Tensors.create((getApplicationContext().getExternalFilesDir(Environment.DIRECTORY_DOCUMENTS).getAbsolutePath() + \"final_model.ckpt\").toString());\n checkpointDir = getApplicationContext().getExternalFilesDir(Environment.DIRECTORY_DOCUMENTS).getAbsolutePath();\n graph = new Graph();\n sess = new Session(graph);\n InputStream inputStream;\n try {\n inputStream = getAssets().open(\"final_graph_hdd.pb\");\n byte[] buffer = new byte[inputStream.available()];\n int bytesRead;\n ByteArrayOutputStream output = new ByteArrayOutputStream();\n while ((bytesRead = inputStream.read(buffer)) != -1) {\n output.write(buffer, 0, bytesRead);\n }\n graphDef = output.toByteArray();\n } catch (IOException e) {\n e.printStackTrace();\n }\n graph.importGraphDef(graphDef);\n try {\n sess.runner().feed(\"save/Const\", checkpointPrefix).addTarget(\"save/restore_all\").run();\n Toast.makeText(this, \"Checkpoint Found and Loaded!\", Toast.LENGTH_SHORT).show();\n }\n catch (Exception e) {\n sess.runner().addTarget(\"init\").run();\n Log.i(\"Checkpoint: \", \"Graph Initialized\");\n }\n }", "public static ComputationGraph loadCheckpointCG(File rootDir, Checkpoint checkpoint){\n return loadCheckpointCG(rootDir, checkpoint.getCheckpointNum());\n }", "public void loadQuickly(){\r\n System.out.println(\"I am going to try to load your games.\");\r\n String quickLoadPath = this.savePath + File.separator + \"QuickSave.ser\";\r\n this.load(quickLoadPath);\r\n }", "public static void main(String[] args) throws Exception {\n if (args.length < 1) {\n System.err.println(\"Usage: Master <simulation_directory> \"\n + \"[checkpoint_directory]\");\n System.exit(-1);\n }\n\n SimulationDirLoader sdl = new SimulationDirLoader(args[0]);\n ISimulator[] simulators = sdl.load();\n\n GeneticProgram gp;\n if (args.length == 2) {\n gp = loadCheckpoint(args[1]);\n } else {\n gp = new GeneticProgram(POPULATION_SIZE,\n GeneticProgram.INIT_POP_METHOD.RHALF_AND_HALF, 3);\n }\n\n new Master(gp, simulators, GENERATIONS).runGP();\n }", "public void loadOrCreateGraph() {\n if(new File(graphPath + OVERLAY_GRAPH).exists())\n loadGraph();\n else {\n System.out.println(\"No file with the graph exists\");\n createGraph();\n }\n //graph.print();\n }", "private ComputationGraph load() throws Exception {\r\n ComputationGraph restored = ModelSerializer.restoreComputationGraph(locationToSave);\r\n return restored;\r\n }", "private void writeCheckpoint(String filename) {\n File file = new File(checkpointDir, filename);\n try {\n geneticProgram.savePopulation(new FileOutputStream(file));\n } catch (FileNotFoundException e) {\n log.log(Level.WARNING, \"Exception in dump\", e);\n }\n }", "public Master(GeneticProgram geneticProgram, ISimulator[] simulators, int generations)\n throws RemoteException {\n super(54614);\n this.geneticProgram = geneticProgram;\n this.simulators = simulators;\n this.generations = generations;\n programsRemaining = geneticProgram.getPopulationSize();\n resetStatistics();\n\n // setup checkpointing\n String checkpointDirName = \"gp_\" + new Date().toString().replace(' ', '_');\n checkpointDir = new File(checkpointDirName);\n if (!checkpointDir.mkdir()) {\n log.warning(\"Could not create checkpoint directory: \"\n + checkpointDirName + \"\\nCheckpointing disabled.\");\n }\n }", "private void initGP() {\n log.info(\"Initializing GP\");\n geneticProgram.addPopulationObserver(this);\n geneticProgram.initialize();\n frontRunner = geneticProgram.getProgram(0); // A safe default\n }", "public static void main(String[] args) throws IOException {\n final dev.punchcafe.vngine.game.GameBuilder<NarrativeImp> gameBuilder = new dev.punchcafe.vngine.game.GameBuilder();\n final NarrativeAdaptor<Object> narrativeReader = (file) -> List.of();\n final var pom = PomLoader.forGame(new File(\"command-line/src/main/resources/vng-game-1\"), narrativeReader).loadGameConfiguration();\n final var narratives = NarrativeParser.parseNarrative(new File(\"command-line/src/main/resources/vng-game-1/narratives/narratives.yml\"));\n final var narrativeService = new NarrativeServiceImp(narratives);\n gameBuilder.setNarrativeReader(new NarrativeReaderImp());\n gameBuilder.setNarrativeService(narrativeService);\n gameBuilder.setPlayerObserver(new SimplePlayerObserver());\n gameBuilder.setProjectObjectModel(pom);\n final var game = gameBuilder.build();\n //game.startNewGame();\n final var saveFile = GameSave.builder()\n .nodeIdentifier(NodeIdentifier.builder()\n .chapterId(\"ch_01\")\n .nodeId(\"1_2_2\")\n .build())\n .savedGameState(SavedGameState.builder()\n .chapterStateSnapshot(StateSnapshot.builder()\n .booleanPropertyMap(Map.of())\n .integerPropertyMap(Map.of())\n .stringPropertyMap(Map.of())\n .build())\n .gameStateSnapshot(StateSnapshot.builder()\n .booleanPropertyMap(Map.of())\n .integerPropertyMap(Map.of())\n .stringPropertyMap(Map.of())\n .build())\n .build())\n .build();\n final var saveGame = game.loadGame(saveFile)\n .tick()\n .tick()\n .saveGame();\n System.out.println(\"checkpoint\");\n }", "private void restoreToCheckpoint(Parameters checkpoint) {\n assert geometricParts.diskShardCount() == 0 : \"Restore to Checkpoint should only be called at startup!\";\n\n this.lastAddedDocumentIdentifier = checkpoint.getString(\"lastDoc/identifier\");\n this.lastAddedDocumentNumber = (int) checkpoint.getLong(\"lastDoc/number\");\n this.indexBlockCount = (int) checkpoint.getLong(\"indexBlockCount\");\n Parameters shards = checkpoint.getMap(\"shards\");\n for (String indexPath : shards.getKeys()) {\n this.geometricParts.add((int) shards.getLong(indexPath), indexPath);\n }\n }", "int load( String geneFile, String taxonName ) throws Exception;", "public MultiLayerNetwork loadCheckpointMLN(Checkpoint checkpoint){\n return loadCheckpointMLN(checkpoint.getCheckpointNum());\n }", "@Test\r\n\tpublic void testResumeGame() throws IOException, ClassNotFoundException\r\n\t {\r\n\t\t\r\n\t\tString xmlFilePath = System\r\n\t\t .getProperty(\"user.dir\") + \"\\\\Risk_MapData\\\\RiskGameSave.ser\";\r\n\t\t\r\n\t\tFileInputStream file = new FileInputStream(xmlFilePath);\r\n\t\tObjectInputStream in = new ObjectInputStream(file);\r\n\t\t\r\n\t\tBackup currBkp = (Backup) in.readObject();\r\n\t\t\r\n\t\tin.close();\r\n\t\tfile.close();\r\n\t\t\r\n\t\tassertEquals(currBkp.getGameMap().getGameMapFile(), game.getGameMap()\r\n\t\t .getGameMapFile());\r\n\t\tassertEquals(currBkp.getGameMap().getContinentsList().size(), game\r\n\t\t .getGameMap().getContinentsList().size());\r\n\t\tassertEquals(currBkp.getGameMap().getGameMapGraph().getGraphNodes()\r\n\t\t .size(), game.getGameMap().getGameMapGraph().getGraphNodes()\r\n\t\t .size());\r\n\t\tassertEquals(currBkp.getPlayers().getPlayerList().size(), game\r\n\t\t .getPlayerList().getPlayerList().size());\r\n\t\tassertEquals(currBkp.getTurnId(), game.getTurnID());\r\n\t\tassertEquals(currBkp.getTurnInCardsCount(), game.getTurnInCardsCount());\r\n\t }", "public ProvMgr(Simulation simulation, boolean load) throws IOException, RiotNotFoundException {\n LOG.info(\"New Provenance Manager for \" + simulation.getName());\n if (load) {\n load(simulation);\n } else {\n init(simulation);\n }\n }", "private void load() {\r\n\t\tswitch (this.stepPanel.getStep()) {\r\n\t\tcase StepPanel.STEP_HOST_GRAPH:\r\n\t\t\tloadGraph(StepPanel.STEP_HOST_GRAPH);\r\n\t\t\tbreak;\r\n\t\tcase StepPanel.STEP_STOP_GRAPH:\r\n\t\t\tloadGraph(StepPanel.STEP_STOP_GRAPH);\r\n\t\t\tbreak;\r\n\t\tcase StepPanel.STEP_CRITICAL_PAIRS:\r\n\t\t\tloadPairs();\r\n\t\t\tbreak;\r\n\t\tcase StepPanel.STEP_FINISH:\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}", "public static void load() {\n }", "protected void checkpoint() {\n checkpoint = internalBuffer().readerIndex();\n }", "File getLoadLocation();", "public static void load() {\n load(false);\n }", "public MultiLayerNetwork loadCheckpointMLN(int checkpointNum) {\n return loadCheckpointMLN(rootDir, checkpointNum);\n }", "public String getExternalLoadsFileName() { return analyzeTool().getExternalLoadsFileName(); }", "public void load() {\n }", "public void load() ;", "void load();", "void load();", "public void loadGame(File fileLocation, boolean replay);", "public void loadWorkflow(String filename);", "void loadExperiment();", "void loadOriginalGameState(String saveName, int level) throws IOException;", "public void load();", "public void load();", "public void load() {\n\t}", "public void loadGame() {\n\t\tmanager.resumeGame();\n\t}", "@Test\n public void testLoadGeneLocationFile() throws ValidationException, IOException {\n GeneLocationConfiguration geneLocationConf =\n arrayDataService.loadGeneLocationFile(TestDataFiles.HG18_GENE_LOCATIONS_FILE, GenomeBuildVersionEnum.HG18);\n assertEquals(NUMBER_OF_HG18_GENE_LOCATIONS, geneLocationConf.getGeneLocations().size());\n\n geneLocationConf =\n arrayDataService.loadGeneLocationFile(TestDataFiles.HG19_GENE_LOCATIONS_FILE, GenomeBuildVersionEnum.HG19);\n assertEquals(NUMBER_OF_HG19_GENE_LOCATIONS, geneLocationConf.getGeneLocations().size());\n }", "void singleModeLoading( File dataPath, File resultsPath, int scenarioNumber );", "@Test\n public void testLoad() throws IOException {\n P3Connection p3 = new P3Connection();\n File master = new File(\"data\", \"core\");\n OrganismDirectories orgDirs = new OrganismDirectories(master);\n for (String genomeId : orgDirs) {\n File orgDir = new File(master, genomeId);\n Genome testGto = new CoreGenome(p3, orgDir);\n assertThat(testGto.getId(), equalTo(genomeId));\n String taxMarker = MarkerFile.read(new File(orgDir, \"TAXONOMY\"));\n assertThat(taxMarker, equalTo(testGto.getTaxString()));\n String name = MarkerFile.read(new File(orgDir, \"GENOME\"));\n assertThat(name, equalTo(testGto.getName()));\n }\n }", "public void save(){\n checkpoint = chapter;\n }", "public void loadSavedGame(SavedGame saved){\n ArrayList<Boat> boats = saved.getBoatArraySaved();\n int height = saved.getHeightSaved();\n int width = saved.getWidthSaved();\n\n Board board = new Board(height, width, 0);\n GameData gameData = new GameData(board, boats, saved.isPlayerIsAi());\n\n //POSITION BOATS INTO MATRIX\n loadPosBoats(gameData);\n\n if(saved.isPlayerIsAi()){\n gameData.setAi(saved.getAiPlayerSaved());\n }\n gameData.setFeedbackList(saved.getFeedbackListSaved());\n gameData.setGuessArray(saved.getGuessesSaved());\n Game.getInstance().setGameData(gameData);\n Game.getInstance().setEnded(false);\n\n }", "public void load() throws ClassNotFoundException, IOException;", "public void loadGame(){\r\n Scanner in = new Scanner(System.in);\r\n System.out.println(\"Choose a saved game. ( -1 : none )\");\r\n try {\r\n File[] listOfFiles = this.showFiles(this.savePath); //Show the files that have been saved earlier\r\n int i = in.nextInt();\r\n if(i==-1){\r\n return;\r\n }\r\n String filePath = listOfFiles[i].getPath(); //Get the path of the chosen file\r\n this.load(filePath);\r\n } catch (FileNotFoundException ex) {\r\n System.out.println(\"There are no saved games.\");\r\n }\r\n }", "@Override\n public boolean load(String file) {\n try {\n FileInputStream streamIn = new FileInputStream(file);\n ObjectInputStream objectinputstream = new ObjectInputStream(streamIn);\n WGraph_Algo readCase = (WGraph_Algo) objectinputstream.readObject();\n this.ga=null;//initialize the graph\n this.ga=readCase.ga;//take the graph from readCase to this.ga\n }\n catch(Exception e) {\n e.printStackTrace();\n }\n return false;\n }", "public void load() {\n updater.load(-1); // -1 because Guest ID doesn't matter.\n }", "public void loadGame() throws IOException\r\n\t{\r\n\t\tjava.io.BufferedReader reader;\r\n\t String line;\r\n\t String[] elements;\r\n\t int ammo = 0;\r\n\t String state = null;\r\n\t try\r\n\t {\r\n\t reader = new java.io.BufferedReader(new java.io.FileReader(\"Game.ser\"));\r\n\t line = reader.readLine();\r\n\t elements = line.split(\":\");\r\n\t state = elements[0];\r\n\t ammo = Integer.decode(elements[1]);\r\n\t \r\n\t reader.close();\r\n\t \r\n\t\t gamePanel.getView().getPlayer().setAmmo(ammo);\r\n\t\t gamePanel.getView().getPlayer().setState(state);\r\n\t }\r\n\t catch(Exception e)\r\n\t {\r\n\t System.out.println(\"Can't load this save\");\r\n\t }\r\n\t \r\n\t \r\n\r\n\t}", "private static void load(){\n }", "public void loadState() throws IOException, ClassNotFoundException {\n\t\tFile f = new File(workingDirectory() + File.separator + id() + FILE_EXTENSION);\n\t\t\n\t\t// load client state from file\n\t\tObjectInputStream is = new ObjectInputStream(new FileInputStream(f));\n\t\tTrackerDaemon client = (TrackerDaemon) is.readObject();\n\t\tis.close();\n\t\t\n\t\t// copy attributes\n\t\tthis.peerRecord = client.peerRecord();\n\t\t\n\t}", "public static ComputationGraph loadLastCheckpointCG(File rootDir){\n Checkpoint last = lastCheckpoint(rootDir);\n return loadCheckpointCG(rootDir, last);\n }", "public void loadSave(){\n if((new File(\"data.MBM\")).exists()){\n isNew = false;\n\n try {\n BufferedReader br = new BufferedReader(new FileReader(\"data.MBM\"));\n String line = br.readLine();\n \n while (line != null) {\n \n if(line.contains(\"outDir\")){\n String[] result = line.split(\":\");\n outputDir = new File(result[1]);\n if(outputDir.exists() == false){\n isNew = true;\n }\n }\n else if(line.contains(\"MBMWORLD\")){\n String[] result = line.split(\":\");\n //1 = filename\n //2 = world name\n //3 = path\n //4 = date\n addWorld(new File(result[3]), result[2]);\n worlds.get(numWorlds()-1).setLastBackup(result[4]);\n }\n \n line = br.readLine();\n }\n \n br.close();\n \n } catch(IOException e){\n System.out.println(e);\n }\n }\n }", "public void loadSaveGameFromFile(File file) {\r\n\t\t//TODO\r\n\t}", "public void loadGraph() {\n System.out.println(\"The overlay graph will be loaded from an external file\");\n try(FileInputStream fis = new FileInputStream(graphPath + OVERLAY_GRAPH);\n ObjectInputStream ois = new ObjectInputStream(fis))\n {\n graph = (MatrixOverlayGraph) ois.readObject();\n System.out.println(\"Overlay graph loaded\");\n } catch (Exception e) {\n e.printStackTrace();\n }\n loadSupporters();\n }", "@Test\n\tpublic void testProcessAndLoad() {\n\t\tPreProcessor preProcessor = new PreProcessor();\n\t\tpreProcessor.processFiles(new File(\"res/tests/test1.txt\"));\n\t\tNGramModel actualModel = preProcessor.getNgramModel();\n\t\tactualModel.end();\n\t\t\n\t\tString testFilePath = \"res/bin/test.bin\";\n\t\t\n\t\tFile dir = new File(\"res/bin\");\n\t\tif (!dir.exists()) {\n\t\t\tdir.mkdirs();\n\t\t}\n\t\t\n\t\tpreProcessor.writeToFile(testFilePath);\n\t\t\n\t\tLoader loader = new Loader();\n\t\tNGramModel loadedModel = loader.load(testFilePath);\n\t\tassertEquals(loadedModel.numNgrams(), actualModel.getNgrams().size());\n\t\t\n\t\tfor (Map.Entry<NGram, Integer> current : actualModel.getNgrams().entrySet()) {\n\t\t\tassertEquals((int)current.getValue(), loadedModel.getCount(current.getKey()));\n\t\t}\n\t\t\n\t\tfor (int i = 1; i <= actualModel.maxLength(); i++) {\n\t\t\tassertEquals(loadedModel.numberOfNGramLength(i), actualModel.numberOfNGramLength(i));\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < actualModel.topUnigrams().size(); i++) {\n\t\t\tassertEquals(loadedModel.topUnigrams().get(i), actualModel.topUnigrams().get(i));\n\t\t}\n\t\t\n\t\tassertEquals(\n\t\t\tloadedModel.getGoodTuringEstimation().getTotal(),\n\t\t\tactualModel.getGoodTuringEstimation().getTotal());\n\t\t\n\t\tassertEquals(\n\t\t\tloadedModel.getGoodTuringEstimation().getA(),\n\t\t\tactualModel.getGoodTuringEstimation().getA(), 1E-6);\n\t\t\n\t\tassertEquals(\n\t\t\tloadedModel.getGoodTuringEstimation().getB(),\n\t\t\tactualModel.getGoodTuringEstimation().getB(), 1E-6);\n\t}", "static void loadPgm() {\n String file;\n try {\n // Prompt for pgm\n System.out.print(\"Enter terrain file: \"); file = scan.nextLine();\n // Read pgm\n pgmInf = new PgmImageInfo( file );\n // More Interaction\n System.out.printf(\"Read terrain file: %d by %d, \", pgmInf.width, pgmInf.height );\n System.out.printf(\"height ranges from %d to %d.\\n\", 0, pgmInf.maxValue);\n }\n catch (Exception e) {\n System.out.println(\"readPgmFile: failed to read file! Error!: \" + e.getLocalizedMessage());\n loadPgm();\n }\n }", "public void preLoad(int currentRunIndex, int totalRuns)\n throws TerminateIterativeRunException\n {\n\n }", "private void initAndSaveGrid(GridGame game) {\n\t\tgame.modeler = createDumbInitModeler(trainingData );\n\t\tint i = 0;\n\t\tfor (TransitionMemory tm : trainingData) {\n\t\t\tif (i++ > 10) break; // just a few to learn the\n\t\t\tgame.modeler.saveMemory(tm);\n\t\t}\n\t\tgame.modeler.learnFromMemory(0, 0, 0, false, 1, 10000); // just to get node dimensions\n\t\tUtils.saveObjectToFile(GRID_FILE, SerializableGridGame.create(game));\n\t\tif (Utils.loadObjectFromFile(GRID_FILE) == null) System.out.println(\"Problem saving grid\");\n\t}", "void createGraphForSingleLoad();", "public void loadState(ObjectInput in) throws IOException {\n\t\t// loda deikto values\n\t\tdk.loadState(in);\n\t\t// load interpreter values\n\t\tinterpreter.globalActorBox=in.readFloat();\n\t\tinterpreter.globalPropBox=in.readFloat();\n\t\tinterpreter.globalStageBox=in.readFloat();\n\t\tinterpreter.globalEventBox=in.readFloat();\n\t\tinterpreter.globalVerbBox=in.readFloat();\n\t\tinterpreter.globalBNumberBox=in.readFloat();\n\n\t\t// load ticks\n\t\tcMoments = in.readInt();\n\t\t// load inactivity counter\n\t\tcInactivity = in.readInt();\n\t\t// load inactivity counter for the player\n\t\tplayerInactivity = in.readInt();\n\t\t// load storyIsOver\n\t\tstoryIsOver = in.readBoolean();\n\t\tisEpilogueNow = in.readBoolean();\n\t\tisHappilyDone = in.readBoolean();\n\t\tisPenultimateDone = in.readBoolean();\n\n\t\ttry {\n\t\t\t// load storybook\n\t\t\tint size = in.readInt();\n\t\t\tDeikto.checkByteArraySize(size*4);\n\t\t\thistoryBook.clear();\n\t\t\tfor(int i=0;i<size;i++)\n\t\t\t\thistoryBook.add((Sentence)in.readObject());\n\t\t\t//save random seeds\n\t\t\trandom = (Random)in.readObject();\n\t\t\tinterpreter.scriptRandom.setSeed(in.readLong());\n\t\t\t// load alarms\n\t\t\tsize = in.readInt();\n\t\t\tDeikto.checkByteArraySize(size*16);\n\t\t\talarms.clear();\n\t\t\tfor(int i=0;i<size;i++)\n\t\t\t\talarms.add((Alarm)in.readObject());\n\t\t\tsize = in.readInt();\n\t\t\tDeikto.checkByteArraySize(size*16);\n\t\t\tstorybookQueue.clear();\n\t\t\tstorybook.clear();\n\t\t\tfor(int i=0;i<size;i++)\n\t\t\t\tstorybook.add(in.readUTF());\n\t\t\tstorybookQueue.addAll(storybook);\n\t\t} catch(ClassNotFoundException e) {\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t}", "public abstract void load();", "private void load(Simulation simulation) throws RiotNotFoundException {\n String name = simulation.getName();\n provOutputFileURI = simulation.getProvLocation().resolve(name + \".ttl\").toString();\n model = RDFDataMgr.loadModel(provOutputFileURI);\n localNameSpaceURI = getLocalNameSpaceURI();\n model.setNsPrefix(LOCAL_NS_PREFIX, localNameSpaceURI);\n trimRemoteNS();\n }", "public synchronized long getCheckpoint() {\n return globalCheckpoint;\n }", "static synchronized void makeNewCheckpoint() {\n HashMap<String, String> newCheckpoint = new HashMap<>(localState);\n checkpoints.put(Thread.currentThread(), newCheckpoint);\n }", "public abstract void load() throws IOException;", "public OTFModelGeneration(Program program) {\n\t\tsuper();\n\t\tthis.program = program;\n\t}", "@Override\n\tpublic void recoverProcedure(ProcedureRecoveryInfo procedure, IProgressMonitor monitor) throws LoadFailed\n\t{\n\t\tLogger.info(\"Recovering procedure \" + procedure.getOriginalInstanceId(), Level.PROC, this);\n\t\t// Will hold the model\n\t\tIProcedure model = null;\n\t\t// Will hold the instance identifier\n\t\tString instanceId = null;\n\n\t\t// Start the task in the monitor\n\t\tmonitor.beginTask(\"Recovering procedure\", 6);\n\t\t// Check cancellation\n\t\tif (monitor.isCanceled())\n\t\t\treturn;\n\n\t\t// -----------------------------\n\t\t// PHASE 1, create a local model\n\t\t// -----------------------------\n\t\ttry\n\t\t{\n\t\t\tLogger.debug(\"[1] Create local model\", Level.PROC, this);\n\t\t\t// Create the model, Notify about the progress\n\t\t\tmonitor.subTask(\"Creating model\");\n\t\t\t// Will get an available id\n\t\t\tmodel = m_models.createLocalProcedureModel(procedure.getProcId(), monitor);\n\t\t\tmodel.setReplayMode(true);\n\t\t\tinstanceId = model.getProcId();\n\t\t\tprocedure.setNewInstanceId(instanceId);\n\t\t\tm_models.deleteLocalProcedureModel(instanceId);\n\t\t\tmonitor.worked(1);\n\t\t}\n\t\tcatch (LoadFailed ex)\n\t\t{\n\t\t\tLogger.error(ex.getLocalizedMessage(), Level.PROC, this);\n\t\t\tthrow ex;\n\t\t}\n\n\t\t// Check cancellation\n\t\tif (monitor.isCanceled())\n\t\t{\n\t\t\treturn;\n\t\t}\n\n\t\t// ----------------------------------------------------\n\t\t// PHASE 2, start the executor process in recovery mode\n\t\t// ----------------------------------------------------\n\t\ttry\n\t\t{\n\t\t\tLogger.debug(\"[2] Start recovered executor\", Level.PROC, this);\n\t\t\t// Report progress\n\t\t\tmonitor.subTask(\"Starting to process\");\n\n\t\t\t// Request context to load the procedure\n\t\t\tLogger.debug(\"Requesting context to recover executor \" + procedure.getProcId(), Level.PROC, this);\n\t\t\ts_ctx.recoverExecutor(procedure);\n\n\t\t\t// Report progress\n\t\t\tmonitor.worked(1);\n\n\t\t}\n\t\tcatch (ContextError ex)\n\t\t{\n\t\t\tLogger.error(ex.getLocalizedMessage(), Level.PROC, this);\n\t\t\tthrow new LoadFailed(ex.getLocalizedMessage());\n\t\t}\n\n\t\t// Check cancellation\n\t\tif (monitor.isCanceled())\n\t\t{\n\t\t\treturn;\n\t\t}\n\n\t\t// Report progress\n\t\tmonitor.subTask(\"Ending load process\");\n\t\t// Report progress\n\t\tmonitor.done();\n\t\tLogger.debug(\"Recovery process done\", Level.PROC, this);\n\t}", "public void load() {\n mapdb_ = DBMaker.newFileDB(new File(\"AllPoems.db\"))\n .closeOnJvmShutdown()\n .encryptionEnable(\"password\")\n .make();\n\n // open existing an collection (or create new)\n poemIndexToPoemMap_ = mapdb_.getTreeMap(\"Poems\");\n \n constructPoems();\n }", "public void load(JFrame anAppFrame)\n {\n if (TRACE)\n System.out.println(\"DataGenModel: load options file\");\n\n // get file for model update\n String inputFn = getInputFilename(anAppFrame);\n if (inputFn.length() == 0)\n return;\n\n // do model update\n if (readData(inputFn) == false)\n {\n JOptionPane.showMessageDialog(\n anAppFrame,\n \"Error opening selected options file.\",\n \"Notice\",\n JOptionPane.INFORMATION_MESSAGE,\n null);\n }\n }", "public void loadGame(){\n\n try {\n input = new FileInputStream(fileName);\n properties.load(input);\n System.out.println(\"--- LOADING GAMEFILE PROPERTIES ---\");\n\n int highestReachedLevel = getHighestLevelFromProperties();\n GameModel.getInstance().setHighestCompletedLevel(highestReachedLevel);\n\n GameModel.getInstance().setfirstTimePlay(false);\n\n //TODO: Save properties to gameModel\n\n } catch (IOException e) {\n System.out.println(\"--- FAILED TO LOAD GAME ---\");\n GameModel.getInstance().setfirstTimePlay(true);\n e.printStackTrace();\n } finally {\n if (input != null) {\n try {\n input.close();\n } catch (IOException e) {\n System.out.println(\"--- FAILED TO CLOSE INTPUT ---\");\n e.printStackTrace();\n }\n }\n }\n\n }", "public void loadPersistence() {\n\t\tFile file = new File(\"data.txt\");\n\t\tif (file.length() == 0) { // no persistent data to use\n\t\t\treturn;\n\t\t}\n\t\tdeserializeFile(file);\n\t\tloadPersistentSettings();\n\t}", "public void LoadGame(int appid) throws InvalidGameException {\r\n\t\treturn;\r\n\t}", "public void load(BSGameState state);", "public void loadIntoNW() throws LoadException {\n\t\tloadProgress = new LoadProgress2(targetModel.getFileSet().getRoot(), null);\n\t\trun();\n\t\tif (getException() != null) {\n\t\t\tthrow getException();\n\t\t}\n\t}", "public void loadGame() {\n game.loadGame();\n }", "public void load (){\n load(MAX_PREZ);\n }", "public void loadSavedConfigsMap() {\n\t\tfinal File folder = new File(serializePath);\n\t\tlistFilesForFolder(folder);\n\t}", "private void load()\n {\n SharedPreferences sp = getActivity().getPreferences(Context.MODE_PRIVATE);\n if (sp.contains(\"passLength\") && passLenSB != null)\n passLenSB.setProgress(sp.getInt(\"passLength\", 0));\n\n if (sp.contains(\"minDigits\") && minDigSB != null)\n minDigSB.setProgress(sp.getInt(\"minDigits\", 0));\n\n for (int i=0; i<checkBoxes.size(); i++)\n {\n checkBoxes.get(i).setChecked(sp.getBoolean(\"chkbx\"+Integer.toString(i), false));\n if (checkBoxes.get(i).isChecked())\n runChkBxOption(i, checkBoxes.get(i), rootView, child); // this code makes app generate new pass each time\n\n }\n // this code will restore pass on rotation only\n if (savedInstanceState != null && savedInstanceState.containsKey(\"password\"))\n passTV.setText(colourCodePass(savedInstanceState.getString(\"password\")));\n }", "protected void checkpoint(S state) {\n checkpoint();\n state(state);\n }", "public void load() throws SAXException, IOException {\n\t\tif (!reader.fileLocation().equals(saveLocation)) {\n\t\t\treader.fileLocation(saveLocation);\n\t\t}\n\t\t\n\t\treader.read();\n\t\tgenerator.document(reader.document());\n\t}", "public boolean load( Conge conge ) ;", "@Test\n\tpublic void loadTestPlan() {\n\t\tFileInputStream reader = null;\n\t\ttry {\n\t\t\treader = new FileInputStream(new File(JmeterBundleTests.testPlanFilename));\n\t\t\tcurrentHashTree = SaveService.loadTree(reader);\n\t\t\tassertNotNull(currentHashTree);\n\t\t\treader.close();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tassertNotNull(null);\n\t\t}\n\t}", "public static MultiLayerNetwork loadCheckpointMLN(File rootDir, int checkpointNum){\n File f = getFileForCheckpoint(rootDir, checkpointNum);\n try {\n return ModelSerializer.restoreMultiLayerNetwork(f, true);\n } catch (IOException e){\n throw new RuntimeException(e);\n }\n }", "void distributedSingleModeLoading( File dataPath, File resultsPath, int scenarioNumber );", "private void setTrainingData() throws IOException {\r\n\t\ttrainIdBodyMap = readInIdBodiesMap(new File(TRAIN_BODIES_CSV_LOCATION));\r\n\t\ttrainStances = readStances(new File(TRAIN_STANCES_CSV_LOCATION));\r\n\r\n\t}", "load createload(String name)\n {\n load iLoad = iIncomingLobsFactory.createload(name);\n \n return initload(iLoad);\n }", "public static void loadGraph_File(String filename) {\n // Graph aus Datei laden\n Application.graph = null;\n double time_graph = System.currentTimeMillis();\n filename = filename + \".DAT\";\n Application.println(\"============================================================\");\n Application.println(\"Fetching Data from \" + filename + \" and building graph\");\n try {\n FileInputStream fis = new FileInputStream(filename);\n ObjectInputStream obj_in = new ObjectInputStream(fis);\n Object obj = obj_in.readObject();\n if (obj instanceof NavGraph) {\n Application.graph = (NavGraph) obj;\n } else {\n throw new Exception(\"Saved Data != NavGraph\");\n }\n obj_in.close();\n fis.close();\n time_graph = (System.currentTimeMillis() - time_graph) / 1000;\n double time_init = System.currentTimeMillis();\n Application.println(\"Init Graph\");\n graph.initGraph();\n time_init = (System.currentTimeMillis() - time_init) / 1000;\n Application.println(\"Init Graph took \" + time_init + \" Secs\");\n Application.println(\"Fetching Data and building graph took: \" + time_graph + \"sec\");\n Application.println(\"============================================================\");\n } catch (Exception e) {\n Application.println(\"Error: \" + e.toString());\n }\n }", "@Override\r\n\tpublic void initialLoad() throws IOException {\n\t\t\r\n\t}", "public abstract boolean Load();", "private ModelCheckpoints loadFromTransientModule(SModelName originalModelName) {\n // XXX getCheckpointModelsFor iterates models of the module, hence needs a model read\n // OTOH, just a wrap with model read doesn't make sense here (models could get disposed right after the call),\n // so likely we shall populate myCheckpoints in constructor/dedicated method. Still, what about checkpoint model disposed *after*\n // I've collected all the relevant state for this class?\n // Not sure whether read shall be local to this class or external on constructor/initialization method\n // It seems to be an implementation detail that we traverse model and use its nodes to persist mapping label information (that's what we need RA for).\n return new ModelAccessHelper(myTransientModelProvider.getRepository()).runReadAction(() -> {\n String nameNoStereotype = originalModelName.getLongName();\n ArrayList<CheckpointState> cpModels = new ArrayList<>(4);\n for (SModel m : myModule.getModels()) {\n if (!nameNoStereotype.equals(m.getName().getLongName()) || false == m instanceof ModelWithAttributes) {\n continue;\n }\n // we keep CP (both origin and actual) as model properties to facilitate scenario when CP models are not persisted.\n // Otherwise, we could have use values written into CheckpointVault's registry file. As long as there's no registry for workspace models,\n // we have to use this dubious mechanism (not necessarily bad, just a bit confusing as we duplicate actual CP value as model attribute and\n // in the CheckpointVault's registry).\n CheckpointIdentity modelCheckpoint = readIdentityAttributes((ModelWithAttributes) m, GENERATION_PLAN, CHECKPOINT);\n if (modelCheckpoint == null) {\n continue;\n }\n CheckpointIdentity prevCheckpoint = readIdentityAttributes((ModelWithAttributes) m, PREV_GENERATION_PLAN, PREV_CHECKPOINT);\n cpModels.add(new CheckpointState(m, prevCheckpoint, modelCheckpoint));\n }\n return cpModels.isEmpty() ? null : new ModelCheckpoints(cpModels);\n });\n }", "private void loadEnvironment () {\r\n Factory forceFactory = new ForceFactory(mySimulation);\r\n int response = INPUT_CHOOSER.showDialog(null, \"Environment file\");\r\n if (response == JFileChooser.APPROVE_OPTION) {\r\n forceFactory.loadFile(INPUT_CHOOSER.getSelectedFile());\r\n }\r\n }", "private void loadGame() {\r\n\t\tJFileChooser fileChooser = new JFileChooser();\r\n\t\tArrayList<String> data = new ArrayList<String>();\r\n\t\tFile file = null;\r\n\t\tif (fileChooser.showOpenDialog(gameView) == JFileChooser.APPROVE_OPTION) {\r\n\t\t\tfile = fileChooser.getSelectedFile();\r\n\t\t}\r\n\r\n\t\tif (file != null) {\r\n\t\t\tmyFileReader fileReader = new myFileReader(file);\r\n\t\t\ttry {\r\n\t\t\t\tdata = fileReader.getFileContents();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\r\n\t\t\t// TODO: allow writing of whose turn it is!\r\n\t\t\tParser parse = new Parser();\r\n\t\t\tint tempBoard[][] = parse.parseGameBoard(data);\r\n\t\t\tgameBoard = new GameBoardModel(tempBoard, parse.isBlackTurn(), parse.getBlackScore(), parse.getRedScore());\r\n\t\t}\r\n\t}", "@Override\n public void load() throws IOException, ClassNotFoundException {\n \n }", "public static void prePare() throws ParseException, IOException {\n\t\t// 1. data base\n\t\tString dbName = home + \"DBFile_Raw\";\n\t\tIGraphDatabase gDB = new GraphDatabase_OnDisk(dbName,\n\t\t\t\tMyFactory.getSmilesParser());\n\t\t// 2. Generate training queries: [normal distribution mean 100, variance\n\t\t// 50]\n\t\tString trainQuery = home + \"trainQuery\";\n\t\tGaussianGenerator gen = new GaussianGenerator(6, 2);\n\t\tfloat totalCount = 10000;\n\t\tint trainSize = (int) (totalCount * 0.8);\n\t\tGraph[] gs = new Graph[trainSize];\n\t\tfor (int i = 0; i < trainSize; i++) {\n\t\t\tint count = (int) (gen.getNext());\n\t\t\tif (count < 10) {\n\t\t\t\ti--;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tgs[i] = MergeGraph.mergeGraphs(gDB, count);\n\t\t}\n\t\tRandomChoseDBGraph.saveGDB(gs, MyFactory.getUnCanDFS(), trainQuery);\n\t\t// 3. Generate test queries\n\t\tString testQuery = home + \"testQuery\";\n\t\tint testSize = (int) (totalCount * 0.2);\n\t\tgs = new Graph[testSize];\n\t\tfor (int i = 0; i < testSize; i++) {\n\t\t\tint count = (int) (gen.getNext());\n\t\t\tif (count < 10) {\n\t\t\t\ti--;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tgs[i] = MergeGraph.mergeGraphs(gDB, count);\n\t\t}\n\t\tRandomChoseDBGraph.saveGDB(gs, MyFactory.getUnCanDFS(), testQuery);\n\t}", "public void loadStart()\n {\n score = 0;\n clear();\n HashMap<Location, State> start = gm.start();\n for (Location add : start.keySet())\n addToBoard(add, start.get(add));\n }", "@Test\n public void resumeBackupWithoutKillingOrderAndKillingCounter(){\n GameModel gm = new GameModel();\n\n InputStream url1= getClass().getClassLoader().getResourceAsStream(\"backupTest/backup_1.json\");\n\n gm.resumeMatchFromFile(url1);\n assertTrue(true);\n }", "private void loadInterpreter() throws IOException {\n tflite = new Interpreter(loadModelFile(activity));\n\n labelList = loadLabelList(activity);\n // the image as ByteBuffer\n imgData = ByteBuffer.allocateDirect((int)(4 *\n parameter.get(\"dimBatchSize\") *\n parameter.get(\"tensorImageWidth\") *\n parameter.get(\"tensorImageHeight\") *\n parameter.get(\"dimPixelSize\")));\n imgData.order(ByteOrder.nativeOrder());\n labelProbArray = new float[1][labelList.size()];\n filterLabelProbArray = new float[Math.round(parameter.get(\"filterStages\"))][labelList.size()];\n }", "public static void load(){\n\t\tinbattle=true;\n\t\ttry{\n\t\t\tFile f=new File(Constants.PATH+\"\\\\InitializeData\\\\battlesavefile.txt\");\n\t\t\tScanner s=new Scanner(f);\n\t\t\tturn=s.nextInt();\n\t\t\ts.nextLine();\n\t\t\tString curr=s.next();\n\t\t\tif(curr.equals(\"WildTrainer:\"))\n\t\t\t\topponent=WildTrainer.readInTrainer(s);\n\t\t\telse if(curr.equals(\"EliteTrainer:\"))\n\t\t\t\topponent=EliteTrainer.readInTrainer(s);\n\t\t\telse if(curr.equals(\"Trainer:\"))\n\t\t\t\topponent=Trainer.readInTrainer(s);\n\t\t\tSystem.out.println(\"Initializing previous battle against \"+opponent.getName());\n\t\t\tcurr=s.next();\n\t\t\tallunits=new ArrayList<Unit>();\n\t\t\tpunits=new ArrayList<Unit>();\n\t\t\tounits=new ArrayList<Unit>();\n\t\t\twhile(!curr.equals(\"End\")){\n\t\t\t\tpunits.add(Unit.readInUnit(null,s));\n\t\t\t\tcurr=s.next();\n\t\t\t}\n\t\t\ts.nextLine();// Player Units\n\t\t\tcurr=s.next();\n\t\t\twhile(!curr.equals(\"End\")){\n\t\t\t\tounits.add(Unit.readInUnit(opponent,s));\n\t\t\t\tcurr=s.next();\n\t\t\t}\n\t\t\ts.nextLine();// Opponent Units\n\t\t\tallunits.addAll(punits);\n\t\t\tallunits.addAll(ounits);\n\t\t\tpriorities=new ArrayList<Integer>();\n\t\t\tint[] temp=GameData.readIntArray(s.nextLine());\n\t\t\tfor(int i:temp){\n\t\t\t\tpriorities.add(i);\n\t\t\t}\n\t\t\txpgains=GameData.readIntArray(s.nextLine());\n\t\t\tspikesplaced=s.nextBoolean();\n\t\t\tnumpaydays=s.nextInt();\n\t\t\tactiveindex=s.nextInt();\n\t\t\tactiveunit=getUnitByID(s.nextInt());\n\t\t\tweather=Weather.valueOf(s.next());\n\t\t\tweatherturn=s.nextInt();\n\t\t\ts.nextLine();\n\t\t\tbfmaker=new LoadExistingBattlefieldMaker(s);\n\t\t\tinitBattlefield();\n\t\t\tplaceExistingUnits();\n\t\t\tMenuEngine.initialize(new UnitMenu(activeunit));\n\t\t}catch(Exception e){e.printStackTrace();System.out.println(e.getCause().toString());}\n\t}", "protected abstract void onLoad() throws IOException, ConfigInvalidException;" ]
[ "0.63930607", "0.6373238", "0.6143514", "0.59858274", "0.5977188", "0.57210404", "0.56247056", "0.5425799", "0.539379", "0.5382676", "0.5359003", "0.53343487", "0.5332523", "0.5306242", "0.52137595", "0.52092916", "0.518046", "0.5120735", "0.51145196", "0.51126224", "0.51036006", "0.507992", "0.5078138", "0.5073847", "0.5049322", "0.5041815", "0.5037764", "0.50194013", "0.5017241", "0.5008483", "0.5008483", "0.5005286", "0.4989437", "0.4988526", "0.4978384", "0.49707863", "0.49707863", "0.49487677", "0.49089524", "0.49008715", "0.48971334", "0.48948196", "0.48838714", "0.48817593", "0.48772174", "0.48676658", "0.48650745", "0.48406655", "0.48206285", "0.48203972", "0.48148182", "0.48140958", "0.4800281", "0.4797698", "0.47961956", "0.47872823", "0.4783923", "0.47825825", "0.47705588", "0.47663927", "0.47648048", "0.47519982", "0.4747953", "0.47464535", "0.47429442", "0.47372627", "0.47160017", "0.47080192", "0.47079724", "0.47019508", "0.47018132", "0.4697253", "0.46956006", "0.46903458", "0.46884912", "0.4678692", "0.46755114", "0.46666703", "0.46621454", "0.46618146", "0.4654374", "0.46509603", "0.46471146", "0.46368042", "0.46289402", "0.462621", "0.4624836", "0.4610227", "0.45987728", "0.45963687", "0.45759583", "0.45633984", "0.45611215", "0.45533216", "0.454553", "0.4541679", "0.4539982", "0.4535699", "0.45348746", "0.45346153" ]
0.7848121
0